/* Burst Their Bubble — stylesheet */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #5d5a55;
  --line: #e4dfd6;
  --accent: #e8402f;
  --accent-ink: #b52a1c;
  --accent-soft: #fde9e5;
  --radius: 14px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1b1b1b;
    --ink: #f3f0ea;
    --muted: #a8a39b;
    --line: #2d2b28;
    --accent: #ff5a47;
    --accent-ink: #ff8576;
    --accent-soft: #2c1714;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.7 var(--sans);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand em { font-style: normal; color: var(--accent); }
.brand span { white-space: nowrap; }
@media (max-width: 400px) { .brand { font-size: 1.15rem; gap: 8px; } .brand svg { width: 30px; height: 30px; } }

.nav-toggle { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; color: var(--ink);
    background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 9vw, 110px); border-bottom: 1px solid var(--line); }
.hero .container { position: relative; z-index: 1; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.page-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 6vw, 60px); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* Decorative bubbles */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles span { position: absolute; border-radius: 50%; border: 1.5px solid var(--line); }
.bubbles span:nth-child(1) { width: 380px; height: 380px; right: -60px; top: 40px; }
.bubbles span:nth-child(2) { width: 160px; height: 160px; right: 280px; top: 300px; }
.bubbles span:nth-child(3) { width: 90px; height: 90px; right: 120px; top: -20px; border-color: var(--accent); opacity: .5; }
.bubbles span:nth-child(4) { width: 220px; height: 220px; right: 40%; bottom: -120px; }
@media (max-width: 720px) { .bubbles span { opacity: .4; } .bubbles span:nth-child(2), .bubbles span:nth-child(4) { display: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.kicker { display: block; margin-bottom: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--accent); margin-bottom: 14px; display: block; }
.card p { color: var(--muted); margin: 0; }

/* Placeholder story cards */
.stories { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.story-skel { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.story-skel .thumb { aspect-ratio: 16 / 9; border-radius: 10px; background: repeating-linear-gradient(135deg, var(--surface) 0 12px, transparent 12px 24px); border: 1px solid var(--line); }
.story-skel .line { height: 12px; border-radius: 6px; background: var(--line); }
.story-skel .line.short { width: 40%; }
.story-skel .line.mid { width: 75%; }

.empty { text-align: center; padding: 40px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); margin-bottom: 40px; }
.empty h2 { font-size: 1.8rem; }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }

.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 24px 28px; margin-top: 2em; }
.callout p:last-child { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 28px 0; }
.site-footer p { margin: 0; }
.credit { background: #141414; color: #b9b4ac; font-size: .85rem; }
.credit .container { justify-content: center; gap: 12px; padding: 14px 0; }
.credit img { width: 140px; height: auto; }

@media (prefers-reduced-motion: reduce) { .badge::before { animation: none; } .btn { transition: none; } }
