:root {
  color-scheme: light;
  --bg: oklch(97% 0.014 78);
  --surface: oklch(99% 0.006 78);
  --fg: oklch(20% 0.018 55);
  --muted: oklch(48% 0.014 55);
  --border: oklch(88% 0.012 78);
  --accent: oklch(58% 0.14 35);
  --harbor: oklch(38% 0.05 218);
  --wash: oklch(94% 0.018 82);

  --font-display: 'Newsreader', 'Iowan Old Style', 'Charter', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(18% 0.018 55);
  --surface: oklch(22% 0.015 55);
  --fg: oklch(93% 0.012 78);
  --muted: oklch(70% 0.012 78);
  --border: oklch(34% 0.018 60);
  --accent: oklch(72% 0.13 38);
  --harbor: oklch(74% 0.055 215);
  --wash: oklch(24% 0.018 60);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--border) 28%, transparent) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in oklch, var(--accent) 70%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.site {
  min-height: 100vh;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}

.brandmark::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--fg);
}

.hero {
  padding: 74px 0 46px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in oklch, var(--surface) 78%, transparent), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 52px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--harbor);
  font-family: var(--font-mono);
  font-size: 13px;
}

h1, h2, h3 {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  max-width: 980px;
  font-size: 82px;
}

.hero-subtitle {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--harbor);
  font-family: var(--font-mono);
  font-size: 13px;
}

.hero-lede {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.22;
  text-wrap: pretty;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-note {
  margin-top: 8px;
  padding: 18px 0 0;
  border-top: 2px solid var(--fg);
}

.hero-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
}

.hero-note p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.human-detail {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--harbor);
  font-family: var(--font-mono);
  font-size: 12px;
}

.human-detail span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in oklch, var(--surface) 72%, transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--fg);
  border-radius: 4px;
  background: var(--fg);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--fg);
}

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

.button.secondary:hover {
  color: var(--accent);
  background: transparent;
}

.facts {
  border-top: 2px solid var(--fg);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface) 76%, transparent);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
  min-height: 138px;
  padding: 22px 22px 20px;
  border-right: 1px solid var(--border);
}

.fact:last-child {
  border-right: 0;
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.fact span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 56px;
  margin-bottom: 42px;
  align-items: start;
}

.section-label {
  margin: 8px 0 0;
  color: var(--harbor);
  font-family: var(--font-mono);
  font-size: 13px;
}

h2 {
  max-width: 780px;
  font-size: 56px;
}

.intro-text {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.photo-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.12fr 1fr;
  gap: 18px;
  align-items: end;
}

.photo-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.photo-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.photo-card:nth-child(1) img {
  height: 420px;
}

.photo-card:nth-child(2) img {
  height: 300px;
}

.photo-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.story {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface) 56%, transparent);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--fg);
  border-left: 1px solid var(--border);
}

.beat {
  min-height: 300px;
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface) 74%, transparent);
}

.beat time {
  display: block;
  margin-bottom: 36px;
  color: var(--harbor);
  font-family: var(--font-mono);
  font-size: 13px;
}

.beat h3 {
  font-size: 31px;
  line-height: 1.05;
}

.beat p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.quote-band {
  padding: 72px 0;
  border-top: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  background: var(--fg);
  color: var(--surface);
}

.quote-band blockquote {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1.02;
  text-wrap: balance;
}

.quote-band cite {
  display: block;
  margin-top: 24px;
  color: color-mix(in oklch, var(--surface) 72%, transparent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
}

.doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.door {
  min-height: 292px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
}

.door:hover {
  border-color: var(--accent);
  color: inherit;
}

.door small {
  display: block;
  color: var(--harbor);
  font-family: var(--font-mono);
  font-size: 13px;
}

.door h3 {
  margin-top: 48px;
  font-size: 34px;
}

.door p {
  margin: 18px 0 0;
  color: var(--muted);
}

.door span {
  display: inline-block;
  margin-top: 26px;
  color: var(--harbor);
  font-family: var(--font-mono);
  font-size: 13px;
}

.now-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.now-card,
.work-list {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.now-card {
  padding: 28px;
}

.now-card h3 {
  max-width: 390px;
  font-size: 42px;
}

.now-card p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.idea-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--harbor);
  font-family: var(--font-mono);
  font-size: 13px;
}

.work-list {
  display: grid;
  grid-template-columns: 1fr;
}

.work-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.work-item:last-child {
  border-bottom: 0;
}

.work-item strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
}

.work-item span {
  color: var(--muted);
  font-size: 16px;
}

.manifest {
  padding: 82px 0 68px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--wash) 74%, var(--surface));
}

.manifest-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) 1fr;
  gap: 60px;
  align-items: start;
}

.manifest h2 {
  font-size: 48px;
}

.mantras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mantra {
  min-height: 152px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.theme-toggle,
.lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

.theme-toggle:hover,
.lang-switcher:hover {
  border-color: var(--accent);
  color: var(--fg);
}

/* Markdown content styles */
.content h1 {
  font-size: 48px;
  margin-bottom: 32px;
}

.content h2 {
  font-size: 32px;
  margin-top: 48px;
  margin-bottom: 20px;
}

.content h3 {
  font-size: 24px;
  margin-top: 36px;
  margin-bottom: 16px;
}

.content p {
  margin: 0 0 18px;
  max-width: 720px;
}

.content blockquote {
  margin: 28px 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.content ul,
.content ol {
  margin: 0 0 18px;
  padding: 0 0 0 24px;
}

.content li {
  margin: 6px 0;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.content th,
.content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.content th {
  background: color-mix(in oklch, var(--surface) 60%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

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

.content strong {
  color: var(--fg);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 980px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 44px;
  }

  .hero-grid,
  .section-head,
  .now-grid,
  .manifest-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fact-row,
  .timeline,
  .doors,
  .mantras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .photo-card img,
  .photo-card:nth-child(1) img,
  .photo-card:nth-child(2) img {
    height: 420px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 25px;
  }

  .hero-note strong {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .fact-row,
  .timeline,
  .doors,
  .mantras {
    grid-template-columns: 1fr;
  }

  .fact {
    min-height: 116px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  section {
    padding: 58px 0;
  }

  .photo-card img,
  .photo-card:nth-child(1) img,
  .photo-card:nth-child(2) img {
    height: 330px;
  }

  .quote-band blockquote {
    font-size: 36px;
  }

  .door {
    min-height: 250px;
  }

  .door h3 {
    margin-top: 34px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls {
    width: 100%;
    justify-content: flex-end;
  }
}
