:root {
  --ink: #0d2b2e;
  --ink-soft: #1b3f43;
  --sea: #12706b;
  --sea-dark: #0e5a56;
  --sun: #ff8a4c;
  --sand: #f6f1e9;
  --card: #fffdf8;
  --muted: #4d6366;
  --line: #e4ddd2;
  --w: min(1180px, 92vw);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--sand);
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--sea); }
a:hover { color: var(--sea-dark); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.sr { position: absolute; left: -9999px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 9;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 4vw;
  background: var(--ink);
  color: #fff;
}
.nav a { color: #fff; text-decoration: none; margin-left: 22px; font-weight: 600; font-size: 0.95rem; }
.brand {
  display: flex; gap: 10px; align-items: center; margin: 0 !important;
  font-family: Georgia, serif; font-size: 1.2rem !important;
}
.brand img { width: 28px; height: 28px; }
.nav .cta { background: var(--sun); padding: 8px 16px; border-radius: 99px; color: #fff; }
.nav .cta:hover { filter: brightness(1.08); color: #fff; }
@media (max-width: 780px) {
  .nav { padding: 10px 3vw; gap: 8px; }
  .brand { font-size: 1.02rem !important; white-space: nowrap; flex-shrink: 0; }
  .nav nav { display: flex; align-items: center; flex-shrink: 0; white-space: nowrap; }
  .nav a { margin-left: 8px; font-size: 0.8rem; }
  .nav .cta { padding: 6px 12px; }
}

/* Home hero */
.hero {
  position: relative; min-height: 72vh; display: grid; place-items: end stretch;
  color: #fff; overflow: hidden; isolation: isolate; background: var(--ink);
}
.hero .bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; filter: brightness(0.7);
}
.hero::after {
  content: "";
  position: absolute; inset: 30% 0 0; z-index: 1;
  background: linear-gradient(to top, #0d2b2ef2 0%, #0d2b2e99 45%, transparent 100%);
  pointer-events: none;
}
.hero-in {
  position: relative; z-index: 2; width: var(--w);
  padding: 80px 0 56px; max-width: 760px;
  text-shadow: 0 1px 18px #0d2b2eaa;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.75rem; font-weight: 700; color: var(--sun); margin-bottom: 0.8em;
}
.hero .lede { font-size: 1.2rem; margin: 1em 0 0; max-width: 640px; }

/* Sections */
.section { width: var(--w); margin: 72px auto; }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 620px; }

/* Story cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px #0d2b2e14;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px #0d2b2e22; color: inherit; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--ink-soft); }
.card .meta { padding: 16px 18px 20px; }
.card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.card time { color: var(--muted); font-size: 0.9rem; }

/* Signup */
.signup-block {
  width: var(--w);
  margin: 80px auto;
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
}
.signup-block h2 { margin-bottom: 0.4em; }
.signup-block p { max-width: 520px; margin: 0 auto 0.6em; }
.signup-pending {
  display: inline-block;
  margin-top: 12px !important;
  padding: 12px 18px;
  border: 1px dashed var(--sun);
  border-radius: 12px;
  color: #ffe0cc;
  font-weight: 600;
}
.page-bottom .signup-block { margin-top: 48px; }

/* About */
.about {
  width: var(--w);
  margin: 56px auto 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about .txt p { margin-bottom: 1em; }
.about .portrait {
  border-radius: 18px;
  box-shadow: 0 20px 50px #0d2b2e33;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
}

/* Story page */
.story-hero {
  background: var(--ink);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.story-hero img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: var(--ink);
}
.story-body { width: min(720px, 92vw); margin: 40px auto 24px; }
.story-body time { color: var(--muted); display: block; margin: 0.6em 0 1.4em; font-weight: 600; }
.story-body p { margin-bottom: 1em; }
.story-extra {
  margin: 2em 0 1.6em;
}
.story-extra img {
  width: 100%;
  height: auto;
  display: block;
}
.story-extra figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.65em;
  line-height: 1.45;
}
.pager {
  width: min(720px, 92vw);
  margin: 12px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pager a { text-decoration: none; font-weight: 600; max-width: 46%; }
.pager .dir { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.social-row {
  width: min(720px, 92vw);
  margin: 28px auto 0;
  color: var(--muted);
}
.social-row a { margin-right: 16px; font-weight: 600; }

/* Footer */
footer {
  background: var(--ink);
  color: #cfe;
  text-align: center;
  padding: 28px 16px;
  font-size: 0.9rem;
  margin-top: 40px;
}
footer a { color: #cfe; }
footer .social { margin-top: 8px; }
footer .social a { margin: 0 8px; }

.page-title { width: var(--w); margin: 36px auto 0; }

/* High points page */
.hp-intro { width: var(--w); margin: 20px auto 0; max-width: 720px; }
.hp-intro p { color: var(--ink-soft); }
.hp-progress { margin: 28px 0 8px; }
.hp-progress-label { margin-bottom: 10px; font-size: 1.05rem; }
.hp-bar {
  height: 12px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.hp-bar span {
  display: block;
  height: 100%;
  background: var(--sea);
  border-radius: 99px;
}
.hp-section { margin-top: 40px; }
.hp-grid .hp-card { color: inherit; }
.hp-grid .hp-card .hp-ph,
.hp-grid .hp-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--ink-soft); }
.hp-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8efe8;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 16px;
}
.hp-ph.quiet { color: #b7c4c4; font-weight: 500; }
.hp-state {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sea);
  margin-bottom: 4px;
}
.hp-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.hp-elev { color: var(--muted); font-size: 0.92rem; }
.hp-status {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
}
.hp-status.done { background: #dceee9; color: var(--sea-dark); }
.hp-status.open { background: var(--line); color: var(--muted); }
.hp-when { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
a.hp-card { text-decoration: none; }

/* First-visit newsletter popup */
.oo-pop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(10,20,25,.6)}
.oo-pop[hidden]{display:none}
.oo-pop-open{overflow:hidden}
.oo-pop-card{position:relative;max-width:420px;width:100%;background:#fff;color:#1d2b30;border-radius:14px;padding:2rem 1.5rem 1.25rem;box-shadow:0 20px 60px rgba(0,0,0,.35);text-align:center}
.oo-pop-card h2{margin:0 0 .5rem;font-size:1.4rem}
.oo-pop-card p{margin:0 0 1.1rem;line-height:1.45}
.oo-pop-form{display:flex;flex-direction:column;gap:.6rem}
.oo-pop-form input{padding:.8rem;border:1px solid #c9d3d6;border-radius:8px;font-size:1rem}
.oo-pop-form button{padding:.8rem;border:0;border-radius:8px;background:#1f5f5b;color:#fff;font-size:1rem;font-weight:600;cursor:pointer}
.oo-pop-x{position:absolute;top:.4rem;right:.7rem;border:0;background:none;font-size:1.8rem;line-height:1;cursor:pointer;color:#5a6a70}
.oo-pop-later{margin-top:.8rem;border:0;background:none;color:#5a6a70;text-decoration:underline;cursor:pointer;font-size:.9rem}

/* SEO/perf additions: <picture> wrappers stay layout-neutral */
picture { display: contents; }
.related { margin-top: 48px; }
.related .section-head p { color: var(--muted); }
footer .foot-links a { margin: 0 8px; }
