:root {
  --bg: #0C0B0A;
  --fg: #EDE7DF;
  --body: #B8B0A6;
  --muted: #9A928A;
  --line: #2A2622;
  --line-strong: #3A332D;
  --accent: #E8A15A;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: Inter, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  min-height: 100vh;
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.eyebrow.accent { color: var(--accent); }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.site-nav a { padding: 12px 0; }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* Sections */
.section {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 112px) 0;
}
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }

h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.btn-solid { background: var(--accent); color: var(--bg); }
.btn-solid:hover { color: var(--bg); filter: brightness(1.08); }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--bg); }

/* Home: hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding: clamp(64px, 9vw, 120px) 0;
}
.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 span { color: var(--muted); }

.hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.planet {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
}
.planet .orbit { position: absolute; inset: 0; border: 1px dashed var(--line-strong); border-radius: 50%; }
.planet .axis-v { position: absolute; left: 50%; top: -16px; bottom: -16px; width: 1px; background: var(--line); }
.planet .axis-h { position: absolute; top: 50%; left: -16px; right: -16px; height: 1px; background: var(--line); }
.planet .body {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #F6DDB2 0%, #E2A766 28%, #B5652F 58%, #4A2512 86%, #1E0F07 100%);
  box-shadow: 0 0 80px rgba(232, 161, 90, 0.18);
}

/* Home: quote */
.quote {
  margin: 0;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.quote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.quote cite {
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* Home: conditions */
.conditions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin: 0;
}
.condition {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.condition dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}
.condition dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.condition.is-target dt,
.condition.is-target dd { color: var(--accent); }

/* About */
.about-hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-hero h1 {
  max-width: 900px;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.about-hero h1 span { color: var(--muted); }

.about-body { display: flex; flex-wrap: wrap; gap: 64px; }
.prose {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
}
.prose p { margin: 0; }
.prose .intro {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.tags .accent { color: var(--accent); }

.spec-sheet {
  flex: 1 1 300px;
  min-width: 0;
  align-self: flex-start;
  border: 1px solid var(--line);
}
.spec-sheet table { width: 100%; border-collapse: collapse; font-family: var(--mono); }
.spec-sheet th, .spec-sheet td {
  text-align: left;
  font-weight: 400;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-sheet th:first-child, .spec-sheet td:first-child { padding-left: 20px; }
.spec-sheet th:last-child, .spec-sheet td:last-child { padding-right: 20px; }
.spec-sheet thead th { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.spec-sheet thead th.accent { color: var(--accent); }
.spec-sheet tbody th { font-size: 13px; color: var(--muted); }
.spec-sheet tbody td { font-size: 13px; line-height: 1.4; color: var(--body); }
.spec-sheet tbody td:last-child { color: var(--fg); }
.spec-sheet .footnote {
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.closer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.closer p {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
