/* =============================================================
   danielchristopherfox.com — "Light"  (v3)
   Personal brand. Warm-paper editorial. One confident green,
   magenta as rare punctuation, an editorial serif italic for
   emphasis, and a Chladni cymatics field as the signature visual.
   Fully responsive. Visual-language axes are CSS vars so the
   Tweaks panel can re-skin without touching markup.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500;0,6..72,500&display=swap');

:root {
  /* ---- warm paper grounds (no cold white) ---- */
  --surround:  #E4DECF;            /* page behind the frame (home-only) */
  --bg:        #F7F2E8;            /* primary warm bone */
  --bg-2:      #EFE9DA;            /* deeper warm grey band */
  --dark:      #1A1712;            /* warm near-black closing band */

  /* ---- warm ink foreground ---- */
  --text:        #1F1C15;
  --head:        #2A261D;          /* home-only heading ink */
  --text-muted:  rgba(31,28,21,0.74);
  --text-soft:   rgba(31,28,21,0.54);
  --text-faint:  rgba(31,28,21,0.38);
  --border:      rgba(31,28,21,0.16);
  --border-soft: rgba(31,28,21,0.09);

  /* ---- cream foreground for the dark band (home-only) ---- */
  --cream:     #EFE7D6;
  --cream-dim: rgba(239,231,214,0.66);
  --cream-faint: rgba(239,231,214,0.36);

  /* ---- visual-language axes (Tweaks override these) ---- */
  --accent:    #2E7D46;            /* confident single green */
  --accent-2:  #C4347A;            /* magenta, rare punctuation */

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --ease:    cubic-bezier(.4, 0, .2, 1); /* home-only */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--surround);
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page { width: 100%; max-width: 1280px; margin: 0 auto; position: relative; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; margin: 0; color: var(--head); }
p { margin: 0; line-height: 1.65; }
a { color: inherit; text-decoration: none; }

.eyebrow { font-family: var(--font-body); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.22em; }

/* ---- emphasized words render identically to surrounding text (no type signal) ---- */
.emph { font: inherit; color: inherit; font-style: inherit; font-weight: inherit; letter-spacing: inherit; }

/* ---- section scaffold ---- */
section { position: relative; }
.inner { position: relative; z-index: 2; padding: 0 clamp(22px, 6vw, 120px); }

/* ---- nav ---- */
.nav { display: flex; align-items: center; justify-content: space-between; height: clamp(84px, 11vw, 128px); }
.word { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.word b { color: var(--accent); }
.navtoggle { display: none; background: none; border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 9px 16px; cursor: pointer; }
.navlinks { display: flex; gap: clamp(20px, 3vw, 48px); }
.navlinks a { font-size: 15px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.10em; transition: color .2s var(--ease); }
.navlinks a:hover, .navlinks a.active { color: var(--accent); }

/* ---- hero ---- */
.hero { background: var(--bg); }
.hero .inner { padding-bottom: clamp(72px, 12vw, 168px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 6vw, 96px); align-items: center;
  padding-top: clamp(28px, 6vw, 80px); }
.hero-copy .eyebrow { color: var(--accent-2); display: block; }
.hero h1 { margin-top: clamp(28px, 4vw, 56px); font-size: clamp(46px, 8.2vw, 104px); line-height: 0.98; letter-spacing: -0.04em; }
.hero h1 .emph { white-space: nowrap; }
.hero p.sub { margin-top: clamp(28px, 3.4vw, 52px); max-width: 540px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; color: var(--text-muted); font-weight: 400; }
.hero-now { display: flex; align-items: center; gap: 12px; margin-top: clamp(28px, 3.2vw, 48px);
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-soft); }
.hero-now .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.hero-now .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent);
  opacity: .5; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .55; } 70%,100% { transform: scale(1.6); opacity: 0; } }

/* ---- hero portrait ---- */
.hero-portrait { position: relative; }
.hero-portrait image-slot { display: block; width: 100%; aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px -30px rgba(31,28,21,0.5); }
.portrait-cap { display: block; margin-top: 16px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }

/* ---- section heading block ---- */
.lead { display: flex; align-items: baseline; gap: 22px; padding-top: clamp(80px, 12vw, 168px); margin-bottom: clamp(48px, 7vw, 96px); }
.lead-no { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent); letter-spacing: 0.04em; }
.lead h2 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.035em; }

/* ---- building / Entuned ---- */
.building { background: var(--bg-2); }
.building .inner { padding-bottom: clamp(80px, 12vw, 184px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature .logo { height: 30px; margin-bottom: 32px; opacity: .9; }
.feature h3 { font-size: clamp(38px, 4.6vw, 52px); margin-bottom: 26px; }
.feature p { color: var(--text-muted); font-size: clamp(17px, 1.4vw, 20px); font-weight: 400; max-width: 480px; line-height: 1.7; }
.meta-row { display: flex; flex-wrap: wrap; gap: 36px 56px; margin-top: clamp(36px, 4vw, 56px); }
.meta-row .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); }
.meta-row .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1; margin-top: 10px; letter-spacing: -0.02em; color: var(--head); }

/* ---- cymatics plate ---- */
.plate { margin: 0; position: relative; aspect-ratio: 1 / 1; width: 100%;
  background: radial-gradient(120% 120% at 50% 40%, rgba(31,28,21,0.035), transparent 70%);
  border: 1px solid var(--border-soft); }
.plate .cymatics { display: block; width: 100%; height: 100%; --cy-ink: var(--accent); }
.plate figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  padding: 16px 18px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft);
  border-top: 1px solid var(--border-soft); }
.plate .state { color: var(--accent); font-weight: 600; }

/* ---- full-bleed photo break (rhythm) ---- */
.break { position: relative; margin-top: 0; background: var(--dark); }
.break image-slot { display: block; width: 100%; height: clamp(320px, 56vh, 560px); position: relative; z-index: 1; }
.break::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(75deg, rgba(20,18,14,0.78), rgba(20,18,14,0.34) 46%, rgba(20,18,14,0) 72%); }
.break-line { position: absolute; left: 0; bottom: 0; z-index: 3; max-width: 760px; margin: clamp(22px, 6vw, 56px);
  font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 3vw, 38px); line-height: 1.18;
  color: var(--cream); text-shadow: 0 2px 30px rgba(0,0,0,0.55); }

/* ---- track record (timeline) ---- */
.track { background: var(--bg); }
.track .inner { padding-bottom: clamp(80px, 12vw, 184px); }
.row { display: grid; grid-template-columns: 128px 1.3fr 1fr 0.9fr 84px; gap: clamp(18px, 2.4vw, 36px); align-items: center;
  padding: clamp(30px, 3.6vw, 48px) 0; border-bottom: 1px solid var(--border); transition: transform .28s var(--ease); }
.row:first-child { border-top: 1px solid var(--border); }
.row:hover { transform: translateX(14px); }
.row .yr { font-size: 14px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.row .nm { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; }
.row .rl { color: var(--text-muted); font-size: 17px; }
.row .nt { color: var(--text-soft); font-size: 15px; font-weight: 400; }
.row .tag { justify-self: end; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.row .tag.live { color: var(--accent); font-weight: 700; }

/* ---- writing ---- */
.writing { background: var(--bg-2); }
.writing .inner { padding-bottom: clamp(80px, 12vw, 184px); }
.warl { display: grid; grid-template-columns: 1fr auto; gap: 24px 36px; align-items: center; padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--border-soft); transition: transform .28s var(--ease); }
.warl:first-child { border-top: 1px solid var(--border-soft); }
.warl:hover { transform: translateX(14px); }
.warl:hover .wt { color: var(--accent); }
.warl .wt { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.4vw, 30px); letter-spacing: -0.02em; transition: color .2s var(--ease); }
.warl .wm { font-size: 13px; color: var(--text-soft); letter-spacing: 0.05em; white-space: nowrap; }

/* ---- contact (dark closing band) ---- */
.contact { background: var(--dark); color: var(--cream); }
.contact .inner { padding-top: clamp(80px, 12vw, 168px); padding-bottom: clamp(56px, 8vw, 96px); }
.contact-eye { color: var(--accent); display: block; margin-bottom: clamp(28px, 4vw, 48px); }
.contact h2 { color: var(--cream); font-size: clamp(48px, 8.4vw, 108px); line-height: 0.95; letter-spacing: -0.04em; }
.contact .mail { display: inline-block; margin-top: clamp(36px, 5vw, 64px); font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px); padding-bottom: 12px; color: var(--cream);
  border-bottom: 3px solid var(--accent-2); transition: border-color .25s var(--ease), color .25s var(--ease); }
.contact .mail:hover { border-bottom-color: var(--accent); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px) clamp(22px, 6vw, 120px) clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(239,231,214,0.14); position: relative; z-index: 2; }
.footer .l { display: flex; flex-wrap: wrap; gap: 36px; }
.footer a { font-size: 13px; color: var(--cream-dim); transition: color .2s var(--ease); }
.footer a:hover { color: var(--cream); }
.footer .c { font-size: 12px; color: var(--cream-faint); }

/* ---- scroll reveal ---- */
.rev { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rev.in { opacity: 1; transform: none; }
.hero h1.rev { transition-delay: .06s; }
.hero p.sub.rev { transition-delay: .12s; }
.hero-now.rev { transition-delay: .18s; }
.rows .row.rev:nth-child(2) { transition-delay: .08s; }
.rows .row.rev:nth-child(3) { transition-delay: .16s; }
.warlist .warl.rev:nth-child(2) { transition-delay: .07s; }
.warlist .warl.rev:nth-child(3) { transition-delay: .14s; }
.warlist .warl.rev:nth-child(4) { transition-delay: .21s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 360px; }
  .hero-portrait image-slot { aspect-ratio: 16 / 11; }
  .feature { grid-template-columns: 1fr; }
  .plate { max-width: 480px; }
  .row { grid-template-columns: 92px 1fr; grid-auto-rows: auto; gap: 4px 18px; align-items: start; }
  .row .yr { grid-row: 1 / span 2; align-self: center; }
  .row .rl { font-size: 15px; }
  .row .nt { grid-column: 2; }
  .row .tag { grid-column: 2; justify-self: start; margin-top: 4px; }
  .row:hover, .warl:hover { transform: none; }
}
@media (max-width: 620px) {
  .navlinks { position: absolute; top: 72px; right: clamp(22px, 6vw, 120px); flex-direction: column; gap: 18px;
    background: var(--bg); padding: 22px 26px; border: 1px solid var(--border); box-shadow: 0 24px 50px -20px rgba(31,28,21,0.4);
    z-index: 30; display: none; }
  .nav.open .navlinks { display: flex; }
  .navtoggle { display: inline-block; }
  .warl { grid-template-columns: 1fr; gap: 6px; }
  .warl .wm { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .rev, .rev.in { opacity: 1; transform: none; transition: none; }
  .hero-now .dot::after { animation: none; }
}

/* =============================================================
   Static-site fallbacks for the photo placeholders.
   The design used drag-drop <image-slot> elements that only
   persist inside the Claude Design runtime. On the live static
   site we render intentional placeholders instead — drop real
   <img> tags in when the photography is ready.
   ============================================================= */

/* ---- hero portrait ---- */
.hero-portrait .portrait-img {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center 22%;
  border: 1px solid var(--border-soft);
  box-shadow: 0 30px 70px -30px rgba(31,28,21,0.5);
}

/* ---- photo-break background panel (dark band carries the quote) ---- */
.break .break-bg {
  display: block; width: 100%; height: clamp(320px, 56vh, 560px);
  position: relative; z-index: 1;
  background:
    radial-gradient(140% 120% at 78% 30%, rgba(46,125,70,0.16), transparent 60%),
    linear-gradient(120deg, #14110d, #211d16);
}

/* ---- "all writing" link beneath the selected list ---- */
.warl-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: clamp(28px, 3.4vw, 44px);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: 0.02em; color: var(--accent);
  transition: gap .2s var(--ease);
}
.warl-more:hover { gap: 14px; }

@media (max-width: 880px) {
  .hero-portrait .portrait-img { aspect-ratio: 16 / 11; }
}
