/* =============================================================
   Parallax Thinking — Core tokens
   Colors, type, spacing, elevation, motion.
   Canonical source: parallax-brand-system skill + Magnat layer.
   ============================================================= */

/* Crimson Pro — the master headline serif. */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

/* =============================================================
   Neue Magnat Display — secondary display face.
   High-contrast contemporary display. Used for display posters,
   deck covers, and moments where Crimson Pro feels too editorial.
   Crimson Pro remains the default headline face.
   ============================================================= */
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-LightItalic.otf') format('opentype');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-RegularItalic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-MediumItalic.otf') format('opentype');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-SemiBoldItalic.otf') format('opentype');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-BoldItalic.otf') format('opentype');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-ExtraBold.otf') format('opentype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Magnat Display';
  src: url('./fonts/NeueMagnatDisplay-ExtraBoldItalic.otf') format('opentype');
  font-weight: 800; font-style: italic; font-display: swap;
}

/* =============================================================
   Faktum — the brand sans. Body, UI, logo wordmark.
   Weights: 400 (Regular), 500 (Medium), 600 (SemiBold).
   ============================================================= */
@font-face {
  font-family: 'Faktum';
  src: url('./fonts/Faktum-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Faktum';
  src: url('./fonts/Faktum-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Faktum';
  src: url('./fonts/Faktum-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* -------- Palette ------------------------------------------
     The full brand system is five colors. Do not introduce more.
     Names and hex values are canonical from the master skill.
     ----------------------------------------------------------- */

  --pt-deep-space:     #4A5469;   /* primary dark — text, dark bg, strong anchors */
  --pt-solar-gold:     #C49A2C;   /* accent only — a word, an underline, a hover */
  --pt-soft-stone:     #F7F5F1;   /* primary light — cards, content blocks */
  --pt-pale-lunar:     #8E929E;   /* secondary — supporting elements, dividers */
  --pt-off-pale-lunar: #EAEAEB;   /* site background — Soft Stone needs this */

  /* Derived (NOT new colors — just tints of the five above, kept
     for practical UI needs like borders and focused-input shells.
     If anything here starts to feel like a sixth color, reach for
     opacity on an existing token instead.) */
  --pt-deep-space-12:  rgba(74, 84, 105, 0.12);
  --pt-deep-space-06:  rgba(74, 84, 105, 0.06);
  --pt-pale-lunar-30:  rgba(142, 146, 158, 0.30);

  /* Convenience peach backdrop used *only* behind the Scott portrait. */
  --pt-photo-peach:    #FBE3D1;

  /* Back-compat aliases — older markup uses these names. */
  --pt-ink:            var(--pt-deep-space);
  --pt-gold:           var(--pt-solar-gold);
  --pt-cream:          var(--pt-soft-stone);
  --pt-page:           var(--pt-off-pale-lunar);

  /* -------- Semantic surfaces --------------------------------- */
  --bg:                var(--pt-off-pale-lunar);
  --surface:           var(--pt-soft-stone);
  --surface-alt:       var(--pt-soft-stone);
  --surface-ink:       var(--pt-deep-space);
  --surface-input:     color-mix(in oklch, var(--pt-soft-stone), var(--pt-pale-lunar) 12%);

  --fg1:               var(--pt-deep-space);   /* headings, primary text */
  --fg2:               var(--pt-deep-space);   /* body — same hue, voice carries it */
  --fg3:               var(--pt-pale-lunar);   /* meta, secondary, captions */
  --fg-on-ink:         var(--pt-soft-stone);   /* text on Deep Space */
  --fg-on-ink-soft:    color-mix(in oklch, var(--pt-soft-stone), var(--pt-pale-lunar) 40%);

  --accent:            var(--pt-solar-gold);

  --border:            var(--pt-pale-lunar-30);
  --border-strong:     var(--pt-pale-lunar);

  /* -------- Type ---------------------------------------------- */
  --font-serif:        'Newsreader', 'Georgia', 'Times New Roman', serif;
  --font-display-alt:  'Newsreader', 'Georgia', 'Times New Roman', serif;
  --font-sans:         'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Crimson Pro weight sweet spots:
       400 for lede-size and below
       500 for display & H1
       600 reserved for rare emphasis */
  --weight-headline:   500;
  --weight-body:       400;
  --weight-strong:     500;

  /* Type scale — editorial, generous. */
  --text-display-xl:   88px;   --lh-display-xl: 1.04;
  --text-display:      64px;   --lh-display:    1.06;
  --text-h1:           44px;   --lh-h1:         1.12;
  --text-h2:           32px;   --lh-h2:         1.18;
  --text-h3:           22px;   --lh-h3:         1.3;
  --text-lede:         19px;   --lh-lede:       1.55;
  --text-body:         16px;   --lh-body:       1.65;
  --text-small:        14px;   --lh-small:      1.55;
  --text-meta:         13px;   --lh-meta:       1.5;
  --text-micro:        11px;   --lh-micro:      1.4;

  /* Tracking — Crimson Pro likes a touch of negative at display sizes. */
  --tracking-display:  0;
  --tracking-h:        0;
  --tracking-body:     0;
  --tracking-micro:    0.08em;

  /* -------- Spacing (4pt base) ------------------------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* -------- Radii --------------------------------------------
     Cards are softly rounded but not pill. Inputs subtler. */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* -------- Elevation ---------------------------------------- */
  --shadow-none:    none;
  --shadow-whisper: 0 1px 0 rgba(74, 84, 105, 0.04);
  --shadow-card:    0 1px 2px rgba(74, 84, 105, 0.04),
                    0 4px 18px rgba(74, 84, 105, 0.04);
  --shadow-lifted:  0 2px 4px rgba(74, 84, 105, 0.06),
                    0 12px 32px rgba(74, 84, 105, 0.08);

  /* -------- Layout -------------------------------------------- */
  --container:      1080px;
  --container-read: 720px;
  --gutter:         var(--space-7);

  /* -------- Motion -------------------------------------------- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:       cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast:      120ms;
  --dur-base:      200ms;
  --dur-slow:      420ms;
}

/* =============================================================
   Semantic prose classes
   ============================================================= */

.pt-root {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.pt-display-xl,
.pt-display,
.pt-h1,
.pt-h2,
.pt-h3 {
  font-family: var(--font-serif);
  color: var(--fg1);
  font-weight: var(--weight-headline);
  margin: 0;
  text-wrap: pretty;
}

.pt-display-xl { font-size: var(--text-display-xl); line-height: var(--lh-display-xl); letter-spacing: var(--tracking-display); font-weight: 400; }
.pt-display    { font-size: var(--text-display);    line-height: var(--lh-display);    letter-spacing: var(--tracking-display); font-weight: 400; }
.pt-h1         { font-size: var(--text-h1);         line-height: var(--lh-h1);         letter-spacing: var(--tracking-h); }
.pt-h2         { font-size: var(--text-h2);         line-height: var(--lh-h2);         letter-spacing: var(--tracking-h); }
.pt-h3         { font-size: var(--text-h3);         line-height: var(--lh-h3);         letter-spacing: var(--tracking-h); }

/* Alternate display treatment using Neue Magnat.
   Use on poster-like surfaces (deck covers, hero moments) where
   a more contemporary, condensed display tone fits. */
.pt-display--magnat,
.pt-display-xl--magnat {
  font-family: var(--font-display-alt);
  font-weight: 400;
  letter-spacing: 0;
}
.pt-display-xl--magnat { font-weight: 300; }

.pt-lede {
  font-family: var(--font-sans);
  font-size: var(--text-lede);
  line-height: var(--lh-lede);
  color: var(--fg1);
  font-weight: 400;
}

.pt-body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--fg1);
}

.pt-small {
  font-size: var(--text-small);
  line-height: var(--lh-small);
  color: var(--fg1);
}

.pt-meta {
  font-size: var(--text-meta);
  line-height: var(--lh-meta);
  color: var(--fg3);
}

.pt-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  line-height: 1;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-micro);
  font-weight: 500;
}

/* Solar Gold as punctuation — ONE word, ONE underline, ONE hover.
   Never a background, never a fill. */
.pt-accent-word {
  color: var(--pt-solar-gold);
}
.pt-accent-underline {
  text-decoration: underline;
  text-decoration-color: var(--pt-solar-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.pt-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-standard);
}
.pt-link:hover { color: var(--pt-solar-gold); }
