/* Warm Glass theme for inner pages (case studies, résumé).
   Ports the home page's look — paper + sunset glows, light Syne headings, soft card shadow,
   generous section spacing — on top of each page's own layout. Load LAST (after the inline <style>). */

:root {
  --paper-warm: #fcfcfa;
  --grad-text: linear-gradient(90deg, #e8740c 0%, #d6337a 55%, #b01e5c 100%);
  /* Card treatment = home's .w-quote / .w-case: hairline border + long soft shadow */
  --shot-border: 1px solid rgba(21, 17, 13, .06);
  --shot-radius: 24px;
  --elev-md: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 6px rgba(21, 17, 13, .04), 0 30px 60px -24px rgba(21, 17, 13, .22);
}

/* ── Background: plain paper (glows removed) ── */
html { background: var(--paper-warm); }
html { overflow-x: clip; }
body { position: relative; isolation: isolate; overflow-x: clip; background: var(--paper-warm); -webkit-font-smoothing: antialiased; }
/* ── Type: lighter Syne headings, amber eyebrow, roomier lede ── */
.hero h1 {
  font-weight: 500; font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.06; letter-spacing: -.026em; text-wrap: balance;
}
.hero .lede { font-size: 21px; line-height: 1.6; color: var(--ink-3); }
.cs-h2 { font-weight: 500; font-size: 44px; line-height: 1.12; letter-spacing: -.01em; }
.cs-h3 { font-weight: 600; letter-spacing: -.01em; }
.cs-h4 { font-weight: 600; }
.cs-intro, .research .cs-intro { color: var(--ink-3); }
.cs .eyebrow, .hero .eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: none;
  color: var(--orange-text); margin-bottom: 12px;
}
.cs .eyebrow::before, .hero .eyebrow::before { display: none; }
@media (max-width: 720px) {
  .cs-h2 { font-size: 32px; }
  .hero .lede { font-size: 18px; }
}

/* ── Spacing: no hairline dividers, home-like breathing room between sections ── */
.cs-section:not(.hero) { padding-block: 80px; border-top: 0; }
.cs-section.hero { padding-top: 96px; padding-bottom: 80px; }
@media (max-width: 720px) {
  .cs-section:not(.hero) { padding-block: 56px; }
  .cs-section.hero { padding-top: 56px; padding-bottom: 56px; }
}

/* ── Side nav: 40px from the screen edge, outside the main content, revealed after the hero ── */
.cs-shell { gap: 0; width: 100%; max-width: 1280px; margin-inline: auto; padding: 0 32px; }   /* same 1280 box + 32px padding as the home page, centred */
.cs-shell > .cs { flex: 1 1 0; min-width: 0; max-width: 1100px; margin: 0 auto; }   /* auto side margins: a narrower max-width stays centred, never pinned left */
.cs-sidenav-spacer { display: none; }
.cs-sidenav {
  /* Floats over the left margin, fully out of the flow, so the content box stays exactly centred. */
  position: fixed; top: 96px; left: 24px; z-index: 5;
  width: 160px; max-width: 160px; box-sizing: border-box; margin: 0; padding: 16px 8px;
  align-self: auto; flex: none;
  opacity: 0; visibility: hidden; transform: translateX(-12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.cs-sidenav.is-visible {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) { .cs-sidenav, .cs-sidenav.is-visible { transition: none; transform: none; } }
@media (max-width: 720px)  { .cs-shell { padding: 0 24px; } }

/* Compact rail: 12px labels, no leading numbers */
.cs-sidenav__eyebrow { margin-bottom: 8px; padding: 0 8px; font-size: 11px; }
.cs-sidenav__list { gap: 2px; }
.cs-sidenav__link { --btn-pad-y: 7px; --btn-pad-x: 8px; --btn-fs: 12px; font-size: 12px; line-height: 1.3; white-space: normal; text-align: left; }
.cs-sidenav__label { font-size: 12px; }

/* ── Résumé ── */
.hero h1 .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede b { font-weight: 600; }
.hero .role { color: var(--ink-3); font-weight: 500; }
.resume { border-top: 0; padding-top: 24px; margin-top: 0; }

/* Background glows removed site-wide. */
.cs-glows, .w-glows { display: none; }
