:root {
  color-scheme: light;
  --paper: #faf9f4;
  --ink: #202e26;
  --sage: #e4ebdf;
  --deep: #275541;
  --margin: clamp(16px, 4vw, 64px);
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--deep); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #8b442a;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--margin), 1320px); margin-inline: auto; }
.skip {
  position: absolute;
  inset: .6rem auto auto .6rem;
  background: var(--paper);
  z-index: 1;
  padding: .5rem;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.masthead { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.masthead img { width: clamp(134px, 16vw, 225px); height: auto; }
nav { display: flex; gap: clamp(.55rem, 3vw, 2.6rem); }
nav a { padding-block: .65rem; text-decoration: none; font-weight: 650; }
nav a:hover { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  background: var(--sage);
}
.hero-copy { padding: clamp(22px, 4vw, 60px); }
h1, h2 { font-family: Georgia, serif; font-weight: 400; margin: 0; letter-spacing: -.044em; }
h1 { font-size: clamp(2.22rem, 4.65vw, 4.8rem); line-height: 1.03; }
h2 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.03; }
p { margin: 0; }
.hero-copy p { max-width: 34ch; margin: 1.2rem 0 1.6rem; font-size: clamp(1rem, 1.48vw, 1.23rem); }
.action {
  display: inline-block;
  border: 0;
  border-radius: 0;
  background: var(--deep);
  color: #fff;
  padding: .65rem 1.2rem;
  min-height: 44px;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 150ms ease;
}
.action:hover { background: #1c4031; }
.action:active { transform: translateY(2px); }
.scene { margin: 0; align-self: stretch; overflow: hidden; }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.practice, .academy {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 6vw, 90px);
  padding: clamp(28px, 5vw, 70px) clamp(20px, 4vw, 56px);
  margin-top: clamp(32px, 6vw, 82px);
}
.practice { background: #f1eee5; }
.prompt p, .academy p { margin-top: 1rem; max-width: 47ch; }
.exercise { background: var(--paper); padding: clamp(14px, 2.7vw, 36px); }
fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
legend { font-size: 1.2rem; line-height: 1.35; padding: 0; margin-bottom: .6rem; font-weight: 700; }
label { display: flex; align-items: baseline; gap: .7rem; padding: .55rem .65rem; cursor: pointer; min-height: 44px; }
label:hover, label:has(:checked) { background: var(--sage); }
input { margin: 0; accent-color: var(--deep); flex: none; }
.note { margin: .75rem 0 1rem; color: #3f4b40; }
.plain { font: inherit; color: var(--deep); background: transparent; cursor: pointer; border: 0; padding: .65rem; text-decoration: underline; min-height: 44px; }
.feedback:not(:empty) { background: var(--sage); padding: .85rem; margin-top: 1rem; }
.skip-practice { display: inline-flex; align-items: center; min-height: 44px; margin-top: .3rem; }
.academy { background: var(--sage); }
dl { display: grid; gap: .75rem; margin: 0; }
dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .35rem 1rem; align-items: baseline; }
dt { font-weight: 750; }
dd { margin: 0; }
footer { display: flex; gap: .4rem 1rem; justify-content: space-between; flex-wrap: wrap; padding-block: 1.5rem; }
@media (max-width: 670px) {
  .masthead { min-height: 68px; }
  .hero, .practice, .academy { grid-template-columns: minmax(0, 1fr); }
  .scene img { height: auto; aspect-ratio: 1; object-position: 50% 43%; }
  dl div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) {
  .masthead img { width: 126px; }
  nav { font-size: .94rem; }
  .practice, .academy { padding-block: 22px; }
  h1 { font-size: 1.95rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p, .hero .action { animation: arrive 450ms ease-out both; }
  .hero p { animation-delay: 65ms; }
  .hero .action { animation-delay: 130ms; }
  .scene img { animation: settle 1250ms ease-out both; }
  [data-reveal].seen { animation: arrive 450ms ease-out; }
  @keyframes arrive {
    from { opacity: .25; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes settle { from { transform: scale(1.035); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) { .action { transition: none; } }
