@font-face {
    font-family: "STIX Two Text";
    src: url("landing/stix-normal-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 550;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "STIX Two Text";
    src: url("landing/stix-normal-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 550;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "STIX Two Text";
    src: url("landing/stix-italic-cyrillic.woff2") format("woff2");
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "STIX Two Text";
    src: url("landing/stix-italic-latin.woff2") format("woff2");
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --paper: #faf7ef;
    --ink: #203d34;
    --muted: #4e6259;
    --rust: #aa4229;
    --rule: #d7dace;
    --serif: "STIX Two Text", Georgia, serif;
    --gutter: clamp(1.25rem, 5vw, 4rem);
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Source Sans 3", system-ui, sans-serif;
    line-height: 1.55;
}

* { box-sizing: border-box; }
body, h1, h2, h3, figure, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #1b7590; outline-offset: 4px; }
.wrap { width: min(74rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
section[id] { scroll-margin-block-start: 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 550; line-height: 1.06; letter-spacing: -.04em; }
h1 em, h2 em { font-weight: 500; }
h2 { font-size: clamp(2.4rem, 4.4vw, 4.1rem); }

.skip-link {
    position: absolute;
    z-index: 3;
    top: .65rem;
    left: var(--gutter);
    padding: .65rem 1rem;
    color: white;
    background: var(--ink);
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 5.25rem; display: flex; gap: clamp(1.5rem, 3.2vw, 3.25rem); align-items: center; }
.wordmark {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1;
    text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.65rem; margin-left: auto; }
.site-nav a, .header-cta { display: inline-flex; align-items: center; min-height: 44px; font-size: .925rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .staff-link:hover, .legal-links a:hover { color: var(--rust); text-decoration: underline; }
.header-cta { flex: none; gap: .65rem; justify-content: center; padding: .53rem 1.12rem; border: 1px solid var(--ink); border-radius: 2rem; white-space: nowrap; }
.header-cta:hover { color: var(--paper); background: var(--ink); }
.header-cta span { font-size: 1.1em; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding-block: clamp(3rem, 5.2vw, 5rem) clamp(3.75rem, 6vw, 6rem);
}
.eyebrow, .caption-label {
    font-size: .73rem;
    font-weight: 720;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.eyebrow::before { content: ""; width: 1.85rem; height: 2px; background: var(--rust); }
h1 { margin-block: 1.25rem; font-size: clamp(3.8rem, 6.7vw, 6.45rem); line-height: .96; letter-spacing: -.055em; }
h1 em { display: block; color: var(--rust); }
.hero-lead { max-width: 40ch; margin-bottom: 1.75rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); }

.bot-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 3.65rem;
    padding: .85rem 1.65rem;
    border-radius: 2.5rem;
    color: #fff;
    background: var(--rust);
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}
.bot-cta svg { flex: none; }
.bot-cta:hover { background: #84321f; }
.start-note { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; color: var(--muted); font-size: .87rem; }

.sample {
    position: relative;
    margin-right: .45rem;
    padding: .55rem;
    background: #fffdf7;
    border: 1px solid #d6d3c3;
    border-radius: 1.2rem;
    box-shadow: .45rem .45rem 0 #e9dfc9, 0 .6rem 1.5rem #4d3e1b0c;
}
.sample-art { position: relative; }
.sample-art img { width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; border-radius: .75rem; }
.sample-level {
    position: absolute;
    top: .8rem;
    left: .8rem;
    padding: .28rem .7rem;
    border-radius: 2rem;
    background: #fff9eb;
    color: #344c40;
    font-size: .77rem;
    font-weight: 700;
}
.sample-prompt { padding: 1.05rem .95rem .6rem; }
.caption-label { color: #72604b; font-size: .66rem; }
.sample h2 { margin: .25rem 0 .15rem; font-size: clamp(1.65rem, 2.55vw, 2.25rem); }
.sample-english { color: var(--muted); font-size: .93rem; }
summary { display: flex; align-items: center; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.sample-answer summary {
    width: fit-content;
    gap: .65rem;
    min-height: 44px;
    color: var(--rust);
    font-size: .9rem;
    font-weight: 680;
    text-underline-offset: .18em;
}
.sample-answer summary:hover { text-decoration: underline; }
.sample-answer .when-open, .sample-answer[open] .when-closed { display: none; }
.sample-answer[open] .when-open { display: inline; }
.chevron { width: .47rem; height: .47rem; border: solid currentColor; border-width: 0 1.7px 1.7px 0; transform: translateY(-2px) rotate(45deg); }
.sample-answer[open] .chevron { transform: translateY(2px) rotate(225deg); }
.sample-answer p { padding: .65rem .85rem; border-left: 2px solid #bd7753; background: #f7f0e2; color: var(--muted); }
.sample-answer p strong { color: var(--ink); }

.practice-section { padding-block: clamp(2.8rem, 5.2vw, 5.5rem); background: #eaf0e7; border-block: 1px solid #d3ddce; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1.5rem, 2.8vw, 2.4rem); }
.section-intro > p { max-width: 35ch; color: var(--muted); }
.exercise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.exercise { border: 1px solid #cdd7c9; border-radius: .95rem; overflow: hidden; background: #fbfcf6; }
.exercise img { width: 100%; height: auto; aspect-ratio: 1.95; object-fit: cover; }
.exercise-copy { padding: 1.3rem clamp(1.1rem, 2vw, 1.55rem) 1.55rem; }
.exercise h3 { margin-bottom: .45rem; font-size: clamp(1.65rem, 2.4vw, 2rem); }
.exercise p, .question-list p { color: var(--muted); }

.questions { display: grid; grid-template-columns: .82fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.25rem, 7vw, 6.5rem); }
.questions h2 { max-width: 10ch; }
.questions h2 em { color: var(--rust); }
.question-list { border-top: 1px solid #bfc9bc; }
.question-list details { border-bottom: 1px solid #bfc9bc; }
.question-list summary { min-height: 4.25rem; justify-content: space-between; gap: 1rem; padding: .9rem .1rem; font-size: clamp(1rem, 1.6vw, 1.14rem); font-weight: 650; }
.question-list summary:hover { color: var(--rust); }
.toggle { position: relative; flex: none; width: 1rem; height: 1rem; color: var(--rust); }
.toggle::before, .toggle::after { content: ""; position: absolute; background: currentColor; }
.toggle::before { inset: calc(50% - 1px) 0 auto; height: 2px; }
.toggle::after { inset: 0 auto 0 calc(50% - 1px); width: 2px; }
details[open] > summary .toggle::after { display: none; }
.question-list p { max-width: 58ch; padding: 0 1.6rem 1.2rem .1rem; }

.start-panel {
    display: flex;
    align-items: center;
    gap: clamp(1.3rem, 2.5vw, 2.3rem);
    padding: clamp(1.65rem, 4vw, 3.5rem);
    border-radius: 1.35rem;
    color: #fffaf0;
    background: #244c3e;
}
.bill-portrait { flex: none; width: clamp(5rem, 9.5vw, 7.7rem); height: auto; border: .3rem solid #f8e9c9; border-radius: 50%; }
.start-copy { flex: 1; }
.start-copy h2 { margin-bottom: .45rem; font-size: clamp(2rem, 3.5vw, 3.4rem); }
.start-copy p { color: #e0eadc; }
.start-copy a, .question-list strong { overflow-wrap: anywhere; }
.start-panel .bot-cta { flex: none; background: #fff0d4; color: #283e2e; }
.start-panel .bot-cta:hover { background: white; }

.site-footer { margin-top: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: start; gap: 1.65rem 3rem; padding-block: 2.2rem; }
.footer-inner .wordmark { font-size: 1.35rem; }
.footer-help { flex: 1; }
.footer-help p { margin-bottom: .45rem; font-size: .9rem; font-weight: 680; }
.legal-links { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; }
.legal-links a, .staff-link { color: var(--muted); font-size: .85rem; }
.staff-link { padding-top: .2rem; }

.error-page { padding-block: clamp(3rem, 9vw, 8rem); }
.error-page h1 { max-width: 20ch; margin-block: 1.2rem 1.85rem; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.06; }

@media (max-width: 58rem) {
    .header-inner { gap: 1.15rem; }
    .wordmark { font-size: 1.4rem; }
    .site-nav { gap: 1rem; }
    .site-nav a, .header-cta { font-size: .88rem; }
    .hero { gap: 1.8rem; }
    h1 { font-size: clamp(3.1rem, 7.3vw, 4.65rem); }
    .start-panel { display: grid; grid-template-columns: auto 1fr; }
    .bill-portrait { grid-row: span 2; }
    .start-panel .bot-cta { justify-self: start; }
}

@media (max-width: 47rem) {
    .wrap { max-width: 38rem; }
    .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding-block: .75rem .25rem; }
    .wordmark { font-size: 1.4rem; }
    .wordmark img { width: 34px; height: 34px; }
    .header-cta { grid-row: 1; grid-column: 2; }
    .site-nav { grid-column: 1 / -1; margin: 0; gap: .2rem 1.4rem; }
    .site-nav a { font-size: .88rem; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2.4rem 3rem; }
    h1 { margin-block: .95rem; font-size: clamp(2.85rem, 13.3vw, 4.8rem); }
    .hero-lead { margin-bottom: 1.25rem; }
    .sample-prompt { padding: .95rem .8rem .35rem; }
    .section-intro { display: block; }
    .section-intro > p { margin-top: .55rem; max-width: 45ch; }
    .exercise-grid { grid-template-columns: 1fr; }
    .exercise { display: grid; grid-template-columns: minmax(7rem, 32%) minmax(0, 1fr); }
    .exercise img { height: 100%; aspect-ratio: auto; }
    .exercise-copy { padding: 1.1rem; }
    .questions { grid-template-columns: 1fr; gap: 1.4rem; }
    .questions h2 { max-width: none; }
    .footer-inner { flex-direction: column; gap: 1.2rem; }
    .legal-links { gap: .4rem 1rem; }
}

@media (max-width: 30rem) {
    .header-inner { gap: .15rem .5rem; }
    .header-inner .wordmark { gap: .4rem; font-size: 1.3rem; }
    .header-inner .wordmark img { width: 32px; height: 32px; }
    .header-cta { gap: .4rem; padding-inline: .75rem; font-size: .85rem; }
    .site-nav { gap: .25rem clamp(.65rem, 3vw, 1.2rem); }
    .site-nav a { font-size: .85rem; }
    .bot-cta { padding-inline: .8rem; gap: .5rem; font-size: 1rem; }
    .hero-copy > .bot-cta, .start-panel .bot-cta { width: 100%; }
    .start-note { justify-content: center; }
    .exercise { grid-template-columns: 1fr; }
    .exercise img { height: auto; aspect-ratio: 2.2; }
    .start-panel { grid-template-columns: 3.75rem 1fr; gap: 1.2rem .9rem; padding-inline: 1.1rem; }
    .bill-portrait { grid-row: auto; width: 100%; border-width: .18rem; }
    .start-copy h2 { font-size: 1.9rem; }
    .start-panel .bot-cta { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .bot-cta, .header-cta { transition: background-color .15s, color .15s; }
}
