/* ============================================================
   ReduceOps landing — 2026 redesign
   Scoped to .ro-landing so the other pages keep their current look
   until this direction is approved and rolled out.
   ============================================================ */

/* Fonts are declared once, in assets/css/index.css, which always loads. */

/* ---------- palette ----------
   Light is the base, because light is the design the site ships. The dark
   variant is opt-in through ?theme=dark, so a visitor without JavaScript gets
   the intended palette instead of the dark one.

   Tokens are declared on the wrapper AND on the body. The header, cookie banner
   and footer sit outside .ro-landing, so a token declared only on the wrapper
   resolves to nothing there and the property falls back to unset.
   ------------------------------------------------------------- */

.ro-landing,
body:has(.ro-landing) {
  --ro-bg: #f9fafb;
  --ro-surface: #ffffff;
  --ro-raised: #f1f4f6;
  --ro-line: #dfe6ea;
  --ro-line-soft: #eaeff2;
  --ro-ink: #0f1517;
  --ro-ink-dim: #35424a;
  --ro-muted: #5f6f77;
  --ro-accent: #1a6c86;
  --ro-accent-soft: #13505f;
  --ro-btn-bg: #0f1517;
  --ro-btn-bg-hover: #2e2822;
  --ro-btn-text: #ffffff;

  --ro-display: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --ro-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ro-mono: "Fira Code", ui-monospace, monospace;

  --ro-measure: 34rem;

  /* The one content column width. Every screen uses it, so the page has a single
     left edge and a single measure from top to bottom. */
  --ro-col: 46rem;
}

body:has(.ro-landing) {
  background-color: var(--ro-bg);
}

.ro-landing {
  background-color: var(--ro-bg);
  color: var(--ro-ink);
  font-family: var(--ro-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- dark variant, opt-in only ---------- */

html.ro-dark .ro-landing,
html.ro-dark body:has(.ro-landing) {
  --ro-bg: #0a0a0b;
  --ro-surface: #101012;
  --ro-raised: #151517;
  --ro-line: #26262a;
  --ro-line-soft: #1c1c1f;
  --ro-ink: #edeae4;
  --ro-ink-dim: #c3bfb7;
  --ro-muted: #918d85;
  --ro-accent: #2f9fbf;
  --ro-accent-soft: #74cfe6;
  --ro-btn-bg: #2f9fbf;
  --ro-btn-bg-hover: #74cfe6;
  --ro-btn-text: #120b06;
}

/* ---------- header, restyled inside the landing ---------- */

body:has(.ro-landing) .site-header {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease;
}

body:has(.ro-landing) .site-header a {
  color: var(--ro-ink-dim);
}

body:has(.ro-landing) .site-header a:hover {
  color: var(--ro-ink);
}

/* ---------- scroll progress ---------- */

.ro-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-color: var(--ro-accent);
  z-index: 60;
  pointer-events: none;
}

/* ---------- layout primitives ---------- */

.ro-wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .ro-wrap { padding-inline: 2.5rem; }
}

/* deliberate rhythm: one section breathes wider, one runs tighter */

/* ---------- section head: number + title, sticky on desktop ---------- */

.ro-num {
  font-family: var(--ro-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ro-muted);
  padding-top: 0.9rem;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .ro-num {
    position: sticky;
    top: 6.5rem;
  }
}

.ro-h2 {
  font-family: var(--ro-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  max-width: 24ch;
}

.ro-lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ro-ink-dim);
  max-width: var(--ro-measure);
}

.ro-lede + .ro-lede { margin-top: 1rem; }

/* ---------- hero ---------- */

.ro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ro-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ro-accent-soft);
  margin-bottom: 1.75rem;
}

.ro-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background-color: var(--ro-accent);
}

.ro-h1 {
  font-family: var(--ro-display);
  font-weight: 400;
  font-optical-sizing: auto;
  /* font-size lives in the fit-the-window block further down. It was declared
     here as well, width-based, and then silently overwritten by the height-based
     one, so this value never applied. One declaration, one owner. */
  line-height: 1.03;
  letter-spacing: -0.028em;
  margin: 0 0 1.75rem;
  max-width: 20ch;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--ro-ink);
}

.ro-h1 em {
  font-style: italic;
  color: var(--ro-accent-soft);
}

.ro-sub {
  color: var(--ro-ink-dim);
  max-width: 33rem;
  margin: 0 0 2.5rem;
}

.ro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.ro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ro-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ro-btn--primary {
  background-color: var(--ro-btn-bg);
  border: 1px solid var(--ro-btn-bg);
  color: var(--ro-btn-text);
}

.ro-btn--primary:hover {
  background-color: var(--ro-btn-bg-hover);
  border-color: var(--ro-btn-bg-hover);
}

.ro-btn--quiet {
  background: transparent;
  color: var(--ro-ink-dim);
  border: 1px solid var(--ro-line);
}

.ro-btn--quiet:hover {
  color: var(--ro-ink);
  border-color: #3a3a40;
}

.ro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 3rem;
  font-family: var(--ro-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ro-muted);
}

.ro-facts span { display: inline-flex; align-items: center; gap: 0.5rem; }

.ro-facts span + span::before {
  content: "/";
  color: #3a3a40;
  margin-right: 0.75rem;
}

/* ---------- numbered list (not cards) ---------- */

.ro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 42rem;
}

.ro-list li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1.25rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--ro-line-soft);
}

.ro-list li:last-child { border-bottom: 1px solid var(--ro-line-soft); }

.ro-list .n {
  font-family: var(--ro-mono);
  font-size: 0.72rem;
  color: var(--ro-accent);
  padding-top: 0.35rem;
  letter-spacing: 0.08em;
}

.ro-list h3 {
  font-family: var(--ro-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 0.35rem;
  color: var(--ro-ink);
}

.ro-list p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ro-muted);
}

/* ---------- price ---------- */

.ro-price {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .ro-price { grid-template-columns: 1fr 20rem; gap: 4rem; }
}

.ro-price__figure {
  border-left: 2px solid var(--ro-accent);
  padding-left: 1.5rem;
}

.ro-price__amount {
  font-family: var(--ro-display);
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ro-ink);
  margin: 0;
}

.ro-price__note {
  font-family: var(--ro-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ro-muted);
  margin: 0.75rem 0 0;
}

/* ---------- person ---------- */

.ro-person {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .ro-person { grid-template-columns: 11rem 1fr; gap: 2.75rem; }
}

.ro-person img {
  width: 11rem;
  height: 11rem;
  object-fit: cover;
  border-radius: 2px;
}

.ro-person__name {
  font-family: var(--ro-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.ro-person__role {
  font-family: var(--ro-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ro-muted);
  margin: 0 0 1.25rem;
}

.ro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.ro-links a {
  color: var(--ro-accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 162, 119, 0.3);
  padding-bottom: 1px;
}

.ro-links a:hover { border-bottom-color: var(--ro-accent-soft); }

/* ---------- writing ---------- */

.ro-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}

.ro-posts li {
  border-top: 1px solid var(--ro-line-soft);
}

.ro-posts li:last-child { border-bottom: 1px solid var(--ro-line-soft); }

.ro-posts a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.35rem;
  text-decoration: none;
  color: var(--ro-ink);
}

.ro-posts .t {
  font-size: 1rem;
  line-height: 1.45;
  transition: color 160ms ease;
}

.ro-posts a:hover .t { color: var(--ro-accent-soft); }

.ro-posts .d {
  font-family: var(--ro-mono);
  font-size: 0.72rem;
  color: var(--ro-muted);
  white-space: nowrap;
}

/* ---------- close ---------- */

@media (prefers-reduced-motion: reduce) {
  .ro-progress { display: none; }
}

/* focus visibility, matched to the brand */
.ro-landing a:focus-visible,
.ro-landing button:focus-visible {
  outline: 2px solid var(--ro-accent-soft);
  outline-offset: 3px;
}

/* ============================================================
   Fixes after first review
   ============================================================ */

/* The header CTA sits outside .ro-landing, so it needs the body:has scope and
   enough specificity to beat the generic `a` colour rule above.

   No border and no font-weight override. The border was 1px of the same colour
   as the fill in both themes, so it never drew, and it still added 2px to the
   box, which made this button 46px tall against 44px everywhere else. The
   weight override made the same partial render at 500 here and 600 on every
   other page. */
body:has(.ro-landing) .site-header a.btn-primary {
  background-color: var(--ro-accent);
  color: #140c06;
}

body:has(.ro-landing) .site-header a.btn-primary:hover {
  background-color: var(--ro-accent-soft);
  color: #140c06;
}

/* Consent banner belongs to the page's palette, not the vendor's. */
body:has(.ro-landing) .cookie-btn-accept {
  background-color: var(--ro-accent);
  border-color: var(--ro-accent);
  color: #140c06;
}

body:has(.ro-landing) .cookie-btn-accept:hover {
  background-color: var(--ro-accent-soft);
  border-color: var(--ro-accent-soft);
}

body:has(.ro-landing) .cookie-banner-link {
  color: var(--ro-accent-soft);
}

body:has(.ro-landing) .cookie-banner {
  background-color: rgba(16, 16, 18, 0.97);
  border-top: 1px solid var(--ro-line);
  color: var(--ro-ink-dim);
}

/* Secondary action needs to read as clickable, not disabled. */
.ro-btn--quiet {
  border-color: #3d3d44;
  color: var(--ro-ink);
}

.ro-btn--quiet:hover {
  border-color: var(--ro-accent);
  color: var(--ro-ink);
}

/* Metadata row was too quiet to read. */
.ro-facts {
  font-size: 0.78rem;
  color: #9aa4aa;
}

/* ---------- hero: two columns, with the deliverable as the counterweight ---------- */

.ro-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ro-hero__grid {
    grid-template-columns: minmax(0, 1fr) 25rem;
    gap: 4rem;
  }
}

.ro-report {
  border: 1px solid var(--ro-line);
  border-radius: 4px;
  background-color: var(--ro-surface);
  padding: 1.25rem 1.35rem 1.1rem;
}

.ro-report__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ro-line-soft);
}

.ro-report__label {
  font-family: var(--ro-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ro-accent-soft);
}

.ro-report__meta {
  font-family: var(--ro-mono);
  font-size: 0.7rem;
  color: var(--ro-muted);
}

.ro-report ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ro-report li {
  display: grid;
  grid-template-columns: 0.6rem 1fr;
  gap: 0.85rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--ro-line-soft);
  align-items: start;
}

.ro-report li:last-child { border-bottom: 0; }

.ro-report .sev {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  margin-top: 0.45rem;
}

.ro-report .sev--crit { background-color: #b4432f; }
.ro-report .sev--high { background-color: #b07c22; }
.ro-report .sev--med  { background-color: #3f6b3a; }

html.ro-dark .ro-report .sev--crit { background-color: #d9705f; }
html.ro-dark .ro-report .sev--high { background-color: #d9a15f; }
html.ro-dark .ro-report .sev--med  { background-color: #7fae7a; }

.ro-report b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ro-ink);
  margin-bottom: 0.15rem;
}

.ro-report p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ro-muted);
}

.ro-report__foot {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ro-line-soft);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ro-muted);
}

/* Mono labels were borderline at 12px on near-black. */
.ro-price__note {
  font-size: 0.78rem;
  color: #9aa4aa;
}

.ro-num {
  color: #9aa4aa;
}

/* ============================================================
   Theme-specific components.

   The palette is declared once, at the top of this file: light is the base and
   html.ro-dark is the opt-in. What follows is only what genuinely needs a
   different value per theme for a reason other than a colour token.
   ============================================================ */

/* The consent banner and the footer are shared partials already styled for
   paper, so they need no theme switch. These two rules only restore the
   landing's own background and border values on top of the partial. */
body:has(.ro-landing) .cookie-banner {
  background-color: rgba(255, 255, 255, 0.98);
  border-top-color: var(--ro-line);
  color: var(--ro-ink-dim);
}

body:has(.ro-landing) .cookie-btn-reject {
  color: var(--ro-muted);
  border-color: #d5dde1;
}

/* The portrait is desaturated on dark paper only. */
html.ro-dark .ro-person img { filter: grayscale(0.15) contrast(1.02); }

/* ============================================================
   Primary button, driven by tokens.
   Light paper takes ink, because a mid-tone accent cannot carry a light label
   at 4.5:1 without going so dark it stops reading as the accent. Dark paper
   takes the accent itself. Both are tokens, so no theme selector is needed.

   .ro-btn--primary carries a real border, so it needs the matching colour. The
   header CTA and the cookie button have none, which is why they are a separate
   rule: a border there only made the button 2px taller.
   ============================================================ */

body:has(.ro-landing) .site-header a.btn-primary,
body:has(.ro-landing) .cookie-btn-accept {
  background-color: var(--ro-btn-bg);
  color: var(--ro-btn-text);
}

body:has(.ro-landing) .site-header a.btn-primary:hover,
body:has(.ro-landing) .cookie-btn-accept:hover {
  background-color: var(--ro-btn-bg-hover);
}

/* ============================================================
   Full-screen sections with scroll snapping.
   Andrew's requirement: one scroll gesture moves one whole screen, and the
   content sits centred on each screen rather than offset by a number gutter.

   scroll-snap-stop: always is what makes a single gesture land on exactly one
   boundary instead of skipping two or three sections on a fast trackpad flick.
   ============================================================ */

html:has(.ro-landing) {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.ro-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  padding-block: 6rem 4rem;
  position: relative;
}

/* the fixed header sits over the first screen, so it needs clearance */
.ro-screen--hero { padding-block: 8rem 5rem; }

/* the footer must be a valid resting place or mandatory snapping traps it */
body:has(.ro-landing) > footer {
  scroll-snap-align: start;
}

/* one centred column per screen */
.ro-col {
  width: 100%;
  max-width: var(--ro-col);
  margin-inline: 0;
}

/* the number is now an inline marker above the heading, not a gutter */
.ro-num {
  position: static;
  display: block;
  padding-top: 0;
  margin: 0 0 1rem;
  font-family: var(--ro-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ro-accent-soft);
}

.ro-num::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background-color: var(--ro-accent);
}

.ro-h2 { max-width: 22ch; margin-bottom: 1.75rem; }

.ro-lede { margin-top: 0; }
.ro-lede + .ro-lede { margin-top: 1rem; }
.ro-lede--tight { margin-top: 1.75rem; }

/* hero: two columns, vertically centred, both sitting on the same baseline grid */
.ro-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .ro-hero__grid {
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 3.5rem;
  }
}

/* price: the figure column is narrower so the pair fits a centred measure */
.ro-price {
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 900px) {
  .ro-price {
    grid-template-columns: minmax(0, 1fr) 13rem;
    gap: 3rem;
  }
}

.ro-price__figure { padding-left: 1.25rem; }
.ro-price__amount + .ro-price__note { margin-top: 0.5rem; }
.ro-price__note + .ro-price__amount { margin-top: 1.75rem; }

/* person and posts sit inside the centred column now */
.ro-person { grid-template-columns: 1fr; gap: 1.75rem; }

@media (min-width: 768px) {
  .ro-person { grid-template-columns: 9rem 1fr; gap: 2.25rem; }
}

.ro-person img { width: 9rem; height: 9rem; }

.ro-posts { max-width: none; }
.ro-list { max-width: none; }

/* reveal transitions are wasted on a snapped page: each screen arrives whole */

@media (prefers-reduced-motion: reduce) {
  html:has(.ro-landing) { scroll-behavior: auto; }
}

/* baseof puts a 64px spacer between the fixed header and <main>. On a
   full-screen snap layout that spacer becomes a visible band above the first
   screen and pushes every snap point down by 64px. Remove it here only. */
body:has(.ro-landing) > .h-16 {
  display: none;
}

/* Tightened so the tallest screen (the artefact one) still fits a 900px
   viewport. An 18px overflow on a mandatory snap point is a trap: the caption
   below the fold cannot be reached without fighting the snap. */
.ro-screen {
  padding-block: 5rem 2.5rem;
}

.ro-screen--hero {
  padding-block: 6.5rem 3rem;
}

/* the artefact was the tallest block;

/* Anchor navigation and programmatic scrolling were both dead: every fragment
   resolved to scrollY 0, and a scripted scroll never settled. The combination
   of scroll-behavior:smooth with scroll-snap-stop:always blocks long jumps,
   because the scroller refuses to pass more than one snap point at a time.
   Dropping both keeps the one-screen-per-gesture behaviour (that comes from
   mandatory snapping against 100svh sections) while letting links work. */
html:has(.ro-landing) {
  scroll-behavior: auto;
}

.ro-screen {
  scroll-snap-stop: normal;
}

/* The fixed consent banner covers the bottom ~72px of every screen, which ate
   the caption under the artefact. Reserve that space so content is never
   hidden behind it, and keep the vertical centring honest. */
.ro-screen {
  padding-block: 4.5rem 6.5rem;
}

.ro-screen--hero {
  padding-block: 6rem 6.5rem;
}

/* The artefact screen was 937px against a 900px viewport. A section taller than
   the viewport is a trap under mandatory snapping: its caption cannot be
   reached without fighting the snap. Trim the terminal type and the screen
   padding until it fits with headroom. */
.ro-screen {
  padding-block: 4rem 6rem;
}

#quiet-failure .ro-lede + .ro-lede { margin-top: 0.75rem; }

/* ============================================================
   Centring against the real visible area.

   The previous version centred inside a padded box using hardcoded values that
   guessed at the header and the consent banner. That is wrong twice: the guess
   is not the measurement, and it stays wrong after the banner is dismissed.

   Now the header and banner heights are measured from the live DOM and written
   to custom properties. Each screen is exactly one viewport tall, the header
   height is reserved at the top and the banner height at the bottom, so the
   flex centring happens in the space a visitor can actually see. When the
   banner goes away its height becomes 0 and the content recentres itself.
   ============================================================ */

:root {
  --ro-header-h: 79px;
  --ro-banner-h: 0px;
}

.ro-screen,
.ro-screen--hero {
  min-height: 100svh;
  box-sizing: border-box;
  padding-top: calc(var(--ro-header-h) + 1.75rem);
  padding-bottom: calc(var(--ro-banner-h) + 1.75rem);
  padding-left: 0;
  padding-right: 0;
}

/* scroll-padding-top stays at 0. Setting it to the header height shifted every
   snap point down by that amount, so a gesture landed on 821 instead of 900 and
   the screens stopped aligning with the viewport. The sections already reserve
   header space with their own top padding, so it was both redundant and wrong. */
html:has(.ro-landing) {
  scroll-padding-top: 0;
}

/* ============================================================
   Every screen must fit the window with no scrolling inside it.

   Measured before this change: at 900px height the tightest screen had 66px of
   slack, but at 800px it overflowed by 34px and at 720px by 114px. Fixed pixel
   sizes cannot hold a viewport, so type and spacing are now expressed as a
   fraction of viewport height with a floor and a ceiling. Each middle value is
   the size that measured correct at 900px, written as vh (px / 900 * 100).

   Floors are set low enough to still fit a 700px-tall window.
   ============================================================ */

.ro-h1 {
  /* min() of the two axes, not vh alone. A tall narrow phone reports 844px of
     height, so 8.44vh asked for a 71px headline inside a 327px column, where
     the single word "infrastructure" measures 411px. Unbreakable, so it pushed
     the document 84px wide and dragged the fixed header with it. Desktop is
     unchanged: at 1440x900 the height term still wins. */
  font-size: clamp(2.25rem, min(8.44vh, 7vw), 4.75rem);
  line-height: 1.03;
  margin-bottom: clamp(0.75rem, 3.11vh, 1.75rem);
}

.ro-h2 {
  font-size: clamp(1.5rem, min(5.07vh, 4.6vw), 2.85rem);
  overflow-wrap: break-word;
  line-height: 1.1;
  margin-bottom: clamp(0.75rem, 3.11vh, 1.75rem);
}

/* Size is fixed, not derived from viewport height. A height-based clamp made
   the same heading render at 15.2px in a short window and 19.2px in a tall one,
   and different again on every page that does not load this file. The value
   matches the one index.css gives the same class, so the class means one thing
   on every route. */
.ro-sub {
  font-size: 1.125rem;
  line-height: 1.55;
}

.ro-lede {
  margin-top: 1rem;
}

.ro-eyebrow,
.ro-num {
  font-size: clamp(0.6rem, 1.28vh, 0.72rem);
  margin-bottom: clamp(0.5rem, 1.78vh, 1rem);
}

.ro-list h3 {
  font-size: clamp(0.85rem, 1.78vh, 1rem);
  line-height: 1.4;
  margin-bottom: clamp(0.15rem, 0.62vh, 0.35rem);
}

.ro-list p {
  font-size: clamp(0.78rem, 1.67vh, 0.9375rem);
  line-height: 1.5;
}

.ro-list li {
  padding-top: clamp(0.5rem, 2.49vh, 1.4rem);
  padding-bottom: clamp(0.5rem, 2.49vh, 1.4rem);
}

.ro-btn {
  font-size: clamp(0.85rem, 1.67vh, 0.9375rem);
  padding-top: clamp(0.55rem, 1.6vh, 0.9rem);
  padding-bottom: clamp(0.55rem, 1.6vh, 0.9rem);
}

.ro-facts {
  font-size: clamp(0.62rem, 1.39vh, 0.78rem);
  margin-top: clamp(0.9rem, 5.33vh, 3rem);
}

.ro-actions {
  margin-top: clamp(0.9rem, 3.5vh, 2rem);
}

.ro-hero__grid {
  gap: clamp(1.25rem, 3.5vh, 3.5rem);
}

.ro-price,
.ro-person {
  gap: clamp(0.9rem, 3vh, 2.25rem);
}

.ro-price__note + .ro-price__amount {
  margin-top: clamp(0.6rem, 1.94vh, 1.75rem);
}

/* screen padding also breathes with the window, on top of the measured chrome */
.ro-screen,
.ro-screen--hero {
  padding-top: calc(var(--ro-header-h) + clamp(0.9rem, 3.5vh, 1.75rem));
  padding-bottom: calc(var(--ro-banner-h) + clamp(0.9rem, 3.5vh, 1.75rem));
}

/* The hero is the one screen whose content can outgrow the visible area. Its
   copy column needs 795px at the full type scale, and the space between the
   header and the banner is only 795px once the window is 1000px tall. Below
   that the section grows past one viewport, so the flex centring loses its
   slack and the content hangs below the middle by half the overflow. These two
   steps tighten the vertical rhythm and cap the headline so centring works
   again. Above 999px the hero already fits exactly and nothing changes. */
@media (max-height: 999px) {
  .ro-screen--hero {
    padding-block: calc(var(--ro-header-h) + 0.75rem) calc(var(--ro-banner-h) + 0.75rem);
  }

  /* Trim the vertical rhythm before the type. The headline carries the page's
     voice and the gaps do not, so the gaps give up their space first. */
  .ro-screen--hero .ro-h1 {
    font-size: clamp(2.25rem, min(8vh, 7vw), 4.75rem);
    margin-bottom: 1.25rem;
  }

  .ro-screen--hero .ro-sub { margin-bottom: 1.5rem; }
  .ro-screen--hero .ro-actions { margin-top: 1.25rem; }
  .ro-screen--hero .ro-facts { margin-top: 1.5rem; }

  /* Once the copy column is short enough, the terminal becomes the tallest
     block and sets the section height instead. Tighten its leading too. */
  .ro-screen--hero .ro-term__body { line-height: 1.85; padding: 0.9rem 1.1rem 1rem; }
  .ro-screen--hero .ro-term__verdict { margin-top: 0.8rem; padding-top: 0.8rem; }
}

/* The headline keeps scaling on the same 8vh curve as the step above, so there
   is no size jump at the boundary. This step only takes the remaining space
   from the supporting copy. */
@media (max-height: 860px) {
  .ro-screen--hero .ro-sub { font-size: 1.0625rem; margin-bottom: 1.25rem; }
  .ro-screen--hero .ro-actions { margin-top: 1rem; }
  .ro-screen--hero .ro-facts { margin-top: 1rem; }

  .ro-screen--hero .ro-term__body {
    font-size: 0.76rem;
    line-height: 1.7;
    padding: 0.8rem 1rem 0.9rem;
  }
}

/* last resort: if a window is so short that even the floors overflow, drop the
   decorative extras rather than forcing the reader to scroll inside a screen */
@media (max-height: 700px) {
  .ro-facts { display: none; }

}

/* ============================================================
   Paper is the base theme, so the values below are the design. The dark variant
   is the exception and is declared with html.ro-dark.
   ============================================================ */

/* The mono greys were tuned against near-black and were far too pale on paper.
   The muted token is already theme-aware, so it serves both. */
.ro-num,
.ro-price__note,
.ro-caption,
.ro-facts,
.ro-facts span {
  color: var(--ro-muted);
}

/* The consent banner is a shared partial styled for paper. Only its link needs
   the accent. */
body:has(.ro-landing) .cookie-banner p a {
  color: var(--ro-accent);
  text-decoration: underline;
}

/* The header sits over content on a stacked landing page, so it takes a solid
   page-coloured background. A translucent blurred header turns any text passing
   under it into a grey smudge above the fold. The landing does not need the
   .scrolled class to gain a background, because it always sits over content. */
body:has(.ro-landing) .site-header,
body:has(.ro-landing) .site-header.scrolled {
  background-color: var(--ro-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

html.ro-dark body:has(.ro-landing) .site-header {
  background-color: transparent;
}

html.ro-dark body:has(.ro-landing) .site-header.scrolled {
  background-color: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--ro-line-soft);
}

/* The footer is a shared partial already styled for paper, so it needs no theme
   switch. The landing only removes the gap the partial leaves above it. */
body:has(.ro-landing) > footer {
  margin-top: 0;
}

/* Hero aside: a terminal showing the product's own output.
   A drawing placed beside a text column is decoration, and decoration beside
   copy reads as pasted in. This is built from the page's own type, colour and
   mono, so it cannot. Below 1280px it stacks under the copy; above it shares
   the top rail with the copy. */
.ro-hero__aside {
  margin: 2.25rem auto 0;
  max-width: 560px;
}

.ro-term {
  background: var(--ro-surface);
  border: 1px solid var(--ro-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 21, 23, 0.04), 0 12px 32px -12px rgba(15, 21, 23, 0.14);
}

.ro-term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--ro-line-soft);
  background: var(--ro-raised);
}

.ro-term__title {
  font-family: var(--ro-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ro-ink-dim);
}

.ro-term__dots {
  display: flex;
  gap: 0.35rem;
}

.ro-term__dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ro-line);
}

.ro-term__body {
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--ro-mono);
  font-size: 0.8rem;
  line-height: 2;
}

.ro-term__line {
  display: flex;
  gap: 0.7rem;
  white-space: pre-wrap;
}

.ro-term__line b {
  font-weight: 500;
}

.ro-term__line--dim {
  color: var(--ro-muted);
}

.ro-term__line--bad {
  color: #b03a30;
}

.ro-term__verdict {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ro-line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.ro-term__verdict span {
  font-family: var(--ro-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ro-muted);
}

.ro-term__verdict strong {
  font-family: var(--ro-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: #b03a30;
}

@media (min-width: 1280px) {
  /* Both columns sit inside the page's one container width. No bleed: the whole
     page shares a single measure and a single left and right edge, and letting
     the hero run past the right rail broke that.
     The panel is centred against the copy block so the remaining slack is shared
     above and below rather than dumped under it. */
  .ro-screen--hero .ro-wrap {
    display: grid;
    grid-template-columns: minmax(0, 36rem) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }

  .ro-hero__aside {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}
