:root {
  color-scheme: light;
  --bg: oklch(0.975 0.008 88);
  --bg-deep: oklch(0.958 0.010 88);
  --surface: oklch(0.992 0.004 90);
  --line: oklch(0.868 0.010 88);
  --line-strong: oklch(0.760 0.014 88);
  --ink: oklch(0.22 0.022 230);
  --muted: oklch(0.48 0.016 230);
  --subtle: oklch(0.62 0.012 230);
  --accent: oklch(0.38 0.065 200);
  --accent-soft: oklch(0.94 0.018 200);
  --content: min(1100px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 64px;
}

/* ── Navigation ── */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 4px 0 52px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: "Newsreader", serif;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--subtle);
  font-size: 0.79rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 140ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ── Intro (homepage) ── */

.intro {
  padding-top: 64px;
}

.intro h1 {
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 20px;
}

.intro-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.intro-bio {
  color: var(--muted);
  line-height: 1.78;
  margin: 0 0 14px;
  font-size: 1rem;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.intro-links a {
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line-strong);
  transition: color 140ms ease, border-color 140ms ease;
}

.intro-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.intro-meta {
  padding-top: 4px;
}

.intro-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.intro-meta-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.5;
}

.intro-meta-list li strong {
  color: var(--subtle);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding-top: 2px;
}

/* ── Now list (homepage) ── */

.now-section {
  padding-top: 56px;
}

.now-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin: 0 0 18px;
  font-weight: 600;
}

.now-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.now-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.now-list li strong {
  color: var(--ink);
  font-size: 0.93rem;
}

.now-list li a {
  color: inherit;
}

.now-list li a:hover {
  color: var(--accent);
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-top: 64px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 600;
}

.hero h1,
.page-title,
.section-heading h2,
.product-card h2,
.exploration h3,
.faq-item h3,
.timeline-card h3 {
  font-family: "Newsreader", serif;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.92;
}

.hero-lede,
.page-lede {
  margin: 20px 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-family: "Newsreader", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.hero-copy-body,
.body-copy,
.section-heading p:last-child,
.exploration p,
.timeline-card p,
.signal-list span,
.mini-copy,
.product-card p,
.product-card li,
.legal p,
.legal li,
.faq-item p,
.contact-copy,
.info-grid li p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy-body,
.body-copy {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: 0.97rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button.primary {
  background: var(--ink);
  color: oklch(0.97 0.005 88);
  border-color: var(--ink);
}

.button.primary:hover {
  background: oklch(0.32 0.03 230);
}

.button.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Hero Rail ── */

.hero-rail {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.rail-card {
  padding: 22px 24px;
  background: var(--surface);
}

.rail-card + .rail-card {
  border-top: 1px solid var(--line);
}

.rail-card.alt {
  background: var(--bg-deep);
}

.card-label,
.exploration-meta,
.timeline-year,
.faq-label {
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.card-label,
.timeline-year,
.faq-label {
  margin: 0 0 14px;
}

.signal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.signal-list li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.signal-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.signal-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

/* ── Sections ── */

.section {
  padding-top: 80px;
}

.section-heading {
  max-width: 62ch;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 0.98;
}

.section-heading p:last-child {
  margin-top: 14px;
  font-size: 0.97rem;
}

/* ── Explorations ── */

.exploration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.exploration {
  min-height: 260px;
  padding: 28px;
  background: var(--surface);
}

.exploration-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.exploration h3 {
  margin: 18px 0 10px;
  font-size: 1.85rem;
  line-height: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.76rem;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  transition: gap 140ms ease;
}

.explore-link:hover {
  gap: 10px;
}

.explore-link::after {
  content: "→";
}

/* ── Timeline ── */

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.timeline-card {
  padding: 24px;
  background: var(--surface);
}

.timeline-card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  line-height: 1;
}

/* ── FAQ / About grid ── */

.faq-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.faq-item,
.product-card {
  padding: 26px;
  background: var(--surface);
}

.faq-item h3,
.product-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.05;
}

.product-card ul,
.legal ul,
.info-grid ul {
  margin: 0;
  padding-left: 18px;
}

/* ── Contact ── */

.section-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.contact-links a {
  padding: 14px 18px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 140ms ease, background 140ms ease;
}

.contact-links a:hover {
  background: var(--bg-deep);
  color: var(--accent);
}

/* ── Inner pages ── */

.page-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 0.93;
}

.legal {
  max-width: 72ch;
}

.legal h2 {
  margin: 32px 0 10px;
  font-family: "Newsreader", serif;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.meta {
  color: var(--subtle);
  font-size: 0.9rem;
}

code {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--accent-soft);
  font-size: 0.93em;
}

.info-grid {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.info-grid li {
  padding: 22px 24px;
  background: var(--surface);
}

.info-grid li strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
}

.mono {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

/* ── Footer ── */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footnote {
  margin: 0;
  max-width: 36ch;
  color: var(--subtle);
  font-size: 0.88rem;
  line-height: 1.65;
}

.footnote a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  transition: color 140ms ease;
}

.footnote a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--ink);
  color: oklch(0.97 0.005 88);
  padding: 8px 14px;
  border-radius: 4px;
}

/* ── Responsive ── */

@media (max-width: 920px) {
  .intro-body {
    grid-template-columns: 1fr;
  }

  .hero,
  .section-contact,
  .product-grid,
  .exploration-grid,
  .timeline,
  .faq-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 32px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100vw - 20px, 1100px);
    padding: 18px 0 40px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav {
    gap: 14px;
  }

  .nav-cta,
  .button {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    align-items: stretch;
  }
}

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

  * {
    transition: none !important;
  }
}
