@import url("https://rsms.me/inter/inter.css");

html {
  font-family: "Inter", system-ui, sans-serif;
}
@supports (font-variation-settings: normal) {
  html {
    font-family: "Inter var", system-ui, sans-serif;
  }
}

.quarto-title-block {
  margin-bottom: 2rem;
}
.quarto-title .title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}
.quarto-title .subtitle {
  font-size: 1.15rem;
  color: var(--bs-secondary-color, #6b7280);
  font-weight: 400;
  margin-top: 0.5rem;
}

a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(42, 100, 245, 0.35);
}
a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

.callout {
  border-left-width: 3px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.callout-header {
  font-weight: 600;
}

.card {
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  transition: border-color 120ms ease, transform 120ms ease;
}
.card:hover {
  border-color: var(--bs-link-color);
  transform: translateY(-1px);
}
.card .card-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------------- *
 * Landing hero: copy on the left, a quick-look code card on the right.
 * Collapses to a single column under 900px. Hero links/code never
 * carry the body underline.
 * ---------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 2.5rem 0;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 1.5rem 0;
  }
}
/* Grid/flex children default to min-width:auto, so a long code line or
   an unbreakable headline word forces horizontal overflow on narrow
   screens. Pin children to min-width:0 and let the code card scroll. */
.hero-copy,
.hero-code {
  min-width: 0;
}
.hero a {
  text-decoration: none;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-link-color);
  background: color-mix(in srgb, var(--bs-link-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--bs-link-color) 35%, transparent);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.1rem 0;
  overflow-wrap: anywhere;
}
.hero-copy p.lead {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--bs-secondary-color, #4b5563);
  max-width: 34em;
  margin-bottom: 1.8rem;
}
.hero-copy .btn {
  border-radius: 7px;
  padding: 0.62em 1.15em;
  font-weight: 550;
  margin: 0 0.5rem 0.6rem 0;
}
.hero-copy .btn-primary {
  border: none;
}
.hero-copy .btn-outline-secondary {
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}
.hero-copy .btn-outline-secondary:hover {
  border-color: var(--bs-link-color);
  color: var(--bs-link-color);
  background: transparent;
}

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #6b7280);
  margin: 1.2rem 1.4rem 0 0;
  position: relative;
  padding-left: 0.95rem;
}
.kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bs-link-color);
}

/* Quick-look code card with a faux editor title bar. */
.code-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  background: var(--bs-tertiary-bg, #101827);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.code-card-title {
  display: block;
  position: relative;
  font-family: var(--bs-font-monospace, ui-monospace, monospace);
  font-size: 0.82rem;
  color: var(--bs-secondary-color, #8593a6);
  padding: 0.7rem 1rem 0.7rem 4.4rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: color-mix(in srgb, var(--bs-body-color) 4%, transparent);
}
.code-card-title::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #ec6a5e;
  box-shadow: 1.05rem 0 0 #f4bf4f, 2.1rem 0 0 #61c554;
}
.code-card pre,
.code-card .sourceCode {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.code-card pre {
  padding: 1.1rem 1.25rem;
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-x: auto;
}

/* Phones: long code lines scroll inside the card instead of widening the
   page; tighten hero rhythm. Targets the reported 390px overflow. */
@media (max-width: 600px) {
  .hero {
    padding: 1.75rem 0 1rem 0;
  }
  .code-card pre {
    font-size: 0.78rem;
    padding: 0.9rem 1rem;
  }
  .hero-copy p.lead {
    font-size: 1.08rem;
  }
}

/* ---------------------------------------------------------------------- *
 * Three promises: scannable cards, claim first, one tag per card.
 * ---------------------------------------------------------------------- */
.promise-heading {
  margin-top: 1rem;
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 1rem 0;
}
@media (max-width: 900px) {
  .promise-grid {
    grid-template-columns: 1fr;
  }
}
.promise-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  background: var(--bs-secondary-bg, rgba(255, 255, 255, 0.02));
  padding: 1.5rem 1.4rem 1.3rem 1.4rem;
  transition: border-color 120ms ease, transform 120ms ease;
}
.promise-card:hover {
  border-color: var(--bs-link-color);
  transform: translateY(-2px);
}
.promise-card h4 {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem 0;
}
.promise-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--bs-secondary-color, #4b5563);
  margin-bottom: 1rem;
}
.promise-card a {
  text-decoration: none;
}
.promise-card a:hover {
  text-decoration: underline;
}
.promise-tag {
  display: inline-block;
  font-family: var(--bs-font-monospace, ui-monospace, monospace);
  font-size: 0.82rem;
  color: var(--bs-link-color);
  background: color-mix(in srgb, var(--bs-link-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--bs-link-color) 28%, transparent);
  padding: 0.32em 0.7em;
  border-radius: 6px;
}

/* ---------------------------------------------------------------------- *
 * Entry-surface affordances: one routed pointer for cross-tool visitors
 * and the auto-generated evidence-count teaser. Deliberately quiet — they
 * route a question, they do not argue.
 * ---------------------------------------------------------------------- */
.routed-pointer {
  font-size: 0.95rem;
  color: var(--bs-secondary-color, #6b7280);
  margin: 0.25rem 0 0.75rem 0;
}
.routed-pointer a {
  font-weight: 550;
  text-decoration: none;
}
.routed-pointer a:hover {
  text-decoration: underline;
}
.evidence-teaser {
  font-size: 0.95rem;
  color: var(--bs-secondary-color, #6b7280);
  border-left: 3px solid color-mix(in srgb, var(--bs-link-color) 45%, transparent);
  background: color-mix(in srgb, var(--bs-link-color) 6%, transparent);
  padding: 0.7rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 0 0 2rem 0;
}
.evidence-teaser a {
  text-decoration: none;
  font-weight: 550;
}
.evidence-teaser a:hover {
  text-decoration: underline;
}
