@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/league-spartan-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/league-spartan-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/league-spartan-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/league-spartan-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/league-spartan-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/league-spartan-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/league-spartan-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/league-spartan-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/league-spartan-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/frank-ruhl-libre-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/frank-ruhl-libre-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/frank-ruhl-libre-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/frank-ruhl-libre-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/frank-ruhl-libre-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/frank-ruhl-libre-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/frank-ruhl-libre-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #eef5f5;
  --fg-light-base-body: #0e2a33;
  --fg-light-base-heading: #0e2a33;
  --fg-light-base-muted: #3b5d67;
  --fg-light-base-link: #0d6680;
  --fg-light-base-inverse: #14323b;
  --bg-light-card: #e1eff0;
  --fg-light-card-body: #0e2a33;
  --fg-light-card-heading: #0e2a33;
  --fg-light-card-muted: #3b5d67;
  --fg-light-card-link: #0d6680;
  --fg-light-card-inverse: #14323b;
  --bg-light-elevated: #f9fcfc;
  --fg-light-elevated-body: #0e2a33;
  --fg-light-elevated-heading: #0e2a33;
  --fg-light-elevated-muted: #3b5d67;
  --fg-light-elevated-link: #0d6680;
  --fg-light-elevated-inverse: #14323b;
  --brand-light-accent: #0d6680;
  --brand-light-accent-hover: #0a4f63;
  --brand-light-on-accent: #f4fbfb;
  --focus-light-ring: #0d6680;
  --border-light-default: #557f89;
  --border-light-subtle: #b9d6da;
}
.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; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --ink: var(--fg-light-base-heading);
  --lagoon: var(--brand-light-accent);
  --lagoon-deep: var(--brand-light-accent-hover);
  --on-lagoon: var(--brand-light-on-accent);
  --line: var(--border-light-default);
  --line-soft: var(--border-light-subtle);
  --mist: var(--bg-light-base);
  --wash: var(--bg-light-card);
  --paper: var(--bg-light-elevated);
  --head: 'League Spartan', 'Futura', 'Century Gothic', sans-serif;
  --text: 'Frank Ruhl Libre', 'Georgia', serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 36rem;
  --wide: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.72;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 50;
  padding: 0.5rem 0.8rem;
  background: var(--paper);
}
.skip-link:focus { top: 0.5rem; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
}
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 2.75rem 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.15rem; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--lagoon);
  outline-offset: 3px;
}

/* Header: sticky bar, brand left, menu toggle right at every width */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line-soft);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
}
.brand .site-logo { width: 2.4rem; height: auto; flex: none; }
.brand-name {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.menu-host { flex: none; }

.site-menu > summary {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.menu-icon {
  position: relative;
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.menu-icon::after {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.site-menu[open] .menu-icon::after { background: currentColor; }
.menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Full overlay menu: a lagoon chart with contour rings */
.site-menu[open] > ul {
  position: fixed;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 6.5rem var(--gutter) 3rem;
  overflow-y: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background-color: var(--paper);
  background-image:
    repeating-radial-gradient(ellipse at 82% 78%, transparent 0 34px, var(--line-soft) 34px 35px),
    repeating-radial-gradient(ellipse at 8% 18%, transparent 0 46px, var(--line-soft) 46px 47px);
}
.site-menu ul ul { list-style: none; padding-left: 1.25rem; margin: 0.25rem 0 0.5rem; }
.site-menu li { max-width: var(--wide); width: 100%; margin: 0 auto; }
.site-menu li a {
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 3rem);
  line-height: 1.1;
  text-decoration: none;
}
.site-menu ul ul a { font-size: 1.2rem; }
.site-menu li a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

@media (min-width: 640px) {
  .brand-name { font-size: 1.3rem; }
  .menu-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

/* Page frame */
.atlas-page {
  flex: 1;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 4.5rem;
}
.breadcrumbs ol {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  font-size: 0.92rem;
}
.breadcrumbs li + li::before { content: "›"; margin-right: 0.65rem; color: var(--line); }

main h1 { margin: 0; color: var(--ink); font-family: var(--head); font-weight: 700; }

figure { margin: 2rem 0; }
.photo-hero img, main figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
}
.photo-hero img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Home: atlas opening, split cover and query column */
.atlas-home { display: grid; gap: 2rem; padding-top: clamp(1.5rem, 4vw, 3rem); }
.atlas-cover {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 6vw, 3.5rem) 0 1rem;
}
.contours {
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  width: calc(100% + var(--gutter) * 2);
  height: 100%;
  color: var(--line-soft);
}
.cover-title h1 {
  font-size: clamp(3rem, 11vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: 10ch;
}
.cover-lines { margin-top: 1.75rem; max-width: 30rem; }
.cover-lines .display-line { margin: 0 0 0.9rem; font-size: 1.15rem; }
.cover-lines .display-line:first-child { font-size: 1.3rem; line-height: 1.5; color: var(--ink); }

.query-column > h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.query-column > ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.9rem;
}
.query-column > ul > li {
  padding: 1.1rem 1.25rem 1.15rem;
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
}
.query-column > ul > li strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--head);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
}

@media (min-width: 960px) {
  .atlas-home { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: start; }
  .atlas-cover { position: sticky; top: 6rem; min-height: 32rem; }
  .contours { inset: 0 -1rem 0 calc(var(--gutter) * -1); width: calc(100% + 1rem + var(--gutter)); }
  .query-column { padding-top: 1.5rem; }
  .query-column > :first-child { margin-top: 0; }
}

/* Topic cluster: question deck in a loose grid */
.deck-head { max-width: 48rem; padding-top: 2.25rem; }
.deck-title h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 0.98; letter-spacing: -0.03em; }
.deck-body { max-width: var(--measure); margin-top: 1.5rem; }
.deck-body > ol { padding-left: 1.3rem; }
.deck-body > ol > li + li { margin-top: 0.5rem; }
.deck-cards {
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 1.5rem;
}
.deck-cards > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.1rem;
}
.deck-cards li {
  display: flex;
  align-items: flex-end;
  min-height: 9rem;
  padding: 1.2rem 1.2rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
}
.deck-cards a {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.22;
  text-decoration: none;
}
.deck-cards a:hover { text-decoration: underline; }

/* Geo cluster: area map sheet on a faint contour grid */
.sheet-head { padding-top: 2.25rem; max-width: 48rem; }
.sheet-title h1 { font-size: clamp(2.6rem, 8vw, 5rem); line-height: 0.96; letter-spacing: -0.03em; }
.sheet-body {
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border: 1px solid var(--line-soft);
  border-radius: 1.5rem;
  background-color: var(--mist);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
}
.sheet-body > p, .sheet-body > h2 { max-width: var(--measure); }
.sheet-body > p:first-child { margin-top: 0; }
.sheet-body > h2 { display: inline-block; padding: 0.2rem 0.6rem; background: var(--mist); }
.sheet-body > ul {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.9rem;
}
.sheet-body > ul > li {
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  line-height: 1.4;
}
.sheet-body > ul > li a { font-family: var(--head); font-weight: 600; font-size: 1.08rem; text-decoration: none; }
.sheet-body > ul > li a:hover { text-decoration: underline; }

/* Question detail: answer card */
.answer { max-width: 44rem; margin: 0 auto; padding-top: 2.25rem; }
.answer-title h1 { font-size: clamp(2.3rem, 6.5vw, 3.9rem); line-height: 1.02; letter-spacing: -0.03em; }
.answer-body { margin-top: 1.75rem; }
.answer-body > p, .answer-body > ul, .answer-body > ol { max-width: var(--measure); }
.answer-body > h2:first-of-type {
  margin: 2rem 0 0;
  padding: 1.4rem 1.5rem 0.4rem;
  background: var(--wash);
  border-radius: 1.25rem 1.25rem 0 0;
  font-size: 1.3rem;
}
.answer-body > h2:first-of-type + p {
  max-width: none;
  margin: 0 0 2.5rem;
  padding: 0 1.5rem 1.5rem;
  background: var(--wash);
  border-radius: 0 0 1.25rem 1.25rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
}
.answer-body > ul, .answer-body > ol { padding-left: 1.3rem; }

/* About: cartographer's note beside a legend */
.note { display: grid; gap: 2rem; padding-top: 2.25rem; }
.note-title h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; }
.note-contour { display: block; width: min(14rem, 60%); margin-top: 1.75rem; color: var(--lagoon); }
.note-body { max-width: var(--measure); }
.note-body > p:first-child { font-size: 1.28rem; line-height: 1.6; color: var(--ink); }
.note-body > h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}
.note-body > h2::before {
  content: "";
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--lagoon);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--lagoon);
}
@media (min-width: 900px) {
  .note { grid-template-columns: 20rem minmax(0, 1fr); gap: 4.5rem; align-items: start; }
  .note-side { position: sticky; top: 6rem; }
  .note-body > :first-child { margin-top: 0; }
}

/* Contact: postcard form */
.postcard-page { max-width: 46rem; margin: 0 auto; padding-top: 2.25rem; }
.postcard-title h1 { font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1; letter-spacing: -0.03em; text-align: center; }
.postcard {
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 2px solid var(--lagoon);
  border-radius: 1.25rem;
  box-shadow: 0 0 0 6px var(--mist), 0 0 0 7px var(--line-soft);
}
.postcard-note > :first-child { margin-top: 0; }
.postcard-note > h2 { font-size: 1.3rem; margin-top: 1.75rem; }
.postcard-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--line);
}
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--head); font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  color: inherit;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 1px; }
.postcard-form button {
  justify-self: start;
  min-height: 2.9rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--on-lagoon);
  background: var(--lagoon);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.postcard-form button:hover { background: var(--lagoon-deep); }
@media (min-width: 640px) {
  .postcard-form { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .field-message, .postcard-form button { grid-column: 1 / -1; }
}

/* Thank you: ripple note */
.ripple { position: relative; isolation: isolate; max-width: 34rem; margin: 0 auto; padding-top: 3rem; text-align: center; }
.rings { display: block; width: 11rem; margin: 0 auto 1.25rem; color: var(--lagoon); }
.ripple-title h1 { font-size: clamp(2.5rem, 7vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.ripple-body { text-align: left; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 2.25rem var(--gutter); }
.footer-row { max-width: var(--wide); margin: 0 auto; display: grid; gap: 0.4rem; }
.footer-name { font-family: var(--head); font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.footer-name:hover { text-decoration: underline; }
.footer-line { margin: 0; font-size: 0.98rem; max-width: 34rem; }

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