@font-face { font-family: 'Courier Prime'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/courier-prime-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Courier Prime'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/courier-prime-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/karla-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/karla-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/karla-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/karla-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/karla-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/karla-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/karla-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/karla-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/karla-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/karla-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/karla-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/karla-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/karla-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/karla-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #dccaa8;
  --fg-light-base-body: #2a2016;
  --fg-light-base-heading: #2a2016;
  --fg-light-base-muted: #4f4234;
  --fg-light-base-link: #1d4a32;
  --fg-light-base-inverse: #2a2016;
  --bg-light-card: #fcfaf4;
  --fg-light-card-body: #2a2016;
  --fg-light-card-heading: #2a2016;
  --fg-light-card-muted: #4f4234;
  --fg-light-card-link: #1d4a32;
  --fg-light-card-inverse: #2a2016;
  --bg-light-elevated: #ebdec4;
  --fg-light-elevated-body: #2a2016;
  --fg-light-elevated-heading: #2a2016;
  --fg-light-elevated-muted: #4f4234;
  --fg-light-elevated-link: #1d4a32;
  --fg-light-elevated-inverse: #2a2016;
  --brand-light-accent: #1d4a32;
  --brand-light-accent-hover: #8a2318;
  --brand-light-on-accent: #fcfaf4;
  --focus-light-ring: #1d4a32;
  --border-light-default: #76603f;
  --border-light-subtle: #c2aa83;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --type: 'Courier Prime', 'Courier New', Courier, monospace;
  --sans: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  --forest: var(--brand-light-accent);
  --pin: var(--brand-light-accent-hover);
  --pin-shine: #e9a79c;
  --paper: var(--bg-light-card);
  --kraft-light: var(--bg-light-elevated);
  --rule: var(--border-light-default);
  --rule-soft: var(--border-light-subtle);
  --shadow: 0 1px 0 rgba(68, 48, 22, 0.18), 0 6px 14px -8px rgba(68, 48, 22, 0.45);
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 74rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  background-image:
    radial-gradient(rgba(118, 96, 63, 0.10) 1px, transparent 1.2px),
    radial-gradient(rgba(255, 250, 236, 0.22) 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
}

h1, h2, h3, h4 {
  font-family: var(--type);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); margin: 0; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
h3 { font-size: 1.15rem; }

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* The one recurring device: a red push pin holding paper to the board. */
.notice { position: relative; box-shadow: var(--shadow); }
.notice::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -0.575rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, var(--pin-shine) 0 18%, var(--pin) 24% 100%);
  box-shadow: 1px 2px 2px rgba(42, 32, 22, 0.35);
}

/* ---------- Chrome ---------- */

.board-top { border-bottom: 3px solid var(--forest); background: var(--paper); }

.board-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
}

.board-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.board-brand .site-logo { width: 2.75rem; height: 2.75rem; flex: none; }

.board-brand-text { display: flex; flex-direction: column; min-width: 0; }

.board-name { font-family: var(--type); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }

.board-strap { font-size: 0.95rem; line-height: 1.3; }

.board-nav { position: relative; flex: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 2px solid var(--forest);
  border-radius: 0.25rem;
  font-family: var(--type);
  font-weight: 700;
}

.site-menu[open] > summary { background: var(--kraft-light); }

.site-menu ul {
  position: absolute;
  right: 0;
  z-index: 10;
  min-width: 16rem;
  margin: 0.6rem 0 0;
  padding: 0.75rem 0;
  list-style: none;
  background: var(--paper);
  border-top: 4px solid var(--forest);
  box-shadow: var(--shadow);
}

.site-menu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  min-height: 44px;
  text-decoration: none;
}

.site-menu li a:hover { text-decoration: underline; }

.board {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 4rem;
}

.breadcrumbs { font-size: 0.95rem; margin-bottom: 1.75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--rule); }

.board-foot { border-top: 3px solid var(--forest); }

.board-foot-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem var(--gutter) 2.75rem;
}

.board-foot-name { font-family: var(--type); font-weight: 700; margin: 0 0 0.35rem; }
.board-foot-line { margin: 0 0 1rem; max-width: var(--measure); }
.board-foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; }

/* ---------- Body copy ---------- */

.prose > * { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 2rem 0 0.6rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose ol { padding-left: 1.6rem; }
.prose ol li::marker { font-family: var(--type); font-weight: 700; color: var(--pin); }
.prose .accent-block { margin: 1.25rem 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 4px solid var(--forest); }

.photo-hero, .photo-inline { margin: 0 0 1.75rem; }
.photo-hero img, .photo-inline img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 0.6rem solid var(--paper);
  border-bottom-width: 1.6rem;
  box-shadow: var(--shadow);
}
.photo-hero img { aspect-ratio: 16 / 9; }

/* ---------- Home ---------- */

.lead-wrap { padding: 1.5rem 0 3rem; }

.notice-lead {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 3.25rem) 2rem;
  background-image: repeating-linear-gradient(transparent 0 2.05rem, rgba(29, 74, 50, 0.12) 2.05rem calc(2.05rem + 1px));
  background-position: 0 1.2rem;
}

.notice-lead::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(0.6rem, 3vw, 1.75rem);
  width: 2px;
  background: var(--pin);
  opacity: 0.45;
}

.lead-title h1 { font-size: 1.05rem; letter-spacing: 0; }

.lead-question {
  margin: 1rem 0 1.5rem;
  font-family: var(--type);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);
  line-height: 1.12;
  text-wrap: balance;
}

.lead-lines { margin: 0; padding: 0; list-style: none; }
.lead-lines li { padding-left: 1.4rem; position: relative; margin-bottom: 0.35rem; }
.lead-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--forest);
}

.pinned { padding-bottom: 3rem; }

.pinned-heading { margin: 0 0 2rem; }

.pinned-grid { columns: 3 17rem; column-gap: 1.75rem; }

.pinned-grid .notice {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0.75rem 0 1.5rem;
  padding: 1.6rem 1.35rem 1.25rem;
}

.notice-topic { margin: 0 0 0.75rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--forest); }
.notice-topic a { text-decoration: none; }
.notice-topic a:hover { text-decoration: underline; }

.notice-qs { margin: 0; padding: 0; list-style: none; }
.notice-qs li { padding: 0.45rem 0; border-bottom: 1px dashed var(--rule-soft); }
.notice-qs li:last-child { border-bottom: 0; }

.sheet {
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.sheet-body { columns: 2 20rem; column-gap: 3rem; }
.sheet-body > * { break-inside: avoid-column; }
.sheet-body > h2 { break-after: avoid; }
.sheet-body > .photo-hero { column-span: all; max-width: none; }

/* ---------- Topic cluster ---------- */

.section-head { position: relative; margin-bottom: 2.5rem; padding-top: 1.75rem; }

.green-strip {
  position: absolute;
  inset: 0 0 auto;
  height: 4.5rem;
  background: var(--forest);
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(252, 250, 244, 0.08) 22px 24px);
}

.section-card {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-left: clamp(0.5rem, 3vw, 2rem);
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
}

.cluster-body > h2 { margin-top: 2.5rem; }

.cluster-body ul:has(> li > a[href^="/"]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 2rem 1.5rem;
  max-width: none;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
}

.cluster-body ul:has(> li > a[href^="/"]) > li {
  position: relative;
  margin: 0;
  padding: 1.6rem 1.1rem 1rem;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--pin), var(--pin)),
    repeating-linear-gradient(transparent 0 1.7rem, rgba(29, 74, 50, 0.14) 1.7rem calc(1.7rem + 1px));
  background-size: 100% 2px, 100% 100%;
  background-position: 0 1.15rem, 0 1.15rem;
  background-repeat: no-repeat, repeat;
  box-shadow: var(--shadow);
}

.cluster-body ul:has(> li > a[href^="/"]) > li::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 1.1rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, var(--pin-shine) 0 18%, var(--pin) 24% 100%);
  box-shadow: 1px 2px 2px rgba(42, 32, 22, 0.35);
}

.cluster-body ul:has(> li > a[href^="/"]) > li > a {
  display: block;
  font-family: var(--type);
  font-weight: 700;
  line-height: 1.7rem;
  text-decoration: none;
}

.cluster-body ul:has(> li > a[href^="/"]) > li > a:hover { text-decoration: underline; }

/* ---------- Geo cluster ---------- */

.area-banner {
  margin-bottom: 2.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 6px solid var(--forest);
  box-shadow: var(--shadow);
}

.area-body > h2 { position: relative; padding-left: 1.6rem; }
.area-body > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, var(--pin-shine) 0 18%, var(--pin) 24% 100%);
}

.area-items ul { margin: 2rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.area-items ul:empty { display: none; }
.area-items li a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-family: var(--type);
  text-decoration: none;
}

/* ---------- Question detail ---------- */

.answered-card { max-width: 48rem; }

.question-slip {
  z-index: 1;
  margin: 0 0 0 clamp(0rem, 2vw, 1rem);
  padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem) 1.5rem;
  transform: rotate(-0.6deg);
}

.question-title h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }

.answer-sheet {
  margin-top: -0.5rem;
  padding: 2.25rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  border-top: 3px solid var(--forest);
  box-shadow: var(--shadow);
}

.answer-body h2 { font-size: 1.25rem; }

/* ---------- About ---------- */

.rules-card {
  max-width: 48rem;
  padding: 2.25rem clamp(1.25rem, 4vw, 2.75rem);
  border: 2px solid var(--rule);
  outline: 1px solid var(--rule-soft);
  outline-offset: -0.6rem;
}

.rules-title { margin-bottom: 1.5rem; }

/* ---------- Contact ---------- */

.slip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .slip-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .slip { position: sticky; top: 1.5rem; }
}

.slip-title { margin-bottom: 1.5rem; }

.slip { padding: 2rem clamp(1.25rem, 4vw, 2rem) 1.75rem; transform: rotate(0.5deg); }

.slip-heading { margin: 0 0 0.4rem; font-size: 1.35rem; }
.slip-note { margin: 0 0 1.5rem; font-size: 1rem; }

.slip-field { display: block; margin-bottom: 1.1rem; }
.slip-label { display: block; margin-bottom: 0.3rem; font-family: var(--type); font-weight: 700; }

.slip-field input, .slip-field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.15rem;
}

.slip-field input:focus-visible, .slip-field textarea:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

.slip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

.slip-clear {
  min-height: 44px;
  padding: 0.6rem 1.4rem;
  font-family: var(--type);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-light-on-accent);
  background: var(--pin);
  border: 0;
  border-radius: 0.2rem;
  box-shadow: 0 2px 0 rgba(42, 32, 22, 0.35);
  cursor: pointer;
}

.slip-clear:hover { background: var(--forest); }
.slip-clear:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

/* ---------- Thank you and not found ---------- */

.confirm-board { padding: 2rem 0; }

.confirm-card {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 2.75rem) 2rem;
}

.confirm-title { margin-bottom: 1.25rem; }
.confirm-back { margin: 1.75rem 0 0; font-family: var(--type); font-weight: 700; }

/* ---------- Small screens and motion ---------- */

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .board-strap { display: none; }
  .question-slip, .slip { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Pinned header */
:root { --pin-h: 5rem; }
@media (max-width: 24rem) { :root { --pin-h: 6rem; } }
html { scroll-padding-top: calc(var(--pin-h) + 1rem); }
.board-top { position: sticky; top: 0; z-index: 20; }
.slip { top: calc(var(--pin-h) + 1.5rem); }

/* Desktop menu */
@media (min-width: 72rem) {
  :root { --pin-h: 7rem; }
  .board-top-inner { flex-wrap: wrap; row-gap: 0.4rem; padding-bottom: 0; }
  .board-nav { flex: 1 0 100%; }
  .site-menu > summary { display: none; }
  .site-menu::details-content { content-visibility: visible; }
  .site-menu > ul {
    position: static;
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border-top: 0;
    box-shadow: none;
  }
  .site-menu li a {
    display: flex;
    align-items: center;
    min-height: 0;
    padding: 0.4rem 0.75rem 0.35rem;
    border: 1px solid var(--rule-soft);
    border-bottom: 0;
    border-radius: 0.45rem 0.45rem 0 0;
    background: var(--kraft-light);
    font-family: var(--type);
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--fg-light-elevated-body);
  }
  .site-menu li a:hover { background: var(--bg-light-base); color: var(--fg-light-base-body); text-decoration: underline; }
  .site-menu li a:focus-visible { outline: 2px solid var(--pin); outline-offset: 2px; }
  .site-menu li:last-child { margin-left: auto; }
  .site-menu li:last-child a { border-color: var(--forest); background: var(--forest); color: var(--brand-light-on-accent); font-weight: 700; }
  .site-menu li:last-child a:hover { border-color: var(--pin); background: var(--pin); color: var(--brand-light-on-accent); }
}

section[data-section] > .bg-surface-card { padding: clamp(1.25rem, 4vw, 2.25rem); }
section[data-section] > .bg-surface-card > :first-child { margin-top: 0; }
section[data-section] > .bg-surface-card > :last-child { margin-bottom: 0; }
