/* ============================================================
   Soapbox Science — design tokens
   Ported from the Claude Design project's design system
   (soapbox-science-design-system). Drop the licensed ITC Avant
   Garde Gothic webfont files into ../fonts/ using the filenames
   referenced below to upgrade past the fallback stack.
   ============================================================ */

:root {
  --sb-yellow-500:      #FDDD54;
  --sb-yellow-600:      #F7CC2E;
  --sb-yellow-100:      #FFF6D6;

  --sb-navy-900:        #1F2B42;
  --sb-navy-800:        #283651;
  --sb-navy-700:        #3A4A68;

  --sb-purple-500:      #B876D1;
  --sb-purple-600:      #A15FC0;
  --sb-purple-100:      #F2E4F7;

  --sb-skyblue-400:     #AADBEA;
  --sb-skyblue-200:     #C5E7F1;
  --sb-skyblue-100:     #E0F9FF;

  --sb-white:           #FFFFFF;
  --sb-black:           #000000;

  --color-bg-page:          var(--sb-yellow-500);
  --color-bg-surface:       var(--sb-white);
  --color-bg-surface-tint:  var(--sb-yellow-100);
  --color-bg-inverse:       var(--sb-navy-800);

  --color-text-primary:     var(--sb-navy-800);
  --color-text-secondary:   var(--sb-navy-700);
  --color-text-on-navy:     var(--sb-white);
  --color-text-accent:      var(--sb-purple-500);

  --color-cta-bg:           var(--sb-navy-800);
  --color-cta-bg-hover:     var(--sb-navy-900);
  --color-cta-text:         var(--sb-white);

  /* Fonts: local webfont first, 'Century Gothic'/Futura fallback
     (the same fallback the original design system specifies). */
  --font-family-base:    'SB Avant Garde Bk',   'Century Gothic', Futura, sans-serif;
  --font-family-demi:    'SB Avant Garde Demi', 'Century Gothic', Futura, sans-serif;
  --font-family-bold:    'SB Avant Garde Bold', 'Century Gothic', Futura, sans-serif;

  --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;

  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 28px; --radius-pill: 999px;

  --border-width-default: 3px;

  --shadow-card: 0 6px 20px rgba(31, 43, 66, 0.12);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-standard: 200ms;

  --container-max: 1120px;

  --text-h3-size: 20px;
  --text-body-size: 16px;
}

@font-face {
  font-family: 'SB Avant Garde Bk';
  src: url('../fonts/ITCAvantGardeStd-Bk.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SB Avant Garde Demi';
  src: url('../fonts/ITCAvantGardeStd-Demi.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SB Avant Garde Bold';
  src: url('../fonts/ITCAvantGardeStd-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

body.soapbox-science-page {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 300;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}
.soapbox-science-page h1,
.soapbox-science-page h2,
.soapbox-science-page h3,
.soapbox-science-page h4 { font-family: var(--font-family-bold); font-weight: 700; margin: 0; }
.soapbox-science-page p { margin: 0; }
.soapbox-science-page a { color: var(--color-text-accent); text-decoration: underline; }
.soapbox-science-page a:hover { color: var(--sb-purple-600); }

.sb-navlink { color: #fff; text-decoration: none; font-family: var(--font-family-demi); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background 0.15s; }
.sb-navlink:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sb-bubble { position: absolute; border-radius: 50%; pointer-events: none; }
.sb-footlink { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 15px; }
.sb-footlink:hover { color: #fff; }

.sb-btn {
  font-family: var(--font-family-demi); font-weight: 600; border: none; border-radius: var(--radius-pill);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
  text-decoration: none;
}
.sb-btn:active { transform: scale(0.97); }
.sb-btn-lg { padding: 16px 36px; font-size: 18px; }
.sb-btn-primary { background: var(--color-cta-bg); color: var(--color-cta-text); }
.sb-btn-primary:hover { background: var(--color-cta-bg-hover); color: var(--color-cta-text); }
.sb-btn-outline { background: transparent; color: var(--color-text-primary); box-shadow: inset 0 0 0 var(--border-width-default) var(--sb-navy-800); }
.sb-btn-outline:hover { background: rgba(40,54,81,0.06); }

.sb-event-info { display: flex; flex-direction: column; gap: 4px; }
.sb-event-info .sb-event-date { font-family: var(--font-family-demi); font-weight: 600; font-size: var(--text-h3-size); color: var(--sb-navy-800); }
.sb-event-info .sb-event-location { font-family: var(--font-family-demi); font-weight: 600; font-size: var(--text-body-size); color: var(--sb-purple-500); }
.sb-event-info .sb-event-note { font-family: var(--font-family-base); font-weight: 300; font-size: var(--text-body-size); color: var(--sb-navy-800); }

.sb-sponsor-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.sb-sponsor-row span { font-family: var(--font-family-demi); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; color: var(--sb-navy-800); }

@media (max-width: 880px) {
  .sb-nav-links { display: none !important; }
  .sb-hero-grid { grid-template-columns: 1fr !important; }
  .sb-teaser-grid { grid-template-columns: 1fr !important; }
  .sb-foot-grid { grid-template-columns: 1fr !important; }
}
