:root {
  --ink: #17365D;         /* Mike's specified deep navy */
  --ink-soft: #405A82;    /* lighter navy for secondary text */
  --text-muted: #6B7280;
  --cream: #F5F0E7;
  --white: #FFFFFF;
  --line: rgba(23, 54, 93, 0.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ---------- NAV ---------- */
.nav {
  background: var(--cream);
  padding: 18px 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { flex-shrink: 0; }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1.02; }
.nav-wordmark .l1 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 600;
  font-size: 16px; color: var(--ink); letter-spacing: 0;
}
.nav-wordmark .l2 {
  font-family: 'Source Serif 4', serif; font-weight: 500; font-style: italic;
  font-size: 15px; color: var(--ink); letter-spacing: 0; margin-top: 1px;
}
.nav-wordmark .l3 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 400;
  font-size: 10px; color: var(--text-muted); letter-spacing: .05em;
  margin-top: 2px;
}
.nav-hamb {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: none; padding: 8px 0; margin: 0;
  cursor: pointer;
}
.nav-hamb span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ---------- NAV OVERLAY / PANEL ---------- */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 37, 59, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 90;
}
.nav-panel {
  position: fixed; top: 0; right: 0;
  width: min(88vw, 380px); height: 100vh;
  background: var(--cream);
  box-shadow: -10px 0 30px rgba(15,18,32,0.14);
  padding: 64px 32px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}
body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
body.nav-open .nav-panel   { transform: translateX(0); }
body.nav-open { overflow: hidden; }
.nav-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; padding: 0;
  font-size: 28px; line-height: 1; color: var(--ink);
  cursor: pointer; font-family: inherit; font-weight: 300;
}
.nav-section { margin-bottom: 26px; }
.nav-section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 10px;
}
.nav-panel a {
  display: block;
  font-family: 'Source Serif 4', serif; font-weight: 500;
  font-size: 17px; line-height: 1.35;
  color: var(--ink); text-decoration: none;
  padding: 6px 0;
}
.nav-panel a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- DESKTOP RESPONSIVE CONTAINER ---------- */
/* Mobile-first design; on desktop, content column stays phone-width
   so the polaroid grid keeps its intimate keepsake scale. Nav and
   footer remain full-width bars. */
.question-block, .polaroid-wrap, .after {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- QUESTION BLOCK ---------- */
.question-block {
  padding: 28px 24px 22px; /* 11 Oct 2026: larger gap above polaroids (Option A) */
  text-align: center;
}
.big-q {
  font-family: 'Source Serif 4', serif; font-weight: 500;
  font-size: 30px; line-height: 1.18; letter-spacing: -.01em; color: var(--ink);
  margin-bottom: 0;
}
.big-q em { font-style: italic; font-weight: 500; }
.q-lede { display: none; }

/* ---------- POLAROIDS ---------- */
.polaroid-wrap { padding: 4px 18px 4px; }
.grid-3x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.polaroid {
  background: #fff;
  padding: 5px 5px 8px 5px;
  box-shadow: 0 3px 8px rgba(15,18,32,0.10), 0 1px 2px rgba(15,18,32,0.06);
  opacity: 0;
}
.polaroid:nth-child(odd) {
  animation: fadeUpOdd 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.polaroid:nth-child(even) {
  animation: fadeUpEven 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.polaroid:nth-child(1) { animation-delay: 0.12s; }
.polaroid:nth-child(2) { animation-delay: 0.20s; }
.polaroid:nth-child(3) { animation-delay: 0.28s; }
.polaroid:nth-child(4) { animation-delay: 0.36s; }
.polaroid:nth-child(5) { animation-delay: 0.44s; }
.polaroid:nth-child(6) { animation-delay: 0.52s; }
.polaroid:nth-child(7) { animation-delay: 0.60s; }
.polaroid:nth-child(8) { animation-delay: 0.68s; }
.polaroid:nth-child(9) { animation-delay: 0.76s; }
@keyframes fadeUpOdd {
  from { opacity: 0; transform: translateY(10px) rotate(-0.6deg); }
  to   { opacity: 1; transform: translateY(0)    rotate(-0.6deg); }
}
@keyframes fadeUpEven {
  from { opacity: 0; transform: translateY(10px) rotate(0.6deg); }
  to   { opacity: 1; transform: translateY(0)    rotate(0.6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .polaroid { opacity: 1; animation: none; }
  .polaroid:nth-child(odd)  { transform: rotate(-0.6deg); }
  .polaroid:nth-child(even) { transform: rotate(0.6deg); }
}
.polaroid .img-wrap { aspect-ratio: 3/4; overflow: hidden; background:#000; }
.polaroid img { width:100%; height:100%; object-fit:cover; }
.polaroid .caption { padding-top: 5px; text-align:center; }
.polaroid .pname {
  font-family: 'Caveat', cursive; font-weight: 700;
  color: var(--ink); line-height: 1.1; font-size: 13px;
}
.polaroid .psub {
  font-family: 'Source Sans 3'; font-weight: 500;
  color: var(--text-muted); letter-spacing: .04em; font-size: 8.5px; margin-top: 1px;
}

/* ---------- AFTER (Sanctuary + refined block) ---------- */
.after {
  padding: 8px 24px 62px;
  text-align: center;
}
.after-dash {
  width: 36px; height: 2px; background: var(--ink);
  margin: 0 auto 22px;
  opacity: 0.55;
}
.after-heading {
  font-family: 'Source Serif 4', serif; font-weight: 500;
  font-size: 26px; letter-spacing: -.01em; color: var(--ink);
  margin-bottom: 14px;
}
.after-heading em { font-style: italic; font-weight: 500; }
.after-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px; font-weight: 400; letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 34px; line-height: 1.45;
}
.after-subtitle strong { font-weight: 600; color: #A84B2F; }
.after-subtitle em { font-style: normal; font-weight: 600; color: #A84B2F; }
.after-subtitle br.br-d { display: none; }
.after-places {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.5;
  color: var(--ink); text-align: center;
  max-width: 340px; margin: 22px auto 0;
}
.after-places br.br-m { display: inline; }
.after-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 19px 44px; border-radius: 46px;
  font-family: 'Source Sans 3'; font-weight: 600; font-size: 16px;
  text-decoration: none; letter-spacing: .01em;
}
.after-cta .arrow { font-size: 18px; line-height: 1; }

.after-secondary-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  color: var(--ink);
  font-family: 'Source Sans 3'; font-weight: 500; font-size: 14px;
  text-decoration: underline; text-underline-offset: 4px;
  letter-spacing: .01em;
}
.after-secondary-cta .arrow { font-size: 15px; line-height: 1; }
.after-secondary-cta:hover { opacity: 0.72; }

/* ---------- FOOTER ---------- */
.foot {
  background: var(--ink); color: rgba(255,255,255,0.75);
  padding: 14px 24px 14px;
  font-size: 12px; line-height: 1.5;
}
.foot-top { margin-bottom: 6px !important; }
.foot p { margin-top: 4px !important; font-size: 11.5px; }
.foot-links--only {
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: none !important;
  gap: 6px 14px !important;
}
.foot-links--only a { font-size: 11px; }
.foot-top { display:flex; align-items:center; gap: 12px; margin-bottom: 12px; }
.foot-wm { display: flex; flex-direction: column; line-height: 1.02; }
.foot-wm .l1 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 600;
  font-size: 14px; color:#fff;
}
.foot-wm .l2 {
  font-family: 'Source Serif 4', serif; font-weight: 500; font-style: italic;
  font-size: 13px; color:#fff; margin-top: 1px;
}
.foot-wm .l3 {
  font-size: 10px; color: rgba(255,255,255,0.65);
  letter-spacing: .05em; margin-top: 2px;
}
.foot p { margin-top: 8px; }
.foot-links {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.foot-links a {
  color: rgba(255,255,255,0.85);
  font-size: 12px; text-decoration: none;
  font-family: 'Source Sans 3', sans-serif; font-weight: 500;
  letter-spacing: .02em;
}
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.foot-links--legal {
  border-top: none;
  padding-top: 6px;
  margin-top: 6px;
  gap: 10px 18px;
}
.foot-links--legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* Crisis signposting in footer, every page (4 Oct 2026) */
.foot p.foot-crisis { margin-top: 8px !important; font-size: 12px; color: rgba(255,255,255,0.9); }
.foot-crisis a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Footer columns (Understanding + Featured writing) — added 11 July 2026 SEO/GEO pass */
.foot-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  margin: 22px 0 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foot-col-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.foot-col a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.5;
}
.foot-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .foot-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
