:root {
  --ink: #163431;
  --teal: #123d3b;
  --teal-deep: #0b302e;
  --sage: #e5ede1;
  --paper: #fdf9ed;
  --gold: #f3bd62;
  --rule: #cdd3c2;
  --muted: #435c54;
  --width: 1130px;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure, dl, dd { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #a44329; outline-offset: 4px; }
.top :focus-visible, .arrival :focus-visible, .exercise :focus-visible { outline-color: var(--gold); }
.wrap { width: min(var(--width), calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; inset: 9px auto auto 9px; padding: .6rem .9rem; background: var(--gold); transform: translateY(-150%); }
.skip:focus { transform: none; }
h1, h2 { color: var(--teal); font-family: Georgia, serif; letter-spacing: -.048em; line-height: 1.02; }
.top { color: #fff9eb; background: var(--teal-deep); border-bottom: 1px solid #426361; }
.top-inner, .footer-main { display: flex; align-items: center; justify-content: space-between; gap: 10px 33px; }
.top-inner { min-height: 73px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.51rem/1 Georgia, serif; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 20px; }
nav a { padding-block: .35rem; text-decoration: none; font-weight: 700; font-size: .94rem; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em; }
.top nav a:hover, .top nav a[aria-current] { color: var(--gold); }
.arrival { color: #fff9eb; background: var(--teal); padding-block: 32px 38px; }
.arrival-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(22px, 5vw, 71px); }
.arrival-art { overflow: hidden; background: #d6983b; border-radius: 3px 56px 3px 3px; }
.arrival-art img { width: 100%; aspect-ratio: 1.28; object-fit: cover; }
.arrival h1 { color: white; font-size: clamp(3.4rem, 6.25vw, 6.2rem); line-height: .94; max-width: 10ch; }
.arrival h1 em { color: var(--gold); font-weight: 400; }
.arrival p { max-width: 31ch; margin-top: 16px; color: #e1eee8; font-size: clamp(1rem, 1.6vw, 1.16rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 45px; padding: .51rem .84rem; border: 1px solid transparent; border-radius: 4px; background: var(--teal); color: white; font-weight: 750; font-size: .94rem; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--teal-deep); }
.arrival .button { margin-top: 19px; color: var(--teal-deep); background: var(--gold); }
.arrival .button:hover { background: #ffd48d; }
.home-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 34px; padding-block: 33px 47px; }
.home-routes article { padding: 19px 20px; border: 1px solid var(--rule); border-top: 3px solid var(--teal); background: #fffdf6; }
.home-routes h2 { font-size: clamp(1.7rem, 3vw, 2.56rem); }
.home-routes p, .intro p { margin: 7px 0 10px; color: var(--muted); }
.text-link, .questions a, .reading a { color: var(--teal); font-weight: 750; text-underline-offset: .2em; }
.text-link:hover, .questions a:hover, .reading a:hover { color: #9c3923; }

.intro { padding-block: 36px 22px; border-bottom: 1px solid var(--rule); }
.intro h1 { font-size: clamp(3rem, 6.5vw, 5.55rem); }
.intro p { max-width: 60ch; margin-bottom: 0; font-size: 1.08rem; }
.game-table { margin-top: 20px; }
table { width: 100%; border-collapse: collapse; border-bottom: 1px solid var(--rule); }
thead th { color: white; background: var(--teal); text-align: left; padding: 10px 15px; font-size: .84rem; letter-spacing: .01em; }
tbody th, td { text-align: left; vertical-align: top; padding: 16px 15px; border-top: 1px solid var(--rule); }
tbody th { width: 30%; color: var(--teal); font: 700 clamp(1.25rem, 2.2vw, 1.9rem)/1.04 Georgia, serif; letter-spacing: -.032em; }
tbody th small { display: block; margin-top: 5px; color: var(--muted); font: 700 .85rem/1.4 system-ui, sans-serif; letter-spacing: 0; }
tbody td:nth-child(2) { width: 55%; }
tbody td p { max-width: 53ch; margin-top: 4px; color: var(--muted); }
tbody tr:nth-child(odd) { background: #fffdf5; }
tbody tr:target { background: #f8edce; }
tbody tr { scroll-margin-top: 12px; }
.focus-word { font-weight: 800; }
.store { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .92rem; font-weight: 800; text-underline-offset: .22em; }
.store:hover { color: #9c3923; }
.table-note { margin-top: 14px; margin-bottom: 45px; padding: 13px 16px; background: var(--sage); border-left: 3px solid var(--teal); }
.table-note p { margin-top: 3px; color: var(--muted); }

.lesson, .faq, .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); gap: 21px clamp(22px, 5vw, 65px); align-items: start; padding-block: 22px 46px; }
.exercise { padding: 19px 20px; background: var(--teal); color: #fff9eb; border-radius: 6px; }
.exercise h2 { color: #fff9eb; font-size: 1.88rem; }
.exercise p { margin-top: 7px; color: #e1eee8; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; max-width: 290px; margin-top: 13px; }
.tile { border: 1px solid #afbeb3; border-radius: 5px; aspect-ratio: 1; color: var(--teal); background: #fff9eb; font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1; cursor: pointer; }
.tile.orange { color: #9f3e1e; background: #f9ddaa; }
.tile.berry { color: #892752; background: #f4d7e2; }
.tile.leaf { color: #2d5c48; background: #e1ebce; }
.tile[aria-pressed="true"], .complete .tile:nth-child(n+5):nth-child(-n+7) { box-shadow: inset 0 0 0 4px #913f1b; }
.complete .tile { cursor: default; }
.board-status { min-height: 2.1em; }
.reset { border: 0; padding: 4px 0; color: var(--gold); background: transparent; text-decoration: underline; cursor: pointer; }
.play-notes h2, .contact-note h2, .reading h2 { font-size: clamp(1.6rem, 2.8vw, 2.44rem); }
.play-notes dl { margin: 12px 0 13px; }
.play-notes dt { font-weight: 800; }
.play-notes dd { margin-bottom: 10px; color: var(--muted); }
.faq figure { overflow: hidden; border-radius: 4px 34px 4px 4px; }
.faq img { width: 100%; aspect-ratio: 1.17; object-fit: cover; }
.questions section + section { padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--rule); }
.questions h2 { font-size: 1.4rem; }
.questions p, .reading p, .contact-note p { margin-top: 6px; color: var(--muted); }
.reading { padding-block: 21px 46px; }
.reading p { max-width: 70ch; }
.reading h2:not(:first-child) { margin-top: 20px; }
.contact-note { padding: 16px 17px; border-top: 3px solid var(--teal); background: var(--sage); }
.contact-note .text-link { display: inline-block; margin-top: 8px; }
.contact-fields label { display: block; margin-bottom: 4px; font-weight: 750; }
.contact-fields label[for="message"] { margin-top: 11px; }
.contact-fields textarea, .contact-fields select { display: block; width: 100%; padding: .59rem .71rem; border: 1px solid #8ea296; border-radius: 4px; background: #fffef7; color: var(--ink); }
.contact-fields textarea { resize: vertical; }
.contact-fields form .button { margin-top: 12px; }
.draft { margin-top: 13px; padding: 13px; background: var(--sage); border-radius: 5px; }
.draft h2 { margin-bottom: 6px; }
.draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 9px; }
#contact-status:not(:empty) { margin-top: 7px; }
.footer { padding-block: 19px 15px; background: var(--sage); border-top: 1px solid var(--rule); }
.footer-main p, .imprint { color: var(--muted); font-size: .86rem; }
.imprint { border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 9px; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 50px); }
}

@media (max-width: 660px) {
  .wrap { width: calc(100% - 34px); }
  .top-inner { min-height: 0; padding-block: 11px; flex-wrap: wrap; }
  .top-inner nav { width: 100%; gap: 1px 13px; }
  .top-inner nav a { font-size: .86rem; }
  .arrival { padding-block: 21px 25px; }
  .arrival-grid, .home-routes, .lesson, .faq, .contact { grid-template-columns: 1fr; }
  .arrival-grid { gap: 16px; }
  .arrival-copy { grid-row: 1; }
  .arrival h1 { max-width: 12ch; font-size: clamp(2.8rem, 10vw, 4.45rem); }
  .arrival-art { border-radius: 3px 32px 3px 3px; }
  .arrival-art img { aspect-ratio: 1.95; }
  .arrival p { margin-top: 10px; }
  .arrival .button { margin-top: 12px; }
  .home-routes { padding-block: 21px 33px; }
  .intro { padding-block: 23px 17px; }
  .intro p { font-size: 1rem; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 9px; border-top: 1px solid var(--rule); }
  tbody th, tbody td, tbody td:nth-child(2) { width: auto; padding: 0; border: 0; }
  tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  tbody td:last-child { grid-column: 2; grid-row: 1; }
  .lesson, .faq, .contact { padding-block: 17px 34px; }
  .faq img { aspect-ratio: 1.65; }
  .footer-main { align-items: flex-start; flex-direction: column; }
}
