@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #14110f;        /* 17.9:1 on --paper */
  --paper: #fbf7ee;
  --panel: #ffffff;
  --tint: #f0e6c8;
  --link: #0b3c6b;       /* 10.6:1 on --paper */
  --rule: #14110f;
  --focus: #8a3b00;
  --gap: 24px;
}
* { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  font-size: 1rem; line-height: 1.55; font-style: normal;
}
em, i, cite, address, dfn { font-style: normal; font-weight: 700; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -100px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; min-height: 44px; }
.skip:focus { top: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }

header.site { border-bottom: 3px solid var(--rule); background: var(--panel); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.brand { display: inline-flex; align-items: center; min-height: 56px; font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
nav.main a { display: inline-flex; align-items: center; min-height: 48px; }

main { padding: 8px 0 48px; }
.crumbs { font-size: 0.9rem; margin: 12px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 12px 0 12px; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.5rem 0 0.4rem; }
@media (min-width: 900px) { h1 { font-size: 2.3rem; } }
p, li { max-width: 36rem; }
.lede { font-size: 1.15rem; max-width: 40rem; margin: 0 0 18px; }
.prose { max-width: 40rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.3rem 0; }

table { border-collapse: collapse; width: 100%; background: var(--panel); }
th, td { border: 2px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--tint); }
.table-wrap { overflow-x: auto; margin: 1rem 0; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero { display: grid; gap: var(--gap); margin: 8px 0 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .hero.has-preview { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); grid-template-areas: "preview facts" "preview maker"; align-items: start; }
  .hero.has-preview .facts { grid-area: facts; }
  .hero.has-preview .maker { grid-area: maker; }
  .hero.has-preview .preview { grid-area: preview; }
}
.facts table { margin: 0; }
.preview { margin: 0; }
.preview-frame { border: 3px solid var(--rule); background: #fff; line-height: 0; }
.preview-frame img, .preview-frame canvas { width: 100%; height: auto; display: block; }
.preview-frame [hidden] { display: none; }
.preview figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; line-height: 1.3; }

form.maker { background: var(--panel); border: 3px solid var(--rule); padding: 16px; display: grid; gap: 18px; }
fieldset { border: 2px solid var(--rule); margin: 0; padding: 8px 12px 12px; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; padding: 6px 14px; border: 2px solid var(--rule); background: var(--panel); font-weight: 400; }
.choice input:checked + span { background: var(--ink); color: #fff; font-weight: 700; }
.choice input:focus-visible + span { outline: 4px solid var(--focus); outline-offset: 3px; }
.field { display: grid; gap: 4px; }
.field label, .field .lab { font-weight: 700; }
.field .help { margin: 0; font-size: 0.9rem; }
input[type="text"], input[type="number"], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--rule); border-radius: 0; padding: 8px 10px; min-height: 48px; width: 100%; max-width: 100%;
}
textarea { min-height: 12rem; line-height: 1.4; resize: vertical; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.check input { width: 28px; height: 28px; flex: none; accent-color: var(--ink); }
.check label { font-weight: 700; }
.btn {
  font: inherit; font-weight: 700; color: #fff; background: var(--link); border: 3px solid var(--ink);
  min-height: 56px; padding: 8px 24px; cursor: pointer; border-radius: 0; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn.secondary { background: var(--panel); color: var(--ink); }
.btn[disabled] { background: #d8d2c4; color: #4a443b; border-color: #4a443b; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#status { min-height: 1.6rem; margin: 0; font-weight: 700; }
#status.err { color: #8a1c00; }
.privacy { border-left: 6px solid var(--ink); padding: 4px 0 4px 14px; margin: 0; font-weight: 700; }
.note { margin: 0; }
.js-only[hidden] { display: none; }

.songs { margin-top: 2rem; }
.song { border-top: 3px solid var(--rule); padding: 8px 0 24px; }
.song .stanza { margin: 0 0 1rem; font-size: 1.15rem; max-width: 30rem; }
.song .credit { font-size: 0.95rem; }

aside.aside { margin-top: 2rem; border-top: 3px solid var(--rule); padding-top: 4px; }
.aside-title { font-weight: 700; font-size: 1.2rem; margin: 12px 0 4px; }
aside ul { padding-left: 1.3rem; margin: 0; }
aside li { margin: 0.2rem 0; }
aside li a { display: block; min-height: 44px; padding: 8px 0; overflow-wrap: anywhere; } /* block: the bullet sits on the first line of a wrapped URL */

.browse { margin-top: 2.5rem; border-top: 3px solid var(--rule); padding-top: 4px; }
.browse .cats { display: grid; gap: 4px 32px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.browse ul { list-style: none; margin: 0 0 12px; padding: 0; }
.browse a { display: inline-block; min-height: 44px; padding: 8px 0; }

footer.site { border-top: 3px solid var(--rule); background: var(--panel); padding: 24px 0 40px; }
footer.site p { margin: 0 0 12px; max-width: 44rem; }
footer.site ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
footer.site a { display: inline-flex; align-items: center; min-height: 44px; }
@media print { header.site, footer.site nav, .maker, .skip { display: none; } body { background: #fff; } }

/* Header nav: plain links, no hover or dropdown menus. Small screens: links wrap in rows so the page heading stays on the first screen; targets stay at least 44px. */
nav.main { width: 100%; }
nav.main a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 4px; }
@media (max-width: 699px) {
  nav.main ul { display: flex; flex-wrap: wrap; gap: 0 18px; border-top: 2px solid var(--rule); padding-top: 2px; margin-bottom: 6px; }
  nav.main li { max-width: none; }
  nav.main a { min-height: 44px; }
}
@media (min-width: 700px) {
  nav.main ul { gap: 0 24px; padding-bottom: 4px; }
  nav.main a { min-height: 48px; }
}

/* Hub card grid */
.cards { margin-top: 2rem; border-top: 3px solid var(--rule); padding-top: 16px; }
.cards ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards li { max-width: none; margin: 0; }
.card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px; background: var(--panel); border: 3px solid var(--rule); color: var(--ink); text-decoration: none; }
.card a:hover .card-title, .card a:focus-visible .card-title { text-decoration: underline; text-decoration-thickness: 3px; }
.card img { width: 100%; height: auto; border: 2px solid var(--rule); background: #fff; }
.card-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-desc { font-size: 0.95rem; line-height: 1.45; }
