/* Long Afternoon Press: site styles. Direction B on the web: Lexend for headings and labels,
   Atkinson Hyperlegible Next for everything read, Literata Display for the imprint voice.
   Large print by default (21px body), 56px+ tap targets, WCAG AA (most pairs AAA), cream paper,
   one ornament: the 52-square year with one lit square. */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(fonts/AtkinsonHyperlegibleNext-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(fonts/AtkinsonHyperlegibleNext-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Lexend; src: url(fonts/Lexend-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Lexend; src: url(fonts/Lexend-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Literata Display"; src: url(fonts/LiterataDisplay-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f6efe2;      /* the covers' cream */
  --card: #fffcf6;
  --ink: #1a1915;        /* 15.6:1 on paper */
  --ink-2: #45413a;      /* secondary text, 9.1:1 on paper */
  --rule: #1a1915;
  --soft: #e6dcc8;       /* unlit year squares, decoration only */
  --teal: #0f4c4a;       /* men's edition field */
  --plum: #4a2545;       /* women's edition field */
  --amber: #e0a030;      /* the lit square; never text on paper */
  --coral: #e8836b;
  --cream: #f6efe2;
  --ok: #0f4c4a;
  --err: #8a1c12;        /* 8.2:1 on paper */
  --err-bg: #fbe7e1;
  --radius: 16px;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, sans-serif;
  --f-head: Lexend, "Atkinson Hyperlegible Next", Verdana, sans-serif;
  --f-imprint: "Literata Display", Georgia, serif;
  --wrap: 1080px;
  --narrow: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.3125rem/1.6 var(--f-body); }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 8px var(--amber); border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 38em; text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); }
.lead { font-size: 1.5rem; line-height: 1.5; color: var(--ink); }
.muted { color: var(--ink-2); }
.small { font-size: 1.25rem; }

/* header and footer */
.site-head { padding: 22px 0; border-bottom: 2px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 56px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { font: 600 1.15rem/1 var(--f-head); text-decoration: none; padding: 16px 18px; border-radius: 12px; min-height: 56px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.site-foot { margin-top: 96px; border-top: 2px solid var(--rule); padding: 40px 0 56px; font-size: 1.25rem; }
.site-foot .wrap { display: grid; gap: 20px; }
.site-foot img { height: 26px; width: auto; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-foot li a { display: inline-block; padding: 10px 0; }

/* the year: 52 squares, one lit */
.year { display: grid; grid-template-columns: repeat(13, 1fr); gap: clamp(4px, 1vw, 9px); max-width: 560px; }
.year i { aspect-ratio: 1.25; border-radius: clamp(3px, .8vw, 7px); background: var(--soft); }
.year i.on { background: var(--amber); }
.on-dark .year i { background: rgba(246, 239, 226, .16); }
.on-dark .year i.on { background: var(--amber); }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 14px 28px;
  border: 3px solid var(--ink); border-radius: 14px; background: var(--ink); color: var(--paper); font: 600 1.3rem/1.2 var(--f-head);
  text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn .arrow { font-size: 1.3em; line-height: 1; }
.btn[disabled] { opacity: .6; cursor: wait; }
label, .label { display: block; font: 600 1.35rem/1.3 var(--f-head); margin-bottom: 10px; }
.hint { display: block; font: 400 1.25rem/1.45 var(--f-body); color: var(--ink-2); margin: -4px 0 12px; }
input[type=text], input[type=email] { width: 100%; min-height: 64px; padding: 12px 18px; font: 400 1.5rem/1.2 var(--f-body); color: var(--ink);
  background: var(--card); border: 3px solid var(--ink); border-radius: 12px; }
input.word { text-transform: uppercase; letter-spacing: .12em; font-family: var(--f-head); font-weight: 600; max-width: 420px; }
.check { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px; border: 2px solid var(--ink);
  border-radius: 14px; background: var(--card); cursor: pointer; font: 400 1.25rem/1.5 var(--f-body); margin: 0; }
.check input { width: 36px; height: 36px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.field { margin: 0 0 24px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 14px; padding: 18px 20px; margin: 16px 0 0; font-size: 1.25rem; }
.msg p:last-child { margin-bottom: 0; }
.msg.err { background: var(--err-bg); border: 3px solid var(--err); color: var(--ink); }
.msg.err strong { color: var(--err); }
.msg.ok { background: var(--card); border: 3px solid var(--ok); }
[hidden] { display: none !important; }

/* cards */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 600 1.5rem/1 var(--f-head); flex: none; }
.step-h { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.step-h h2 { margin: 0; }

/* home */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(40px, 7vw, 72px); }
.hero .year { margin-bottom: 40px; }
.hero h1 { font-family: var(--f-imprint); font-weight: 600; font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1.08; letter-spacing: -.015em; max-width: 14em; }
.hero .lead { max-width: 30em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.book { border-radius: var(--radius); color: var(--cream); padding: clamp(20px, 4vw, 32px); display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 22px; align-items: start; }
.book.men { background: var(--teal); }
.book.women { background: var(--plum); }
.book img { border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); width: 100%; height: auto; }
.book h3 { color: var(--cream); margin-bottom: .3em; }
.book p { font-size: 1.25rem; }
.book .tag { display: inline-block; font: 600 1.25rem/1 var(--f-head); padding: 10px 14px; border-radius: 30px; color: var(--teal); background: var(--amber); }
.book.women .tag { background: var(--coral); color: #3a1c36; }
@media (max-width: 520px) { .book { grid-template-columns: 1fr; } .book img { max-width: 180px; } }
.section { padding: clamp(40px, 7vw, 72px) 0 0; }
.band { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); display: grid; gap: 28px; grid-template-columns: 1fr auto; align-items: center; }
.band h2 { color: var(--paper); }
.band p { color: #e9e1d2; }
.band .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.band .btn:hover { background: #f0b24a; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.facts li { border-top: 3px solid var(--ink); padding-top: 14px; }
.facts b { display: block; font: 600 1.35rem/1.3 var(--f-head); margin-bottom: 4px; }

/* reader */
.reader-top { padding: clamp(32px, 6vw, 64px) 0 12px; }
.reader-top .year { max-width: 360px; margin-bottom: 28px; gap: 5px; }
.reader-top .year i { border-radius: 3px; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.ed-chip { display: inline-block; font: 600 1.25rem/1.2 var(--f-head); color: var(--cream); background: var(--ink); padding: 10px 16px; border-radius: 30px; margin-bottom: 18px; }
.ed-men .ed-chip, .ed-chip.men { background: var(--teal); }
.ed-women .ed-chip, .ed-chip.women { background: var(--plum); }
.stack { display: grid; gap: 24px; }
.word-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.word-row input { flex: 1 1 260px; }
.dl { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 18px 0 6px; }
.dl a { display: grid; gap: 4px; padding: 18px 22px; border: 3px solid var(--ink); border-radius: 14px; text-decoration: none; background: var(--card); min-height: 64px; }
.dl a:hover { background: var(--soft); }
.dl a b { font: 600 1.35rem/1.25 var(--f-head); }
.dl a span { font-size: 1.25rem; color: var(--ink-2); }
.ed-men .dl a, .ed-men .step-n { border-color: var(--teal); }
.ed-men .step-n { background: var(--teal); }
.ed-women .dl a { border-color: var(--plum); }
.ed-women .step-n { background: var(--plum); }
.helper { border-left: 6px solid var(--amber); padding: 6px 0 6px 18px; }

/* prose (privacy) */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; font-size: 1.75rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.todo { background: #fff3cc; border: 3px dashed #7a5200; border-radius: 10px; padding: 2px 8px; font-weight: 700; }
.todo-box { background: #fff3cc; border: 3px dashed #7a5200; border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; }
table.data { border-collapse: collapse; width: 100%; font-size: 1.25rem; margin: 0 0 1em; }
table.data th, table.data td { text-align: left; vertical-align: top; border-top: 2px solid var(--ink); padding: 12px 10px 12px 0; }
table.data th { font-family: var(--f-head); font-weight: 600; width: 34%; }
@media (max-width: 600px) { table.data th, table.data td { display: block; width: 100%; padding: 8px 0; } table.data td { border-top: 0; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-head, .site-foot, form { display: none; } body { background: #fff; } }
.mt { margin-top: 18px; }
.mt-l { margin-top: 36px; }
