/* ═══════════════════════════════════════════════════════════════════════
   AssemblyAI Roadmap — the only stylesheet.

   Top half: design system tokens + type utilities, from the AssemblyAI
   "Website refresh" system (serif display, Monument Grotesk body,
   deep indigo primary, warm cream surface).
   Bottom half: the roadmap page itself.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Fonts ────────────────────────────────────────────────────────────
   All self-hosted out of ./fonts, so the page has no external requests.
   Source Serif 4 is the licensed-free stand-in for the Figma Tiempos
   display face; headlines only ever use weight 400. */

@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/SourceSerif4/SourceSerif4-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    u+0000-00ff, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308, u+0329,
    u+2000-206f, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/SourceSerif4/SourceSerif4-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+0304, u+0308, u+0329,
    u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20c0, u+2113, u+2c60-2c7f,
    u+a720-a7ff;
}

@font-face {
  font-family: "Monument Grotesk";
  src: url("./fonts/ABCMonumentGrotesk/ABCMonumentGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monument Grotesk";
  src: url("./fonts/ABCMonumentGrotesk/ABCMonumentGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/JetBrainsMono/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────── */

:root {
  --font-serif: "Source Serif 4", "Source Serif Pro", charter, "Iowan Old Style", georgia, serif;
  --font-sans: "Monument Grotesk", "ABC Monument Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace;

  /* Surfaces */
  --bg: #fbf8f2; /* signature warm cream */
  --bg-raised: #fff; /* cards on cream */

  /* Indigo — the primary */
  --indigo-500: #3f2bc1;
  --indigo-700: #251784;

  /* Warm neutrals */
  --fg: #1b1a18;
  --fg-muted: #57534b;
  --fg-subtle: #6f6a60;
  --border: #dcd7cc;
  --border-strong: #b6b0a4;
  --border-hairline: #e9e5dd;

  /* Radii — the refresh is nearly squared off */
  --radius-sm: 4px;
  --radius-lg: 8px;

  /* Layout */
  --page-max: 1080px;
  --page-gutter: 32px;
  --header-h: 60px;

  /* Breathing room above an element scrolled to via its #anchor, so the
     sticky header never covers it. */
  --anchor-offset: 72px;
}

/* ── Type utilities ─────────────────────────────────────────────────── */

.heading-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 72px;
  line-height: 1.06;
  letter-spacing: -0.5px;
  color: var(--fg);
  text-wrap: balance;
}

.heading-lg {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--fg);
}

.heading-sm {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--fg);
}

.body-l {
  font-size: 17px;
  line-height: 26px;
  color: var(--fg-muted);
}

.body-m {
  font-size: 15px;
  line-height: 22px;
  color: var(--fg-muted);
}

.body-s {
  font-size: 13px;
  line-height: 18px;
}

.code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

/* Outlined eyebrow pill — the section label treatment. */
.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fg);
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   Page
   ═══════════════════════════════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--indigo-500);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--indigo-700);
}

/* Headings are their own permalink: the text looks like a heading, and
   clicking it puts that #anchor in the address bar. A "#" fades in on
   hover to show it is copyable. */
.heading-link {
  color: inherit;
  text-decoration: none;
}

.heading-link::after {
  content: "#";
  margin-left: 0.28em;
  color: var(--indigo-500);
  opacity: 0;
  transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.heading-link:hover,
.heading-link:focus-visible {
  color: var(--indigo-500);
}

.heading-link:hover::after,
.heading-link:focus-visible::after {
  opacity: 1;
}

:where(h1, h2, h3, h4, p, ul) {
  margin: 0;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(251 248 242 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand__name {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.brand__section {
  font-size: 13px;
  color: var(--fg-muted);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--fg-muted);
}

.site-nav a:hover {
  color: var(--indigo-500);
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter) 96px;
}

.hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero__title {
  margin: 20px 0 16px;
}

.hero__lead {
  max-width: 640px;
}

.section {
  padding: 72px 0 0;
  scroll-margin-top: var(--anchor-offset);
}

.section__title {
  margin: 18px 0 10px;
}

.section__intro {
  max-width: 620px;
  margin-bottom: 36px;
}

/* "UPCOMING" / "SHIPPED IN LAST 90 DAYS" group labels. */
.group-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fg-muted);
  scroll-margin-top: var(--anchor-offset);
}

/* ── Upcoming cards ─────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 16px 0 48px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: var(--anchor-offset);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card__quarter {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--indigo-500);
  border: 1px solid var(--indigo-500);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  line-height: 1;
  white-space: nowrap;
}

.card__note {
  color: var(--fg-subtle);
}

/* ── Shipped list ───────────────────────────────────────────────────── */

.shipped {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.shipped__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.shipped__date {
  color: var(--fg-subtle);
  font-size: 12px;
  padding-top: 3px;
}

.shipped__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shipped__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.page-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-footer__note {
  color: var(--fg-subtle);
}

.page-footer__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* ── Small screens ──────────────────────────────────────────────────── */

@media (width <= 768px) {
  :root {
    --page-gutter: 20px;

    /* The header wraps to two rows on narrow screens. */
    --anchor-offset: 132px;
  }

  .heading-display {
    font-size: 44px;
    line-height: 1.08;
  }

  .heading-lg {
    font-size: 28px;
  }

  .site-header__inner {
    height: auto;
    padding: 12px var(--page-gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .section {
    padding-top: 56px;
  }

  .shipped__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .shipped__date {
    padding-top: 0;
  }
}
