body {
    font-family: "MatchaSquishy";

    background-color: var(--surface-page);
}

.view_height-100 section {
    height: 100vh;
}

.view_height-100 {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;

    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

.view_height-100>div:last-child {
    position: absolute;
    right: 1rem;
    bottom: 1rem;

    text-align: right;

    z-index: -1;
}

.track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    z-index: 0;
    pointer-events: none;
}

.home-title {
    color: var(--text);
    font-size: clamp(3rem, 14vw, 10rem);
    font-weight: 800;

    width: fit-content;
    max-width: 100%;

    flex-shrink: 0;

    margin: 1rem auto auto 1rem;

    transform: rotate(-15deg);
    transform-origin: top right;

    position: relative;
    z-index: 1;
}

.home-about {
    padding: clamp(1rem, 2rem);
    font-size: clamp(1rem, 14vw, 2rem);
    color: var(--text);
}

.orpheus-flag {
    position: absolute;
    top: -5px;
    left: 0;
    width: 256px;
    z-index: 10;
    display: block;

    transform-origin: top left;
    animation: orpheus-wave 2s infinite ease-in-out
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-text);
}

.view_height-100:has(.route) {
    padding: 40px 16px;
}

.route {
    list-style: none;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.stop {
    position: relative;
    padding: 0 0 36px 64px;
}

.stop:last-child {
    padding-bottom: 0;
}

.stop:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 38px;
    bottom: -38px;
    border-left: 6px solid var(--track-rail);
}

.stop::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 8px;
    top: 24px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-page);
    border: 6px solid var(--track-rail);
}

.sign {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
}

.sign h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    color: var(--text);
}

.sign p {
    margin: 0;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.sign:hover p {
    color: var(--text);
}

.sign small {
    color: var(--text-muted);
    font-weight: 700;
}

.current .sign {
    background: var(--surface-raised);
    border: 2px solid var(--border-strong);
}

.current::before {
    background: var(--text);
    box-shadow: 0 0 0 5px var(--border);
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: block;
    transform: translateY(-100%);
}

.wave path { fill: #cc342d; }

.wave-2 path { fill: var(--surface-page)}

.stops-progress {
    position: relative;
    background: #cc342d;
    color: var(--text);
    padding: 80px 20px 140px;
    overflow: visible;
    margin-top: 3rem;
    height: auto;
    min-height: calc(100svh - 4rem);
}

.faq-section {
    position: relative; 
    overflow: visible;
    padding: 80px 20px 140px;
    color: var(--text)
}

.faq-questions {
    display: flex;
    flex-direction: column;

    align-items: center;
    width: 100%;
    height: 100%;
    text-align: left;
    padding: 4rem 1rem 0;
}

.faq-question {
    width: min(100%, 40rem);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.faq-question-text {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question-text::-webkit-details-marker {
    display: none;
}

.faq-question-text::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-question[open] .faq-question-text::after {
    content: "−";
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.faq-question[open] .faq-answer,
.faq-question.closing .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-question.closing .faq-answer {
    grid-template-rows: 0fr;
    opacity: 0;
}

.faq-answer-text {
    overflow: hidden;
    margin: 0;
    padding-top: 0.5rem;
    color: var(--text-muted);
}

.hackclub-join-btn {
    background-color: var(--button-bg);
    color: var(--button-text);
    transition: background-color 0.3s ease-out, transform 0.3s ease-out;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: var(--button-hover) 2px solid;
}

.hackclub-join-btn:active {
    background-color: var(--button-active);
}

.hackclub-join-btn:hover {
  background-color: var(--button-hover);
  transform: translateY(-10%);
}

footer {
    width: 100%;
    padding: 1rem 2rem;
    color: var(--text);
    background-color: #cc342d;
    margin-top: -1rem;
}

@keyframes orpheus-wave {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

@media (max-width: 1024px) {
    .home-title {
        font-size: clamp(3rem, 8vw, 6rem);
    }

    .orpheus-flag {
        position: relative;
        width: 196px;
        margin-bottom: -5rem;
        z-index: 10;
    }
}

@media (max-width: 600px) {
    .view_height-100 {
        flex-direction: column;
    }

    .view_height-100>div:last-child {
        position: static;
        text-align: left;
        margin-top: auto;
        z-index: 1;
    }
}