/* The Reading League, concept redesign by Stoa. World: bookish literacy, teal + reading-lamp terracotta. */

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/thereadingleague/assets/fonts/spectral-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/thereadingleague/assets/fonts/spectral-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/thereadingleague/assets/fonts/dmsans-latin.woff2") format("woff2");
}

:root {
  --teal: #067090;
  --teal-deep: #055c75;
  --teal-ink: #063e4d;
  --navy: #0c1b24;
  --slate: #46535b;
  --cream: #faf9f5;
  --paper: #fffdf8;
  --white: #ffffff;
  --teal-tint: #e7f0f1;
  --teal-line: #cfe1e4;
  --terra: #b9491b;
  --terra-deep: #97380f;
  --terra-soft: #f6e7df;
  --border: #e4ddd0;
  --shadow: 0 1px 2px rgba(12, 27, 36, .05), 0 10px 30px rgba(12, 27, 36, .07);
  --shadow-sm: 0 1px 2px rgba(12, 27, 36, .06);
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --footer-link: #bfe0ea;
  --hero-accent: #ffd9c2;
  --wrap: 74rem;
  --r: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--navy);
  background-color: var(--cream);
  background-image: url("/thereadingleague/assets/page-grain.png");
  background-size: 760px;
  background-position: top center;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

img { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-underline-offset: 2px; }
a:hover { color: var(--terra-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: -.012em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 .6rem; }
h3 { font-size: 1.28rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--navy); color: #fff; padding: .65rem 1rem; border-radius: 0 0 10px 10px;
  text-decoration: none; font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 4px; }

/* ---- syllable-arc motif ---- */
.arc-rule { height: 18px; border: 0; margin: 0; background:
  radial-gradient(14px 18px at 14px 18px, transparent 12px, var(--terra) 12px 13.4px, transparent 13.6px) repeat-x;
  background-size: 28px 18px; opacity: .85; }
.arc-head { position: relative; display: inline-block; }
.arc-head::after {
  content: ""; position: absolute; left: 0; right: 12%; bottom: -10px; height: 11px;
  background: radial-gradient(50% 100% at 50% 0, transparent 64%, var(--terra) 65% 78%, transparent 79%);
  background-size: 26px 11px; background-repeat: repeat-x;
}

/* ---- proto banner / chrome ---- */
.proto-banner {
  background: var(--navy); color: #eef3f2; font-size: .82rem; line-height: 1.45;
  padding: .5rem 1.25rem; text-align: center;
}
.proto-banner strong { color: #fff; }
.proto-banner a { color: var(--footer-link); }

.util-bar { background: var(--teal-ink); color: #d8eef2; }
.util-bar .wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; align-items: center; justify-content: space-between; padding-block: .4rem; font-size: .84rem; }
.util-bar a { color: #d8eef2; text-decoration: none; }
.util-bar a:hover { color: #fff; text-decoration: underline; }
.util-links { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: center; }
.util-mission { font-style: italic; font-family: var(--serif); }

.masthead { background: var(--paper); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.masthead-top { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); flex: 0 0 auto; }
.brand img { width: auto; height: 46px; }
.brand .bk { display: flex; flex-direction: column; line-height: 1.05; }
.brand .org { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--teal-ink); }
.brand .tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.mast-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

.mast-search { display: flex; align-items: stretch; border: 1.5px solid var(--teal-line); border-radius: 999px; background: var(--white); overflow: hidden; }
.mast-search input { border: 0; padding: .5rem .9rem; font: inherit; font-size: .92rem; min-width: 11rem; background: transparent; }
.mast-search input:focus { outline: none; }
.mast-search button { border: 0; background: var(--teal); color: #fff; padding: 0 1rem; font: inherit; font-weight: 600; cursor: pointer; font-size: .9rem; }
.mast-search button:hover { background: var(--teal-deep); }

.btn { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 999px; padding: .62rem 1.2rem; border: 1.5px solid transparent; line-height: 1.1; min-height: 24px; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-ink); border-color: var(--teal-line); }
.btn-ghost:hover { background: var(--teal-tint); color: var(--teal-ink); }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; }

.primary-nav { border-top: 1px solid var(--border); }
.nav-toggle { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem; }
.primary-nav a { display: block; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .96rem; padding: .7rem .8rem; position: relative; }
.primary-nav a:hover { color: var(--terra-deep); }
.primary-nav a[aria-current="page"] { color: var(--teal-ink); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .35rem; height: 8px;
  background: radial-gradient(50% 100% at 50% 0, transparent 62%, var(--terra) 63% 80%, transparent 81%);
  background-size: 20px 8px; background-repeat: repeat-x;
}

/* ---- layout helpers ---- */
.section { padding-block: clamp(2.4rem, 5vw, 4.2rem); }
.section-tint { background: var(--teal-tint); }
.section-paper { background: var(--paper); }
.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--terra-deep); margin: 0 0 .4rem; }
.lede { font-size: 1.18rem; color: var(--slate); max-width: 42rem; }
.section-head { max-width: 46rem; margin-bottom: 1.6rem; }
.muted { color: var(--slate); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-ink); background: var(--teal-tint); border-radius: 999px; padding: .18rem .6rem; }
.tag-terra { color: var(--terra-deep); background: var(--terra-soft); }

/* concept note */
.concept-note { background: var(--terra-soft); border: 1px solid #ecd6c8; border-left: 4px solid var(--terra); border-radius: 10px; padding: 1rem 1.15rem; font-size: .92rem; color: #5a3320; }
.concept-note strong { color: var(--terra-deep); }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #c6d3d8; margin-top: 2rem; }
.site-footer a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 1.6rem 1.4rem; padding-block: 2.6rem 1.4rem; }
.footer-brand .org { font-family: var(--serif); font-size: 1.3rem; color: #fff; display: block; margin-bottom: .5rem; }
.footer-heading { font-family: var(--sans); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #8fb6c0; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .42rem; font-size: .94rem; }
.footer-bottom { border-top: 1px solid #1d333d; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; padding-block: 1rem 1.6rem; font-size: .82rem; color: #93a8af; }
.footer-bottom a { text-decoration: underline; }

/* ---- cards / grids generic ---- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; box-shadow: var(--shadow-sm); }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-line); }
.card .more { color: var(--terra-deep); font-weight: 700; font-size: .92rem; }

/* ---- hero ---- */
.hero { position: relative; color: #fff; background: var(--teal-ink); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 88% 110%, rgba(185,73,27,.42), transparent 55%),
  linear-gradient(105deg, rgba(6,62,77,.95) 0%, rgba(6,62,77,.8) 40%, rgba(6,112,144,.42) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("/thereadingleague/assets/hero-marks.png") center/620px; opacity: .12; mix-blend-mode: screen; }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(2.6rem, 6vw, 5rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lede { color: #e3eff0; }
.hero .eyebrow { color: var(--hero-accent); }

/* ---- audience router ---- */
.router { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: 1.6rem; }
.router a { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.28); border-radius: var(--r); padding: 1.05rem 1rem; text-decoration: none; color: #fff; transition: background .14s ease, border-color .14s ease, transform .1s ease; }
.router a:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-3px); color: #fff; }
.router .ra-k { display: block; font-family: var(--serif); font-size: 1.18rem; margin-bottom: .15rem; }
.router .ra-s { display: block; font-size: .86rem; color: #d9e9ec; }
.router .ra-go { display: inline-block; margin-top: .55rem; font-weight: 700; font-size: .85rem; color: var(--hero-accent); }

/* ---- big search band ---- */
.searchband { background: var(--paper); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.searchband form { display: flex; gap: .6rem; flex-wrap: wrap; }
.searchband .field { flex: 1 1 18rem; display: flex; align-items: center; gap: .6rem; border: 2px solid var(--teal-line); border-radius: 12px; background: var(--white); padding: .2rem .2rem .2rem .9rem; }
.searchband .field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(6,112,144,.12); }
.searchband input[type=search] { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: .6rem 0; }
.searchband input:focus { outline: none; }
.search-ico { position: relative; width: 22px; height: 22px; flex: 0 0 auto; }
.search-ico::before { content: ""; position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border: 2.5px solid var(--teal); border-radius: 50%; }
.search-ico::after { content: ""; position: absolute; bottom: 1px; right: 0; width: 9px; height: 2.5px; background: var(--teal); border-radius: 2px; transform: rotate(45deg); transform-origin: right center; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.chips button, .chips a { font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; border: 1px solid var(--teal-line); background: var(--white); color: var(--teal-ink); border-radius: 999px; padding: .35rem .8rem; text-decoration: none; }
.chips button:hover, .chips a:hover { background: var(--teal-tint); border-color: var(--teal); }

/* ---- search results ---- */
.search-layout { display: grid; grid-template-columns: 16rem 1fr; gap: 1.8rem; align-items: start; }
.facets { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem; position: sticky; top: 6.4rem; }
.facets h2 { font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin-bottom: .5rem; }
.facet-group { margin-bottom: 1.1rem; }
.facet-group > .lbl { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-ink); display: block; margin-bottom: .4rem; }
.facet { display: flex; align-items: center; gap: .55rem; padding: .28rem 0; font-size: .94rem; }
.facet input { width: 18px; height: 18px; accent-color: var(--teal); }
.result-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; margin-bottom: 1rem; }
.result-count { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.result { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); padding: 1.05rem 1.15rem; box-shadow: var(--shadow-sm); }
.result a.r-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--teal-ink); }
.result a.r-title:hover { color: var(--terra-deep); text-decoration: underline; }
.result .r-line { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; margin: .3rem 0; font-size: .8rem; }
.result .r-type { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--terra-deep); }
.result .r-aud { color: var(--slate); }
.result p { margin: .25rem 0 0; color: var(--slate); font-size: .96rem; }
mark { background: #fbe6c4; color: inherit; padding: 0 .1em; border-radius: 2px; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--slate); }
.empty .arc-big { font-size: 2.4rem; }

/* ---- impact band ---- */
.impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.2rem; }
.impact .stat { text-align: center; }
.impact .num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--teal); line-height: 1; display: block; }
.impact .cap { font-size: .92rem; color: var(--slate); margin-top: .35rem; display: block; }

/* ---- chapter finder ---- */
.finder { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.8rem; align-items: start; }
.finder-map { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; box-shadow: var(--shadow-sm); }
.finder-map svg { width: 100%; height: auto; }
.finder-map svg .state { cursor: pointer; transition: fill .12s ease; outline: none; }
.finder-map svg .state:hover { fill: var(--teal-deep); }
.finder-map svg .state:focus-visible { outline: 3px solid var(--terra); outline-offset: 1px; }
.finder-map svg .state[aria-pressed="true"], .finder-map svg .state.is-on { fill: var(--terra); }
.finder-panel { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.chapter-list { list-style: none; margin: .6rem 0 0; padding: 0; max-height: 22rem; overflow: auto; display: grid; gap: .25rem; }
.chapter-list button { width: 100%; text-align: left; font: inherit; font-size: .95rem; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: .5rem .6rem; cursor: pointer; color: var(--navy); display: flex; justify-content: space-between; gap: .5rem; }
.chapter-list button:hover { background: var(--teal-tint); }
.chapter-list button[aria-pressed="true"] { background: var(--terra-soft); border-color: #e6c5b3; color: var(--terra-deep); font-weight: 600; }
.chapter-list .ch-st { color: var(--slate); font-size: .82rem; }

/* ---- governed chapter template demo ---- */
.gov-frame { border: 2px dashed var(--teal-line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.gov-lock { background: var(--teal-ink); color: #d8eef2; font-size: .78rem; padding: .4rem .8rem; display: flex; align-items: center; gap: .5rem; }
.gov-lock .pill { background: rgba(255,255,255,.15); border-radius: 999px; padding: .1rem .55rem; font-weight: 600; }
.gov-edit { border: 2px dashed var(--terra); border-radius: 10px; background: var(--terra-soft); padding: 1rem; margin: 1rem; }
.gov-edit .lbl { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--terra-deep); }

/* ---- before/after a11y ---- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ba .panel { border-radius: var(--r); padding: 1.1rem; border: 1px solid var(--border); }
.ba .before { background: #fbf3ef; border-color: #ecd6c8; }
.ba .after { background: var(--teal-tint); border-color: var(--teal-line); }
.ba h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.swatch-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .5rem 0; }
.swatch { width: 2.4rem; height: 2.4rem; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); }
.demo-fail { color: #7cbcce; background: #fff; padding: .5rem .7rem; border-radius: 8px; border: 1px solid var(--border); }
.demo-pass { color: var(--teal-ink); background: #fff; padding: .5rem .7rem; border-radius: 8px; border: 1px solid var(--border); }
.badge-a11y { display: inline-flex; align-items: center; gap: .4rem; background: var(--teal-tint); color: var(--teal-ink); border: 1px solid var(--teal-line); border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; font-weight: 600; }

/* ---- split feature ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.media-frame { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame figcaption { font-size: .78rem; color: var(--slate); padding: .5rem .2rem 0; }

/* ---- donor band ---- */
.donor { background: linear-gradient(120deg, var(--terra-deep), var(--terra)); color: #fff; border-radius: 18px; padding: clamp(1.6rem, 4vw, 2.8rem); }
.donor h2 { color: #fff; }
.donor p { color: #ffe9df; }
.donor .btn-primary { background: #fff; color: var(--terra-deep); }
.donor .btn-primary:hover { background: #ffe9df; color: var(--terra-deep); }
.donor .pathways li { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); color: #fff; }
.donor .pathways li strong { color: #fff; }

/* ---- pathway list ---- */
.pathways { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.pathways li { display: flex; gap: .8rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: .85rem 1rem; }
.pathways .pw-arc { flex: 0 0 auto; width: 26px; height: 18px; margin-top: .25rem; background: radial-gradient(50% 100% at 50% 0, transparent 60%, var(--terra) 61% 80%, transparent 81%); background-size: 26px 18px; background-repeat: no-repeat; }

/* ---- breadcrumb / page header ---- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--teal-line);
  background: linear-gradient(118deg, var(--teal-tint) 0%, #dcebee 60%, #f1e4dc 100%); }
.page-hero::after { content: ""; position: absolute; top: -28%; right: -4%; width: min(40%, 340px); height: 170%;
  background: url("/thereadingleague/assets/hero-marks.png") no-repeat center/contain; opacity: .22; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(1.8rem, 4vw, 3rem); }
.page-hero--compass::after { background-image: url("/thereadingleague/assets/compass-rose.png"); opacity: .3; width: min(32%, 280px); top: -6%; height: 150%; }
.crumb { font-size: .85rem; color: var(--slate); margin-bottom: .6rem; }
.crumb a { color: var(--teal-ink); }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .4rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .search-layout, .finder, .split, .ba { grid-template-columns: 1fr; }
  .facets { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; margin: .55rem 0; font: inherit; font-weight: 700;
    background: var(--teal); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer;
  }
  .primary-nav ul { display: none; flex-direction: column; padding-bottom: .6rem; }
  .primary-nav ul.open { display: flex; }
  .primary-nav a { padding: .75rem .6rem; border-radius: 8px; }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .mast-search { display: none; }
  .mast-actions { margin-left: auto; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .util-mission { display: none; }
}

/* ===== visual polish pass ===== */

/* full-bleed atmosphere band (reading-room) */
.atmos { position: relative; color: #fff; background: var(--teal-ink); overflow: hidden; }
.atmos > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.atmos .atmos-scrim { position: absolute; inset: 0;
  background: linear-gradient(92deg, rgba(6,62,77,.93) 0%, rgba(6,62,77,.66) 52%, rgba(185,73,27,.46) 100%); }
.atmos .wrap { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5.4rem); max-width: 56rem; text-align: center; }
.atmos .eyebrow { color: var(--hero-accent); }
.atmos h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; margin: 0 auto .7rem; }
.atmos p { color: #e7f0f1; max-width: 40rem; margin: 0 auto; font-size: 1.1rem; }
.atmos .arc-head::after { left: 14%; right: 14%; }

/* terracotta arc strip motif at the top of the footer */
.site-footer { position: relative; }
.site-footer::before { content: ""; display: block; height: 12px;
  background: radial-gradient(50% 100% at 50% 0, transparent 62%, var(--terra) 63% 80%, transparent 81%);
  background-size: 24px 12px; background-repeat: repeat-x; opacity: .9; }

/* impact band: lift the stats into carded tiles with an arc accent */
.impact .stat { position: relative; background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem 1rem 1.3rem; box-shadow: var(--shadow-sm); }
.impact .stat::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 10px; background: radial-gradient(50% 100% at 50% 100%, transparent 60%, var(--terra) 61% 82%, transparent 83%);
  background-size: 23px 10px; background-repeat: repeat-x; }

/* card: terracotta top-edge reveal on hover */
a.card { position: relative; }
a.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: var(--r) var(--r) 0 0;
  background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
a.card:hover::before { transform: scaleX(1); }

/* compass-rose empty state / 404 */
.rose-empty { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1rem; }
.rose-empty img { width: 132px; height: auto; margin: 0 auto 1rem; opacity: .92; }
.notfound .wrap { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); max-width: 40rem; }
.notfound img { width: clamp(140px, 22vw, 200px); height: auto; margin: 0 auto 1.4rem; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.notfound .codes { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.6rem; }
