@font-face {
  font-family: Archivo;
  src: url("archivo-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #142b23;
  --body: #42564e;
  --paper: #f4f7f3;
  --white: #fcfefb;
  --line: #d4e1d9;
  --green: #17664f;
  --mint: #a9efcc;
  --forest: #11392e;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --heading: Archivo, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font: 700 1em/1.04 var(--heading); }
h2 { font-size: clamp(2.15rem, 4.3vw, 4rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); letter-spacing: -.04em; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #167a60; outline-offset: 4px; }
[hidden] { display: none !important; }
:target { scroll-margin-top: 1.5rem; }

.shell { width: min(100% - 5rem, 79rem); margin-inline: auto; }
.section { padding-block: clamp(3.6rem, 8vw, 7.5rem); }
.section-head { max-width: 45rem; margin-bottom: 2rem; }
.section-head > p:last-child:not(.eyebrow) { color: var(--body); margin-top: .9rem; max-width: 41rem; font-size: 1.1rem; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; z-index: 10; inset: .4rem auto auto .4rem; padding: .7rem 1.1rem; background: var(--white); color: var(--ink); }

.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.65rem; }
.brand { display: inline-flex; align-items: center; gap: .62rem; color: var(--ink); text-decoration: none; font: 700 1.18rem/1.2 var(--heading); white-space: nowrap; }
.brand img { border-radius: 27%; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: clamp(.65rem, 2.3vw, 1.9rem); }
.nav-links a, .locale { color: var(--body); font-weight: 650; text-decoration: none; font-size: .9rem; }
.nav-links a:hover, .nav-links a[aria-current], .locale:hover { color: var(--green); text-decoration: underline; text-underline-offset: .4em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.2rem; border: 1px solid transparent; border-radius: .65rem; background: var(--forest); color: white; text-decoration: none; font-size: .94rem; font-weight: 720; line-height: 1.3; }
.button:hover { background: #0a4b38; }
.button.compact { min-height: 2.55rem; padding: .53rem .88rem; }
.button.outline { border-color: #aabfb4; background: transparent; color: var(--ink); }
.button.outline:hover { background: #e4efe7; }
.button.inverse { background: var(--mint); color: #103629; }
.button.inverse:hover { background: #d0ffe6; }

.hero {
  padding-block: clamp(3.15rem, 6.3vw, 6.7rem);
  background:
    radial-gradient(ellipse at 96% 32%, #d8f1e2cc, transparent 67%),
    linear-gradient(110deg, #f8faf5 30%, transparent 80%),
    radial-gradient(circle, #8ab49d76 1px, transparent 1.3px) right top / 1.3rem 1.3rem,
    #eef5ed;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.13fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: .85rem; color: var(--green); font: 650 .86rem/1.4 var(--mono); letter-spacing: .015em; }
.hero h1 { font-size: clamp(3.15rem, 6vw, 6.4rem); line-height: .98; letter-spacing: -.055em; }
.hero-line { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-line > span { display: block; }
.hero-line-accent { color: var(--green); }
.lede { color: var(--body); font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.6; }
.hero .lede { margin-top: 1.38rem; max-width: 34rem; }
.hero-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.65rem; }
.free-note { display: flex; flex-wrap: wrap; gap: .1rem .7rem; margin-top: 1rem; color: var(--green); font-size: .91rem; font-weight: 660; }
.free-note span { color: var(--body); font-weight: 500; }

.test-card {
  padding: clamp(1rem, 2.6vw, 1.8rem);
  background: var(--white);
  border: 1px solid #c3d9ca;
  border-radius: 1.22rem;
  min-width: 0;
  box-shadow: 0 20px 48px -30px #215a45a0, 0 3px 4px #2348100b;
}
.test-head { display: flex; justify-content: space-between; align-items: start; gap: .8rem; }
.test-head h2 { font-size: clamp(1.35rem, 2vw, 1.9rem); letter-spacing: -.045em; }
.test-head p { color: var(--body); font-size: .87rem; margin-top: .35rem; }
.test-options { display: flex; gap: .42rem; flex-wrap: wrap; justify-content: end; min-width: 0; }
.duration { display: inline-flex; gap: .12rem; padding: .17rem; background: #eaf1e9; border-radius: .57rem; white-space: nowrap; }
.duration button { border: 0; border-radius: .38rem; padding: .24rem .42rem; background: transparent; color: var(--body); font: 650 .84rem/1.6 var(--mono); }
.duration button[aria-pressed=true] { background: var(--forest); color: white; }
.test-options select {
  min-width: 0; max-width: 10rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: .55rem; font-size: .86rem;
  min-height: 2rem; padding: .26rem 1.55rem .26rem .5rem; appearance: none;
  background: linear-gradient(45deg, transparent 50%, var(--green) 50%) calc(100% - .75rem) center / .32rem .32rem no-repeat,
              linear-gradient(135deg, var(--green) 50%, transparent 50%) calc(100% - .43rem) center / .32rem .32rem no-repeat;
}
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.05rem; gap: .5rem; }
.metrics div { padding: .48rem .7rem; background: #edf4ed; border-radius: .55rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 .35rem; }
.metrics span { color: var(--body); font-size: .84rem; font-weight: 600; }
.metrics strong { font: 700 1.12rem/1.35 var(--mono); font-variant-numeric: tabular-nums; }
.test-progress { height: 3px; background: #e1eae2; overflow: hidden; border-radius: 3px; margin-top: .73rem; }
.test-progress i { display: block; width: 100%; height: 100%; background: #449679; transform: scaleX(0); transform-origin: left; }
.prompt { min-height: 6.65rem; padding: .63rem 0 .45rem; color: #52655b; font: 500 clamp(.99rem, 1.45vw, 1.17rem)/1.78 var(--mono); cursor: text; overflow-wrap: anywhere; }
.prompt span { white-space: pre-wrap; }
.prompt .word { display: inline-block; }
.prompt .correct { color: #135e47; }
.prompt .mistake { color: #a0313e; background: #ffe2e3; text-decoration: underline; }
.prompt .current { background: #c6f6dc; box-shadow: inset 0 -2px #247f5f; color: #13392c; }
[data-field], .feedback :is(input, textarea) { width: 100%; min-width: 0; border: 1px solid #a5c1b0; border-radius: .52rem; background: #fff; color: var(--ink); padding: .55rem .73rem; }
[data-field] { font: 500 .95rem/1.5 var(--mono); min-height: 2.62rem; }
[data-field]::placeholder { color: #586b60; opacity: 1; }
[data-field][readonly] { background: #f0f6f0; }
.keyboard { display: grid; gap: .24rem; margin-top: .86rem; user-select: none; }
.key-row { display: flex; gap: .23rem; justify-content: center; }
.key-row span { display: grid; place-items: center; width: clamp(1rem, 3vw, 2.3rem); height: 1.65rem; border: 1px solid #d5e4da; border-bottom-width: 2px; border-radius: .33rem; color: #52685c; background: #f2f6f1; font: 650 .78rem/1 var(--mono); }
.key-row .home-key { background: #e1f2e6; color: #28604d; }
.key-row .space-key { width: 34%; height: .68rem; }
.key-row .next-key { background: var(--forest); color: white; border-color: var(--forest); }
.test-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .8rem; }
.test-foot p { color: var(--body); font-size: .81rem; }
.test-actions { display: flex; gap: .9rem; }
.test-actions button { border: 0; padding: .2rem 0; background: transparent; color: var(--green); font-weight: 650; font-size: .83rem; text-decoration: underline; text-underline-offset: .2em; }

.showcase { color: #f3faf4; background: #13382f; }
.showcase .eyebrow { color: var(--mint); }
.showcase .section-head > p:last-child:not(.eyebrow) { color: #c5ded0; }
.showcase :focus-visible { outline-color: var(--mint); }
.feature { background: #21483b; border: 1px solid #56746a; border-radius: 1.05rem; padding: clamp(1.1rem, 3vw, 2.25rem); }
.feature-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.35rem; }
.feature-tabs button { border: 1px solid #78968a; border-radius: .46rem; padding: .35rem .82rem; color: #f1fff6; background: transparent; font-weight: 650; font-size: .91rem; }
.feature-tabs button[aria-pressed=true] { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.feature-panel { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: clamp(1rem, 3vw, 3.3rem); align-items: center; }
.feature-copy p { margin: .8rem 0 1.35rem; color: #d3e9dd; }
.feature-panel img { width: 100%; border: 1px solid #657a72; border-radius: .63rem; }
.video-section { display: grid; align-items: center; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(1.1rem, 6vw, 5rem); }
.video-copy p { color: var(--body); margin-top: .9rem; }
.video-copy p.requirements { margin-top: 1.1rem; font-size: .9rem; }
.video { background: #192820; border: 1px solid #21483b; border-radius: .9rem; overflow: hidden; }
.video video { width: 100%; aspect-ratio: 16 / 9; }

.next-section { border-top: 1px solid var(--line); background: #e9f2e9; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.path-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.path-card { display: block; padding: clamp(1.05rem, 2.25vw, 1.6rem); border: 1px solid #cbded0; background: var(--white); border-radius: .8rem; text-decoration: none; }
.path-card :is(h2, h3) { font-size: clamp(1.28rem, 2.2vw, 1.95rem); letter-spacing: -.04em; }
.path-card p { margin-top: .5rem; color: var(--body); }
.path-card:hover { border-color: var(--green); }
.path-card:hover :is(h2, h3) { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }

.inner-hero { background: linear-gradient(105deg, #f8faf5, #dfeee2); border-bottom: 1px solid var(--line); padding-block: clamp(2.7rem, 7vw, 5.8rem); }
.inner-hero h1 { max-width: 53rem; font-size: clamp(2.75rem, 6vw, 5.55rem); letter-spacing: -.065em; }
.inner-hero .lede { max-width: 45rem; margin-top: .9rem; }
.inner-hero .button { margin-top: 1.12rem; }
.back-link { display: inline-block; margin-bottom: .95rem; color: var(--green); font-weight: 650; }
.content-flow { display: grid; justify-items: start; gap: 2rem; }
.content-flow .path-grid { width: 100%; }
.feedback { max-width: 44rem; width: 100%; padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--white); }
.feedback h2, .prose h2 { font-size: clamp(1.56rem, 3vw, 2.2rem); }
.feedback p { margin-top: .6rem; color: var(--body); }
.feedback form { display: grid; gap: .82rem; justify-items: start; margin: 1rem 0 .6rem; }
.feedback label { width: 100%; display: grid; gap: .28rem; font-weight: 650; }
.feedback textarea { resize: vertical; }
.feedback > a { color: var(--green); }
.prose { width: min(100% - 5rem, 47rem); }
.prose h2 { margin: 1.5rem 0 .45rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--body); margin: 0 0 .7rem; }
.prose img { width: 100%; margin-block: 1.45rem; border-radius: .75rem; }
.prose .button { margin-top: .65rem; }
.faq details { border-top: 1px solid var(--line); padding: .7rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 680; }
.faq p { margin: .45rem 0 .12rem; }

.footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 1.65rem; }
.footer-inner, .footer-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem 1.25rem; }
.footer-links, .copyright { color: var(--body); font-size: .9rem; }

@media (max-width: 1024px) {
  .shell, .prose { width: min(100% - 3rem, 79rem); }
  .prose { max-width: 47rem; }
  .hero-grid { gap: 1.75rem; }
  .nav, .nav-links, .nav-actions { gap: .75rem; }
  .test-head { flex-wrap: wrap; }
  .test-options { justify-content: start; }
}
@media (max-width: 800px) {
  .shell, .prose { width: min(100% - 2.2rem, 79rem); }
  .hero-grid, .video-section { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.7rem 3.5rem; }
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 10vw, 4.8rem); }
  .test-card { max-width: 45rem; }
  .test-head { justify-content: space-between; }
  .feature-panel { grid-template-columns: minmax(0, 1fr); }
  .key-row span { width: clamp(1.25rem, 5vw, 2.3rem); }
  .nav { flex-wrap: wrap; padding-block: .65rem; }
  .nav-links { order: 3; width: 100%; }
}
@media (max-width: 475px) {
  .shell, .prose { width: calc(100% - 1.5rem); }
  .hero { padding-top: 2.15rem; }
  .hero .lede { margin-top: .85rem; }
  .hero-actions { margin-top: 1.1rem; }
  .nav-links { justify-content: space-between; }
  .nav-links a, .locale, .button.compact { font-size: .84rem; }
  .brand { font-size: 1.02rem; gap: .38rem; }
  .brand img { width: 31px; }
  .nav, .nav-actions { gap: .45rem; }
  .button.compact { padding-inline: .52rem; }
  .metrics div { padding-inline: .46rem; }
  .metrics span { font-size: .78rem; }
  .prompt { min-height: 6rem; }
  .path-grid, .path-grid.two { grid-template-columns: minmax(0, 1fr); }
  .free-note { font-size: .86rem; }
  .keyboard { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-line > span {
    animation: headline-in 560ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero-line-accent > span { animation-delay: 130ms; }
  .test-card { animation: test-enter 660ms 80ms cubic-bezier(.2, .75, .3, 1) both; }
  .keyboard .key-row {
    --arrival: 320ms;
    animation: keys-enter 360ms var(--arrival) cubic-bezier(.16, 1, .3, 1) both;
  }
  .keyboard .key-row:nth-child(2) { --arrival: 390ms; }
  .keyboard .key-row:nth-child(3) { --arrival: 455ms; }
  .keyboard .key-row:nth-child(4) { --arrival: 520ms; }
  .test-card:focus-within, .test-card:focus-within .key-row { animation: none; }

  @keyframes headline-in {
    from { opacity: .25; transform: translateY(78%); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes test-enter {
    from { opacity: .45; transform: translateY(1.15rem); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes keys-enter {
    from { opacity: .05; transform: translateY(.35rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.languages { position: relative; flex: 0 0 auto; }
.languages summary {
  cursor: pointer;
  color: var(--body);
  font-size: .875rem;
  font-weight: 650;
  padding: .5rem .35rem;
}
.languages ul {
  position: absolute;
  z-index: 5;
  inset-inline-end: 0;
  min-width: max-content;
  max-height: min(24rem, 70vh);
  overflow-y: auto;
  margin: .25rem 0 0;
  padding: .4rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--white);
  box-shadow: 0 .5rem 1.4rem #19282022;
}
.languages a, .section-links a {
  display: block;
  border-radius: .4rem;
  padding: .55rem .7rem;
  color: var(--body);
  text-decoration: none;
}
.languages a:hover, .languages a[aria-current], .section-links a:hover, .section-links a[aria-current] {
  background: #e9f2e9;
  color: var(--green);
}
.article-card { display: grid; grid-template-columns: 1fr; align-content: start; gap: .85rem; }
.article-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 47rem) minmax(12rem, 1fr); gap: clamp(1.4rem, 5vw, 4rem); align-items: start; }
.article-layout .prose { width: 100%; }
.section-links { border: 1px solid var(--line); border-radius: .8rem; padding: .55rem; background: var(--white); }
.section-links ul { padding: 0; margin: .2rem 0 0; list-style: none; }
@media (max-width: 800px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .nav-links { flex-wrap: wrap; }
}
@media (max-width: 475px) {
  .languages summary { font-size: .82rem; padding-inline: .15rem; }
  .languages ul { inset-inline-end: auto; inset-inline-start: 0; }
}
