@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");
/* Bay Brook Media — Webfonts
 * Newsreader (display serif), Hanken Grotesk (body sans), IBM Plex Mono (mono).
 * Loaded from Google Fonts. If you later want self-hosted binaries, swap these
 * @import lines for local @font-face rules pointing at files in /assets/fonts.
 */


/* Bay Brook Media — Color tokens
 * Coastal-editorial palette: warm sand neutrals, a cool "bay" blue-teal,
 * a warm "brook" clay, and a sea-glass green. All colors in oklch.
 * Accent 500s share ~L 0.58–0.66 / ~C 0.08–0.11 so they harmonize.
 */

:root {
  /* ---- Warm sand neutrals (backgrounds) ---- */
  --sand-50:  oklch(0.986 0.005 78);
  --sand-100: oklch(0.968 0.008 76);
  --sand-200: oklch(0.936 0.011 74);
  --sand-300: oklch(0.884 0.014 70);
  --sand-400: oklch(0.800 0.015 68);

  /* ---- Driftwood ink (foreground) ---- */
  --ink-900: oklch(0.235 0.013 62);
  --ink-800: oklch(0.320 0.014 62);
  --ink-700: oklch(0.430 0.014 64);
  --ink-600: oklch(0.520 0.013 65);
  --ink-500: oklch(0.600 0.012 66);

  /* Pure warm surface */
  --paper: oklch(0.995 0.003 80);

  /* ---- Bay: cool deep water (primary) ---- */
  --bay-900: oklch(0.300 0.058 226);
  --bay-800: oklch(0.375 0.072 224);
  --bay-700: oklch(0.455 0.088 222);
  --bay-600: oklch(0.525 0.096 221);
  --bay-500: oklch(0.585 0.100 220);
  --bay-400: oklch(0.685 0.082 217);
  --bay-300: oklch(0.785 0.058 214);
  --bay-200: oklch(0.885 0.034 211);
  --bay-100: oklch(0.945 0.020 209);

  /* ---- Brook: warm clay / terracotta (secondary) ---- */
  --clay-800: oklch(0.400 0.078 47);
  --clay-700: oklch(0.485 0.092 48);
  --clay-600: oklch(0.565 0.104 49);
  --clay-500: oklch(0.640 0.108 50);
  --clay-400: oklch(0.735 0.088 53);
  --clay-300: oklch(0.825 0.060 56);
  --clay-200: oklch(0.905 0.036 60);
  --clay-100: oklch(0.950 0.020 62);

  /* ---- Sea glass green (tertiary) ---- */
  --seaglass-700: oklch(0.480 0.062 166);
  --seaglass-500: oklch(0.660 0.078 165);
  --seaglass-300: oklch(0.820 0.052 165);
  --seaglass-100: oklch(0.945 0.024 165);

  /* ---- Semantic scales ---- */
  --success-500: oklch(0.620 0.090 158);
  --success-100: oklch(0.945 0.028 158);
  --warning-500: oklch(0.760 0.108 72);
  --warning-100: oklch(0.955 0.036 74);
  --danger-500:  oklch(0.560 0.150 26);
  --danger-100:  oklch(0.945 0.030 28);
  --info-500:    var(--bay-500);
  --info-100:    var(--bay-100);

  /* ================= Semantic aliases ================= */
  /* Surfaces */
  --bg:            var(--sand-50);
  --bg-subtle:     var(--sand-100);
  --surface:       var(--paper);
  --surface-sunken:var(--sand-100);
  --surface-inverse: var(--ink-900);

  /* Borders */
  --border:        var(--sand-300);
  --border-subtle: var(--sand-200);
  --border-strong: var(--sand-400);
  --border-focus:  var(--bay-500);

  /* Text */
  --text:          var(--ink-900);
  --text-secondary:var(--ink-700);
  --text-muted:    var(--ink-500);
  --text-inverse:  var(--sand-50);
  --text-on-accent:oklch(0.985 0.005 80);

  /* Brand accents */
  --primary:       var(--bay-700);
  --primary-hover: var(--bay-800);
  --primary-soft:  var(--bay-100);
  --accent-warm:   var(--clay-600);
  --accent-warm-hover: var(--clay-700);
  --accent-warm-soft:  var(--clay-100);
  --accent-green:  var(--seaglass-500);

  /* Links */
  --link:       var(--bay-700);
  --link-hover: var(--bay-900);
}

/* Bay Brook Media — Typography tokens
 * Editorial pairing: Newsreader (serif display, optical) + Hanken Grotesk (sans body).
 * IBM Plex Mono for labels, code, and data.
 */

:root {
  /* Families */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Type scale (1.20 minor-third-ish, editorial) */
  --text-xs:   0.75rem;   /* 12 */
  --text-sm:   0.875rem;  /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-md:   1.125rem;  /* 18 */
  --text-lg:   1.375rem;  /* 22 */
  --text-xl:   1.75rem;   /* 28 */
  --text-2xl:  2.25rem;   /* 36 */
  --text-3xl:  3rem;      /* 48 */
  --text-4xl:  4rem;      /* 64 */
  --text-5xl:  5.25rem;   /* 84 */

  /* Line heights */
  --leading-tight: 1.08;
  --leading-snug: 1.22;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-label: 0.14em;  /* uppercase eyebrow labels */

  /* Semantic roles */
  --font-heading: var(--font-display);
  --font-eyebrow: var(--font-mono);
}

/* Bay Brook Media — Spacing & layout tokens (4px base) */

:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container-sm: 640px;
  --container-md: 896px;
  --container-lg: 1120px;
  --container-xl: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 128px);
}

/* Bay Brook Media — Effects: radii, shadows, motion.
 * Shadows are soft and cool-tinted (deep-water blue), never harsh black.
 */

:root {
  /* Corner radii — soft coastal, not pill-everything */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;

  /* Shadows — cool blue-grey tint */
  --shadow-xs: 0 1px 2px rgba(28, 42, 58, 0.06);
  --shadow-sm: 0 2px 6px -1px rgba(28, 42, 58, 0.08);
  --shadow-md: 0 6px 16px -4px rgba(28, 42, 58, 0.11);
  --shadow-lg: 0 16px 36px -10px rgba(28, 42, 58, 0.15);
  --shadow-xl: 0 28px 60px -16px rgba(28, 42, 58, 0.20);

  /* Focus ring */
  --ring: 0 0 0 3px oklch(0.585 0.100 220 / 0.32);

  /* Motion — calm, tide-like easing */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --dur-fast: 130ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
}

/* Bay Brook Media — Base resets & element defaults.
 * The only global element styling in the system; everything else is tokens.
 */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--link-hover); }

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- baybrookmedia.com layout (tokens above come from BBMedia Design) ---- */

html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--container-lg); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--container-md); }
.muted { color: var(--text-muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-md); }
.skip:focus { left: 8px; z-index: 10; }
a:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
.eyebrow { margin-bottom: var(--space-3); }
.eyebrow.on-dark { color: var(--show-accent, var(--clay-300)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: oklch(0.986 0.005 78 / 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--space-4); }
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; color: var(--ink-900); line-height: 1; }
.wordmark span { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.wordmark b { font-weight: 600; color: var(--bay-700); }
.wordmark small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.wordmark:hover { color: var(--ink-900); }
.site-nav { display: flex; gap: var(--space-6); }
.site-nav a { color: var(--text-secondary); font-weight: 500; font-size: var(--text-sm); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 var(--space-6); border-radius: var(--radius-md);
  font-weight: 600; font-size: var(--text-sm); border: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--primary-hover); color: var(--text-on-accent); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--text); }
.btn-light { background: var(--sand-50); color: var(--ink-900); }
.btn-light:hover { background: var(--sand-200); color: var(--ink-900); }
.btn-outline-light { border-color: oklch(1 0 0 / 0.4); color: var(--sand-50); }
.btn-outline-light:hover { background: oklch(1 0 0 / 0.1); color: var(--sand-50); }
.text-link { font-weight: 600; font-size: var(--text-sm); }

/* Hero */
.hero { padding: clamp(72px, 12vw, 160px) 0 clamp(56px, 8vw, 104px); }
.hero-tight { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, var(--text-5xl)); letter-spacing: var(--tracking-tighter); max-width: 16ch; }
.hero-tight h1 { font-size: clamp(2.25rem, 5vw, var(--text-4xl)); max-width: 20ch; }
.lede { font-size: clamp(var(--text-md), 2vw, var(--text-lg)); color: var(--text-secondary); max-width: 40ch; margin-top: var(--space-6); line-height: var(--leading-snug); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-sunken { background: var(--bg-subtle); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section h2 { font-size: clamp(var(--text-xl), 4vw, var(--text-3xl)); margin-bottom: var(--space-10); }
.three-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-10); }
.three-up h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.three-up p:not(.eyebrow) { color: var(--text-secondary); }

/* Show cards */
.show-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-6); }
.show-card {
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.show-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.show-card-top { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-6); background: var(--show); color: var(--sand-50); }
.show-card-top:hover { color: var(--sand-50); }
.show-card-top img { width: 80px; height: 80px; border-radius: var(--radius-md); flex: none; box-shadow: 0 0 0 1px oklch(1 0 0 / 0.12); }
.show-card-top .eyebrow { margin-bottom: var(--space-1); }
.show-card-top h3 { color: var(--sand-50); font-size: var(--text-xl); }
.show-card-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.show-card-body > p:first-child { font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-snug); }
.latest { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); background: var(--bg-subtle); border-radius: var(--radius-md); }
.latest .eyebrow { margin: 0; }
.latest a { color: var(--text); font-weight: 600; }
.latest a:hover { color: var(--link); }
.show-card-body .text-link { margin-top: auto; }

/* Partner band */
.band { background: var(--bay-900); color: var(--sand-50); padding: clamp(56px, 8vw, 96px) 0; }
.band h2 { color: var(--sand-50); font-size: clamp(var(--text-xl), 4vw, var(--text-3xl)); max-width: 20ch; }
.band-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }

/* Show page */
.show-hero { background: var(--show); color: var(--sand-50); padding: clamp(56px, 9vw, 120px) 0; }
.show-hero-row { display: flex; align-items: center; gap: clamp(24px, 5vw, 64px); }
.show-hero img { width: clamp(120px, 20vw, 200px); height: auto; border-radius: var(--radius-xl); flex: none; box-shadow: var(--shadow-xl), 0 0 0 1px oklch(1 0 0 / 0.12); }
.show-hero h1 { color: var(--sand-50); font-size: clamp(2.5rem, 6vw, var(--text-5xl)); letter-spacing: var(--tracking-tighter); }
.show-hero .lede { color: oklch(0.93 0.01 80 / 0.85); }
.big { font-family: var(--font-display); font-size: clamp(var(--text-lg), 2.6vw, var(--text-2xl)); line-height: var(--leading-snug); }
.points { list-style: none; padding: 0; margin: var(--space-12) 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.points li { border-top: 2px solid var(--clay-400); padding-top: var(--space-4); }
.points h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.points p { color: var(--text-secondary); }
.latest-card {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6);
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-base) var(--ease-out);
}
.latest-card:hover { box-shadow: var(--shadow-md); color: var(--text); }
.latest-card .eyebrow { margin: 0; }
.latest-card strong { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: var(--leading-snug); }
.others { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.other-show { display: inline-flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); color: var(--text); font-weight: 600; }
.other-show img { width: 40px; height: 40px; border-radius: var(--radius-full); }

/* Partners / about / legal */
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.two-col h2 { font-size: var(--text-xl); margin: 0 0 var(--space-4); }
.two-col h2 + ul { margin-bottom: var(--space-12); }
.plain-list { padding-left: 1.1em; display: grid; gap: var(--space-3); color: var(--text-secondary); }
.plain-list strong { color: var(--text); }
.contact-card { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); position: sticky; top: 92px; }
.contact-card p:not(.eyebrow) { color: var(--text-secondary); margin-bottom: var(--space-6); }
.show-list { list-style: none; padding: 0; margin: 0 0 var(--space-8); display: grid; gap: var(--space-2); }
.show-list .muted { font-size: var(--text-sm); }
.prose p { margin-bottom: var(--space-5); line-height: var(--leading-relaxed); }
.prose p.big { line-height: var(--leading-snug); margin-bottom: var(--space-8); }
.prose h2 { font-size: var(--text-xl); margin: var(--space-10) 0 var(--space-3); }

/* Footer */
.site-footer { background: var(--ink-900); color: var(--sand-300); padding: var(--space-16) 0 var(--space-8); }
.site-footer .wordmark, .site-footer .wordmark:hover { color: var(--sand-50); }
.site-footer .wordmark b { color: var(--bay-300); }
.site-footer .wordmark small, .site-footer .eyebrow, .site-footer .muted { color: var(--ink-500); }
.site-footer .muted { margin-top: var(--space-4); max-width: 28ch; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-8); }
.footer-grid > div { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.footer-grid a:not(.wordmark) { color: var(--sand-300); font-size: var(--text-sm); }
.footer-grid a:not(.wordmark):hover { color: var(--sand-50); }
.legal-line { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--ink-800); font-size: var(--text-xs); color: var(--ink-500); }

@media (max-width: 760px) {
  .show-hero-row { flex-direction: column; align-items: flex-start; }
  .two-col { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-nav { gap: var(--space-4); }
  .show-card-top img { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
