/* Jonah Jude — Notes on being here.
   Plain CSS, no build step. Designed to outlive its tools. */

:root {
  --ivory: #F2EFE7;
  --ivory-deep: #E6E2D7;
  --carbon: #24241F;
  --olive: #797D6B;
  --stone: #B8AA96;

  /* The one colour that belongs to him: the sky on 30.11.2026.
     Placeholder until Fig. 002 exists — then sample it from the photo.
     Each annual volume may take its own from that year's sky.
     Used for exactly one thing: the dot for "now". */
  --sky: #8C9DAA;

  /* The annual editions are 8 × 10 in, portrait. The web borrows the page. */
  --page-ratio: 4 / 5;

  --serif: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* Catalogue voice: Fig., No., Vol., dates. Tabular, like an index card. */
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain belongs to photographs, not to the page. Pure SVG, no image request. */
.plate, .sky, .moment .frame { position: relative; }
.plate::after, .sky::after, .moment .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .14 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--olive); }
a:focus-visible { outline: 1px solid var(--olive); outline-offset: 4px; }

::selection { background: var(--stone); color: var(--carbon); }

.label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--olive);
}

/* ---------- The mark: one volume of the 216 grid ---------- */

.mark { display: inline-flex; gap: 3px; vertical-align: 1px; margin-right: 10px; }
.mark i, .moments i {
  display: block;
  border-radius: 50%;
  border: 1px solid var(--stone);
}
.mark i { width: 5px; height: 5px; }
.mark i.kept, .moments i.kept { background: var(--carbon); border-color: var(--carbon); }
.moments i.past { background: rgba(184,170,150,.35); }
.mark i.now, .moments i.now { background: var(--sky); border-color: var(--sky); }

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 22px var(--gutter);
}

.masthead a { border-bottom: 1px solid transparent; transition: border-color .4s; }
.masthead a:hover { border-color: var(--olive); }

/* ---------- Homepage ---------- */

.page {
  padding: 0 var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 28px);
}

.wordmark {
  grid-column: 1 / -1;
  margin: clamp(48px, 12vh, 140px) 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 15.5vw, 236px);
  line-height: .86;
  letter-spacing: -.035em;
}

.tagline {
  grid-column: 1 / -1;
  margin: clamp(12px, 2vw, 22px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.1;
  color: var(--olive);
}

.figure {
  grid-column: 5 / -1;
  margin: clamp(56px, 10vw, 140px) 0 0;
}

.plate {
  aspect-ratio: var(--page-ratio);
  width: 100%;
  background-color: var(--stone);
  background-image:
    /* PLACEHOLDER: Unsplash RIQ96s3Uzso (Alexander Possingham). Replace with a family photo. */
    url("images/fig-001.jpg"),
    radial-gradient(120% 80% at 70% 15%, #D9CFBF 0%, rgba(217,207,191,0) 60%),
    linear-gradient(180deg, #C9BDAA 0%, #B8AA96 55%, #A79A86 100%);
  background-size: cover;
  background-position: center;
  filter: saturate(.85);
}

.figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 12px;
}

.note {
  grid-column: 1 / span 4;
  margin: clamp(-260px, -16vw, -80px) 0 0;
  align-self: start;
  position: relative;
}

.note p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.25;
  font-weight: 300;
  margin: 0;
  max-width: 15em;
}

.coda {
  grid-column: 2 / span 4;
  margin: clamp(80px, 12vw, 180px) 0 0;
  max-width: 24rem;
}

.coda p { margin: 0 0 1em; }
.coda .more { display: inline-block; margin-top: .5em; border-bottom: 1px solid var(--stone); }

.colophon {
  margin-top: clamp(96px, 14vw, 200px);
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(36,36,31,.12);
}

/* ---------- Capsule ---------- */

.capsule-head { padding-top: clamp(48px, 10vh, 120px); }

.capsule-head h1 {
  grid-column: 1 / span 10;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 132px);
  line-height: .92;
  letter-spacing: -.03em;
}

.capsule-head .lede {
  grid-column: 7 / span 5;
  margin: clamp(32px, 5vw, 64px) 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.4;
  font-weight: 300;
}

.record {
  margin-top: clamp(72px, 10vw, 140px);
  border-top: 1px solid rgba(36,36,31,.12);
}

.entry {
  padding: 28px 0 40px;
  border-bottom: 1px solid rgba(36,36,31,.12);
  row-gap: 12px;
}

.entry .label { grid-column: 1 / span 3; padding-top: 6px; }

.entry .body {
  grid-column: 5 / span 7;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.3;
  font-weight: 300;
}

.entry .body p { margin: 0 0 .6em; }
.entry .body p:last-child { margin-bottom: 0; }

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 28px;
  margin: 0;
}
dl.facts dt { font-family: var(--sans); font-size: 13px; color: var(--olive); padding-top: .45em; }
dl.facts dd { margin: 0; }

.song-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.listen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--stone);
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--olive);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.listen:hover, .listen[aria-pressed="true"] { color: var(--carbon); border-color: var(--carbon); }
.listen:focus-visible { outline: 1px solid var(--olive); outline-offset: 4px; }

/* Things still to be written. Visible, unhurried. */
.tbd { color: var(--stone); font-style: italic; }

/* Redacted on purpose. Private details stay private. */
.redact {
  display: inline-block;
  background: var(--carbon);
  color: transparent;
  height: .82em;
  vertical-align: -.04em;
  user-select: none;
}

.sky {
  aspect-ratio: 3 / 2;
  background-color: var(--stone);
  background-image:
    /* PLACEHOLDER: Unsplash 4C6Rp23RjnE (Barry Simon). Replace with the real sky from 30.11.2026. */
    url("images/sky-2026-11-30.jpg"),
    linear-gradient(180deg, #A9AFA6 0%, #C8C6BB 55%, #E4DDCF 100%);
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}

.letter p { font-style: italic; }
.letter .sign { font-style: normal; margin-top: 1em; }

/* ---------- Private entrance ---------- */

.door {
  min-height: calc(100vh - 140px);
  display: grid;
  align-content: center;
  padding: 64px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.door h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 16px 0 24px;
}

.door p { max-width: 26rem; margin: 0 0 1em; }

.moments {
  display: grid;
  grid-template-columns: repeat(12, 10px);
  gap: 7px;
  margin: 40px 0 12px;
}
.moments i { width: 10px; height: 10px; }

/* Fig. 000 on the homepage: the whole plan, 2026–2044. */
.plan {
  grid-column: 8 / span 4;
  margin: clamp(80px, 12vw, 180px) 0 0;
  align-self: end;
}
.plan .moments { margin: 0 0 14px; }

.enter { display: inline-block; margin-top: 8px; border-bottom: 1px solid var(--stone); }

/* ---------- The Family Room ---------- */

.nav { display: flex; gap: 20px; }
.nav a[aria-current] { color: var(--carbon); border-color: var(--carbon); }

.room-head { padding-top: clamp(40px, 8vh, 96px); }
.room-head h1 {
  grid-column: 1 / span 9;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .95;
  letter-spacing: -.025em;
}
.room-head .lede {
  grid-column: 7 / span 6;
  margin: clamp(28px, 4vw, 56px) 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.4;
  font-weight: 300;
}
.room-head .lede .moments { margin-top: 0; }

.rooms {
  list-style: none;
  margin: clamp(64px, 9vw, 120px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(36,36,31,.12);
}
.rooms li { padding: 22px 0 26px; border-bottom: 1px solid rgba(36,36,31,.12); align-items: baseline; }
.rooms .label:first-child { grid-column: 1 / span 1; }
.rooms .title {
  grid-column: 2 / span 6;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
}
.rooms a.title:hover { color: var(--olive); }
.rooms .aside { grid-column: 9 / -1; }
.rooms .later .title { color: var(--stone); }

.volume { margin-top: clamp(72px, 10vw, 140px); }
.volume-head {
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(36,36,31,.12);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.volume-head h2 { grid-column: 1 / span 2; margin: 0; }
.vol-title {
  grid-column: 3 / span 6; margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 2.6vw, 36px);
}
.vol-dates { grid-column: 9 / -1; margin: 0; text-align: right; }

.mgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.moment { margin: 0; }
/* A gentle stagger, so the grid reads like a contact sheet, not a feed. */
.mgrid .moment:nth-child(3n+2) { margin-top: clamp(24px, 4vw, 64px); }
.moment .frame { display: block; background: var(--stone); overflow: hidden; }
.moment img { display: block; width: 100%; height: 100%; object-fit: cover; }
.moment figcaption { margin-top: 12px; }
.moment figcaption p { margin: 0; }
.moment figcaption a { border-bottom: 1px solid var(--stone); }
.moment .sentence {
  margin-top: 6px !important;
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.3;
  font-weight: 300;
}

.quiet { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 19px; }

/* ---------- Keeping a moment ---------- */

.keep { margin-top: clamp(48px, 7vw, 96px); row-gap: 36px; }
.keep .field { grid-column: 1 / span 7; }
.keep .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.keep label { display: block; margin-bottom: 10px; }
.keep .hint { margin: 8px 0 0; color: var(--stone); text-transform: none; letter-spacing: 0; font-size: 12px; }

.keep select, .keep textarea, .keep input[type=file] {
  width: 100%;
  font: inherit;
  color: var(--carbon);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--carbon);
  border-radius: 0;
  padding: 8px 0;
}
.keep select { font-family: var(--serif); font-size: 20px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.keep textarea { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; resize: vertical; font-weight: 300; }
.keep textarea::placeholder { color: var(--stone); font-style: italic; }
.keep select:focus, .keep textarea:focus { outline: none; border-color: var(--olive); }

.preview img { display: block; max-width: 100%; max-height: 420px; margin-top: 16px; }

.keep button {
  font: 500 12px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--carbon);
  background: var(--carbon);
  color: var(--ivory);
  cursor: pointer;
}
.keep button:disabled { opacity: .5; cursor: default; }
.keep .quietbtn { background: transparent; color: var(--olive); border-color: transparent; padding-left: 0; }

/* ---------- Motion: one slow fade, and only if wanted ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: arrive 1.6s cubic-bezier(.2,.6,.2,1) both; }
  .reveal.d1 { animation-delay: .25s; }
  .reveal.d2 { animation-delay: .6s; }
  .reveal.d3 { animation-delay: 1s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .figure { grid-column: 3 / -1; }
  .note { grid-column: 1 / span 10; margin-top: 40px; }
  .coda { grid-column: 1 / -1; }
  .plan { grid-column: 1 / -1; margin-top: 64px; }
  .capsule-head h1 { grid-column: 1 / -1; }
  .capsule-head .lede { grid-column: 2 / -1; }
  .entry .label, .entry .body { grid-column: 1 / -1; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 12px; }
  .room-head h1, .keep .field { grid-column: 1 / -1; }
  .room-head .lede { grid-column: 1 / -1; }
  .rooms .label:first-child { grid-column: 1 / span 2; }
  .rooms .title { grid-column: 3 / -1; }
  .rooms .aside { grid-column: 3 / -1; margin-top: 6px; }
  .volume-head h2 { grid-column: 1 / span 4; }
  .vol-title { grid-column: 5 / -1; }
  .vol-dates { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mgrid .moment:nth-child(3n+2) { margin-top: 0; }
  .mgrid .moment:nth-child(2n) { margin-top: 32px; }
  .nav { gap: 14px; }
}

@media (max-width: 420px) {
  .mgrid { grid-template-columns: 1fr; }
  .mgrid .moment:nth-child(2n) { margin-top: 0; }
}

@media print {
  .plate::after, .sky::after, .moment .frame::after { display: none; }
  .masthead a[href*="private"] { display: none; }
}
