/* Seshat site styles. The colors come from tokens.css (web/src/lib/styles/tokens.css,
   copied in by `make site`). The site adds only the values below, for each theme. */

.nfm-dark {
  --sky: #03060c; /* the roadmap canvas */
  --on-gold: #0b1424;
  --header-bg: rgba(0, 0, 0, 0.82);
  --scrim: rgba(0, 0, 0, 0.6);
  --dust: rgba(245, 242, 234, 0.22);
  --dust-bright: rgba(245, 242, 234, 0.45);
  --star-label-built: rgba(245, 242, 234, 0.72);
  --star-label-planned: rgba(245, 242, 234, 0.5);
  --shadow: rgba(0, 0, 0, 0.8);
}
.nfm-light {
  --sky: #ebe4d2;
  --on-gold: #f5f2ea;
  --header-bg: rgba(244, 239, 227, 0.86);
  --scrim: rgba(11, 20, 36, 0.32);
  --dust: rgba(11, 20, 36, 0.14);
  --dust-bright: rgba(11, 20, 36, 0.28);
  --star-label-built: rgba(11, 20, 36, 0.72);
  --star-label-planned: rgba(11, 20, 36, 0.5);
  --shadow: rgba(11, 20, 36, 0.25);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
::selection {
  background: color-mix(in oklab, var(--gold) 40%, transparent);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.gold {
  color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  background: var(--surface);
  border-color: var(--text-dim);
}
.menu-btn {
  display: none; /* the drawer needs the script */
}
.js .menu-btn {
  display: grid;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
}
.here {
  display: none;
  align-items: center;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.js .here {
  display: flex;
}
.here-num {
  color: var(--gold);
}
.not-yet {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.header-cta {
  height: 40px;
  padding: 0 18px;
  font-size: 12px;
}
.header-cta .short {
  display: none;
}
@media (max-width: 759px) {
  .js .here,
  .not-yet {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
  .header-cta .long {
    display: none;
  }
  .header-cta .short {
    display: inline;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover {
  background: var(--surface);
  border-color: var(--text-dim);
}
.btn-primary,
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}
.btn-primary:hover {
  filter: brightness(1.08);
}

/* ---------- Drawer ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 31;
  width: min(400px, 88vw);
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -10px var(--shadow);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.32s;
}
.js .drawer {
  display: flex;
}
.drawer-open .scrim {
  opacity: 1;
  pointer-events: auto;
}
.drawer-open .drawer {
  transform: none;
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer-head {
  height: 68px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head .brand {
  font-size: 24px;
}
.drawer-head .brand img {
  width: 28px;
  height: 28px;
}
.esc {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}
.drawer-head .icon-btn {
  width: 36px;
  height: 36px;
}
.drawer-head .icon-btn:hover {
  background: var(--surface-2);
}
.drawer-nav {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
}
.drawer-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  align-items: start;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 0.15s;
}
.drawer-nav a:hover {
  background: var(--surface-2);
}
.drawer-nav a[aria-current='page'] {
  background: var(--surface-2);
  border-color: var(--line);
}
.drawer-nav a[aria-current='page']::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.nav-num {
  padding-top: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
[aria-current='page'] .nav-num {
  color: var(--gold);
}
.nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.05;
}
.nav-desc {
  font-size: 13px;
  color: var(--text-dim);
}
.drawer-nav svg {
  margin-top: 8px;
  opacity: 0.4;
}
.drawer-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
}
.drawer-foot .t-eyebrow {
  color: var(--text-faint);
}
.device-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.device-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}
.device-links a:hover {
  color: var(--gold);
}
.device-links .name {
  flex: 1;
}
.device-links .short {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}
.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--text-faint);
}
.dot.beta {
  background: var(--gold);
}
.drawer-copy {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}
.drawer-copy a {
  color: var(--text-dim);
}

/* ---------- Pages ---------- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 32px) 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
main.leaving {
  opacity: 0;
  transform: translateY(8px);
}
/* Without the script, every page shows, one after the other. With it, only the
   current page shows. The head script sets data-page before the first paint. */
.page + .page {
  margin-top: 120px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.js .page {
  display: none;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.js[data-page='overview'] #overview,
.js[data-page='library'] #library,
.js[data-page='features'] #features,
.js[data-page='devices'] #devices,
.js[data-page='roadmap'] #roadmap,
.js[data-page='setup'] #setup,
.js[data-page='for-techies'] #for-techies {
  display: block;
}
.page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.page-head h2,
.page-head h1 {
  outline: none;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
}
.lede {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}
.sub-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
}
.card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
}
.bullets {
  list-style: none;
  padding: 0;
}
.bullets li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.bullets li::before {
  content: '— ';
  color: var(--gold);
}
.pill {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.pill[aria-pressed='true'],
.pill[aria-selected='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}
.pill .count {
  opacity: 0.6;
}
.controls {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}
.js .controls {
  display: flex;
}

/* Browser frame around web screenshots */
.frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #000;
  box-shadow: 0 30px 80px -30px var(--shadow);
}
.frame-bar {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: #0b1424;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.frame-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 242, 234, 0.25);
}
.frame img {
  width: 100%;
}

/* ---------- 01 Overview ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero h1 em {
  color: var(--gold);
}
.hero .lede {
  max-width: 52ch;
  font-size: 18px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}
.facts > div {
  padding: 22px 24px;
  background: var(--surface);
}
.facts .card-title {
  margin-bottom: 6px;
}
.facts p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.next-up {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 56px;
}
.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.next-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.15s;
}
.next-grid a:hover {
  border-color: color-mix(in oklab, var(--gold) 60%, transparent);
}
.next-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.next-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.05;
}
.next-desc {
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- 02 Library ---------- */
.fmt-tab {
  height: 44px;
  padding: 0 18px;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.fmt-tab .kind {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.formats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.format {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.js .format[hidden] {
  display: none;
}
.format-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}
.format-text .t-eyebrow {
  color: var(--gold);
}
.format-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.05;
}
.format-text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}
.format-text .bullets {
  margin-top: 4px;
}
.format-shots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.js .shot[hidden] {
  display: none;
}
.shot-img {
  aspect-ratio: 1440 / 763;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #000;
}
.shot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.shot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.shot figcaption {
  flex: 1;
  min-width: 200px;
}
.thumbs {
  display: none;
  gap: 8px;
}
.js .thumbs {
  display: flex;
}
.thumbs button {
  width: 72px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #000;
  opacity: 0.55;
  cursor: pointer;
}
.thumbs button[aria-pressed='true'] {
  border-color: var(--gold);
  opacity: 1;
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

/* ---------- 03 Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature[hidden] {
  display: none;
}
.feature p {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.care {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 56px;
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 24px;
}
.care-grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.care-grid h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.care-grid p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ---------- 04 Devices ---------- */
.device-tabs {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.js .device-tabs {
  display: grid;
}
.device-tab {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.device-tab:hover {
  border-color: color-mix(in oklab, var(--gold) 60%, transparent);
}
.device-tab[aria-selected='true'] {
  background: var(--surface);
  border-color: color-mix(in oklab, var(--gold) 60%, transparent);
}
.device-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.device-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
}
.devices {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.device {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 36px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.js .device[hidden] {
  display: none;
}
.device-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.device-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
}
.device-text p {
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.device-text .bullets {
  margin-top: 6px;
}
.device-img {
  display: flex;
  justify-content: center;
}
.device-img img {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.device-img img.phone {
  max-width: 280px;
  border: 6px solid #13223c;
  border-radius: 28px;
}

/* ---------- 06 Setup & FAQ ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.step-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
}
.steps p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 56px;
}
.faq .sub-title {
  margin-bottom: 12px;
}
.faq-list {
  border-bottom: 1px solid var(--line);
}
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-q {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.faq-q button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.faq-q button:hover {
  color: var(--gold);
}
.faq-q .plus {
  flex: none;
  font-family: var(--font-mono);
  color: var(--gold);
  transition: transform 0.2s;
}
.faq-q button[aria-expanded='true'] .plus {
  transform: rotate(45deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.25s ease;
}
.js .faq-a {
  grid-template-rows: 0fr;
}
.js .faq-item.open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  max-width: 66ch;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}
/* Without the script the answers are always open, so the button is only a label. */
html:not(.js) .faq-q .plus {
  display: none;
}
html:not(.js) .faq-q button {
  cursor: default;
}

/* ---------- 05 Roadmap: the list ---------- */
/* The list is the data for the graph (site.js reads it). Without the script it is
   the roadmap itself. */
.js-only {
  display: none;
}
.js .js-only {
  display: inline;
}
.rm-eras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.rm-era {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.rm-era-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
}
.rm-era[data-status='beta'] .rm-era-title {
  color: var(--gold);
}
.rm-items {
  padding: 0;
  list-style: none;
}
.rm-items li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.rm-items .t-eyebrow {
  color: var(--gold);
}
.rm-items h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.rm-items p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ---------- 05 Roadmap: the graph (roadmap.js) ---------- */
.rm-ready #rm-list {
  display: none;
}
.rm-graph {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rm-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.rm-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rm-controls .pill {
  height: 36px;
  padding: 0 16px;
  letter-spacing: 0.12em;
  transition: all 0.2s;
}
.rm-area {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.rm-area[aria-pressed='true'] {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
}
.rm-steps {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}
.rm-divider {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: var(--line-strong);
}
@media (max-width: 759px) {
  .rm-divider {
    display: none;
  }
}
.rm-step {
  width: 34px;
  height: 34px;
}
.rm-sky {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sky);
  cursor: grab;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
}
.rm-sky::-webkit-scrollbar {
  display: none;
}
.rm-sky.rm-grabbing {
  cursor: grabbing;
}
.rm-track {
  position: relative;
}
.rm-lines {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  fill: none;
}
.rm-dust {
  stroke: var(--dust);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.rm-dust-bright {
  stroke: var(--dust-bright);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.rm-trunk-built {
  stroke: color-mix(in oklab, var(--gold) 50%, transparent);
  stroke-width: 2;
}
.rm-trunk-beta {
  stroke: var(--gold);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--gold) 55%, transparent));
}
.rm-trunk-planned {
  stroke: color-mix(in oklab, var(--gold) 32%, transparent);
  stroke-width: 2;
}
.rm-line-built {
  stroke: color-mix(in oklab, var(--gold) 45%, transparent);
  stroke-width: 1.5;
}
.rm-line-beta {
  stroke: var(--gold);
  stroke-width: 1.8;
}
.rm-tail {
  stroke-width: 1.8;
}
.rm-tail-from {
  stop-color: var(--gold);
  stop-opacity: 1;
}
.rm-tail-to {
  stop-color: var(--gold);
  stop-opacity: 0;
}
.rm-line-planned {
  stroke: color-mix(in oklab, var(--gold) 38%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
}
.rm-now {
  fill: var(--sky);
  stroke: var(--gold);
  stroke-width: 2;
}
.rm-era-label {
  position: absolute;
  top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  pointer-events: none;
}
.rm-era-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
}
.rm-era-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rm-era-beta .rm-era-name {
  color: var(--gold);
}
.rm-era-beta .rm-era-kicker {
  color: color-mix(in oklab, var(--gold) 75%, transparent);
}
.rm-here {
  position: absolute;
  top: 94px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
  pointer-events: none;
}
.rm-node {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.25s;
}
.rm-node.rm-dim {
  opacity: 0.18;
}
.rm-star {
  display: block;
  overflow: visible;
}
.rm-star polygon {
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.rm-star-built polygon {
  fill: color-mix(in oklab, var(--gold) 55%, transparent);
  stroke: color-mix(in oklab, var(--gold) 55%, transparent);
}
.rm-star-beta {
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--gold) 80%, transparent));
}
.rm-star-beta polygon {
  fill: var(--gold);
  stroke: var(--gold);
}
.rm-star-planned polygon {
  fill: var(--sky);
  stroke: color-mix(in oklab, var(--gold) 50%, transparent);
}
.rm-detail .rm-star-planned polygon {
  fill: var(--surface);
}
.rm-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
}
.rm-side .rm-label {
  transform: none;
}
.rm-node-built .rm-label {
  color: var(--star-label-built);
}
.rm-node-planned .rm-label {
  color: var(--star-label-planned);
}
.rm-node[aria-pressed='true'] .rm-label {
  font-weight: 700;
}
.rm-node:focus-visible {
  outline-offset: 4px;
  border-radius: 50%;
}
.rm-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.rm-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.rm-detail-star {
  flex: none;
  display: flex;
}
.rm-detail-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rm-detail-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.rm-detail-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  line-height: 1.05;
}
.rm-detail-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ---------- Pager and footer ---------- */
.pager {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin-top: 88px;
}
.js .pager {
  display: grid;
}
/* The For techies page has its own back button. */
.js[data-page='for-techies'] .pager {
  display: none;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.15s;
}
.pager a:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}
.pager .next {
  align-items: flex-end;
  text-align: right;
}
.pager .t-eyebrow {
  color: var(--text-dim);
}
.pager-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
}
.site-footer {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 32px clamp(16px, 3vw, 32px) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.site-footer .brand {
  font-size: 20px;
}
.site-footer .brand img {
  width: 24px;
  height: 24px;
}
.site-footer .myth {
  flex: 1;
  min-width: 260px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
}
.site-footer .privacy {
  font-size: 14px;
  color: var(--text-dim);
}
.site-footer .privacy:hover {
  color: var(--text);
}
.site-footer .copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

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

/* ---------- Translate button and For techies spec sheet ---------- */
.translate {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}
.translate-btn {
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  font-size: 11px;
  color: var(--text-dim);
}
.translate-btn:hover {
  color: var(--text);
}
.translate-end {
  margin-top: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.translate-end .text-link {
  font-size: 14px;
  color: var(--text-dim);
}
.translate-end .text-link:hover {
  color: var(--text);
}
.spec {
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  display: grid;
  gap: 1px;
}
.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 24px;
  background: var(--surface);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}
.spec dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}
.spec code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text);
}
@media (max-width: 759px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 20px;
  }
  .translate {
    justify-content: flex-start;
  }
  .translate-btn {
    width: 100%;
  }
  .translate-end .translate-btn {
    width: 100%;
  }
}
