:root {
  --ink: #17233b;
  --muted: #606b78;
  --paper: #fffdf7;
  --canvas: #f4efe5;
  --teal: #153d43;
  --bright-teal: #197d80;
  --plum: #7c3567;
  --coral: #c85848;
  --gold: #ffd66b;
  --aqua: #e8f5f2;
  --rose: #f3e7f0;
  --peach: #f7e8dc;
  --line: #d8ddd6;
  --shadow: 0 20px 60px rgba(23, 35, 59, .12);
  --rounded: "Arial Rounded MT Bold", "Avenir Next Rounded", "Trebuchet MS", sans-serif;
  --sans: "Avenir Next", Avenir, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--gold);
  border-radius: .6rem;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: .75rem clamp(1.1rem, 4vw, 4.5rem);
  background: rgba(255, 253, 247, .94);
  border-bottom: 1px solid rgba(21, 61, 67, .1);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  gap: .65rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--rounded);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  text-decoration: none;
}
.brand-spark {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  color: var(--gold);
  background: var(--teal);
  border-radius: 50%;
  font-size: .6rem;
  box-shadow: 0 0 0 5px rgba(25, 125, 128, .12);
}
.site-header nav { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  padding: .6rem .85rem;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.nav-link:hover, .nav-link:focus-visible { background: var(--aqua); }
.nav-today { color: white; background: var(--teal); }
.nav-today:hover, .nav-today:focus-visible { background: var(--bright-teal); }
.count-badge {
  display: inline-grid;
  min-width: 1.35rem;
  min-height: 1.35rem;
  margin-left: .2rem;
  place-items: center;
  color: var(--teal);
  background: var(--gold);
  border-radius: 999px;
  font-size: .72rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1.25rem, 7vw, 7.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 214, 107, .34), transparent 28%),
    linear-gradient(135deg, #fffdf7 0%, #f7f0df 100%);
}
.eyebrow, .section-kicker {
  margin: 0 0 .8rem;
  color: var(--plum);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--rounded);
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: .95;
  letter-spacing: -.045em;
}
.hero h1 em { color: var(--bright-teal); font-style: normal; }
.hero-lede {
  max-width: 640px;
  margin: 1.8rem 0 0;
  color: #3d4858;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  min-height: 48px;
  padding: .8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--teal); box-shadow: 0 10px 28px rgba(21, 61, 67, .24); }
.button-primary:hover { background: var(--bright-teal); }
.button-secondary { color: var(--teal); background: white; border-color: rgba(21, 61, 67, .25); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.5rem; color: var(--muted); font-size: .82rem; }
.hero-proof span { display: flex; align-items: baseline; gap: .35rem; }
.hero-proof strong { color: var(--ink); font-family: var(--rounded); font-size: 1.15rem; }
.hero-art {
  position: relative;
  padding: .7rem;
  background: white;
  border: 1px solid rgba(23, 35, 59, .1);
  border-radius: 2.3rem;
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.hero-art::before {
  position: absolute;
  inset: -12% -16%;
  z-index: -1;
  content: "";
  background: radial-gradient(circle, rgba(25, 125, 128, .17), transparent 62%);
}
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.7rem; }
.hero-note {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  gap: .35rem;
  padding: .55rem;
  color: white;
  background: rgba(21, 61, 67, .92);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(23, 35, 59, .25);
}
.hero-note span { padding: .32rem .68rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.hero-note span:nth-child(2) { color: var(--ink); background: var(--gold); }

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7.5rem);
  background: var(--paper);
}
.intro-copy { max-width: 850px; }
.project-intro h2, .cast h2 {
  margin: 0 0 1.6rem;
  font-family: var(--rounded);
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.04em;
}
.intro-copy > p:not(.eyebrow) { color: #3d4858; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.intro-principles { display: grid; gap: .8rem; align-content: center; }
.intro-principles article {
  display: grid;
  gap: .35rem;
  padding: 1.25rem 1.35rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 12px 34px rgba(23, 35, 59, .05);
}
.intro-principles article:nth-child(2) { background: #fff6d8; }
.intro-principles article:nth-child(3) { background: var(--rose); }
.intro-principles strong { color: var(--plum); font-family: var(--rounded); font-size: 1.2rem; }
.intro-principles span { color: var(--muted); }

.daily-path {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4rem;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 7vw, 7.5rem);
  color: white;
  background: var(--teal);
}
.daily-path h2, .library h2, .boundary h2 { margin: 0; font-family: var(--rounded); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; }
.daily-path .eyebrow { color: var(--gold); }
.daily-path ol { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.daily-path li {
  display: grid;
  grid-template-columns: 2.4rem 5rem 1fr;
  gap: .9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
}
.daily-path li > span { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; color: var(--teal); background: var(--gold); border-radius: 50%; font-weight: 900; }
.daily-path small { color: rgba(255,255,255,.74); }

.cast { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 6.5rem); background: var(--canvas); }
.cast-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  max-width: 1400px;
  margin: 0 auto 2.5rem;
}
.cast-heading h2 { margin-bottom: 0; }
.cast-heading > p { max-width: 650px; margin: 0 0 .35rem; color: var(--muted); font-size: 1.05rem; }
.cast-portrait { max-width: 1400px; margin: 0 auto 1.2rem; overflow: hidden; border-radius: 1.6rem; box-shadow: var(--shadow); }
.cast-portrait img { width: 100%; max-height: 520px; object-fit: cover; }
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 1400px; margin: 0 auto; }
.cast-grid article { min-height: 190px; padding: 1.15rem 1.2rem; background: white; border: 1px solid var(--line); border-radius: 1rem; }
.cast-grid article:nth-child(2n) { background: #fff8e5; }
.cast-grid article:last-child { color: white; background: var(--teal); border-color: var(--teal); }
.cast-grid article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cast-grid h3 { margin: 0; color: var(--plum); font-family: var(--rounded); font-size: 1.35rem; }
.cast-grid article:last-child h3 { color: var(--gold); }
.cast-grid span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.cast-grid article:last-child span { color: rgba(255,255,255,.7); }
.cast-grid p { margin: .7rem 0 0; color: #495463; font-size: .9rem; }
.cast-grid article:last-child p { color: rgba(255,255,255,.84); }

.library { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 6.5rem); background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; max-width: 1400px; margin: 0 auto 2rem; }
.result-count { flex: none; color: var(--muted); font-weight: 700; }
.filters {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .8rem;
  max-width: 1400px;
  margin: 0 auto 1.2rem;
  padding: .7rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: 0 10px 35px rgba(23, 35, 59, .06);
}
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: .75rem; width: 1.25rem; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.filters input, .filters select {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: #f8f5ee;
  border: 1px solid transparent;
  border-radius: .75rem;
  outline: 0;
}
.filters input { padding: .75rem .75rem .75rem 2.65rem; }
.filters select { padding: .75rem 2.2rem .75rem .85rem; }
.filters input:focus, .filters select:focus { border-color: var(--bright-teal); box-shadow: 0 0 0 3px rgba(25, 125, 128, .12); }
.active-filter { max-width: 1400px; margin: 0 auto 1rem; padding: .65rem 1rem; color: var(--teal); background: var(--aqua); border-radius: .75rem; font-weight: 750; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.story-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(23, 35, 59, .12);
  border-radius: 1.25rem;
  box-shadow: 0 10px 32px rgba(23, 35, 59, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.story-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(23, 35, 59, .13); }
.story-card > button { display: block; width: 100%; padding: 0; text-align: left; background: none; border: 0; }
.card-art { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--aqua); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .card-art img { transform: scale(1.035); }
.card-number { position: absolute; top: .75rem; left: .75rem; padding: .35rem .55rem; color: white; background: rgba(21,61,67,.9); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.card-status { position: absolute; left: .75rem; bottom: .75rem; padding: .34rem .58rem; border-radius: 999px; background: rgba(255,253,247,.94); color: var(--ink); font-size: .66rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.card-status-workshop-preview { background: #fff0c9; }
.card-status-pilot-story { background: #dcefe5; }
.card-body { padding: 1rem 1.05rem 1.15rem; }
.card-date { margin: 0 0 .35rem; color: var(--plum); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.card-body h3 { margin: 0; font-family: var(--rounded); font-size: 1.12rem; line-height: 1.15; letter-spacing: -.015em; }
.card-theme { margin: .55rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.card-takeaway { margin: .85rem 0 0; padding-top: .75rem; color: var(--teal); border-top: 1px solid var(--line); font-size: .78rem; font-weight: 800; }
.load-row { display: flex; justify-content: center; margin-top: 2rem; }
.empty-state { max-width: 600px; margin: 4rem auto 0; padding: 3rem; text-align: center; background: var(--aqua); border-radius: 1.5rem; }
.empty-state strong { font-family: var(--rounded); font-size: 1.5rem; }

.boundary { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7.5rem); background: var(--canvas); }
.boundary > h2 { max-width: 900px; }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; }
.boundary-grid article { position: relative; min-height: 240px; padding: 1.6rem; overflow: hidden; background: white; border-radius: 1.4rem; }
.boundary-grid article:nth-child(1) { background: var(--aqua); }
.boundary-grid article:nth-child(2) { background: #fff0bd; }
.boundary-grid article:nth-child(3) { background: var(--rose); }
.boundary-number { position: absolute; right: 1rem; top: -.6rem; color: rgba(23, 35, 59, .08); font-family: var(--rounded); font-size: 5.5rem; }
.boundary-grid h3 { position: relative; margin: 3.7rem 0 .5rem; font-family: var(--rounded); font-size: 1.35rem; }
.boundary-grid p { position: relative; margin: 0; color: #46515e; }

.reader { max-width: 1240px; margin: 0 auto; padding: 2rem clamp(1.1rem, 4vw, 3rem) 5rem; }
.reader-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 2.5rem; }
.text-button, .tool-button { padding: .58rem .75rem; background: transparent; border: 1px solid var(--line); border-radius: .7rem; font-weight: 750; }
.text-button { border-color: transparent; }
.text-button:hover, .tool-button:hover { background: var(--aqua); }
.reader-tools { display: flex; gap: .45rem; }
.reader-header { display: flex; justify-content: space-between; gap: 3rem; align-items: flex-end; margin-bottom: 1.8rem; }
.reader-header h1 { max-width: 820px; margin: 0; font-family: var(--rounded); font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.04em; }
.reader-theme { margin: 1rem 0 0; color: var(--muted); font-size: 1.15rem; }
.age-switch { flex: none; display: grid; grid-template-columns: repeat(3, auto); gap: .3rem; padding: .4rem; background: var(--canvas); border-radius: .85rem; }
.age-switch span { grid-column: 1 / -1; padding: 0 .35rem .1rem; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.age-switch button { padding: .45rem .65rem; border: 0; background: transparent; border-radius: .55rem; font-size: .78rem; font-weight: 800; }
.age-switch button.active { color: white; background: var(--teal); }
.reader-figure { position: relative; margin: 0 0 2.5rem; overflow: hidden; background: var(--aqua); border-radius: 1.8rem; box-shadow: var(--shadow); }
.reader-figure img { width: 100%; max-height: 720px; aspect-ratio: 16 / 9; object-fit: cover; }
.reader-figure figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .45rem .75rem; color: white; background: rgba(21, 61, 67, .9); border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.reader-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.story-prose { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.38rem); line-height: 1.78; }
.story-prose p { margin: 0 0 1.35em; }
.wonder-card { margin-top: 2rem; padding: 1.5rem; background: var(--canvas); border-left: 5px solid var(--plum); border-radius: .35rem 1.1rem 1.1rem .35rem; }
.wonder-card span, .companion-column span, .source-note { color: var(--plum); font-size: .7rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.wonder-card p { margin: .45rem 0 0; font-family: var(--rounded); font-size: 1.16rem; line-height: 1.4; }
.companion-column { position: sticky; top: 96px; display: grid; gap: .85rem; }
.companion-column section { padding: 1.25rem; border-radius: 1rem; }
.companion-column p { margin: .5rem 0 0; line-height: 1.5; }
.focus-card { background: var(--aqua); }
.takeaway-card { background: #fff0bd; }
.takeaway-card p { font-family: var(--rounded); font-size: 1.05rem; }
.action-card { background: var(--rose); }
.age-card { background: var(--peach); }
.original-source { margin-top: clamp(3.5rem, 8vw, 7rem); padding: clamp(1.5rem, 5vw, 4.5rem); background: #fbf2cf; border-radius: 1.8rem; }
.source-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(23, 35, 59, .16); }
.source-heading h2 { margin: 0; font-family: var(--rounded); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.source-heading a { flex: none; color: var(--teal); font-weight: 800; }
.source-prose { max-width: 900px; margin: 2rem auto 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.75; }
.source-prose p { margin: 0 0 1.2em; }
.source-note { max-width: 900px; margin: 2.25rem auto 0; padding-top: 1rem; color: var(--muted); border-top: 1px solid rgba(23, 35, 59, .14); font-size: .65rem; line-height: 1.5; }
.source-community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 1.2rem;
  align-items: start;
  margin-top: clamp(3.5rem, 8vw, 7rem);
}
.source-community-layout .original-source { margin-top: 0; }
.community-panel {
  position: sticky;
  top: 92px;
  padding: 1.5rem;
  background: linear-gradient(165deg, #e7f4f1, #f6fbf9);
  border: 1px solid rgba(21, 61, 67, .13);
  border-radius: 1.5rem;
  box-shadow: 0 16px 42px rgba(23, 35, 59, .08);
}
.community-panel h2, .community-dialog h2, .admin-main h1, .admin-section h2 { margin: 0; font-family: var(--rounded); line-height: 1.08; letter-spacing: -.025em; }
.community-panel h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.community-intro { margin: .85rem 0 1.2rem; color: #475361; font-size: .92rem; }
.community-gate { padding: 1.1rem; background: white; border-radius: 1rem; }
.community-gate p { margin: .35rem 0 1rem; color: var(--muted); font-size: .9rem; }
.community-member-bar { display: flex; justify-content: space-between; gap: .7rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.community-member-bar p { margin: 0; font-size: .83rem; }
.comment-list { display: grid; gap: .7rem; max-height: min(58vh, 680px); margin: 1rem 0; padding-right: .2rem; overflow-y: auto; }
.parent-comment { padding: 1rem; background: white; border: 1px solid rgba(23, 35, 59, .09); border-radius: .9rem; }
.parent-comment strong { font-family: var(--rounded); }
.comment-meta { margin: 0 0 .3rem; color: var(--plum); font-size: .64rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.comment-body { margin: .35rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; }
.comment-report { margin-top: .6rem; padding: 0; color: var(--muted); background: none; border: 0; font-size: .7rem; text-decoration: underline; }
.comment-empty { padding: 1rem; color: var(--muted); background: rgba(255,255,255,.66); border-radius: .8rem; font-size: .86rem; }
.comment-form, .access-form { display: grid; gap: .7rem; }
.comment-form { padding-top: 1rem; border-top: 1px solid var(--line); }
.comment-form label, .access-form label { display: grid; gap: .35rem; color: var(--ink); font-size: .78rem; font-weight: 800; }
.comment-form input, .comment-form select, .comment-form textarea,
.access-form input, .access-form select, .access-form textarea {
  width: 100%;
  min-height: 46px;
  padding: .72rem .8rem;
  color: var(--ink);
  background: white;
  border: 1px solid #cdd6d0;
  border-radius: .7rem;
  outline: 0;
  resize: vertical;
}
.comment-form textarea, .access-form textarea { min-height: 104px; line-height: 1.5; }
.comment-form input:focus, .comment-form select:focus, .comment-form textarea:focus,
.access-form input:focus, .access-form select:focus, .access-form textarea:focus { border-color: var(--bright-teal); box-shadow: 0 0 0 3px rgba(25, 125, 128, .12); }
.privacy-reminder { margin: 0; color: #59656f; font-size: .72rem; line-height: 1.45; }
.form-status { min-height: 1.3em; margin: 0; color: var(--teal); font-size: .8rem; font-weight: 750; }
.form-status.error { color: #9c3029; }
.turnstile-slot { min-height: 0; overflow: hidden; }
.nav-community { color: var(--teal); border: 1px solid rgba(21, 61, 67, .2); }

.community-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(850px, calc(100vh - 2rem));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 1.5rem;
  overflow: auto;
  box-shadow: var(--shadow);
}
.community-dialog::backdrop { background: rgba(12, 29, 38, .68); backdrop-filter: blur(6px); }
.dialog-shell { position: relative; padding: clamp(1.35rem, 4vw, 2.6rem); background: var(--paper); }
.dialog-shell > p:not(.eyebrow) { max-width: 620px; color: var(--muted); }
.dialog-close { position: absolute; top: .8rem; right: .8rem; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; background: var(--canvas); border: 0; border-radius: 50%; font-size: 1.5rem; }
.dialog-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin: 1.4rem 0; padding: .35rem; background: var(--canvas); border-radius: .8rem; }
.dialog-tabs button { padding: .7rem; background: transparent; border: 0; border-radius: .6rem; font-weight: 800; }
.dialog-tabs button[aria-selected="true"] { color: white; background: var(--teal); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }

.admin-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 6rem; }
.admin-lede { max-width: 700px; color: var(--muted); }
.admin-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 1.5rem 0; }
.admin-grid { display: grid; gap: 1rem; }
.admin-section { margin-top: 2.5rem; }
.admin-section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; }
.admin-card { padding: 1.1rem; background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 28px rgba(23, 35, 59, .06); }
.admin-card p { margin: .45rem 0; overflow-wrap: anywhere; }
.admin-card-meta { color: var(--muted); font-size: .76rem; }
.admin-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.button-danger { color: #8f2f29; background: #fff2ef; border-color: #e7b8b3; }
.status-chip { display: inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .67rem; font-weight: 850; text-transform: uppercase; }
.status-pending { color: #705300; background: #fff0bd; }
.status-approved, .status-visible { color: #14554d; background: var(--aqua); }
.status-rejected, .status-hidden { color: #842d29; background: #f8dfdc; }
.day-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2rem; }
.day-navigation button { display: flex; flex-direction: column; min-height: 88px; padding: 1rem 1.2rem; text-align: left; background: white; border: 1px solid var(--line); border-radius: 1rem; }
.day-navigation button:last-child { text-align: right; align-items: flex-end; }
.day-navigation button:hover { background: var(--aqua); }
.day-navigation span { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.day-navigation strong { margin-top: .3rem; font-family: var(--rounded); }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 3rem clamp(1.25rem, 7vw, 7.5rem); color: rgba(255,255,255,.78); background: var(--teal); }
footer strong { color: white; font-family: var(--rounded); font-size: 1.4rem; }
footer p { margin: .25rem 0 0; }
.toast { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80; max-width: 320px; padding: .85rem 1rem; color: white; background: var(--ink); border-radius: .8rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { max-width: 820px; }
  .project-intro, .cast-heading { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(3, 1fr); }
  .source-community-layout { grid-template-columns: 1fr; }
  .community-panel { position: static; }
}
@media (max-width: 820px) {
  .daily-path, .reader-layout { grid-template-columns: 1fr; gap: 2rem; }
  .companion-column { position: static; grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .boundary-grid { grid-template-columns: 1fr; }
  .boundary-grid article { min-height: 200px; }
  .reader-header { align-items: flex-start; flex-direction: column; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
}
@media (max-width: 590px) {
  .site-header { min-height: 62px; padding: .65rem .9rem; }
  .site-header .nav-link:first-child { display: none; }
  .nav-link { padding: .52rem .58rem; font-size: .78rem; }
  .nav-today { display: none; }
  .nav-pdf { display: none; }
  .nav-community { max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand { font-size: 1.2rem; }
  .hero { padding-top: 3rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .hero-proof { gap: .7rem 1.2rem; }
  .daily-path li { grid-template-columns: 2.2rem 4rem 1fr; gap: .5rem; padding: .8rem; }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .story-grid { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: 1fr; }
  .cast-grid article { min-height: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .reader { padding-inline: .85rem; }
  .reader-toolbar { align-items: flex-start; }
  .reader-tools { flex-wrap: wrap; justify-content: flex-end; }
  .tool-button { padding: .45rem .55rem; font-size: .78rem; }
  .reader-header h1 { font-size: 2.8rem; }
  .companion-column { grid-template-columns: 1fr; }
  .source-heading { align-items: flex-start; flex-direction: column; }
  .day-navigation { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
  .form-pair { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, #homeView, .reader-toolbar, .reader-tools, .day-navigation, footer, .toast, .community-panel, .community-dialog { display: none !important; }
  .reader { max-width: none; padding: 0; }
  .reader-figure { box-shadow: none; break-inside: avoid; }
  .reader-layout { grid-template-columns: 1.55fr .8fr; }
  .companion-column { position: static; }
  .source-community-layout { display: block; }
  .original-source { break-before: page; }
}
