@font-face {
  font-family: "Instrument Serif";
  src: url("InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: Jost; src: url("Jost-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Jost; src: url("Jost-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Jost; src: url("Jost-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Jost; src: url("Jost-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Jost; src: url("Jost-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Jost; src: url("Jost-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ed-paper: #f7f3eb;
  --ed-stone: #eee8dc;
  --ed-surface: #fcfaf5;
  --ed-ink: #141311;
  --ed-ink-2: #4c473f;
  --ed-ink-3: #6e675d;
  --ed-rule: #d5ccbc;
  --ed-clay: #c44927;
  --ed-clay-soft: #f5dfd7;
  --ed-clay-ink: #5a1c0b;
  --ed-forest: #21513b;
  --ed-forest-soft: #dcebe3;
  --ed-forest-ink: #133525;
  --ed-amber: #ff944d;
  --ed-night: #121110;
  --ed-night-ink: #f5f1e8;
  --ed-night-ink-2: #b8b1a3;
  --ed-night-rule: #2e2c28;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ed-paper);
  color: var(--ed-ink);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--ed-paper);
  color: var(--ed-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
[hidden] { display: none !important; }

/* Accessibility skip link */
.pd-skip {
  position: fixed;
  inset-inline-start: var(--space-4);
  top: var(--space-2);
  z-index: 90;
  padding: var(--space-3) var(--space-4);
  background: var(--ed-ink);
  color: var(--ed-paper);
  border-radius: var(--radius-full);
  text-decoration: none;
  font: 600 13px/18px var(--font-sans);
  transform: translateY(-220%);
  transition: transform 150ms ease-out;
}
.pd-skip:focus {
  transform: translateY(0);
  outline: 2px solid var(--ed-ink);
  outline-offset: 2px;
}

/* Icons */
.pd-icon {
  width: var(--icon);
  height: var(--icon);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.pd-icon--s { width: 18px; height: 18px; }

/* Pill buttons — reserved strictly for actual buttons */
.pd-btn {
  font: 500 15px/18px var(--font-sans);
  height: var(--control-h);
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, opacity 150ms ease-out;
}
.pd-btn--primary {
  background: var(--ink, var(--ed-ink));
  color: var(--on-ink, var(--ed-paper));
}
.pd-btn--primary:hover { opacity: 0.9; }
.pd-btn--primary:active { transform: scale(0.985); }
.pd-btn--secondary {
  background: transparent;
  color: var(--ink, var(--ed-ink));
  border-color: var(--line-control, var(--ed-ink));
}
.pd-btn--secondary:hover { background: rgba(20, 19, 17, 0.05); }
.pd-btn--text {
  background: none;
  color: var(--ink-2, var(--ed-ink-2));
  padding: 0 var(--space-3);
  min-height: var(--tap-min);
}
.pd-btn--text:hover { color: var(--ink, var(--ed-ink)); background: rgba(255, 255, 255, 0.05); }
.pd-btn--meet {
  background: var(--meet);
  color: var(--on-meet);
  font-weight: 600;
}
.pd-btn--meet:hover { opacity: 0.92; }
.pd-btn--s {
  height: 40px;
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.pd-btn--hero {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
}
.pd-btn--block { width: 100%; }

.pd-iconbtn {
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: var(--radius-full);
  display: inline-grid;
  place-items: center;
  background: none;
  border: 1px solid var(--ed-rule);
  color: var(--ed-ink);
  cursor: pointer;
  flex: none;
  transition: background-color 150ms ease-out;
}
.pd-iconbtn--filled { background: var(--ed-stone); }
.pd-iconbtn:hover { background: var(--ed-rule); }

.pd-btn:focus-visible,
.pd-iconbtn:focus-visible,
.site-brand:focus-visible,
.editorial-link:focus-visible,
.footer-link:focus-visible,
.departure-strip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Clean TopBar: wordmark left + iOS CTA right */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 235, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ed-rule);
}
.site-topbar__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 10px var(--space-5);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--tap-min);
  color: var(--ed-ink);
  text-decoration: none;
}
.site-wordmark {
  font: 600 22px/1 var(--font-sans);
  letter-spacing: -0.03em;
}

/* Editorial typography */
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 8.2vw, 98px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ed-ink);
}
.hero-title em,
.editorial-h2 em {
  font-style: italic;
  font-weight: 400;
}
.editorial-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ed-ink);
}
.editorial-h2--night {
  color: var(--ed-night-ink);
}

/* Hero stage & ambient cursor-dealt 35mm darkroom prints */
.hero-stage {
  position: relative;
  min-height: calc(94svh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ed-rule);
  overflow: hidden;
  user-select: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(247, 243, 235, 0.98) 0%, rgba(247, 243, 235, 0.86) 36%, rgba(238, 232, 220, 0.35) 100%),
    var(--ed-paper);
}
.photo-table {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.pd-photo-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 198px;
  background: var(--ed-surface);
  border: 1px solid var(--ed-rule);
  border-radius: 2px;
  padding: 8px 8px 11px;
  box-shadow: 0 14px 32px rgba(20, 19, 17, 0.12);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  will-change: transform, opacity;
  transition: opacity 260ms ease-out;
}
.pd-photo-card.is-dragging {
  cursor: grabbing;
  z-index: 30;
  box-shadow: 0 22px 44px rgba(20, 19, 17, 0.2);
}
.pd-photo-card.is-fading {
  opacity: 0;
  pointer-events: none;
}
.pd-photo-card__frame {
  position: relative;
  overflow: hidden;
  background: #1f1d1a;
}
.pd-photo-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  pointer-events: none;
  transition: filter 1100ms ease-out;
}
.pd-photo-card.is-developing .pd-photo-card__img {
  filter: brightness(3.2) sepia(0.45) contrast(0.35) blur(3px);
}
.pd-photo-card__stamp {
  position: absolute;
  right: 7px;
  bottom: 6px;
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 0.08em;
  color: var(--ed-amber);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.pd-photo-card__meta {
  padding: 8px 2px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.pd-photo-card__place {
  font: italic 400 17px/1.1 var(--font-serif);
  color: var(--ed-ink);
}
.pd-photo-card__code {
  font: 500 10px/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-clay);
}

.hero-center {
  position: relative;
  z-index: 5;
  max-width: 720px;
  width: 100%;
  margin: auto;
  padding: 64px var(--space-5);
  user-select: text;
}
.hero-surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 20px 16px;
  background: radial-gradient(closest-side, rgba(247, 243, 235, 0.96) 68%, rgba(247, 243, 235, 0) 100%);
}
.hero-lead {
  font: 400 19px/1.48 var(--font-sans);
  color: var(--ed-ink-2);
  max-width: 520px;
  margin: 0;
}

/* Squared architectural departure strip in hero */
.departure-strip {
  width: 100%;
  max-width: 600px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  border-top: 1px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-ink);
  background: rgba(252, 250, 245, 0.86);
  text-align: left;
  cursor: pointer;
}
.departure-strip__cell {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.departure-strip__cell + .departure-strip__cell {
  border-left: 1px solid var(--ed-rule);
}
.departure-strip__label {
  font: 600 10px/1.2 var(--font-sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ed-clay);
}
.departure-strip__val {
  font: 500 15px/1.3 var(--font-sans);
  color: var(--ed-ink);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.departure-strip__val--place {
  font: italic 400 19px/1.15 var(--font-serif);
}
.departure-strip.is-shifting .departure-strip__val {
  opacity: 0;
  transform: translateY(-4px);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}
.hero-note {
  font: 400 14px/1.45 var(--font-sans);
  color: var(--ed-ink-3);
  max-width: 460px;
  margin: 0;
}

/* Section shells */
.site-section {
  padding: 104px var(--space-5);
  border-bottom: 1px solid var(--ed-rule);
}
.site-section--paper { background: var(--ed-paper); }
.site-section--stone { background: var(--ed-stone); }
.site-section--night {
  background: var(--ed-night);
  color: var(--ed-night-ink);
  border-bottom-color: var(--ed-night-rule);
}

.site-container {
  max-width: 1180px;
  margin-inline: auto;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
}
.editorial-split--reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}
.editorial-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 470px;
}
.editorial-copy p {
  margin: 0;
  font: 400 17px/1.56 var(--font-sans);
  color: var(--ed-ink-2);
}
.editorial-copy--night p {
  color: var(--ed-night-ink-2);
}

/* Scroll reveal motion */
[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease-out, transform 520ms ease-out;
}
html.js-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

/* Section 1: Squared Thursday Schedule Sheet */
.schedule-sheet {
  background: var(--ed-surface);
  border: 1px solid var(--ed-ink);
  border-top-width: 3px;
  border-radius: 0;
}
.schedule-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ed-rule);
}
.schedule-sheet__day {
  font: 600 12px/1.2 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-ink);
}
.schedule-sheet__match {
  background: var(--meet);
  color: var(--on-meet);
  padding: 4px 10px;
  border-radius: 0;
  font: 600 12px/1.2 var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.schedule-grid {
  position: relative;
  padding: 12px 18px 16px;
  overflow: hidden;
}
.schedule-band {
  position: absolute;
  top: 38px;
  bottom: 16px;
  left: calc(18px + 68px + (100% - 36px - 68px) * 0.3);
  width: calc((100% - 36px - 68px) * 0.4);
  background: rgba(169, 212, 255, 0.34);
  border-left: 1px solid #5a9ad6;
  border-right: 1px solid #5a9ad6;
  pointer-events: none;
  z-index: 1;
}
.schedule-loupe {
  position: absolute;
  top: 34px;
  bottom: 12px;
  width: 1px;
  background: var(--ed-clay);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 150ms ease-out;
}
.schedule-grid.is-hovering .schedule-loupe {
  opacity: 0.75;
}
.schedule-axis {
  display: grid;
  grid-template-columns: 68px 1fr;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ed-rule);
}
.schedule-axis__ticks {
  display: flex;
  justify-content: space-between;
  font: 500 11px/1.2 var(--font-sans);
  color: var(--ed-ink-3);
  font-variant-numeric: tabular-nums;
}
.schedule-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--ed-rule);
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-row--muted { opacity: 0.68; }
.schedule-row__who {
  font: 600 14px/1.2 var(--font-sans);
  color: var(--ed-ink);
}
.schedule-row__track {
  position: relative;
  height: 28px;
}
.schedule-busy,
.schedule-free {
  position: absolute;
  top: 2px;
  bottom: 2px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font: 500 11px/1 var(--font-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0;
}
.schedule-busy {
  background: var(--ed-clay-soft);
  border-left: 2px solid var(--ed-clay);
  color: var(--ed-clay-ink);
}
.schedule-free {
  background: var(--meet);
  border: 1px solid var(--ed-ink);
  color: var(--on-meet);
  font-weight: 600;
}
.schedule-sheet__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--ed-rule);
  background: var(--ed-paper);
  font: 500 13px/1.3 var(--font-sans);
  color: var(--ed-ink-2);
}
.schedule-sheet__place {
  font: italic 400 20px/1 var(--font-serif);
  color: var(--ed-ink);
}

/* Section 2: Squared Two-Column Calendar Redaction Ledger */
.redaction-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ed-ink);
  background: var(--ed-surface);
  border-radius: 0;
}
.redaction-col {
  display: flex;
  flex-direction: column;
}
.redaction-col--device {
  border-top: 3px solid var(--ed-clay);
  border-right: 1px solid var(--ed-rule);
}
.redaction-col--server {
  border-top: 3px solid var(--ed-forest);
  background: #f6f3ec;
}
.redaction-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ed-rule);
}
.redaction-col__title {
  font: 600 13px/1.2 var(--font-sans);
  color: var(--ed-ink);
}
.redaction-col__tag {
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 7px;
  background: var(--ed-clay-soft);
  color: var(--ed-clay-ink);
  border-radius: 0;
}
.redaction-col__tag--safe {
  background: var(--ed-forest-soft);
  color: var(--ed-forest-ink);
}
.redaction-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ed-rule);
  transition: background-color 140ms ease-out;
}
.redaction-row:last-child { border-bottom: 0; }
.redaction-row.is-highlighted {
  background: rgba(20, 19, 17, 0.045);
}
.redaction-row--open {
  background: rgba(220, 235, 227, 0.32);
}
.redaction-row__time {
  font: 600 12px/1.3 var(--font-sans);
  color: var(--ed-ink-3);
  font-variant-numeric: tabular-nums;
}
.redaction-row__text {
  font: 500 14px/1.35 var(--font-sans);
  color: var(--ed-ink);
}
.redaction-row__text--muted {
  color: var(--ed-ink-2);
  font-family: var(--font-sans);
}
.redaction-row__text--free {
  color: var(--ed-forest-ink);
  font-weight: 600;
}

/* Section 3: Evening Room + Genuine iOS InviteCard & HangoutCard */
.night-cards {
  --bg: #121110;
  --bg-subtle: #1c1b18;
  --bg-muted: #2a2824;
  --line: #33302b;
  --line-control: #6e6960;
  --ink: #f5f1e8;
  --ink-2: #bdb6a8;
  --ink-3: #8e877a;
  --on-ink: #121110;
  --meet-soft: #132742;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 8px 0;
}
.pd-card {
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) var(--radius-tail);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
}
.pd-card--invite {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}
.pd-card--locked {
  background: var(--meet-soft);
  border: 1px solid rgba(169, 212, 255, 0.28);
  box-shadow: 0 22px 48px rgba(7, 16, 30, 0.55);
}
.pd-card--locked.is-pulsed {
  border-color: var(--meet);
}
.night-cards__back {
  max-width: 356px;
  justify-self: start;
}
.night-cards__front {
  max-width: 372px;
  justify-self: end;
  margin-top: -28px;
}

.pd-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 13px/18px var(--font-sans);
  color: var(--ink-2);
}
.pd-eyebrow--ink { color: var(--ink); }
.pd-display-l {
  font: 600 28px/32px var(--font-sans);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.pd-place {
  font: italic 400 22px/26px var(--font-serif);
  color: var(--ink-2);
  margin: 2px 0 0;
}
.pd-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 13px/18px var(--font-sans);
  color: var(--ink-2);
  margin: 0;
}
.pd-meta--ink { color: var(--ink); }
.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-avatar {
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font: 600 13px/1 var(--font-sans);
  flex: none;
  border: 2px solid var(--bg-subtle);
}
.pd-avatar--xs { width: 24px; height: 24px; font-size: 9px; }
.pd-avatar--m { width: 44px; height: 44px; font-size: 14px; border-color: var(--meet-soft); }
.pd-avatar--hidden {
  background: var(--bg-muted);
  border-color: var(--line-control);
  color: transparent;
}
.pd-avatar--tone2 { background: #2c4a70; color: #f5f1e8; }
.pd-avatar--tone3 { background: var(--meet); color: var(--on-meet); }

.pd-stack { display: inline-flex; }
.pd-stack .pd-avatar + .pd-avatar { margin-left: -6px; }

.pd-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--meet);
  display: inline-block;
  flex: none;
}

.pd-members {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.pd-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font: 500 12px/16px var(--font-sans);
  color: var(--ink);
}

/* Section 4: Close Friends + Asymmetric 35mm Contact Sheet */
.friends-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}
.friends-header__lead {
  margin: 0;
  font: 400 17px/1.58 var(--font-sans);
  color: var(--ed-ink-2);
  max-width: 560px;
}

.contact-sheet {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.95fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
}
.contact-frame {
  margin: 0;
  background: var(--ed-surface);
  border: 1px solid var(--ed-rule);
  padding: 10px 10px 14px;
  border-radius: 0;
  will-change: transform;
  transition: transform 240ms ease-out;
}
.contact-frame--offset {
  margin-top: 36px;
}
.contact-frame__img-wrap {
  position: relative;
  overflow: hidden;
  background: #1b1917;
}
.contact-frame__img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}
.film-stamp {
  position: absolute;
  right: 10px;
  bottom: 9px;
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.08em;
  color: var(--ed-amber);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  font-variant-numeric: tabular-nums;
}
.contact-frame__caption {
  padding: 12px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-frame__place {
  font: italic 400 22px/1.1 var(--font-serif);
  color: var(--ed-ink);
}
.contact-frame__note {
  font: 400 13px/1.4 var(--font-sans);
  color: var(--ed-ink-3);
}

.editorial-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ed-ink);
}
.editorial-col {
  padding: 22px 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.editorial-col + .editorial-col {
  padding-left: 24px;
  border-left: 1px solid var(--ed-rule);
}
.editorial-col__title {
  margin: 0;
  font: 600 16px/1.3 var(--font-sans);
  color: var(--ed-ink);
}
.editorial-col p {
  margin: 0;
  font: 400 15px/1.5 var(--font-sans);
  color: var(--ed-ink-2);
}

/* Section 5: Toronto Neighbourhood Directory */
.toronto-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.toronto-head__sub {
  margin: 14px 0 0;
  font: 400 17px/1.55 var(--font-sans);
  color: var(--ed-ink-2);
  max-width: 520px;
}
.toronto-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.editorial-link {
  font: 500 14px/1.4 var(--font-sans);
  color: var(--ed-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  padding: 4px 0;
}
.editorial-link:hover {
  color: var(--ed-clay);
}

.neighbourhood-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ed-ink);
  border-left: 1px solid var(--ed-rule);
  background: var(--ed-surface);
}
.neighbourhood-cell {
  padding: 18px 20px;
  border-right: 1px solid var(--ed-rule);
  border-bottom: 1px solid var(--ed-rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.neighbourhood-cell__name {
  font: italic 400 24px/1.08 var(--font-serif);
  color: var(--ed-ink);
}
.neighbourhood-cell__time {
  font: 600 11px/1.2 var(--font-sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ed-clay);
}

/* Footer */
.site-footer {
  padding: 40px var(--space-5) 56px;
  background: var(--ed-paper);
}
.site-footer__inner {
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer__sub {
  margin: 0;
  font: 400 13px/1.4 var(--font-sans);
  color: var(--ed-ink-3);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--ed-ink);
  font: 500 14px/1.3 var(--font-sans);
  text-decoration: underline;
  text-decoration-color: var(--ed-rule);
  text-underline-offset: 4px;
  border-radius: 0;
  transition: color 140ms ease-out, text-decoration-color 140ms ease-out;
}
.footer-link:hover {
  color: var(--ed-clay);
  text-decoration-color: var(--ed-clay);
}

/* Toast */
.toast-region {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-5);
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.pd-toast {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 2px;
  background: var(--ed-ink);
  color: var(--ed-paper);
  border: 1px solid #38352f;
  font: 500 14px/20px var(--font-sans);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  max-width: 440px;
  pointer-events: auto;
}

/* Modal Dialog (iOS TestFlight download) */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(18, 17, 16, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-sheet {
  --ink: var(--ed-ink);
  --ink-2: var(--ed-ink-2);
  --on-ink: var(--ed-paper);
  --line-control: var(--ed-ink);
  width: 100%;
  max-width: 460px;
  background: var(--ed-surface);
  color: var(--ed-ink);
  border: 1px solid var(--ed-ink);
  border-top-width: 3px;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(18, 17, 16, 0.32);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: dialog-rise 200ms ease-out;
}
.modal-sheet:focus { outline: none; }
@keyframes dialog-rise {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal-sheet__title {
  margin: 0;
  font: 400 34px/1.05 var(--font-serif);
  color: var(--ed-ink);
}
.modal-sheet__sub {
  margin: 4px 0 0;
  font: 600 11px/1.3 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-clay);
}
.modal-sheet__body {
  margin: 0;
  font: 400 15px/1.5 var(--font-sans);
  color: var(--ed-ink-2);
}
.modal-ledger {
  border-top: 1px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-ink);
}
.modal-ledger__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font: 400 14px/1.35 var(--font-sans);
  color: var(--ed-ink-2);
}
.modal-ledger__row + .modal-ledger__row {
  border-top: 1px solid var(--ed-rule);
}
.modal-ledger__row span:first-child {
  font-weight: 600;
  color: var(--ed-ink);
}

/* Responsive rules */
@media (max-width: 1040px) {
  .photo-table { display: none; }
}

@media (max-width: 980px) {
  .site-section { padding: 76px var(--space-4); }
  .editorial-split,
  .editorial-split--reverse,
  .friends-header {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .editorial-split--reverse .editorial-copy { order: -1; }
  .night-cards__front { margin-top: 0; justify-self: start; }
  .contact-sheet { grid-template-columns: 1fr 1fr; }
  .contact-frame--offset { margin-top: 0; }
  .editorial-columns { grid-template-columns: 1fr; }
  .editorial-col { padding: 18px 0; }
  .editorial-col + .editorial-col {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--ed-rule);
  }
  .neighbourhood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-photo-card { width: 150px; }
}

@media (max-width: 640px) {
  .site-topbar__inner { padding-inline: var(--space-4); }
  .hero-stage { min-height: auto; }
  .hero-center { padding: 48px var(--space-4) 56px; }
  .departure-strip { grid-template-columns: 1fr; }
  .departure-strip__cell + .departure-strip__cell {
    border-left: 0;
    border-top: 1px solid var(--ed-rule);
  }
  .redaction-ledger { grid-template-columns: 1fr; }
  .redaction-col--device {
    border-right: 0;
    border-bottom: 1px solid var(--ed-ink);
  }
  .contact-sheet { grid-template-columns: 1fr; }
  .neighbourhood-grid { grid-template-columns: 1fr 1fr; }
  .neighbourhood-cell { padding: 14px; }
  .neighbourhood-cell__name { font-size: 20px; }
  .sheet-backdrop { align-items: flex-end; padding: 0; }
  .modal-sheet { border-radius: 12px 12px 0 0; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
