/* =============================================================
   Augmented Me · Levels Journey · Shared Design Tokens
   Locked 2026-04-25. Every section wireframe imports this file.
   Style direction: Path C Hybrid.
   Modern Inter type, embedded hand-drawn cartoons, per-level accents.
   ============================================================= */

/* Hide wireframe-mode dev UI — site is presentation now, not dev tool.
   To restore for standalone wireframe inspection, comment this block. */
.wf-bar,
nav.nav,
aside.side-notes,
aside.wf-notes,
aside.sec-meta,
aside.bc-sidebar,
.scroll-cue { display: none !important; }
body { min-height: auto !important; }

/* Gradient emphasis on key phrases inside headlines.
   Scoped to headline elements so existing <em> usage in stats / source
   labels is untouched. Pink-to-gold gradient matches L3's accent. */
h1 em, h2 em, .h1 em, .h2 em, .lead em, .trap-lead em {
  font-style: normal;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tully quote — section-end speech bubble. Dimensions match L3's
   .callout-tully/.callout-bubble exactly for site-wide visual consistency. */
.tully-quote {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  max-width: 880px;
}
.tully-quote .tully-avatar {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(13, 16, 32, 0.18));
}
.tully-bubble {
  position: relative;
  flex: 1 1 auto;
  background: #ffffff;
  border: 1px solid rgba(13, 16, 32, 0.14);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1rem;
  box-shadow: 0 12px 32px -16px rgba(13, 16, 32, 0.22);
}
/* Speech bubble tail pointing left to Tully — same proportions as L3 */
.tully-bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 14px 12px 0;
  border-color: transparent rgba(13, 16, 32, 0.14) transparent transparent;
}
.tully-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 13px 11px 0;
  border-color: transparent #ffffff transparent transparent;
}
.tully-bubble p {
  margin: 0;
  font-style: italic;
  color: #353a55;
  font-size: 1.05rem;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .tully-quote { gap: 1rem; }
  .tully-quote .tully-avatar { width: 110px; height: 110px; }
  .tully-bubble::before, .tully-bubble::after { display: none; }
  .tully-bubble p { font-size: 0.95rem; }
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&family=Special+Elite&family=Caveat:wght@500;600;700&display=swap');

:root {
  /* ----- Type families ----- */
  --font-body:        'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:        'JetBrains Mono', ui-monospace, monospace;
  --font-typewriter:  'Special Elite', 'JetBrains Mono', monospace;
  --font-accent:      'Caveat', cursive;

  /* ----- Neutrals ----- */
  --ink:          #0d1020;
  --ink-soft:     #353a55;
  --muted:        #6b7189;
  --bg:           #f6f8fd;
  --bg-soft:      #ecf0fb;
  --bg-cream:     #fbf8f1;
  --bg-paper:     #f5efe2;
  --line:         rgba(13, 16, 32, 0.08);
  --line-strong:  rgba(13, 16, 32, 0.14);
  --white:        #ffffff;

  /* ----- Brand accents ----- */
  --accent:       #4f46e5;
  --accent-soft:  #a5b4fc;
  --claude:       #f59e0b;

  /* ----- Per-level palette (pyramid base to apex) ----- */
  --l1: #f5c144;   /* warm yellow.   Single-app AI.   accessible to all */
  --l2: #d87b3a;   /* terracotta.    Chatbots */
  --l3: #c84d6e;   /* rose.          Building things */
  --l4: #7c4d9e;   /* purple.        AI as a team */
  --l5: #3a4d6e;   /* dusk.          Autonomous */

  /* ----- Ensemble category palette (Section 4 cast) ----- */
  --cat-orch:     #f59e0b;
  --cat-research: #0ea5e9;
  --cat-image:    #f5e05c;
  --cat-video:    #ec4899;
  --cat-ship:     #4f46e5;
  --cat-data:     #10b981;

  /* ----- Spacing scale (4px base, doubling) ----- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* ----- Type scale (fluid) ----- */
  --t-display:  clamp(3.5rem, 8vw, 6rem);
  --t-h1:       clamp(2.25rem, 5vw, 3.5rem);
  --t-h2:       clamp(1.75rem, 3.5vw, 2.5rem);
  --t-h3:       1.5rem;
  --t-h4:       1.25rem;
  --t-body:     1.125rem;
  --t-small:    0.875rem;
  --t-tiny:     0.72rem;

  /* ----- Radii ----- */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* ----- Shadows ----- */
  --shadow-sm:        0 1px 3px rgba(13, 16, 32, 0.06), 0 1px 2px rgba(13, 16, 32, 0.04);
  --shadow-md:        0 4px 10px rgba(13, 16, 32, 0.08), 0 2px 4px rgba(13, 16, 32, 0.04);
  --shadow-lg:        0 12px 40px rgba(13, 16, 32, 0.12), 0 4px 12px rgba(13, 16, 32, 0.06);
  --shadow-cartoon:   4px 4px 0 rgba(13, 16, 32, 0.14);

  /* ----- Motion ----- */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 0.18s;
  --d-med:  0.4s;
  --d-slow: 0.8s;

  /* ----- Layout ----- */
  --container-width: min(1200px, 92vw);
  --reading-width:   min(720px, 92vw);
  --bar-height:      40px;
}

/* =============================================================
   Base resets and body
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
h1 { font-size: var(--t-h1); font-weight: 900; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }

p { margin: 0; }
a { color: var(--accent); text-decoration: none; }

/* =============================================================
   Wireframe preview bar (top of every section)
   ============================================================= */
.wf-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-height);
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-5);
  z-index: 200;
  font-size: var(--t-tiny);
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.wf-bar a       { color: var(--accent-soft); text-decoration: none; }
.wf-bar a:hover { color: var(--white); }
.wf-label {
  background: var(--accent);
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}

/* =============================================================
   Common patterns reused across sections
   ============================================================= */

/* Container */
.container { width: var(--container-width); margin: 0 auto; }
.reading   { width: var(--reading-width);  margin: 0 auto; }

/* Cartoon panel. Cream paper, soft border, cartoon shadow. */
.panel-cartoon {
  background: var(--bg-cream);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-cartoon);
  padding: var(--s-6);
}

/* Modern card. Clean white, soft shadow, no cartoon edge. */
.card-modern {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: var(--s-5);
}

/* Per-level accent helpers. Apply to a chip, badge, or border. */
.accent-l1 { --level-color: var(--l1); }
.accent-l2 { --level-color: var(--l2); }
.accent-l3 { --level-color: var(--l3); }
.accent-l4 { --level-color: var(--l4); }
.accent-l5 { --level-color: var(--l5); }

.level-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--level-color) 15%, transparent);
  color: var(--level-color);
  font-weight: 700;
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hand-drawn accent text. Use sparingly for callouts. */
.accent-handwriting {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink-soft);
  transform: rotate(-2deg);
  display: inline-block;
}

/* Typewriter accent. Use for prompt slips and meta moments. */
.accent-typewriter {
  font-family: var(--font-typewriter);
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* Kicker. Small uppercase label that tops a section. */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============================================================
   Reduced motion preference
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
