:root {
  color-scheme: light;
  --ink: #1d3028;
  --muted: #465950;
  --green: #254d3c;
  --accent: #dd8e64;
  --paper: #f9f8f3;
  --line: #d9dfd5;
  --white: #fffefa;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--sans); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #99532d; outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.045em; }
.wrap { width: min(70rem, calc(100% - 5rem)); margin-inline: auto; }
.sr-only, .segmented input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -8rem; padding: .75rem 1rem; background: var(--white); z-index: 2; }
.skip-link:focus { top: 1rem; }
.print-only { display: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.header-inner { min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; font-size: 1rem; font-weight: 750; letter-spacing: -.025em; text-decoration: none; }
.brand-emphasis { font-family: var(--serif); font-weight: 650; }
.brand-icon { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; width: 2rem; height: 2rem; border-radius: .45rem; padding: .38rem; background: var(--green); }
.brand-icon i { border-radius: 1px; background: #e3eddb; }
.brand-icon i:nth-child(2), .brand-icon i:nth-child(3) { background: #92ad83; }
nav { display: flex; align-items: center; gap: clamp(.6rem, 3vw, 2rem); }
nav a { padding: .5rem .75rem; border-radius: .4rem; color: var(--muted); font-size: .94rem; font-weight: 630; text-decoration: none; white-space: nowrap; }
nav a[aria-current="page"] { background: #e8eee1; color: var(--ink); }
nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .22em; }

.hero { background: #edf1e6; border-bottom: 1px solid #dce4d5; }
.hero-inner { display: grid; grid-template-columns: 1fr minmax(0, .91fr); align-items: center; gap: clamp(2.25rem, 7.25vw, 7.5rem); padding-block: clamp(2.75rem, 6vw, 5.25rem); }
.kicker { display: flex; gap: .58rem; align-items: center; font-weight: 750; font-size: .76rem; letter-spacing: .115em; text-transform: uppercase; }
.kicker-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
h1 { margin: 1.1rem 0 1.35rem; font-size: clamp(3.5rem, 6.3vw, 6.1rem); letter-spacing: -.064em; line-height: .97; text-wrap: initial; }
.intro { max-width: 26rem; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; row-gap: .8rem; margin-top: 1.8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; min-height: 3rem; padding: .7rem 1.05rem; border: 1px solid transparent; border-radius: .5rem; font-size: 1rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.button-primary { background: var(--green); color: white; padding-inline: 1.3rem; }
.button-primary:hover { background: #153c2d; }
.button-secondary { background: var(--white); border-color: #c6d1c4; color: var(--green); }
.button-secondary:hover { background: #eff3e9; border-color: #8da291; }
.text-link { font-weight: 700; text-underline-offset: .22em; padding-block: .5rem; }
.text-link span { margin-left: .24rem; }
.formats { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: 1.45rem; color: var(--muted); font-size: .9rem; font-weight: 570; }
.formats span { color: var(--green); font-weight: 800; }
.formats span:nth-child(2) { margin-left: .65rem; }

.sample { min-width: 0; padding: clamp(.85rem, 2.2vw, 1.65rem); background: #dce7d8; border: 1px solid #cddbcc; border-radius: .95rem; scroll-margin-top: 1rem; }
.sample-paper { padding: clamp(.85rem, 2.1vw, 1.45rem); border: 1px solid #cdd7c9; border-radius: .55rem; background: var(--white); box-shadow: 0 4px 12px #243d2514; }
.sample-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .65rem; margin-bottom: .8rem; font-size: .79rem; font-weight: 750; }
.sample-label span:first-child { letter-spacing: .065em; text-transform: uppercase; }
.sample-label span:last-child { color: var(--muted); }
.board { width: 100%; aspect-ratio: 1; table-layout: fixed; border-collapse: collapse; border: 2px solid var(--ink); background: white; }
.board td { width: calc(100% / 9); height: calc(100% / 9); padding: 0; border: 1px solid #a6b2a5; text-align: center; vertical-align: middle; font-size: clamp(.95rem, 2.25vw, 1.78rem); font-weight: 740; line-height: 1; }
.board td:nth-child(3n) { border-right: 2px solid var(--ink); }
.board tr:nth-child(3n) td { border-bottom: 2px solid var(--ink); }
.board .example-cell { background: #f7dfb9; }
figcaption { display: flex; justify-content: center; padding-top: .65rem; }
.print-button { display: inline-flex; align-items: center; gap: .45rem; background: transparent; color: var(--ink); border: 0; border-radius: .25rem; padding: .6rem .65rem .15rem; font-size: .95rem; font-weight: 700; }
.print-button:hover { text-decoration: underline; text-underline-offset: .22em; }

.download-section { padding-block: clamp(3rem, 6vw, 5rem); }
.download-header { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: end; margin-bottom: 1.25rem; }
.download-header p, .related p, .example-section > div > p { margin-top: .55rem; color: var(--muted); }
.paper-choice { margin: 0; padding: 0; border: 0; }
.paper-choice legend { margin-bottom: .3rem; padding: 0; font-size: .82rem; font-weight: 700; color: var(--muted); }
.segmented { display: inline-flex; gap: .2rem; padding: .22rem; border: 1px solid var(--line); border-radius: .55rem; background: #efefe9; }
.segmented label { min-width: 3rem; padding: .44rem .72rem; text-align: center; border: 1px solid transparent; border-radius: .35rem; font-size: .88rem; font-weight: 700; cursor: pointer; }
.segmented input:checked + label { background: var(--white); border-color: #cad5c8; }
.segmented input:focus-visible + label { outline: 3px solid #99532d; outline-offset: 2px; }
.download-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: .7rem; background: var(--white); }
.download-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.05rem; }
.download-row + .download-row { border-top: 1px solid var(--line); }
.file-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .45rem; background: #e8eee1; color: var(--green); font-weight: 750; font-size: 1.2rem; }
.download-info strong, .download-info span { display: block; }
.download-info span { color: var(--muted); font-size: .93rem; }
:is(.download-section, .print-library):has(#paper-letter:checked) .paper-a4,
:is(.download-section, .print-library):has(#paper-a4:checked) .paper-letter { display: none; }
.print-tip { margin-top: .9rem; color: var(--muted); font-size: .91rem; }
.print-tip strong { margin-right: .32rem; }
.example-section { margin-bottom: 3.5rem; padding: 1.75rem 0 0; border-top: 1px solid var(--line); }
.steps { padding-left: 1.45rem; }
.steps li + li { margin-top: .35rem; }
.example-answer { width: fit-content; max-width: 100%; padding: .65rem 1rem; border: 1px solid var(--line); background: var(--white); border-radius: .45rem; }
.example-answer summary { cursor: pointer; font-weight: 700; }
.example-answer p { margin-top: .5rem; }
.related { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 4rem; border: 1px solid #d5dfd1; border-radius: .75rem; background: #eaf0e4; }
.related h2 { font-size: clamp(1.75rem, 2.5vw, 2.15rem); }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.4rem; }
.site-footer p { color: var(--muted); font-size: .88rem; }

.library-intro { background: #edf1e6; border-bottom: 1px solid #dce4d5; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.library-intro h1 { margin-top: 0; font-size: clamp(3rem, 7vw, 5.5rem); text-wrap: balance; }
.library-intro .intro { max-width: 37rem; }
.print-library { padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; }
.library-controls, .library-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1rem; }
.library-controls { justify-content: space-between; margin-bottom: 1.25rem; }
.library-filters label { display: grid; gap: .3rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.library-filters select { min-height: 2.75rem; padding: .34rem .65rem; border: 1px solid #c6d1c4; border-radius: .45rem; background: var(--white); color: var(--ink); font: 650 .96rem var(--sans); }
.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.pack-card { display: flex; flex-direction: column; padding: clamp(1.15rem, 3vw, 1.9rem); border: 1px solid var(--line); border-radius: .75rem; background: var(--white); }
.pack-card h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.pack-card h2 a { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.pack-card p { margin-top: .65rem; color: var(--muted); }
.pack-facts { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin: auto 0 1.25rem; padding-top: 1.25rem; }
.pack-facts dt { font-size: .83rem; color: var(--muted); }
.pack-facts dd { margin: 0; font-weight: 700; }
.pack-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pack-actions .button { padding-inline: .8rem; }
.pack-actions .pdf-link:nth-child(-n+2) { background: #edf1e6; }
.pack-actions .pdf-link:nth-child(-n+2):hover { background: #dce7d8; }
.empty-packs { padding: 1.25rem; border-radius: .6rem; background: #edf1e6; }

@media (max-width: 56rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero-inner { gap: 2.25rem; }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .pack-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.35rem, 11vw, 5.25rem); }
  .sample { width: min(100%, 30rem); }
  .board td { font-size: clamp(1rem, 5.3vw, 1.9rem); }
}

@media (max-width: 29rem) {
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; gap: .65rem; padding-block: .8rem; }
  nav { flex-wrap: wrap; gap: .15rem; }
  nav a { padding-inline: .6rem; }
  .download-row { grid-template-columns: auto minmax(0, 1fr); gap: .65rem .8rem; }
  .download-row .pdf-link { grid-column: 2; justify-self: start; }
}

@media print {
  @page { margin: 14mm; }
  html, body { background: white; color: black; }
  .site-header, .skip-link, .hero-copy, figcaption, .download-section, .example-section, .related, .site-footer { display: none !important; }
  .hero, .hero-inner, .sample, .sample-paper { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: white; box-shadow: none; }
  .sample { break-inside: avoid; }
  .sample-label { font-size: 13pt; margin-bottom: 12pt; }
  .board { border: 2pt solid black; }
  .board td { font-size: 32pt; border: .5pt solid black; }
  .board td:nth-child(3n) { border-right: 2pt solid black; }
  .board tr:nth-child(3n) td { border-bottom: 2pt solid black; }
  .board .example-cell span { display: none; }
  .print-only { display: block; margin-top: 12pt; font-size: 11pt; }
}
