@font-face { font-family: Literata; src: url("literata.woff2") format("woff2"); font-display: swap; font-weight: 200 900; }
:root { color-scheme: dark; --night: #0d192a; --panel: #182941; --ink: #f8efdf; --soft: #bdd0e2; --gold: #f5cb8b; --border: #42566d; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--night); font: 1rem/1.6 system-ui, sans-serif; }
main { max-width: 80rem; margin-inline: auto; padding: clamp(1rem, 3vw, 3rem); }
main > p, main > section { max-width: 75ch; }
main > form { max-width: 48rem; }
.site-header { border-bottom: 1px solid var(--border); padding: .75rem clamp(1rem, 4vw, 4rem); }
.site-header a { font: 650 1.25rem Literata, Georgia, serif; text-decoration: none; }
a { color: var(--gold); text-underline-offset: .2em; }
h1, h2, h3 { font-family: Literata, Georgia, serif; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); margin-block: .1em .45em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); margin-block: 1.45em .45em; }
p { margin-block: .55em 1em; }
label { display: inline-block; }
input, select, textarea, button, .button { font: inherit; }
input:not([type="checkbox"], [type="radio"]), textarea, select {
  color: var(--ink); background: var(--panel); border: 1px solid var(--border); border-radius: .45em;
  padding: .45em .65em; max-width: 100%;
}
textarea { display: block; width: 100%; }
button, .button { color: var(--night); background: var(--gold); border: 1px solid transparent; border-radius: .5rem;
  padding: .5em .9em; text-decoration: none; cursor: pointer; display: inline-block; }
button:hover, .button:hover { background: #ffe0b2; }
button:disabled { opacity: .65; cursor: default; }
a:focus-visible, input:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: .15rem solid #ffda98; outline-offset: .2rem;
}
::selection { color: var(--night); background: var(--gold); }
table { border-collapse: collapse; }
th, td { border: 1px solid var(--border); padding: .32rem .48rem; text-align: start; }
caption, small { color: var(--soft); }
.table-scroll { max-width: 100%; overflow-x: auto; }
.errorlist, [role="alert"] { color: #ffbdba; }
.hero { min-height: min(40rem, 75vh); display: grid; align-content: end; max-width: none; padding: clamp(1rem, 5vw, 4rem);
  border: 1px solid var(--border); background: linear-gradient(90deg,#101c30 0%,#111f32ed 22%,#0f1d3050 67%,transparent), url("town/landscape.webp") center / cover; }
.hero h1 { max-width: 13ch; }
.hero p { max-width: 48ch; }
.hero nav ul { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; padding: 0; list-style: none; }
.hero nav .button { font-weight: 650; }
.awards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: 1rem; padding: 0; margin: 1rem 0 2rem; list-style: none; }
.awards li { display: flex; align-items: center; justify-content: center; min-height: 6rem; padding: .8rem; text-align: center;
  border: 1px solid var(--gold); border-radius: 50% 50% 18% 18% / 30% 30% 14% 14%; font-family: Literata, serif; background: #1d304a; color: var(--gold); }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0,1.25fr); gap: clamp(1rem, 4vw, 3rem); }
.reading-layout > section { max-height: 75vh; overflow-y: auto; padding-inline: .25rem 1rem; }
.reading-layout h2 { margin-block-start: .3em; }
.source-copy { font-size: var(--reader-size, 1rem); }
.reading-tabs { display: none; }
@media (max-width: 720px) {
  .hero { background-image: linear-gradient(0deg,#101c30 0%,#111f32e6 43%,#0f1d3010 100%), url("town/landscape.webp"); }
  .reading-layout { display: block; }
  .reading-layout > section { max-height: none; overflow: visible; }
  .reading-tabs { display: flex; gap: .5rem; }
  .reading-layout[data-pane="task"] .source-pane, .reading-layout[data-pane="source"] .answer-pane { display: none; }
}

[hidden] { display: none !important; }
.text-position { border: 1px solid var(--gold); border-radius: .4rem; font-size: .85em; padding: 0 .34em; margin-inline: .15em; }
.text-position[aria-pressed="false"] { color: var(--gold); background: var(--panel); }
.source-copy mark { color: var(--night); background: #f0d493; }

main img { max-width: 100%; height: auto; }
.town-landscape, .town-building img { height: 100%; }
