/* Self-hosted fonts (OFL-licensed, from Google Fonts). No external requests. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-VF.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-VF.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ============================================================
   simonpoulton.com — style.css (Design System v1)
   Plain CSS, no build step. Edit freely.
   Palette: canvas #FBF9FF / ink #1E1433 / violet #6D28D9
            coral #F43F5E / teal #0D9488
   Type: Bricolage Grotesque (display), Inter (body),
         IBM Plex Mono (labels)
   ============================================================ */

:root {
  --bg: #FBF9FF;
  --surface: #FFFFFF;
  --ink: #1E1433;
  --ink-soft: #3d3355;
  --ink-faint: #8a80a8;
  --primary: #6D28D9;
  --primary-deep: #4C1D95;
  --primary-tint: #EFE9FB;
  --accent: #F43F5E;
  --pop: #0D9488;
  --line: #E5E0F2;
  --radius: 20px;
  --shadow: 0 2px 12px rgba(30, 20, 51, .06);
  --shadow-lift: 0 12px 32px rgba(109, 40, 217, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section.block { padding: 72px 0; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 22px;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
nav.links { display: flex; gap: 28px; }
nav.links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 16px;
}
nav.links a:hover, nav.links a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- type ---------- */
.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 800; margin-bottom: 16px; }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.lede { font-size: 21px; line-height: 1.55; color: var(--ink-soft); max-width: 640px; }
p { margin-bottom: 16px; }
.grad-text {
  background: linear-gradient(92deg, var(--accent), #FF8A3D);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- hero (homepage) ---------- */
.hero { border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; margin: 32px 0 0; }
.hero video { width: 100%; height: clamp(260px, 42vw, 480px); object-fit: cover; display: block; }
.hero-copy { padding: clamp(28px, 5vw, 56px); }
.hero-copy h1 { color: #fff; }
.hero-copy .lede { color: #CFC6EA; }
.hero-cta { margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 17px;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  margin: 6px 12px 6px 0; transition: transform .15s ease, background .15s ease;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-deep); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-light-ghost { border: 2px solid #8B7BD8; color: #CFC6EA; background: transparent; }

/* ---------- credential strip ---------- */
.cred-strip { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.cred {
  font-family: "IBM Plex Mono", monospace; font-size: 13px;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
}
.cred.alt { background: var(--pop); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 28px 0; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .tag {
  display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--primary-tint); color: var(--primary);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start;
}
.card .tag.teal { background: #DFF5F3; color: var(--pop); }
.card .tag.coral { background: #FFE4E9; color: #BE123C; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 12px; flex-grow: 1; }
.card a.card-link { color: var(--primary); font-weight: 600; text-decoration: none; font-size: 15px; }
.card a.card-link:hover { text-decoration: underline; }

/* ---------- filter bar (archive) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.filter-btn {
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink-soft);
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.card.hidden { display: none; }

/* ---------- timeline (about) ---------- */
.timeline { margin: 28px 0; border-left: 3px solid var(--primary-tint); padding-left: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 28px 32px; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.timeline .when { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--primary); letter-spacing: .06em; }
.timeline h3 { font-size: 21px; margin: 4px 0; }
.timeline p { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* ---------- topics (speaking) ---------- */
.topic {
  background: var(--surface); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); margin: 16px 0;
  border-left: 6px solid var(--primary);
}
.topic:nth-child(2) { border-left-color: var(--accent); }
.topic:nth-child(3) { border-left-color: var(--pop); }
.topic h3 { margin-bottom: 8px; }
.topic p { color: var(--ink-soft); margin: 0; font-size: 16.5px; }

/* ---------- forms ---------- */
form.inquiry { background: var(--surface); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); margin: 28px 0; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--bg); transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 14px; color: var(--ink-faint); margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer p { font-size: 14px; color: var(--ink-faint); margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--primary); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  nav.links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line); gap: 16px;
  }
  nav.links.open { display: flex; }
  .nav-toggle { display: block; }
  .field-row { grid-template-columns: 1fr; }
  section.block { padding: 48px 0; }
}
