/* =============================================================================
   DailyOS — Editorial Magazine Experience

   Design philosophy: Kinfolk meets NYT Snow Fall.
   Each scroll is a page turn. Each idea gets a full spread.
   The whitespace IS the design.
   Techno-humanist: bringing humanity back to technology.
   ============================================================================= */

:root {
  /* Paper */
  --cream: #f5f2ef;
  --linen: #e8e2d9;
  --warm-white: #faf8f6;

  /* Desk */
  --charcoal: #1e2530;
  --ink: #2a2b3d;
  --espresso: #3d2e27;

  /* Spice */
  --turmeric: #c9a227;
  --turmeric-soft: rgba(201, 162, 39, 0.12);
  --saffron: #deb841;
  --terracotta: #c4654a;
  --terracotta-soft: rgba(196, 101, 74, 0.12);

  /* Garden */
  --sage: #7eaa7b;
  --sage-soft: rgba(126, 170, 123, 0.12);
  --larkspur: #8fa3c4;

  /* Semantic text — all pass WCAG AA on --cream */
  --text-primary: #1e2530;    /* ~12:1 */
  --text-secondary: #4a5160;  /* ~6.5:1 */
  --text-tertiary: #6b737d;   /* ~4.2:1 */

  /* Rules */
  --rule-heavy: rgba(30, 37, 48, 0.12);
  --rule-light: rgba(30, 37, 48, 0.06);

  /* Typography */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-mark: 'Montserrat', sans-serif;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}


/* =============================================================================
   RESET
   ============================================================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

code, .mono {
  font-family: var(--font-mono);
}

img { max-width: 100%; height: auto; }


/* =============================================================================
   ATMOSPHERE — Subtle breathing warmth
   ============================================================================= */

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(201, 162, 39, 0.05), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(126, 170, 123, 0.04), transparent),
    radial-gradient(ellipse 70% 40% at 40% 90%, rgba(196, 101, 74, 0.025), transparent);
  animation: breathe 18s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}


/* =============================================================================
   NAVIGATION — Nearly invisible, frosted
   ============================================================================= */

.site-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem 0;
  pointer-events: none;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-lg);
  background: rgba(245, 242, 239, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.site-nav-inner {
  height: 48px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.015em;
}

.site-logo svg {
  width: 16px;
  height: 16px;
  color: var(--turmeric);
}

.site-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav-links a {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.site-nav-links a:hover,
.site-nav-links a.active {
  color: var(--text-primary);
}

.site-nav-links a.cta-link {
  color: var(--turmeric);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  margin: 4px 0;
}


/* =============================================================================
   LAYOUT PRIMITIVES

   The magazine has three column widths:
   - .col-reading  → 540px (intimate prose, like a book column)
   - .col-content  → 740px (features, wider content)
   - .col-wide     → 960px (editorial previews, comparisons)
   Full-bleed is just no container.
   ============================================================================= */

.col-reading {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.col-content {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.col-wide {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.col-full {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}


/* =============================================================================
   SPREAD — Full-viewport "page" moments
   A spread is a single idea that fills the screen.
   ============================================================================= */

.spread {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.spread--top {
  justify-content: flex-start;
  padding-top: 160px;
}

.spread--padded {
  padding: 120px 0;
}

/* Hero variants — each page gets its own opening gesture */

/* Tour: split layout with visual teaser on right */
.spread--split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.spread--split .spread__visual {
  border-left: 1px solid var(--rule-light);
  padding-left: 40px;
}

/* Philosophy: not full viewport, flows into first paragraph */
.spread--essay {
  min-height: auto;
  padding: 40vh 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* Setup: compact, action-oriented, CTA visible immediately */
.spread--compact {
  min-height: auto;
  padding: 140px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}


/* =============================================================================
   SECTION — Generous breathing room between ideas
   ============================================================================= */

.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section--tight {
  padding: 80px 0;
}

.section--vast {
  padding: 160px 0;
}


/* =============================================================================
   SECTION RULE — Thin horizontal divider, centered
   ============================================================================= */

.section-rule {
  height: 1px;
  background: var(--rule-heavy);
  max-width: 540px;
  margin: 0 auto;
}


/* =============================================================================
   TYPOGRAPHY — The magazine scale

   Display:   80-120px  (spread headlines, one per viewport)
   Headline:  40-64px   (pull quotes, section openers)
   Title:     28-36px   (subsection titles)
   Body:      16-17px   (reading column prose)
   Caption:   13-14px   (metadata, annotations)
   Micro:     10-11px   (mono labels)
   ============================================================================= */

/* Display — the enormous spread headlines */
.display {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--text-primary);
}

/* Headline — pull quotes and section openers */
.headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text-primary);
}

/* Title — subsection titles */
.title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Subtitle */
.subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Narrative — italic serif, the storyteller voice */
.narrative {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Pull quote — large italic statement mid-story */
.pullquote {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

/* Body prose — the reading column */
.prose {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
}

.prose + .prose {
  margin-top: 1.5rem;
}

.prose strong {
  font-weight: 500;
  color: var(--text-primary);
}

/* Mono label */
.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.mono-label--turmeric { color: var(--turmeric); }
.mono-label--sage { color: var(--sage); }
.mono-label--terracotta { color: var(--terracotta); }

/* Caption */
.caption {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}


/* =============================================================================
   CTA — Text link with arrow. Understated. Confident.
   ============================================================================= */

.cta-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--turmeric);
  transition: gap 0.25s ease;
}

.cta-text:hover {
  gap: 0.8rem;
}


/* =============================================================================
   WATERMARK — Large asterisk behind hero
   ============================================================================= */

.watermark {
  position: absolute;
  width: clamp(300px, 40vw, 520px);
  height: auto;
  opacity: 0.035;
  transform: rotate(12deg);
  pointer-events: none;
  color: var(--turmeric);
}


/* =============================================================================
   FOCUS BLOCK — Turmeric left border, typographic emphasis
   ============================================================================= */

.focus-block {
  border-left: 3px solid var(--turmeric);
  padding: 20px 0 20px 28px;
  margin: 32px 0;
}

.focus-block__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turmeric);
  margin-bottom: 10px;
}

.focus-block__text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
}


/* =============================================================================
   SCHEDULE ROWS — Flat rows with entity accent borders
   ============================================================================= */

.schedule-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-light);
  cursor: pointer;
  transition: background 0.15s ease;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:hover {
  background: rgba(245, 242, 239, 0.5);
}

.schedule-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  padding-top: 4px;
}

.schedule-content {
  border-left: 3px solid var(--linen);
  padding-left: 20px;
  min-width: 0;
}

.schedule-content--customer { border-left-color: var(--sage); }
.schedule-content--risk     { border-left-color: var(--terracotta); }
.schedule-content--new      { border-left-color: var(--turmeric); }
.schedule-content--internal { border-left-color: var(--larkspur); }

.schedule-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.schedule-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.schedule-meta-sep { opacity: 0.35; }

.schedule-narrative {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Expansion panel — inline fold-out */
.schedule-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease;
  opacity: 0;
}

.schedule-row.expanded .schedule-expand {
  max-height: 600px;
  opacity: 1;
}

.schedule-expand-inner {
  padding-top: 20px;
}


/* =============================================================================
   ACTION ROWS — Checkbox circles, tapering weights
   ============================================================================= */

.action-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-light);
  transition: opacity 0.3s ease;
}

.action-row:last-child { border-bottom: none; }

.action-row.checked { opacity: 0.35; }

.action-check {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--rule-heavy);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-check:hover { border-color: var(--sage); }

.action-check.checked {
  background: var(--sage);
  border-color: var(--sage);
}

.action-check.checked::after {
  content: '';
  width: 5px;
  height: 8px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  position: relative;
  top: -1px;
}

.action-body { flex: 1; min-width: 0; }

.action-title {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.action-title--overdue  { font-weight: 500; }
.action-title--today    { font-weight: 400; }
.action-title--upcoming { font-weight: 300; }

.action-row.checked .action-title { text-decoration: line-through; }

.action-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.action-meta--overdue {
  color: var(--terracotta);
  font-weight: 500;
}


/* =============================================================================
   PREP GRID — 2-column with mono labels and dot bullets
   ============================================================================= */

.prep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.prep-grid__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.prep-grid__label--discuss  { color: var(--turmeric); }
.prep-grid__label--watch    { color: var(--terracotta); }
.prep-grid__label--wins     { color: var(--sage); }
.prep-grid__label--risks    { color: var(--terracotta); }

.prep-grid__item {
  font-size: 14px;
  line-height: 1.55;
  padding: 4px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.prep-grid__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.prep-grid__dot--turmeric   { background: var(--turmeric); }
.prep-grid__dot--terracotta { background: var(--terracotta); }
.prep-grid__dot--sage       { background: var(--sage); }


/* =============================================================================
   MORNING COMPARISON — Dramatic before/after
   ============================================================================= */

.morning-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
}

.morning-col__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.morning-col__label--without { color: var(--terracotta); }
.morning-col__label--with    { color: var(--sage); }

.morning-step {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 15px;
  color: var(--text-secondary);
}

.morning-step:last-child { border-bottom: none; }

.morning-step__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  padding-top: 2px;
}

.morning-resolve {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--sage);
  margin-top: 2rem;
  line-height: 1.2;
}


/* =============================================================================
   MEETING PREVIEW — Editorial feature
   ============================================================================= */

.meeting-preview__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.meeting-preview__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 28px;
}

.meeting-preview__narrative {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

.meeting-preview__narrative strong {
  font-weight: 500;
  font-style: normal;
  color: var(--text-primary);
}


/* =============================================================================
   TRUST ROWS — Flat rows with sage checkmarks
   ============================================================================= */

.trust-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-light);
}

.trust-row:last-child { border-bottom: none; }

.trust-check {
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-text {
  font-size: 16px;
  line-height: 1.6;
}

.trust-text span {
  color: var(--text-secondary);
  font-weight: 400;
}


/* =============================================================================
   REFUSAL ROWS — Terracotta marks
   ============================================================================= */

.refusal-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 16px;
}

.refusal-row:last-child { border-bottom: none; }

.refusal-mark {
  color: var(--terracotta);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 18px;
}


/* =============================================================================
   BELIEF — Large editorial belief block with generous space
   ============================================================================= */

.belief {
  padding: 80px 0;
}

.belief + .belief {
  border-top: 1px solid var(--rule-light);
}

.belief__number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.belief__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.belief__prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 560px;
}

.belief__prose + .belief__prose {
  margin-top: 1.25rem;
}


/* =============================================================================
   SHAME / RESOLVE — Philosophy page
   ============================================================================= */

.shame-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shame-notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 101, 74, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(196, 101, 74, 0.035);
}

.shame-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
  margin-top: 4px;
}

.shame-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.shame-age {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.resolve-block {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(126, 170, 123, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(126, 170, 123, 0.04);
}

.resolve-text {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--sage);
  line-height: 1.5;
}


/* =============================================================================
   SETUP STEPS
   ============================================================================= */

.setup-step {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-light);
}

.setup-step:last-child { border-bottom: none; }

.setup-step__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 8px;
}

.setup-step__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.setup-step__code {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  background: rgba(30, 37, 48, 0.035);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  overflow-x: auto;
  line-height: 1.7;
}


/* =============================================================================
   REQUIREMENT ROWS
   ============================================================================= */

.req-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-light);
}

.req-row:last-child { border-bottom: none; }

.req-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
}

.req-detail {
  font-size: 14px;
  color: var(--text-secondary);
}


/* =============================================================================
   FINDER TREE — Ownership visual
   ============================================================================= */

.finder-tree {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2.2;
  color: var(--text-secondary);
  padding: 20px 0;
}

.finder-tree__folder {
  font-weight: 500;
  color: var(--text-primary);
}

.finder-tree__indent {
  padding-left: 24px;
  color: var(--text-tertiary);
}


/* =============================================================================
   EDITORIAL PREVIEW — The app in editorial context
   Not a screenshot in a window. A breathing editorial layout.
   ============================================================================= */

.editorial-preview {
  background: var(--warm-white);
  border-top: 1px solid var(--rule-heavy);
  border-bottom: 1px solid var(--rule-heavy);
  padding: 48px 0;
}

.editorial-preview__inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem;
}

.editorial-preview__date {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 32px;
}


/* =============================================================================
   MARGIN GRID — For setup/reference pages
   ============================================================================= */

.margin-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 32px;
  align-items: first baseline;
}

.margin-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: right;
  padding-top: 4px;
}


/* =============================================================================
   END MARK — * * * editorial finisher
   ============================================================================= */

.end-mark {
  text-align: center;
  padding: 100px 0 80px;
}

.end-mark__stars {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.6em;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.end-mark__message {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}


/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
  border-top: 1px solid var(--rule-light);
  padding: 2.5rem 2rem;
  text-align: center;
}

.site-footer p {
  font-size: 12px;
  color: var(--text-tertiary);
}

.site-footer a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--text-primary);
}

.site-footer p + p {
  margin-top: 0.5rem;
}


/* =============================================================================
   SCROLL HINT — Subtle down indicator on hero spreads
   ============================================================================= */

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  animation: scroll-hint-bob 3s ease-in-out infinite;
}

.scroll-hint__line {
  width: 1px;
  height: 28px;
  background: var(--text-tertiary);
  opacity: 0.4;
}

@keyframes scroll-hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}


/* =============================================================================
   FADE-IN — Scroll-triggered reveal
   ============================================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


/* =============================================================================
   UTILITY
   ============================================================================= */

.text-center { text-align: center; }
.text-turmeric { color: var(--turmeric); }
.text-sage { color: var(--sage); }
.text-terracotta { color: var(--terracotta); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mt-xl { margin-top: 4rem; }

.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 820px) {
  .site-nav-wrap {
    padding: 0.75rem 1rem 0;
  }

  .spread {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .spread--split {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 100px 2rem 60px;
    max-width: none;
  }

  .spread--split .spread__visual {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--rule-light);
    padding-top: 32px;
  }

  .spread--essay {
    padding: 120px 0 60px;
  }

  .spread--compact {
    padding: 100px 0 48px;
  }

  .section {
    padding: 80px 0;
  }

  .section--vast {
    padding: 100px 0;
  }

  .display {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .headline {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }

  .morning-compare {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .prep-grid {
    grid-template-columns: 1fr;
  }

  .margin-grid {
    grid-template-columns: 1fr;
  }

  .margin-label {
    text-align: left;
    margin-bottom: 8px;
    padding-top: 0;
  }

  .schedule-row {
    grid-template-columns: 56px 1fr;
    gap: 0 16px;
  }

  .nav-toggle { display: block; }

  .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(245, 242, 239, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--rule-light);
    border-radius: var(--radius-lg);
    margin-top: 0.5rem;
    padding: 1rem;
    gap: 0.75rem;
  }

  .site-nav-links.open { display: flex; }

  .scroll-hint { display: none; }

  .belief { padding: 48px 0; }
}

@media (max-width: 480px) {
  .col-reading,
  .col-content,
  .col-wide,
  .col-full {
    padding: 0 1.25rem;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .schedule-time {
    margin-bottom: 4px;
  }

  .editorial-preview {
    padding: 32px 0;
  }
}
