@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Tenor+Sans&family=DM+Mono:wght@400;500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Italiana&family=Archivo:wght@400;500;600;700;800;900&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');
/* Three aesthetic directions as scoped theme classes.
   Applied per artboard so all three render correctly side-by-side. */

/* ─── DIRECTION A — Editorial Mag ──────────────────────────────────── */
.theme-editorial {
  --bg: #f5f1ea;
  --bg-alt: #ebe5da;
  --ink: #1a1714;
  --ink-soft: #5c544a;
  --ink-faint: #9a9085;
  --rule: #d8d0c2;
  --accent: #7c2d2d;          /* deep brick */
  --accent-soft: #c1a98c;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Tenor Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'IBM Plex Mono', monospace;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}
.theme-editorial .display { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; }
.theme-editorial .display-italic { font-family: var(--font-display); font-style: italic; font-weight: 300; }
.theme-editorial .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

/* ─── DIRECTION B — Warm Filmic ────────────────────────────────────── */
.theme-filmic {
  --bg: #ebe1cc;
  --bg-alt: #e0d3b8;
  --ink: #2a1d10;
  --ink-soft: #6b5238;
  --ink-faint: #a48d6e;
  --rule: #c9b994;
  --accent: #8b3a1f;          /* warm rust */
  --accent-soft: #d4a574;
  --font-display: 'Italiana', 'Cormorant Garamond', serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-mono: 'DM Mono', monospace;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
.theme-filmic .display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.theme-filmic .display-italic { font-family: 'Crimson Pro', serif; font-style: italic; font-weight: 400; }
.theme-filmic .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.theme-filmic .grain { position: relative; }
.theme-filmic .grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Theme-aware hero overlay — top vignette plus a soft fade into whatever
   surface sits below the hero. Cream stop in light mode, espresso in dark
   mode, so D's hero doesn't end in a cream stripe over the dark body. */
.theme-filmic .tp-hero-overlay { background: linear-gradient(to bottom,
  rgba(42,29,16,.18) 0%, rgba(42,29,16,0) 30%,
  rgba(42,29,16,0) 70%, rgba(235,225,204,.4) 100%); }

/* ─── DIRECTION D — Filmic Noir (B layout, dark palette) ───────────── */
/* Applied as a parent override so we don't have to clone every B page.
   `<div class="filmic-noir">` wraps the existing .theme-filmic markup and
   re-points its CSS custom properties to the dark palette. */
.filmic-noir .theme-filmic {
  --bg: #0a0908;
  --bg-alt: #14110d;
  --ink: #ffffff;               /* pure white — matches the logo */
  --ink-soft: #c8c6c1;           /* cool neutral gray */
  --ink-faint: #6e6c66;
  --rule: #2a2724;
  --accent: #d4a574;            /* soft champagne — warmer than C's gold */
  background: var(--bg);
  color: var(--ink);
}
.filmic-noir .theme-filmic .grain::after { opacity: 0.12; mix-blend-mode: screen; }
/* Dark mode wants slightly heavier grain to look properly filmic. */
.filmic-noir .theme-filmic .tp-hero-overlay { background: linear-gradient(to bottom,
  rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 25%,
  rgba(10,9,8,0) 60%, rgba(10,9,8,.95) 100%); }

/* Logo image — `logo-white.png` is transparent white. On dark surfaces it
   shows as-is; on cream surfaces (B · Warm Filmic) we invert to black ink. */
.theme-filmic .tp-logo-img { filter: invert(1); }
.filmic-noir .theme-filmic .tp-logo-img { filter: none; }

/* ─── DIRECTION C — Cinematic Noir ─────────────────────────────────── */
.theme-cinematic {
  --bg: #0c0b09;
  --bg-alt: #181612;
  --ink: #f3ede0;
  --ink-soft: #a39c8c;
  --ink-faint: #5a554c;
  --rule: #2a2620;
  --accent: #c9a96e;          /* champagne gold */
  --accent-soft: #8a7651;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-display-italic: 'Cormorant Garamond', serif;
  --font-mono: 'DM Mono', monospace;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}
.theme-cinematic .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
.theme-cinematic .display-italic { font-family: var(--font-display-italic); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.theme-cinematic .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }

/* ─── Shared building blocks (scoped via theme parent) ─────────────── */
.tp-art { box-sizing: border-box; width: 100%; height: 100%; overflow: hidden; position: relative; }
.tp-art *, .tp-art *::before, .tp-art *::after { box-sizing: border-box; }
.tp-scroll { width: 100%; height: 100%; overflow-y: auto; }

/* Navbar */
.tp-nav { display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px; position: relative; z-index: 5; }
.tp-nav-links { display: flex; gap: 32px; align-items: center; }
.tp-nav a { color: inherit; text-decoration: none; font-size: 13px; letter-spacing: 0.06em; }
.theme-cinematic .tp-nav a { color: var(--ink); }
.tp-nav-cta { padding: 10px 18px; border: 1px solid currentColor; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; background: transparent; color: inherit; font-family: inherit; }

/* Logo wordmark */
.tp-logo { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; line-height: 1; }
.theme-cinematic .tp-logo { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.34em; text-transform: uppercase; }
.tp-logo .ampersand { font-style: italic; }
.tp-logo-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; text-align: center; }

/* Buttons */
.tp-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.tp-btn.primary { background: var(--ink); color: var(--bg); }
.theme-cinematic .tp-btn.primary { background: var(--accent); color: #0c0b09; border-color: var(--accent); }

/* Rules */
.tp-hr { height: 1px; background: var(--rule); border: 0; margin: 0; }
.tp-hr-v { width: 1px; background: var(--rule); align-self: stretch; }

/* Image frames */
.tp-img { background: var(--bg-alt) center / cover no-repeat; position: relative; overflow: hidden; }
.tp-img-cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 0; }

/* Big number/index */
.tp-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-soft); }

/* Page chrome */
.tp-footer { padding: 80px 56px 36px; border-top: 1px solid var(--rule); background: var(--bg); margin-top: auto; }
.theme-cinematic .tp-footer { background: var(--bg); border-top-color: var(--rule); }


/* Static-build extras. */
body.static-page { margin: 0; background: var(--bg); color: var(--ink); }
body.static-page .tp-art { height: auto; overflow: visible; }
body.static-page .tp-scroll { height: auto; overflow: visible; }
body.static-page .filmic-noir, body.static-page .theme-filmic { min-height: 100vh; }