/* Radyssey site styles.
   Brand colours live here, so a palette change is a one-line edit.
   RadBase: radbase.co (light theme). RadShell: the original lessons-site teal (dark theme). */
:root {
  /* Radyssey: neutral black and white */
  --ink: #141414;
  --paper: #ffffff;
  --paper-2: #f3f4f4;
  --line: #e3e5e6;
  --muted: #4b5359;

  /* RadBase */
  --rb-brand: #ff3b21;
  --rb-fill: #d9361e;
  --rb-fill-hover: #b8301a;
  --rb-label: #c42d17;
  --rb-quiet: #fde4df;
  --rb-ink: #141414;

  /* RadShell */
  --rs-bg: #0e1514;
  --rs-panel: #162120;
  --rs-line: #2a3836;
  --rs-text: #dde4e2;
  --rs-muted: #a9b7b4;
  --rs-brand: #2dd4bf;
  --rs-accent: #80d5d0;
  --rs-on-accent: #003735;
  --rs-white: #f9f9f9;

  --font-brand: "Outfit", "Manrope", system-ui, sans-serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rb-label); outline-offset: 3px; }
.product--shell :focus-visible, .hero__half--shell :focus-visible, .site-header__half--shell :focus-visible, .site-footer__half--shell :focus-visible { outline-color: var(--rs-accent); }

/* ---------- Logo lockups ---------- */
.lockup { display: inline-flex; align-items: center; gap: 0.42em; text-decoration: none; font-size: 24px; }
.lockup .mark { height: 1.15em; width: calc(1.15em * 51 / 48); flex-shrink: 0; }
.wordmark { font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.lockup--lg { font-size: clamp(34px, 4vw, 48px); }
.lockup--xl { font-size: clamp(40px, 4.6vw, 60px); }
.lockup--radyssey { --mark-bowl: var(--ink); --mark-leg: var(--ink); color: var(--ink); }
.lockup--radbase { --mark-bowl: var(--rb-brand); --mark-leg: var(--rb-ink); color: var(--rb-ink); }
.lockup--radbase .dot { color: var(--rb-brand); }
.lockup--radshell { --mark-bowl: var(--rs-brand); --mark-leg: var(--rs-white); color: var(--rs-white); }

/* ---------- Buttons and labels ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.pill--base { background: var(--rb-fill); color: #fff; }
.pill--base:hover { background: var(--rb-fill-hover); }
.pill--shell { background: var(--rs-accent); color: var(--rs-on-accent); }
.pill--shell:hover { background: var(--rs-brand); }
.pill--light { background: var(--rs-text); color: var(--rs-bg); }
.pill--light:hover { background: #fff; }
.link-arrow { font-family: var(--font-mono); font-size: 14px; text-underline-offset: 5px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow--base { color: var(--rb-label); }
.eyebrow--shell { color: var(--rs-accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.note { font-size: 15px; color: var(--muted); }
.small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.site-header__half { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; padding: 0 var(--gutter); }
.site-header__half--shell { color: var(--rs-text); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: max(760px, 100vh); }
.hero__half { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 150px var(--gutter) 64px; }
.hero__half--base { background: var(--paper); color: var(--rb-ink); }
.hero__half--shell { background: var(--rs-bg); color: var(--rs-text); align-items: flex-end; text-align: right; }
.hero__half--shell .actions { justify-content: flex-end; }
.hero__body { display: flex; flex-direction: column; gap: 20px; max-width: 460px; }
.hero__half--shell .hero__body { align-items: flex-end; }
.hero__line { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; }
.hero__wordmark {
  position: absolute; left: 0; right: 0; top: 46%; transform: translateY(-50%);
  display: flex; justify-content: center; align-items: center; gap: 0.16em;
  pointer-events: none; mix-blend-mode: difference; color: #fff;
  font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  font-size: clamp(72px, 12vw, 190px);
  --mark-bowl: #fff; --mark-leg: #fff;
}
.hero__wordmark .mark { height: 0.9em; width: calc(0.9em * 51 / 48); }

/* ---------- Intro ---------- */
.intro { padding: clamp(64px, 9vw, 120px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; font-weight: 800; max-width: 900px; letter-spacing: -0.035em; }
.intro p { font-size: 19px; color: var(--muted); max-width: 640px; }

/* ---------- Split steps ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split__half { padding: clamp(48px, 6vw, 88px) var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.split__half--shell { background: var(--rs-bg); color: var(--rs-text); }
.split h2 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rb-ink); }
.steps li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps__n { font-family: var(--font-mono); font-size: 13px; width: 40px; flex-shrink: 0; padding-top: 3px; color: var(--rb-label); }
.steps--shell { border-top-color: var(--rs-accent); }
.steps--shell li { border-bottom-color: var(--rs-line); }
.steps--shell li:not(:first-child) { color: var(--rs-muted); }
.steps--shell .steps__n { color: var(--rs-accent); }

/* ---------- Product sections ---------- */
.product { padding: clamp(72px, 9vw, 128px) 0; }
.product__head { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.product h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); }
.product--base .wrap { display: flex; flex-direction: column; gap: 48px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.card__tag { align-self: flex-start; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rb-label); background: var(--rb-quiet); border-radius: 999px; padding: 4px 10px; }
.card p { font-size: 16px; }

.pool { background: var(--paper-2); color: var(--rb-ink); padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.pool__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.pool__line { font-family: var(--font-brand); font-weight: 800; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em; max-width: 780px; }
.pool__line span { color: var(--rb-brand); }
.pool__text { max-width: 380px; font-size: 16px; color: var(--muted); }

.product--shell { background: var(--rs-bg); color: var(--rs-text); }
.product--shell .lede { color: var(--rs-muted); }
.product__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 3px; background: var(--rs-brand); }
.note--shell { color: var(--rs-muted); border-left: 2px solid var(--rs-accent); padding-left: 16px; }

.runboard { margin: 0; background: var(--rs-panel); border: 1px solid var(--rs-line); border-radius: 20px; font-family: var(--font-mono); font-size: 13px; overflow: hidden; }
.runboard__bar { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--rs-line); color: var(--rs-muted); }
.runboard__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--rs-line); }
.runboard__row--dim { color: var(--rs-muted); }
.state { border: 1px solid var(--rs-line); border-radius: 999px; padding: 2px 10px; justify-self: end; white-space: nowrap; }
.state--run { background: var(--rs-accent); border-color: var(--rs-accent); color: var(--rs-on-accent); }
.state--unknown { border-style: dashed; border-color: var(--rs-muted); }
.runboard__gpu { padding: 13px 18px; color: var(--rs-muted); border-bottom: 1px solid var(--rs-line); }
.runboard__log { margin: 0; padding: 14px 18px; background: #0a100f; color: var(--rs-accent); font: inherit; line-height: 1.7; }
.runboard figcaption { padding: 10px 18px; font-size: 11px; color: var(--rs-muted); }

/* ---------- Compare ---------- */
.compare { padding: clamp(64px, 8vw, 112px) 0; }
.compare h2, .principles h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 32px; }
.table-box { overflow-x: auto; }
table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; font-size: 16px; }
thead th { padding: 14px 16px; font-size: 20px; font-weight: 800; border-bottom: 2px solid var(--ink); }
thead th:first-child { width: 22%; padding-left: 0; }
.col-base { color: var(--rb-label); }
.col-shell { background: var(--rs-bg); color: var(--rs-accent); }
tbody th { padding: 16px 16px 16px 0; font-weight: 600; vertical-align: top; }
tbody td { padding: 16px; vertical-align: top; }
tbody tr { border-bottom: 1px solid var(--line); }
.cell-shell { background: #eef4f3; }

/* ---------- Principles ---------- */
.principles { padding: 0 0 clamp(64px, 8vw, 112px); }
.principles__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }
.principles__list li { padding: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.principles__list h3 { font-size: 21px; font-weight: 700; }
.principles__list p { color: var(--muted); font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__half { padding: 56px var(--gutter); display: flex; flex-direction: column; gap: 14px; }
.site-footer__half--base { border-top: 1px solid var(--line); }
.site-footer__half--shell { background: var(--rs-bg); color: var(--rs-text); align-items: flex-end; text-align: right; justify-content: center; }
.site-footer__half--shell .small { color: var(--rs-muted); }
.site-footer__ask { font-size: 20px; font-weight: 600; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .site-header { position: static; grid-template-columns: 1fr; }
  .site-header__half { min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .site-header__half--shell { background: var(--rs-bg); }
  .hero, .split, .site-footer, .product__grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; grid-auto-rows: 1fr; }
  .hero__half { padding-top: 48px; padding-bottom: 56px; min-height: 380px; }
  .hero__half--base { padding-bottom: 104px; }
  .hero__half--shell { padding-top: 104px; }
  .hero__wordmark { top: 50%; font-size: clamp(56px, 17vw, 120px); }
  .site-footer__half--shell { align-items: flex-start; text-align: left; }
}
@media (max-width: 480px) {
  .runboard__row { grid-template-columns: minmax(0, 1fr) auto; }
  .runboard__row span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
