/* Irwin — pastoral NZ-grounded editorial · coming-soon */

:root {
  --paper: #f4ede0;
  --paper-2: #ebe2d0;
  --ink: #1a1612;
  --ink-2: #3a342b;
  --muted: #6b6155;
  --rule: #c9bda4;
  --accent: #a8462a;
  --moss: #5e6b3f;
  --stone: #b8a98a;
  --land: #d9c9a8;

  --serif: "Spectral", "EB Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(60,40,20,0.025) 1px, transparent 1px),
    radial-gradient(rgba(60,40,20,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 760px) {
  .wrap { padding: 0 24px; }
}

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 56px;
  gap: 24px;
}
.nav-mark {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.005em;
  justify-self: start;
  color: var(--ink);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .15s;
  cursor: pointer;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.is-current { color: var(--accent); }
.nav-links a.is-current::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--accent);
  margin-top: 3px;
}
.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 14px 9px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }
.nav-cta .arr { font-family: var(--serif); font-size: 14px; letter-spacing: 0; }

.nav-cta .label-short { display: none; }
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 10px; }
}
@media (max-width: 960px) {
  .nav-inner { padding: 14px 24px; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta .label-full { display: none; }
  .nav-cta .label-short { display: inline; }
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 112px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: end;
}
.hero-text { padding-bottom: 4px; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 152px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 34ch;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.hero-fineprint {
  margin: 18px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.55;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(60,40,20,0.06) 0 1px,
      transparent 1px 9px),
    radial-gradient(circle at 30% 25%, rgba(168,70,42,0.10), transparent 55%),
    linear-gradient(180deg, #c8b88f 0%, #a8946b 45%, #6e5a3e 100%);
}
.hero-photo .ph-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,248,234,0.32);
  pointer-events: none;
}
.hero-photo .ph-corner,
.photo-ph .ph-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(255,248,234,0.78);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: right;
  z-index: 2;
}

/* Hero — 3D book rendering of the cover */
.book3d-stage {
  perspective: 2200px;
  perspective-origin: 50% 38%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0 40px;
  /* Layered cast shadow (tight contact + soft ambient). Lives here, NOT on
     the preserve-3d element — a filter on a preserve-3d element flattens its
     3D context and the back face paints over the cover. */
  filter:
    drop-shadow(10px 14px 10px rgba(20,15,10,0.34))
    drop-shadow(28px 40px 38px rgba(20,15,10,0.22));
}
.book3d {
  --w: min(330px, 74vw);
  --h: calc(var(--w) * 660 / 480);
  --thick: 15px;
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(-26deg);
}

.book3d__face { position: absolute; }

.book3d__front {
  inset: 0;
  transform: translateZ(0);
  overflow: hidden;
  border-radius: 2px 5px 5px 2px;
  background: var(--paper-2);
}
.book3d__front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* spine-side fold: the cover bends over the binding on the left edge —
   a narrow dark crease with a thin highlight just to its right. */
.book3d__front::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(20,12,4,0.34) 0px,
      rgba(20,12,4,0.16) 6px,
      rgba(255,250,240,0.10) 13px,
      rgba(255,250,240,0.0) 26px,
      transparent 100%);
  pointer-events: none;
  z-index: 2;
}
/* directional light: bright top-left falling to shade at bottom-right */
.book3d__front::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg,
      rgba(255,252,245,0.22) 0%,
      rgba(255,252,245,0.07) 16%,
      rgba(255,252,245,0.0) 38%,
      rgba(40,28,14,0.0) 62%,
      rgba(40,28,14,0.14) 100%);
  pointer-events: none;
  z-index: 2;
}

/* fore-edge (right): stacked page leaves read as fine VERTICAL striations,
   slightly irregular, with rounded shading at both ends + spine-side shade. */
.book3d__pages {
  top: 6px;
  right: 4px;
  width: var(--thick);
  height: calc(100% - 12px);
  transform-origin: right center;
  transform: rotateY(90deg);
  background-image:
    /* end-rounding + ambient occlusion across the edge */
    linear-gradient(90deg,
      rgba(110,84,52,0.45) 0%,
      rgba(110,84,52,0.05) 9%,
      rgba(255,250,240,0.20) 22%,
      rgba(255,250,240,0.0) 50%,
      rgba(110,84,52,0.10) 88%,
      rgba(110,84,52,0.40) 100%),
    /* occasional thicker leaves for irregularity */
    repeating-linear-gradient(90deg,
      rgba(120,95,60,0.0) 0px, rgba(120,95,60,0.0) 5px,
      rgba(120,95,60,0.10) 5px, rgba(120,95,60,0.10) 6px),
    /* the fine page lines */
    repeating-linear-gradient(90deg,
      #f6efde 0px, #f6efde 0.7px,
      #e9dec7 0.7px, #e9dec7 1.5px,
      #d6c7a7 1.5px, #d6c7a7 2px);
  background-blend-mode: multiply, multiply, normal;
}
/* top page edges: leaves read as fine HORIZONTAL striations */
.book3d__top {
  top: 6px;
  left: 4px;
  width: calc(100% - 8px);
  height: var(--thick);
  transform-origin: center top;
  transform: rotateX(-90deg) translateY(-6px);
  background-image:
    linear-gradient(0deg,
      rgba(110,84,52,0.40) 0%,
      rgba(110,84,52,0.05) 12%,
      rgba(255,250,240,0.16) 30%,
      rgba(255,250,240,0.0) 60%,
      rgba(110,84,52,0.30) 100%),
    repeating-linear-gradient(0deg,
      #f6efde 0px, #f6efde 0.7px,
      #e9dec7 0.7px, #e9dec7 1.5px,
      #d6c7a7 1.5px, #d6c7a7 2px);
  background-blend-mode: multiply, normal;
}
/* back cover — continuation of the cover colour, not black */
.book3d__back {
  inset: 0;
  transform: translateZ(calc(var(--thick) * -1));
  background: linear-gradient(135deg, #9c845f, #6c5635);
  border-radius: 2px 5px 5px 2px;
}

.hero-caption-row {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-caption-single { justify-content: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 80px; }
}

/* ── SIGNUP FORM ─────────────────────────────────────────────────── */
.signup {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}
.signup-fields {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
}
.signup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.signup-field input {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--serif);
  font-size: 17px;
  padding: 8px 0 10px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.signup-field input::placeholder { color: var(--muted); opacity: 0.6; font-style: italic; }
.signup-field input:focus { border-color: var(--accent); }
.signup-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.signup-btn:hover { background: var(--accent); border-color: var(--accent); }
.signup-btn .arr { font-family: var(--serif); font-size: 16px; letter-spacing: 0; }

.signup-done {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}
.signup-done-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.signup-done-h {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  margin-bottom: 4px;
}
.signup-done-p {
  font-size: 15px;
  color: var(--ink-2);
}

@media (max-width: 540px) {
  .signup-fields { grid-template-columns: 1fr; }
}

.signup-error {
  margin: 6px 0 0;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}

/* ── CONTACT ─────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-copy p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 40ch;
  text-wrap: pretty;
}
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.contact-direct a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  transition: opacity .15s;
}
.contact-direct a:hover { opacity: 0.7; }
.contact-form { max-width: 100%; }
.contact-form textarea {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  padding: 8px 0 10px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color .15s;
}
.contact-form textarea::placeholder { color: var(--muted); opacity: 0.6; font-style: italic; }
.contact-form textarea:focus { border-color: var(--accent); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── DESCENDANT CALLOUT ──────────────────────────────────────────── */
.descendant {
  background: #4a5340;
  color: #f7f0e3;
  border-top: 1px solid #4a5340;
  padding: 104px 0;
}
.descendant-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.descendant-eyebrow {
  color: rgba(247,240,227,0.75);
  margin-bottom: 26px;
}
.descendant-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: #fbf6ec;
  text-wrap: balance;
}
.descendant-title em {
  font-style: italic;
  color: #fbf6ec;
}
.descendant-copy {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: rgba(251,246,236,0.92);
  max-width: 46ch;
  margin: 0 auto 38px;
  text-wrap: pretty;
}
.descendant-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.descendant-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 26px;
  background: #fbf6ec;
  color: var(--ink);
  border: 1px solid #fbf6ec;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.descendant-btn:hover { background: transparent; color: #fbf6ec; }
.descendant-btn .arr { font-family: var(--serif); font-size: 16px; letter-spacing: 0; }
.descendant-btn.ghost {
  background: transparent;
  color: #fbf6ec;
  border-color: rgba(251,246,236,0.5);
}
.descendant-btn.ghost:hover { border-color: #fbf6ec; background: rgba(251,246,236,0.1); }

@media (max-width: 760px) {
  .descendant { padding: 72px 0; }
}

/* ── SECTION CHROME ──────────────────────────────────────────────── */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--rule);
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  margin-bottom: 56px;
  align-items: start;
}
.section-num {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-num::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-lede {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 62ch;
  margin: 0 0 56px;
  padding-left: 276px;
  text-wrap: pretty;
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .section-lede { padding-left: 0; font-size: 19px; margin-bottom: 40px; }
}

/* ── BOOK ────────────────────────────────────────────────────────── */
.book-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
.book-prose p {
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 22px;
  text-wrap: pretty;
  color: var(--ink-2);
}
.book-prose p em {
  font-style: italic;
  color: var(--ink);
}
.book-prose p:first-child::first-letter {
  font-size: 64px;
  font-style: italic;
  font-weight: 400;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--accent);
}

/* The four extraordinary events */
.book-events {
  list-style: none;
  margin: 28px 0 28px;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.book-events li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.book-events li .mono {
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
}
.book-events li > span:last-child {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* Three-decades research emphasis */
.book-research {
  margin: 0 !important;
  padding: 22px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px !important;
  color: var(--ink) !important;
}
.book-research .book-research-k {
  display: block;
  font-style: normal;
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 10.5px;
}

.book-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 88px;
}
.book-aside-photo {
  margin: 0;
  position: relative;
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.book-aside-photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,248,234,0.28);
  pointer-events: none;
  z-index: 2;
}
.book-aside-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.05) contrast(1.02);
}
.book-aside-foot {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .book-aside { position: static; }
}

/* ── FROM THE ARCHIVE ────────────────────────────────────────────── */
/* Collage: free-positioned mounted photographs on a paper field.    */
.archive-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  isolation: isolate;
}
.archive-plate {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: rotate(var(--rot));
  transform-origin: 50% 50%;
  background: transparent;
  cursor: zoom-in;
  transition: transform .4s cubic-bezier(.2,.7,.2,1),
              filter .4s, z-index 0s;
  filter: drop-shadow(0 16px 24px rgba(20,15,10,0.20))
          drop-shadow(0 4px 6px rgba(20,15,10,0.10));
}
.archive-plate:hover {
  z-index: 50 !important;
  transform: rotate(0deg) scale(1.04) translateY(-4px);
  filter: drop-shadow(0 28px 48px rgba(20,15,10,0.30))
          drop-shadow(0 6px 10px rgba(20,15,10,0.16));
}

/* Vintage paper-mat frame: cream board, thin dark border, asymmetric
   mat width with a wider base (like a museum mount). */
.archive-plate-mat {
  display: block;
  background:
    linear-gradient(180deg, #f6ecd6 0%, #f1e4c8 100%);
  padding: 5% 5% 14% 5%;
  border: 1px solid #6b6155;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 0 0 1px rgba(20,15,10,0.05);
  position: relative;
}
/* Subtle paper grain on the mat */
.archive-plate-mat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(rgba(60,40,20,0.04) 1px, transparent 1px) 0 0 / 4px 4px,
    radial-gradient(rgba(60,40,20,0.025) 1px, transparent 1px) 1px 2px / 7px 7px;
  opacity: 0.7;
  mix-blend-mode: multiply;
}
.archive-plate-mat img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.10) contrast(1.04) saturate(0.92);
  box-shadow:
    0 0 0 1px rgba(107,97,85,0.55),
    0 2px 4px rgba(20,15,10,0.15);
  position: relative;
  z-index: 1;
}

/* Stacked fallback for narrow viewports — drop the collage and rotation */
@media (max-width: 900px) {
  .archive-collage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .archive-plate {
    position: static !important;
    width: min(420px, 100%) !important;
    transform: none !important;
  }
}

/* Lightbox (used by archive) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,15,10,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  cursor: zoom-out;
  animation: lightbox-in 0.2s ease;
}
@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}
.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.lightbox-close:hover { background: var(--accent); color: var(--paper); }

/* ── JOURNEY MAP ─────────────────────────────────────────────────── */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.map-canvas {
  position: relative;
  aspect-ratio: 16 / 15;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(60,40,20,0.04) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(60,40,20,0.04) 0 1px, transparent 1px 24px);
  pointer-events: none;
}
.map-canvas svg { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }

.map-legend {
  display: flex;
  flex-direction: column;
}
.map-legend-h {
  margin-bottom: 14px;
}
.map-loc {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  transition: color .15s;
}
.map-loc:last-child { border-bottom: 1px solid var(--rule); }
.map-loc:hover, .map-loc.active { color: var(--accent); }
.map-loc .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 4px;
}
.map-loc.active .num { color: var(--accent); }
.map-loc .body { display: flex; flex-direction: column; gap: 4px; }
.map-loc .name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}
.map-loc .country {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.map-loc.active .country { color: color-mix(in oklab, var(--accent) 70%, var(--muted)); }
.map-loc .note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
  margin-top: 6px;
  line-height: 1.45;
}
.map-loc.active .note { color: var(--ink); }

@media (max-width: 900px) {
  .map-grid { grid-template-columns: 1fr; }
}

/* ── EXPLORES ────────────────────────────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.explore-card {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  background: transparent;
  transition: background .2s;
}
.explore-card:hover { background: color-mix(in oklab, var(--accent) 4%, transparent); }
.explore-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 24px;
}
.explore-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--ink);
}
.explore-body {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
  max-width: 28ch;
}
@media (max-width: 900px) {
  .explore-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .explore-grid { grid-template-columns: 1fr; }
}

/* archival photo placeholders */
.photo-ph {
  position: relative;
  width: 100%;
  height: 100%;
}
.photo-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(60,40,20,0.05) 0 1px, transparent 1px 8px),
    var(--ph-color, linear-gradient(170deg, #b8a98a, #8a7656));
}

/* ── AUTHOR ──────────────────────────────────────────────────────── */
.author-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}
.author-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.author-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-portrait::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,248,234,0.3);
  pointer-events: none;
}
.author-prose p {
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 22px;
  color: var(--ink-2);
}
.author-prose p:first-child {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
.author-credentials {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--rule);
}
.author-credentials li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.author-credentials .mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.author-credentials li > span:last-child {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .author-grid { grid-template-columns: 1fr; gap: 40px; }
  .author-portrait { max-width: 320px; }
  .author-credentials li { grid-template-columns: 1fr; gap: 2px; }
}

/* ── UPDATES (mailing list) ──────────────────────────────────────── */
.updates {
  background: var(--ink);
  color: var(--paper);
  margin-top: 120px;
  padding: 120px 0;
  border-top: 1px solid var(--ink);
}
.updates .section-num { color: rgba(244,237,224,0.55); }
.updates .section-num b { color: #d3b97e; }
.updates .section-title { color: var(--paper); }
.updates .section-title em { color: #d3b97e; }

.updates-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.updates-copy p {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(244,237,224,0.78);
  margin: 0 0 18px;
  max-width: 38ch;
}
.updates-copy p:first-child {
  font-style: italic;
  color: rgba(244,237,224,0.92);
  font-size: 21px;
}

.updates-form { max-width: 520px; }
.updates-form .signup-field input {
  border-bottom-color: rgba(244,237,224,0.4);
  color: var(--paper);
  font-size: 18px;
}
.updates-form .signup-field input::placeholder { color: rgba(244,237,224,0.4); }
.updates-form .signup-field input:focus { border-bottom-color: #d3b97e; }
.updates-form .signup-field .mono { color: rgba(244,237,224,0.55); }
.updates-form .signup-btn {
  background: #d3b97e;
  border-color: #d3b97e;
  color: var(--ink);
  padding: 16px 26px;
  font-size: 12px;
}
.updates-form .signup-btn:hover { background: #e3cd9a; border-color: #e3cd9a; }
.updates-form .signup-done {
  background: rgba(211,185,126,0.08);
  border-color: #d3b97e;
}
.updates-form .signup-done-mark { background: #d3b97e; color: var(--ink); }
.updates-form .signup-done-h { color: var(--paper); }
.updates-form .signup-done-p { color: rgba(244,237,224,0.7); }
.updates-fineprint {
  margin-top: 18px;
  font-size: 9.5px;
  font-style: normal;
  letter-spacing: 0.18em;
  color: rgba(244,237,224,0.4);
}

@media (max-width: 900px) {
  .updates { padding: 80px 0; margin-top: 80px; }
  .updates-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(244,237,224,0.65);
  padding: 56px 0 40px;
  border-top: 1px solid rgba(244,237,224,0.12);
}
.footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
}
.footer .wrap:last-child { display: block; }
.footer h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,237,224,0.5);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(244,237,224,0.78);
  margin: 0 0 8px;
}
.footer-col a { cursor: pointer; transition: color .15s; }
.footer-col a:hover { color: #d3b97e; }
.footer-fine {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(244,237,224,0.1);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,237,224,0.4);
}
@media (max-width: 760px) {
  .footer .wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-fine { flex-direction: column; }
}

/* ── JOURNAL PAGE ────────────────────────────────────────────────── */
.journal-header {
  border-top: 0;
  padding-top: 88px;
  padding-bottom: 0;
}
.journal-feed {
  border-top: 1px solid var(--rule);
  padding-top: 80px;
}
.journal-list {
  display: flex;
  flex-direction: column;
}
.journal-post {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.journal-post:first-child { border-top: 0; padding-top: 0; }
.journal-post-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}
.journal-post-meta time {
  color: var(--ink);
  font-weight: 500;
}
.journal-tag {
  color: var(--accent);
  border: 1px solid var(--rule);
  padding: 4px 9px;
  align-self: start;
  border-radius: 2px;
}
.journal-post-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 40px);
  text-wrap: balance;
}
.is-featured .journal-post-title {
  font-size: clamp(34px, 4vw, 52px);
}
.is-featured .journal-post-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 22px;
}
.journal-post-body p {
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0 0 20px;
  max-width: 62ch;
  text-wrap: pretty;
}
.is-featured .journal-post-body > p:first-of-type {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
.journal-post-figure {
  margin: 0 0 28px;
  position: relative;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  overflow: hidden;
}
.journal-post-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.06) contrast(1.02);
}
.journal-post-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.04em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
}
.journal-empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
  text-align: center;
  margin-inline: auto;
  padding: 40px 0;
}
@media (max-width: 760px) {
  .journal-post { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .journal-post-meta { flex-direction: row; align-items: baseline; gap: 16px; }
}
