/* ════════════════════════════════════════════════════════════════════
   Red Taverns — site.css
   The company front-page stylesheet (taverns.red rebuild, #96 / #97)
   ════════════════════════════════════════════════════════════════════

   WHAT THIS IS
   Translated from the approved mockups in the handoff package
   (mockups/mockup-home.html + mockup-founder.html). Those mockups are
   single-file HTML with inlined <style>, inlined @import of Google
   Fonts, an inlined copy of the brand tokens, and inline style="..."
   attributes. All four are impossible under this site's CSP
   (`style-src 'self' https://fonts.googleapis.com`, no 'unsafe-inline'),
   so every one of them became a class in here.

   RULES FOR ANYONE EDITING THIS FILE
   1. Never redefine a --rt-* token. They come from
      /brand/tokens.css?v=1.0.0 which every page links BEFORE this file.
      If you need a new token, PR taverns-red/ops:docs/brand/ first.
   2. Never introduce an inline style="..." or a <style> block in HTML.
      If a one-off value is needed, add a modifier class here.
      tests/no-inline-styles.test.mjs enforces this.
   3. Every class in here is prefixed `rt-`. This keeps the new design
      system from colliding with the legacy style.css (which still owns
      /dora and /pathways and defines its own .btn, .hero, .card).
   4. NEVER load site.css and style.css on the same page. site.css
      carries a global reset and assumes it owns the document.

   NAMING CONVENTION (BEM-ish)
     .rt-block            the component
     .rt-block__element   a part of it
     .rt-block--modifier  a variant of it
     .rt-flag--<product>  sets --flag; works on cards AND menu dots

   ════════════════════════════════════════════════════════════════════ */


/* ── Reset & document ─────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
ul, ol, dl, dd { margin: 0; }

/* .rt-nav is `position: sticky; top: 0` and 60px tall, so without a
   matching scroll-padding every in-page anchor lands UNDER the nav bar.
   Load-bearing: the nav dropdown and the footer both link to
   /products#in-development, and several pages carry section anchors.
   60px bar + 16px breathing room. Promoted here from styles/products.css
   in #103 — the defect is global, not products-specific. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

/* Below 900px .rt-nav__bar wraps onto a second row (see the media query
   near the end of this file: flex-wrap: wrap, height: auto). Measured
   height there is ~99px, so the desktop offset is not enough. */
@media (max-width: 900px) {
  html { scroll-padding-top: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body.rt-page {
  font-family: var(--rt-font-body);
  background: var(--rt-paper);
  color: var(--rt-ink);
  line-height: 1.6;
  font-size: var(--rt-text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--rt-red);
  outline-offset: 2px;
  border-radius: var(--rt-radius-sm);
}


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

/* Standard content container. 1120px is the mockup's grid width. */
.rt-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--rt-space-5);
}

/* Narrower measure — long-form pages (founder, legal, company). */
.rt-wrap--narrow { max-width: 960px; }

/* Narrowest — pure prose (privacy, terms, refund). */
.rt-wrap--prose { max-width: 760px; }

.rt-section { padding: 88px 0; }
.rt-section--tight { padding: 56px 0; }
.rt-section--flush-top { padding-top: 0; }
.rt-section--flush-bottom { padding-bottom: 0; }

/* Dark band. The brand sandwich: dark hero, paper body, dark
   principles strip, dark footer. */
.rt-section--dark {
  background: var(--rt-bg);
  color: var(--rt-ink-on-dk);
}
.rt-section--dark .rt-title { color: var(--rt-ink-on-dk); }
.rt-section--dark .rt-sub { color: rgba(244, 241, 235, 0.7); }

/* Secondary paper band — used by the lab strip. */
.rt-section--alt { background: var(--rt-paper-2); }

.rt-hr {
  border: 0;
  border-top: 1px solid var(--rt-rule);
  margin: var(--rt-space-8) 0;
}

/* Keyboard-only skip link (WCAG 2.4.1). */
.rt-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--rt-red);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--rt-font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--rt-radius-md) 0;
}
.rt-skip-link:focus {
  left: 0;
}

.rt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* ── Typography ───────────────────────────────────────────────────── */

/* Mono uppercase kicker above a heading. Red by default. */
.rt-eyebrow {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  letter-spacing: var(--rt-track-loose);
  text-transform: uppercase;
  color: var(--rt-red);
  font-weight: 500;
  display: inline-block;
}
/* Replaces the mockup's inline style="color:var(--rt-ink-3)" on the
   "In development" label. */
.rt-eyebrow--muted { color: var(--rt-ink-3); }
.rt-eyebrow--on-dark { color: rgba(244, 241, 235, 0.7); }

/* Section title (was `h2.sec` in the mockup). */
.rt-title {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: var(--rt-track-tight);
  line-height: 1.08;
  margin: 14px 0 10px;
}
/* Replaces the mockup's inline font-size on the lab strip heading. */
.rt-title--sm { font-size: clamp(24px, 3vw, 34px); }
.rt-title--xs { font-size: clamp(21px, 2.4vw, 28px); }
.rt-title--accent { color: var(--rt-red); }

/* Sub-deck under a section title. */
.rt-sub {
  color: var(--rt-ink-2);
  max-width: 640px;
  margin-bottom: 44px;
}
.rt-sub--flush { margin-bottom: 0; }

/* Standalone lead paragraph. */
.rt-lede {
  font-size: var(--rt-text-md);
  color: var(--rt-ink-2);
  max-width: 640px;
}

/* Long-form body copy block. Use on a wrapper around raw h2/h3/p/ul —
   this is what the legal, company, and products pages should hang
   their prose on rather than styling bare elements. */
.rt-prose { color: var(--rt-ink-2); }
.rt-prose > * + * { margin-top: 14px; }
.rt-prose h2 {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: var(--rt-track-snug);
  color: var(--rt-ink);
  line-height: 1.2;
  margin-top: 34px;
}
.rt-prose h3 {
  font-family: var(--rt-font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: var(--rt-track-snug);
  color: var(--rt-ink);
  margin-top: 26px;
}
.rt-prose > h2:first-child,
.rt-prose > h3:first-child { margin-top: 0; }
.rt-prose b,
.rt-prose strong { color: var(--rt-ink); }
.rt-prose ul,
.rt-prose ol { padding-left: 22px; }
.rt-prose li { margin: 6px 0; }
.rt-prose a {
  color: var(--rt-red-dk);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rt-prose a:hover { color: var(--rt-red); }
.rt-prose code {
  font-family: var(--rt-font-mono);
  font-size: 0.9em;
  background: var(--rt-paper-2);
  padding: 2px 5px;
  border-radius: var(--rt-radius-sm);
}
.rt-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--rt-text-sm);
}
.rt-prose th,
.rt-prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rt-rule);
}
.rt-prose th {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  letter-spacing: var(--rt-track-loose);
  text-transform: uppercase;
  color: var(--rt-ink-3);
  font-weight: 500;
}

/* Mono metadata line — dates, versions, "last verified". */
.rt-meta-line {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  letter-spacing: 0.08em;
  color: var(--rt-ink-3);
}


/* ── Buttons ──────────────────────────────────────────────────────── */

.rt-btn {
  display: inline-block;
  font-family: var(--rt-font-display);
  font-weight: 600;
  font-size: var(--rt-text-base);
  padding: 12px 22px;
  border-radius: var(--rt-radius-md);
  text-decoration: none;
  transition: background var(--rt-dur) var(--rt-ease),
              border-color var(--rt-dur) var(--rt-ease),
              color var(--rt-dur) var(--rt-ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.rt-btn--red { background: var(--rt-red); color: #fff; }
.rt-btn--red:hover { background: var(--rt-red-dk); color: #fff; }

/* Outline button on a dark surface (hero, nav, footer). */
.rt-btn--ghost-dark {
  border-color: var(--rt-rule-on-dk);
  color: var(--rt-ink-on-dk);
}
.rt-btn--ghost-dark:hover { border-color: var(--rt-ink-on-dk); }

/* Outline button on paper. */
.rt-btn--ghost {
  border-color: var(--rt-rule-strong);
  color: var(--rt-ink);
}
.rt-btn--ghost:hover { border-color: var(--rt-ink); }

/* Nav-scale button. */
.rt-btn--sm { font-size: 14px; padding: 8px 16px; }

.rt-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ── Brand mark ───────────────────────────────────────────────────── */

/* The canonical pennant is /brand/pennant.svg (brand v1.0, ADR 0004).
   The mockups drew a CSS clip-path lookalike because they were
   single-file; use the real asset. Intrinsic ratio is 140x100. */
.rt-pennant {
  display: block;
  width: 21px;
  height: 15px;
  flex: none;
}
.rt-pennant--lg { width: 28px; height: 20px; }


/* ── Product accent flags ─────────────────────────────────────────── */
/*
   These replace the mockup's inline style="--flag:var(--rt-vote)" and
   style="background:var(--rt-vote)". One modifier drives both the card
   top rule and the dropdown dot, via the --flag custom property.

     <a class="rt-card rt-flag--vote">…</a>
     <span class="rt-dropdown__flag rt-flag--table"></span>
*/
.rt-flag--vote  { --flag: var(--rt-vote); }
.rt-flag--table { --flag: var(--rt-table); }
.rt-flag--club  { --flag: var(--rt-club); }
.rt-flag--stats { --flag: var(--rt-stats); }
.rt-flag--eval  { --flag: var(--rt-eval); }
.rt-flag--red   { --flag: var(--rt-red); }


/* ── Sticky nav ───────────────────────────────────────────────────── */

.rt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 14, 13, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rt-rule-on-dk);
}

/* Applied alongside .rt-wrap on the nav's inner container. */
.rt-nav__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.rt-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--rt-ink-on-dk);
  text-decoration: none;
  letter-spacing: var(--rt-track-snug);
  white-space: nowrap;
}

/* The wordmark text node inside .rt-nav__brand. Declared explicitly so
   the brand link owns layout (flex/gap) and the wordmark owns type — the
   values match the parent, so this is a no-op visually today and a hook
   for anything that needs to target the words without the pennant. */
.rt-nav__wordmark {
  font-family: var(--rt-font-display);
  font-weight: 700;
  letter-spacing: var(--rt-track-snug);
  white-space: nowrap;
}

/* .header-logo is kept as the wrapper class because
   tests/brand-tokens.test.mjs pins the pennant assertion to it. */
.header-logo { display: flex; align-items: center; }

.rt-nav__link {
  color: var(--rt-ink-on-dk);
  opacity: 0.75;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity var(--rt-dur) var(--rt-ease);
}
.rt-nav__link:hover { opacity: 1; }

/* Replaces the founder mockup's inline style="opacity:1" on the
   current page's nav item. Pair with aria-current="page". */
.rt-nav__link--current { opacity: 1; }
.rt-nav__link[aria-current="page"] { opacity: 1; }

.rt-nav__spacer { flex: 1; }

.rt-nav__cta { flex: none; }


/* ── Products dropdown ────────────────────────────────────────────── */

.rt-dropdown { position: relative; }

.rt-dropdown__toggle::after {
  content: " \25BE";           /* ▾ */
  font-size: 10px;
}

.rt-dropdown__menu {
  display: none;
  position: absolute;
  top: 36px;
  left: -14px;
  background: var(--rt-bg-2);
  border: 1px solid var(--rt-bg-3);
  border-radius: var(--rt-radius-lg);
  padding: 8px;
  width: 300px;
  box-shadow: var(--rt-shadow-2);
}

/* :focus-within keeps the menu usable by keyboard and on touch, where
   :hover alone is a dead end. No JS — the CSP forbids inline handlers
   and this site has no menu script. */
.rt-dropdown:hover .rt-dropdown__menu,
.rt-dropdown:focus-within .rt-dropdown__menu { display: block; }

.rt-dropdown__item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: var(--rt-radius-md);
  text-decoration: none;
  color: var(--rt-ink-on-dk);
  font-size: 14px;
}
.rt-dropdown__item:hover,
.rt-dropdown__item:focus-visible { background: var(--rt-bg-3); }

.rt-dropdown__flag {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
  position: relative;
  top: -1px;
  background: var(--flag, var(--rt-red));
}

.rt-dropdown__name {
  font-weight: 600;
  display: block;
}

.rt-dropdown__meta {
  color: var(--rt-ink-3);
  font-size: 12px;
  display: block;
  line-height: 1.4;
}


/* ── Hero ─────────────────────────────────────────────────────────── */

.rt-hero {
  background: var(--rt-bg);
  color: var(--rt-ink-on-dk);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
/* Red bloom, top-right. Decorative only. */
.rt-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(230, 57, 70, 0.16), transparent 70%);
  pointer-events: none;
}
.rt-hero > .rt-wrap { position: relative; z-index: 1; }

.rt-hero--short { padding: 76px 0 60px; }

.rt-hero__title {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: var(--rt-track-tight);
  max-width: 820px;
  margin: 18px 0 26px;
}

/* Red word inside a heading. The mockup used <em> restyled to normal;
   this class works on em/span/b alike. */
.rt-hero__accent,
.rt-accent {
  font-style: normal;
  color: var(--rt-red);
}

.rt-hero__lede {
  font-size: var(--rt-text-md);
  color: rgba(244, 241, 235, 0.75);
  max-width: 620px;
  margin-bottom: 38px;
}

.rt-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ── Proof strip ──────────────────────────────────────────────────── */

.rt-proof {
  background: var(--rt-bg-2);
  border-top: 1px solid var(--rt-rule-on-dk);
  color: var(--rt-ink-on-dk);
  padding: 18px 0;
}
.rt-proof > .rt-wrap {
  display: flex;
  gap: 12px 40px;
  flex-wrap: wrap;
  font-family: var(--rt-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 235, 0.7);
}
.rt-proof__item::before {
  content: "\25CF\00a0";        /* ● */
  color: var(--rt-red);
  font-size: 9px;
  vertical-align: 2px;
}
.rt-proof__item b,
.rt-proof__item strong {
  color: var(--rt-ink-on-dk);
  font-weight: 500;
}


/* ── Masthead (founder / interior page headers) ───────────────────── */

.rt-masthead {
  background: var(--rt-bg);
  color: var(--rt-ink-on-dk);
  padding: 90px 0 70px;
}

.rt-masthead__flex {
  display: flex;
  gap: 56px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.rt-masthead__title {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.04;
  letter-spacing: var(--rt-track-tight);
  margin: 16px 0 12px;
}

.rt-masthead__role {
  font-size: var(--rt-text-md);
  color: rgba(244, 241, 235, 0.75);
}
.rt-masthead__role b,
.rt-masthead__role strong { color: var(--rt-ink-on-dk); }

.rt-portrait {
  width: 260px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--rt-radius-lg);
  background: linear-gradient(160deg, var(--rt-bg-3), var(--rt-bg-2));
  border: 1px solid var(--rt-rule-on-dk);
  flex: none;
  display: block;
}

/* Mono bullet row under the masthead heading. */
.rt-factrow {
  display: flex;
  gap: 10px 30px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-family: var(--rt-font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(244, 241, 235, 0.65);
}
.rt-factrow__item::before {
  content: "\25CF\00a0";
  color: var(--rt-red);
  font-size: 9px;
  vertical-align: 2px;
}


/* ── Product grid & cards ─────────────────────────────────────────── */

.rt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.rt-grid--wide { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.rt-grid--narrow { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Spacer that carries the "In development" eyebrow between grids. */
.rt-grid-label { margin: 52px 0 20px; }

.rt-card {
  background: #fff;
  border: 1px solid var(--rt-rule);
  border-radius: var(--rt-radius-lg);
  padding: 26px 26px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--rt-dur) var(--rt-ease),
              box-shadow var(--rt-dur) var(--rt-ease);
}
/* Only lift the card if it is actually a link. */
a.rt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rt-shadow-2);
}
/* Accent rule along the top — colour comes from .rt-flag--*. */
.rt-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--rt-radius-lg) var(--rt-radius-lg) 0 0;
  background: var(--flag, var(--rt-red));
}

/* In-development card: dashed, on secondary paper, no lift. */
.rt-card--dev {
  background: var(--rt-paper-2);
  border-style: dashed;
}

.rt-card__title {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: var(--rt-track-snug);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.15;
}

.rt-card__domain {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  letter-spacing: 0.08em;
  color: var(--rt-ink-3);
}

.rt-card__body {
  color: var(--rt-ink-2);
  font-size: 15px;
  flex: 1;
}

.rt-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rt-rule);
  padding-top: 14px;
  margin-top: 6px;
}

.rt-card__go {
  font-family: var(--rt-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--rt-red);
}


/* ── Badges ───────────────────────────────────────────────────────── */

.rt-badge {
  font-family: var(--rt-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--rt-radius-sm);
  background: var(--rt-red-soft);
  color: var(--rt-red-dk);
  font-weight: 500;
  white-space: nowrap;
}
.rt-badge--free { background: #E2F0EA; color: #1D6A50; }
.rt-badge--dev  { background: var(--rt-paper-2); color: var(--rt-ink-2); }
.rt-badge--neutral { background: var(--rt-paper-2); color: var(--rt-ink-2); }


/* ── Live status badges (dashboard.js injects into .card-live-status) ─
   dashboard.js writes .live-badge / .live-dot markup into any
   [data-repo] card that contains a .card-live-status element. If the
   fetch fails nothing is injected and the card is unchanged — that
   graceful degradation is intentional. */

.rt-card .card-live-status,
.card-live-status {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--rt-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--rt-ink-3);
  background: var(--rt-paper-2);
  border-radius: var(--rt-radius-sm);
  padding: 2px 7px;
  white-space: nowrap;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rt-ink-3);
  flex: none;
}
.live-dot--green  { background: var(--rt-good); }
.live-dot--yellow { background: var(--rt-warn); }
.live-dot--red    { background: var(--rt-bad); }


/* ── Principles strip (dark) ──────────────────────────────────────── */

.rt-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
  margin-top: 44px;
}
.rt-principles__item {
  border-top: 1px solid var(--rt-rule-on-dk);
  padding-top: 16px;
}
.rt-principles__name {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 17px;
  display: block;
  margin-bottom: 6px;
  letter-spacing: var(--rt-track-snug);
}
.rt-principles__text {
  font-size: 14px;
  color: rgba(244, 241, 235, 0.65);
}

/* Paper variant, for /company where the same list sits on light. */
.rt-principles--paper .rt-principles__item { border-top-color: var(--rt-rule); }
.rt-principles--paper .rt-principles__text { color: var(--rt-ink-2); }


/* ── Founder note (home) ──────────────────────────────────────────── */

.rt-founder__flex {
  display: flex;
  gap: 52px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;      /* replaces the mockup's inline margin-top */
}

.rt-headshot {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--rt-radius-lg);
  background: linear-gradient(135deg, var(--rt-paper-3), var(--rt-paper-2));
  border: 1px solid var(--rt-rule);
  flex: none;
  display: block;
}

/* Big display quote with red curly marks (home founder note). */
.rt-quote {
  font-family: var(--rt-font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.3;
  letter-spacing: var(--rt-track-snug);
  max-width: 640px;
  margin-bottom: 20px;
}
.rt-quote::before { content: "\201C"; color: var(--rt-red); }
.rt-quote::after  { content: "\201D"; color: var(--rt-red); }

.rt-founder__who {
  color: var(--rt-ink-2);
  font-size: 15px;
}
.rt-founder__who b,
.rt-founder__who strong { color: var(--rt-ink); }

/* Red display-font inline "more" link. */
.rt-more {
  font-family: var(--rt-font-display);
  font-weight: 600;
  color: var(--rt-red);
  text-decoration: none;
  white-space: nowrap;
}
.rt-more:hover { text-decoration: underline; }


/* ── Lab strip ────────────────────────────────────────────────────── */

.rt-lab__row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.rt-chip {
  background: #fff;
  border: 1px solid var(--rt-rule);
  border-radius: var(--rt-radius-lg);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--rt-ink-2);
  flex: 1;
  min-width: 260px;
  text-decoration: none;
}
a.rt-chip:hover { border-color: var(--rt-rule-strong); }

.rt-chip__name {
  font-family: var(--rt-font-display);
  font-weight: 700;
  color: var(--rt-ink);
  display: block;
  margin-bottom: 4px;
}


/* ── Long-form article layout (founder, company) ──────────────────── */

.rt-article { padding: 76px 0; }

.rt-article__cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
}

.rt-article__heading {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: var(--rt-track-snug);
  margin: 34px 0 12px;
}
.rt-article__heading:first-child { margin-top: 0; }

/* Left-ruled pull quote (founder article). */
.rt-pullquote {
  font-family: var(--rt-font-display);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: var(--rt-track-snug);
  color: var(--rt-ink);
  border-left: 3px solid var(--rt-red);
  padding-left: 22px;
  margin: 38px 0;
}


/* ── Sidebar blocks ───────────────────────────────────────────────── */

.rt-side__block {
  background: #fff;
  border: 1px solid var(--rt-rule);
  border-radius: var(--rt-radius-lg);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.rt-side__heading {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  letter-spacing: var(--rt-track-loose);
  text-transform: uppercase;
  color: var(--rt-ink-3);
  margin-bottom: 14px;
  font-weight: 500;
}

.rt-timeline { list-style: none; padding: 0; }
.rt-timeline > li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rt-rule);
  font-size: 14px;
}
.rt-timeline > li:last-child { border-bottom: none; }
.rt-timeline__name {
  display: block;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: var(--rt-track-snug);
}
.rt-timeline__yrs {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  color: var(--rt-ink-3);
}

.rt-linklist { list-style: none; padding: 0; }
.rt-linklist > li { margin: 9px 0; font-size: 14.5px; }
.rt-linklist a {
  color: var(--rt-red-dk);
  text-decoration: none;
  font-weight: 500;
}
.rt-linklist a:hover { text-decoration: underline; }


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

.rt-footer {
  background: var(--rt-bg);
  color: var(--rt-ink-on-dk);
  padding: 64px 0 40px;
}

.rt-footer__grid {
  display: grid;
  /* brand · Products · Company · Legal. Was 5 columns until #108 removed
     the Open source column along with the GitHub nav item. */
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.rt-footer__brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--rt-ink-on-dk);
}

.rt-footer__tagline {
  font-size: 14px;
  color: rgba(244, 241, 235, 0.6);
  max-width: 260px;
}

.rt-footer__heading {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  letter-spacing: var(--rt-track-loose);
  text-transform: uppercase;
  color: var(--rt-ink-3);
  margin-bottom: 14px;
  font-weight: 500;
}
/* Replaces the mockup's inline style="margin-top:22px" on a second
   heading inside one footer column. */
.rt-footer__heading--spaced { margin-top: 22px; }

.rt-footer__list { list-style: none; padding: 0; margin: 0; }
.rt-footer__list > li { margin: 8px 0; font-size: 14px; }
.rt-footer__list a {
  color: rgba(244, 241, 235, 0.78);
  text-decoration: none;
}
.rt-footer__list a:hover { color: #fff; }

.rt-footer__domain {
  font-family: var(--rt-font-mono);
  font-size: 10px;
  color: var(--rt-ink-3);
  display: block;
}

.rt-footer__legal {
  border-top: 1px solid var(--rt-rule-on-dk);
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--rt-ink-3);
}


/* ── Spacing utilities ────────────────────────────────────────────── */
/* Deliberate escape hatch. The mockups used inline margin-top values;
   under this CSP that is impossible, so use these instead of reaching
   for style="margin-top:…". */

.rt-mt-0 { margin-top: 0; }
.rt-mt-2 { margin-top: var(--rt-space-2); }
.rt-mt-3 { margin-top: var(--rt-space-3); }
.rt-mt-4 { margin-top: var(--rt-space-4); }
.rt-mt-5 { margin-top: var(--rt-space-5); }
.rt-mt-6 { margin-top: var(--rt-space-6); }
.rt-mt-8 { margin-top: var(--rt-space-8); }
.rt-mb-0 { margin-bottom: 0; }
.rt-mb-4 { margin-bottom: var(--rt-space-4); }
.rt-mb-5 { margin-bottom: var(--rt-space-5); }
.rt-mb-6 { margin-bottom: var(--rt-space-6); }
.rt-mb-8 { margin-bottom: var(--rt-space-8); }


/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .rt-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .rt-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* The nav carries eight targets; below this width it WRAPS onto a
     second row rather than dropping links or scrolling. Findability is
     the whole point of the header — nothing gets hidden.
     Deliberately NOT overflow-x:auto: a scroll container computes
     overflow-y to auto as well, which would clip the absolutely
     positioned Products dropdown. */
  .rt-nav__bar {
    flex-wrap: wrap;
    gap: 10px 18px;
    height: auto;
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .rt-nav__spacer { display: none; }
  .rt-nav__cta { margin-left: auto; }
  .rt-article__cols { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 760px) {
  .rt-section { padding: 64px 0; }
  .rt-section--tight { padding: 44px 0; }
  .rt-hero { padding: 76px 0 64px; }
  .rt-masthead { padding: 64px 0 52px; }
  .rt-article { padding: 56px 0; }
  .rt-founder__flex { gap: 32px; }
  .rt-masthead__flex { gap: 32px; align-items: flex-start; }
  .rt-footer__grid { grid-template-columns: 1fr 1fr; }
  .rt-dropdown__menu { width: min(300px, calc(100vw - 48px)); left: 0; }
}

@media (max-width: 460px) {
  .rt-wrap { padding: 0 var(--rt-space-4); }
  .rt-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .rt-portrait { width: 100%; height: auto; aspect-ratio: 260 / 300; }
  .rt-headshot { width: 160px; height: 160px; }
  .rt-btn { width: 100%; text-align: center; }
  .rt-btn--sm { width: auto; }
}


/* ── Print ────────────────────────────────────────────────────────── */

@media print {
  .rt-nav, .rt-footer, .rt-skip-link { display: none; }
  body.rt-page { background: #fff; color: #000; }
  .rt-section { padding: 24px 0; }
}
