/* ─────────────────────────────────────────────────────────────
   BLOGZILLA — Design System v1
   Editorial Tech / Confident Yellow
   ───────────────────────────────────────────────────────────── */

/* ── 1. Tokens ──────────────────────────────────────────────── */
:root {
  /* Brand */
  --bz-yellow:      #FFD60A;
  --bz-yellow-hi:   #FFE556;
  --bz-yellow-lo:   #E5BB00;
  --bz-ink:         #0F0F10;
  --bz-ink-2:       #1E1E22;
  --bz-paper:       #FFFFFF;
  --bz-cream:       #FBF7EE;
  --bz-cream-2:     #F3ECD7;
  --bz-cream-3:     #EBE3CC;
  --bz-moss:        #1F5C3A;
  --bz-moss-tint:   #E0EBDF;
  --bz-coral:       #E5533F;
  --bz-coral-tint:  #FCE4DE;
  --bz-muted:       #6D6D72;
  --bz-muted-2:     #9A9A9F;
  --bz-border:      #E8E0CC;
  --bz-border-strong: #1F1F22;

  /* Type */
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'JetBrains Mono', monospace;

  /* Spacing — 4pt base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 48px; --s-9: 64px; --s-10: 96px;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-soft: 0 1px 0 rgba(15,15,16,.05), 0 8px 24px rgba(15,15,16,.06);
  --shadow-lift: 0 1px 0 rgba(15,15,16,.06), 0 18px 40px rgba(15,15,16,.10);
  --stamp:        4px  4px 0 var(--bz-ink);
  --stamp-yellow: 4px  4px 0 var(--bz-yellow);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ── 2. Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bz-cream);
  color: var(--bz-ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

::selection { background: var(--bz-yellow); color: var(--bz-ink); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

/* ── 3. Type scale ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bz-ink);
  background: var(--bz-cream-2);
  border: 1px solid var(--bz-border);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bz-ink); }
.eyebrow.yellow { background: var(--bz-yellow); border-color: var(--bz-ink); }
.eyebrow.yellow .dot { background: var(--bz-ink); }
.eyebrow.ink { background: var(--bz-ink); color: var(--bz-cream); border-color: var(--bz-ink); }
.eyebrow.ink .dot { background: var(--bz-yellow); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 132px);
  line-height: .92;
  letter-spacing: -.035em;
  font-variation-settings: 'wdth' 100, 'opsz' 96;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: .96;
  letter-spacing: -.03em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px; line-height: 1.1;
  letter-spacing: -.02em;
}
.body-lg { font-size: 19px; line-height: 1.5; color: var(--bz-ink-2); }
.body    { font-size: 16px; line-height: 1.6; color: var(--bz-ink-2); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--bz-muted); }
.caption { font-size: 12px; color: var(--bz-muted); }
.mono    { font-family: var(--font-mono); font-feature-settings: 'ss01'; }

.ink-yellow { color: var(--bz-ink); background: var(--bz-yellow); padding: 0 .12em; box-decoration-break: clone; }
.dot-me { color: var(--bz-yellow-lo); }

/* ── 4. Layout ─────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
section { padding: var(--s-10) 0; position: relative; }
section.tight { padding: 64px 0; }

.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: flex-start; text-align: left; }

/* ── 5. Nav ────────────────────────────────────────────────── */
nav.bz-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 238, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--bz-border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 40px;
}
.bz-logo { display: flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.bz-logo img { height: 28px; width: auto; display: block; }
.bz-nav .links { display: flex; gap: 28px; list-style: none; }
.bz-nav .links a { font-size: 14px; font-weight: 500; color: var(--bz-ink-2); transition: color .15s; }
.bz-nav .links a:hover { color: var(--bz-ink); }
.bz-nav .actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ── 6. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--bz-ink); color: var(--bz-cream); }
.btn-primary:hover { background: var(--bz-ink-2); }

.btn-yellow {
  background: var(--bz-yellow); color: var(--bz-ink);
  border-color: var(--bz-ink);
  box-shadow: var(--stamp);
}
.btn-yellow:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bz-ink); }
.btn-yellow:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--bz-ink); }

.btn-outline { background: transparent; color: var(--bz-ink); border-color: var(--bz-border-strong); }
.btn-outline:hover { background: var(--bz-ink); color: var(--bz-cream); }

.btn-ghost { background: transparent; color: var(--bz-ink); padding: 11px 14px; }
.btn-ghost:hover { background: rgba(15,15,16,.06); }

.btn-lg { font-size: 15px; padding: 14px 24px; }
.btn-arrow svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

/* ── 7. Cards / Surfaces ───────────────────────────────────── */
.card {
  background: var(--bz-paper);
  border: 1px solid var(--bz-border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card.stamp { border-color: var(--bz-ink); box-shadow: var(--stamp); }
.card.cream { background: var(--bz-cream-2); }
.card.ink   { background: var(--bz-ink); color: var(--bz-cream); border-color: var(--bz-ink); }
.card.yellow{ background: var(--bz-yellow); border-color: var(--bz-ink); }

/* ── 8. Pills / Chips / Badges ─────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bz-cream-2);
  border: 1px solid var(--bz-border);
  color: var(--bz-ink);
}
.chip.moss  { background: var(--bz-moss-tint); color: var(--bz-moss); border-color: rgba(31,92,58,.2); }
.chip.coral { background: var(--bz-coral-tint); color: var(--bz-coral); border-color: rgba(229,83,63,.2); }
.chip.yellow{ background: var(--bz-yellow); color: var(--bz-ink); border-color: var(--bz-ink); }
.chip.ghost { background: transparent; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── 9. Inputs ─────────────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--bz-paper);
  border: 1.5px solid var(--bz-border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--bz-ink);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.input::placeholder { color: var(--bz-muted-2); }
.input:focus { border-color: var(--bz-ink); box-shadow: 0 0 0 4px rgba(255,214,10,.4); }

.field-label {
  display: block;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--bz-muted); margin-bottom: 8px;
}

/* ── 10. Decorative ──────────────────────────────────────── */
.hatch {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--bz-ink) 0 1px,
    transparent 1px 6px
  );
}
.dots-bg {
  background-image: radial-gradient(var(--bz-cream-3) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* zilla glyph - tiny monster eye */
.zilla {
  display: inline-block; vertical-align: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bz-ink); position: relative;
}
.zilla::after {
  content: ''; position: absolute; top: 2px; right: 2px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--bz-yellow);
}

/* ── Mobile safety additions ────────────────────────────── */
html, body { max-width: 100vw; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
.wrap { width: 100%; box-sizing: border-box; }

/* Nav: hamburger visible on mobile, links always hidden below 900px */
.bz-nav .mob-hamburger { display: none; }
@media (max-width: 900px) {
  .bz-nav .mob-hamburger { display: flex; }
  .bz-nav .links         { display: none; }
}

/* Typography: fluid clamp already set on display-xl/lg/md.
   Ensure display-sm scales on very small screens.  */
@media (max-width: 480px) {
  .display-sm { font-size: clamp(20px, 6vw, 28px); }
  .body-lg    { font-size: 17px; }
}
