/* Syntropium site — one stylesheet, no build step.
   Tokens follow apps/syntropium-web/src/map/cutaway.css (the shipped app) and
   Documentation/syntropium-brand-spec.md, so the site and the app read as one
   product. Phone first; dark mode follows the system. */

:root {
  --ink: #12211E;
  --ink-2: #4E635D;
  --deep: #0F3D3E;
  --on-deep: #FFFFFF;
  --teal: #1E7A74;
  --green: #4CAF50;
  --line: #D3E0DA;
  --line-2: #E6EDE8;
  --panel: #FBFCFB;
  --panel-2: #F4F7F5;
  --mint: #E6F4EF;
  --sand: #F5F2EC;
  --d3: #F5F2E9;
  --dl3: #E5DFCA;
  --amber-bg: #FDF5E1;
  --amber-line: #E9CF8E;
  --amber-ink: #6B4B05;
  --radius: 10px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 42rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #E7EFEA;
    --ink-2: #A4B6AF;
    --deep: #BFE0D9;
    --on-deep: #0E1817;
    --teal: #63C0B6;
    --green: #6FC773;
    --line: #2A403C;
    --line-2: #213331;
    --panel: #121E1D;
    --panel-2: #0E1817;
    --mint: #132623;
    --sand: #1B1D16;
    --d3: #1B1D16;
    --dl3: #333227;
    --amber-bg: #2A2312;
    --amber-line: #5A4718;
    --amber-ink: #EBCB80;
  }
}

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

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

body {
  margin: 0;
  background: var(--panel-2);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--deep); }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--deep);
  color: var(--on-deep);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* ---------- header ---------- */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--deep);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img { display: block; width: 32px; height: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  display: inline-block;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--deep); border-bottom-color: var(--green); }

.button {
  display: inline-block;
  background: var(--deep);
  color: var(--on-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  white-space: nowrap;
}
.button:hover { color: var(--on-deep); background: var(--teal); }
.button-quiet {
  background: transparent;
  color: var(--deep);
  border: 1px solid var(--line);
}
.button-quiet:hover { background: var(--mint); color: var(--deep); }

/* ---------- banners ---------- */
.banner {
  background: var(--amber-bg);
  border-bottom: 1px solid var(--amber-line);
  color: var(--amber-ink);
}
.banner p { margin: 0; padding: 0.75rem 0; font-weight: 600; }

/* ---------- content ---------- */
main { padding-top: 2rem; padding-bottom: 3rem; }
main > * { max-width: var(--measure); }
main > .wide { max-width: none; }

h1, h2, h3 { color: var(--deep); line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 1.9rem; margin: 0 0 0.75rem; font-weight: 700; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.6rem; font-weight: 650; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.4rem; font-weight: 650; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 650; }
code, .path { font-family: var(--mono); font-size: 0.9em; }

.lede { font-size: 1.2rem; color: var(--ink-2); }
.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.path {
  display: inline-block;
  background: var(--d3);
  border: 1px solid var(--dl3);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }

/* Hero: the nested-box motif, depth warming inward like the app's cutaway. */
.hero { padding: 0.5rem 0 1rem; }
.hero h1 { font-size: 2.1rem; }
.nest {
  margin: 1.75rem 0 0;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: #EEF3F1;
  border: 1px solid #D6E2DC;
  color: #12211E;
  font-size: 0.95rem;
  max-width: 30rem;
}
.nest .nest { margin: 0.6rem 0 0; }
.nest .n1 { background: #F0F3EF; border-color: #DBE2D6; }
.nest .n2 { background: #F5F2E9; border-color: #E5DFCA; }
.nest .n3 { background: #F8EFE1; border-color: #EEDBBE; }
.nest-label { font-weight: 650; color: #0F3D3E; }
.nest-item {
  display: inline-block;
  margin: 0.5rem 0.4rem 0 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #D3E0DA;
  font-size: 0.85rem;
}
@media (prefers-color-scheme: dark) {
  .nest { background: #101A19; border-color: #26332F; color: #E7EFEA; }
  .nest .n1 { background: #131B18; border-color: #293330; }
  .nest .n2 { background: #1B1D16; border-color: #333227; }
  .nest .n3 { background: #231F14; border-color: #403821; }
  .nest-label { color: #BFE0D9; }
  .nest-item { background: #162422; border-color: #2A403C; }
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.cards li {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.cards h3 { margin-top: 0; }
.cards p:last-child { margin-bottom: 0; }

.note {
  background: var(--mint);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-warn { background: var(--amber-bg); border-left-color: var(--amber-line); }

.status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  vertical-align: 0.15em;
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.status-now { color: var(--teal); border-color: var(--teal); }
.status-planned { color: var(--amber-ink); border-color: var(--amber-line); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
th { color: var(--deep); font-weight: 650; }
.table-scroll { overflow-x: auto; }

dt { font-weight: 650; color: var(--deep); margin-top: 1.25rem; }
dd { margin: 0.25rem 0 0; }

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.6rem 1rem;
  margin: 0 0 0.75rem;
}
summary { cursor: pointer; font-weight: 650; color: var(--deep); }
details[open] summary { margin-bottom: 0.5rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 1.75rem 0 2rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.mantra { color: var(--deep); font-weight: 600; margin-bottom: 0.75rem; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}
.footer-links a { color: var(--ink-2); }
.fineprint { margin: 0; }
.fineprint a { color: var(--ink-2); }

@media (min-width: 40rem) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 2.3rem; }
  .hero h1 { font-size: 2.7rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  main { padding-top: 3rem; }
}

@media (min-width: 60rem) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  .site-header nav, .button-app, .skip { display: none; }
  body { background: #fff; color: #000; }
}
