/* R ONE public pages. Tokens follow DEMO-R03: black and white, Riviosa Gothic Book, red used sparingly, light/dark. */
@font-face { font-family: "Riviosa Gothic"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/riviosa-gothic-book.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #f5f5f7; --card: #ffffff; --ink: #1d1d1f; --ink-2: #424245; --muted: #6e6e73;
  --line: #d2d2d7; --line-soft: #e8e8ed; --accent: #b0261c; --accent-ink: #b0261c;
  --radius: 14px; --gap: clamp(16px, 2.6vw, 28px);
  --font: "Riviosa Gothic", -apple-system, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --surface: #161617; --card: #1d1d1f; --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6;
    --line: #424245; --line-soft: #2c2c2e; --accent: #c9352a; --accent-ink: #ff6b5f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #161617; --card: #1d1d1f; --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6;
  --line: #424245; --line-soft: #2c2c2e; --accent: #c9352a; --accent-ink: #ff6b5f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; }
h1, h2, h3, strong, b { font-weight: 400; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; height: 56px;
  padding: 0 max(16px, 3vw); background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 15px; }
.nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.theme { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }

main { max-width: 980px; margin: 0 auto; padding: 0 max(16px, 3vw) 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(28px, 5vw, 48px); border-bottom: 1px solid var(--line-soft); }
.eyebrow { color: var(--accent-ink); font-size: 14px; letter-spacing: 0.02em; margin-bottom: 12px; }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.lead { margin-top: 18px; max-width: 46rem; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--ink-2); }
.band { padding: clamp(28px, 5vw, 48px) 0; border-bottom: 1px solid var(--line-soft); }
.band:last-child { border-bottom: 0; }
h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.02em; margin-bottom: 18px; }
h3 { font-size: 19px; margin-bottom: 6px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; }
.label { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 6px; display: block; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.mod { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; background: var(--card); }
.mod p { color: var(--ink-2); font-size: 15px; }
.mod .state { margin-top: 10px; font-size: 13px; color: var(--muted); }
.note { color: var(--muted); font-size: 15px; max-width: 46rem; margin-bottom: 14px; }
.list { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: 46rem; }
.kv { margin-top: 20px; font-size: 18px; overflow-wrap: anywhere; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 15px; }
.button:hover { background: var(--accent); color: #fff; }
.button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button.quiet:hover { border-color: var(--accent); background: transparent; color: var(--ink); }
.next p + p { margin-top: 16px; }
.facts { margin: 26px 0 0; display: grid; gap: 16px; max-width: 40rem; }
.facts div { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 4px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
address { font-style: normal; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; } }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); max-width: 46rem; }
.review blockquote { margin: 0; font-size: 19px; line-height: 1.45; }
.review .cite { margin-top: 8px; color: var(--muted); font-size: 14px; }
.foot { max-width: 980px; margin: 0 auto; padding: 24px max(16px, 3vw) 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-soft); }
.foot a { color: var(--muted); }
@media (max-width: 520px) { .nav { gap: 12px; } .theme { padding: 4px 9px; } }
.reviews + p { margin-top: 20px; }

/* Approved access navigation: keep all three links visible on narrow screens. */
@media (max-width: 600px) {
  .top { height: auto; min-height: 56px; flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
  .brand { flex: 1; }
  .theme { order: 2; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; flex-wrap: wrap; gap: 12px; }
}
