@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #14201b;
    --paper: #f5f4ea;
    --white: #fffdf5;
    --lime: #dcff72;
    --edge: clamp(1.5rem, 5.6vw, 7rem);
    font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; }

a { color: inherit; }

a:focus-visible,
summary:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    inset: 0 auto auto 1rem;
    z-index: 3;
    padding: 0.75rem 1rem;
    background: var(--lime);
    transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0.75rem); }

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--ink);
    color: var(--white);
}

.hero__photo,
.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__photo {
    object-fit: cover;
    object-position: center;
}

.hero::before {
    z-index: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgb(12 22 18 / 92%) 0%, rgb(12 22 18 / 76%) 33%, rgb(12 22 18 / 27%) 64%, transparent 90%),
        linear-gradient(180deg, rgb(10 17 14 / 59%), transparent 24%, transparent 74%, rgb(10 17 14 / 35%));
}

.hero__content { position: relative; }

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem var(--edge);
    color: var(--white);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.wordmark__mark {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.53rem 0.44rem;
    border-radius: 0.65rem;
    background: var(--lime);
}

.wordmark__mark i {
    width: 4px;
    height: 45%;
    border-radius: 3px;
    background: var(--ink);
}

.wordmark__mark i:nth-child(2) { height: 70%; }
.wordmark__mark i:nth-child(3) { height: 100%; }

.site-header__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.1rem;
    font-size: 0.98rem;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

.site-header__link:hover { color: var(--lime); }

.hero__content {
    display: grid;
    align-content: center;
    padding: 6rem var(--edge);
}

.hero__copy { width: min(100%, 47rem); }

.hero h1 {
    margin: 0;
    font-size: 7.1rem;
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.hero h1 em {
    color: var(--lime);
    font-style: normal;
}

.hero__copy > p:not(.hero__note) {
    max-width: 27rem;
    margin: 1.65rem 0 1.9rem;
    color: #eef1e8;
    font-size: 1.25rem;
    line-height: 1.48;
}

.lesson-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.45rem;
    padding: 0.75rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 0.55rem;
    color: var(--ink);
    background: var(--lime);
    font-size: 1.07rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 150ms ease, transform 150ms ease;
}

.lesson-button:hover {
    background: #efffae;
    transform: translateY(-2px);
}

.lesson-button:focus-visible { outline-color: var(--white); }

.hero__note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.85rem 0 0;
    color: #f0f1e8;
    font-size: 0.9rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1.2rem;
}

.hero__membership {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--white);
    font-weight: 650;
    text-underline-offset: 0.3em;
}

.hero__membership:hover { color: var(--lime); }

.practice {
    display: grid;
    grid-template-columns: 1fr 1.03fr;
    gap: 4rem;
    max-width: 96rem;
    margin-inline: auto;
    padding: 5.6rem var(--edge);
}

.practice h2 {
    margin: 0;
    font-size: 3.7rem;
    font-weight: 800;
    line-height: 0.99;
    letter-spacing: -0.055em;
}

.practice__intro p {
    max-width: 26rem;
    color: #3d4b41;
    font-size: 1.14rem;
    line-height: 1.55;
}

.example {
    align-self: start;
    border-block: 1px solid #aeb6a6;
}

.example dl { margin: 0; }

.example dl > div {
    display: grid;
    grid-template-columns: minmax(6rem, 0.57fr) 1.5fr;
    gap: 0.65rem 1rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid #aeb6a6;
}

.example dt { font-weight: 800; }

.example dd {
    margin: 0;
    color: #344139;
}

.example summary {
    padding: 1.05rem 0;
    font-weight: 800;
    cursor: pointer;
}

.example details p {
    margin: 0 0 1.05rem;
    line-height: 1.5;
}

@media (max-width: 68rem) {
    .hero h1 { font-size: 5.65rem; }
    .practice { gap: 2.5rem; }
}

@media (max-width: 45rem) {
    .site-header { padding-block: 0.9rem; }
    .hero__photo { object-position: 82% 28%; }

    .hero::before {
        background: linear-gradient(180deg, rgb(7 17 12 / 72%) 0%, transparent 23%, rgb(9 18 14 / 15%) 37%, rgb(10 19 15 / 90%) 68%, #101d17 100%);
    }

    .hero__content {
        align-content: end;
        padding-top: 14rem;
        padding-bottom: 2.5rem;
    }

    .hero h1 { font-size: 4.35rem; }

    .hero__copy > p:not(.hero__note) {
        margin: 1.05rem 0 1.35rem;
        font-size: 1.07rem;
    }

    .practice {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-block: 3rem;
    }

    .practice h2 { font-size: 2.9rem; }
}

@media (max-width: 25rem) {
    .hero h1 { font-size: 3.7rem; }
}

@media (max-width: 22rem) {
    .hero h1 { font-size: 3.15rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lesson-button { transition: none; }
    .lesson-button:hover { transform: none; }
}
