/* BasaltAPS landing page.
   Tokens, type, the mark, the hexagon bullet, the rule, the aside and the footer are lifted
   verbatim from docs/2026-08-29-basalt-charter.html. Landing-page components (buttons, chips,
   the formation skyline, the phase list) are new, in the same vocabulary. No JavaScript. */

:root {
  color-scheme: light dark;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --ink: #1e2427;
  --ink-soft: #4f5a59;
  --ink-faint: #7a8583;
  --line: #d9e0df;
  --line-strong: #bcc6c4;
  --accent: #0e6e63;
  --accent-ink: #0a5249;
  --accent-wash: #e2edeb;
  --stone-body: #cdd6d4;
  --stone-cap: #e4eae8;
  --ground: #b7c1bf;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101315;
    --surface: #191d20;
    --ink: #e7ebea;
    --ink-soft: #a4afad;
    --ink-faint: #737e7c;
    --line: #262c2f;
    --line-strong: #38413f;
    --accent: #4cbdae;
    --accent-ink: #6fd0c2;
    --accent-wash: #14302c;
    --stone-body: #2a3134;
    --stone-cap: #3a4347;
    --ground: #20262a;
  }
}
:root[data-theme="dark"] {
  --bg: #101315; --surface: #191d20; --ink: #e7ebea;
  --ink-soft: #a4afad; --ink-faint: #737e7c; --line: #262c2f; --line-strong: #38413f;
  --accent: #4cbdae; --accent-ink: #6fd0c2; --accent-wash: #14302c;
  --stone-body: #2a3134; --stone-cap: #3a4347; --ground: #20262a;
}
:root[data-theme="light"] {
  --bg: #f4f6f5; --surface: #ffffff; --ink: #1e2427;
  --ink-soft: #4f5a59; --ink-faint: #7a8583; --line: #d9e0df; --line-strong: #bcc6c4;
  --accent: #0e6e63; --accent-ink: #0a5249; --accent-wash: #e2edeb;
  --stone-body: #cdd6d4; --stone-cap: #e4eae8; --ground: #b7c1bf;
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 17px/1.7 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px;
    text-underline-offset: .16em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
code { font: .88em ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
b { font-weight: 600; }

/* One text measure, one wide measure for the two break-out blocks. Both are border-box, so the
   content is 39rem / 57rem and the break-outs extend 9rem beyond the text on each side. */
.measure { max-width: 42rem; margin-inline: auto; padding-inline: 1.5rem; }
.wide { max-width: 60rem; margin-inline: auto; padding-inline: 1.5rem; }

/* ---- skip link ---- */
.skip {
  position: absolute; left: 1.5rem; top: -100px; z-index: 1;
  padding: .6rem 1rem; border-radius: 6px;
  background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---- header ---- */
.site-head .wide {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .2rem 1.4rem; padding-block: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 44px;
  color: var(--ink); text-decoration: none;
}
.brand .mark { width: 40px; margin: 0; }
.wordmark { font: 600 1.1rem/1 ui-serif, "New York", Charter, Georgia, serif; }
.site-head nav { display: flex; gap: 1.4rem; }
.site-head nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .88rem; color: var(--ink-soft); text-decoration: none;
}
.site-head nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: currentColor; }

/* ---- hero ---- */
.hero .measure { padding-top: 4rem; }
.eyebrow {
  font: 600 .72rem/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 1.4rem;
}
.mark { display: block; height: auto; }
.mark-hero { width: 200px; margin: 0 0 1.8rem; }
h1 {
  font-family: ui-serif, "New York", Charter, Georgia, serif;
  font-weight: 600; font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.08;
  letter-spacing: -.015em; margin: 0 0 1.4rem; text-wrap: balance;
}
.lede {
  font-size: 1.24rem; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 2rem; text-wrap: pretty;
}
.lede b { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }

/* The only motion on the page: the hero columns rise into place on load. */
@media (prefers-reduced-motion: no-preference) {
  .mark-hero .c { opacity: 0; transform: translateY(12px); animation: rise 480ms ease-out forwards; }
  .mark-hero .c:nth-child(3) { animation-delay: 60ms; }
  .mark-hero .c:nth-child(4) { animation-delay: 120ms; }
  .mark-hero .c:nth-child(5) { animation-delay: 180ms; }
  .mark-hero .c:nth-child(6) { animation-delay: 240ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .7rem 1.2rem; border-radius: 6px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--bg); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- section rule (charter) ---- */
.rule {
  display: flex; align-items: center; gap: 1rem;
  margin-block: 3.2rem 1.6rem; color: var(--ink-faint);
}
.rule::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.rule h2 {
  font: 600 .78rem/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .2em; text-transform: uppercase; margin: 0; color: var(--ink-soft);
}

/* ---- aside (charter; used once) ---- */
.aside {
  border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1.2rem;
  margin: 2.2rem 0; color: var(--ink-soft); font-size: .98rem;
}
.aside b { color: var(--ink); font-weight: 600; }

/* ---- tenets (charter) ---- */
dl { margin: 0; }
.tenet { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.tenet:last-child { border-bottom: none; }
dt {
  position: relative; padding-left: 1.7rem;
  font-family: ui-serif, "New York", Charter, Georgia, serif;
  font-size: 1.22rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem;
  text-wrap: balance;
}
dt::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .72rem; height: .82rem;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
dd { margin: 0 0 0 1.7rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }
dd b { color: var(--ink); font-weight: 600; }

/* ---- the formation ---- */
/* Each glyph is one column of the mark, cropped (viewBox 36 x 110 user units around the column,
   y 40..150). --s is the px-per-unit scale: 36 * 1.11 = 40px wide. The ground line (y = 140 in the
   mark) is drawn once across the whole row on desktop and under each glyph on phones. */
.skyline {
  --s: 1.11;
  position: relative; isolation: isolate; list-style: none; margin: 1.8rem auto 1.4rem;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto auto auto;
  column-gap: 1.5rem; row-gap: 0;
}
/* The ground runs behind the columns (z-index -1 inside the list's own stacking context) and
   overhangs the first and fifth column by the 1.5rem padding, as the mark's ground overhangs its
   columns. Right offset = one cell width minus one glyph width: (content - 4 gaps) / 5 - glyph. */
.skyline::before {
  content: ""; position: absolute; z-index: -1; left: 0;
  right: calc((100% - 9rem) / 5 - 36px * var(--s));
  top: calc(100px * var(--s) - 1.5px); height: 3px; background: var(--accent);
}
.skyline li { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; }
/* description and status share one cell, so a chip follows its own text rather than the row */
.body { display: flex; flex-direction: column; gap: .6rem; }
.glyph { position: relative; height: calc(100px * var(--s) + 1.5px); margin-bottom: calc(10px * var(--s)); }
.glyph svg { position: absolute; top: 0; left: 0; display: block; width: calc(36px * var(--s)); height: calc(110px * var(--s)); }
.app {
  margin: .8rem 0 0; color: var(--ink); overflow-wrap: anywhere;
  font: 600 1.05rem/1.3 ui-serif, "New York", Charter, Georgia, serif;
}
.role {
  margin: .25rem 0 .5rem;
  font: 600 .66rem/1.7 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.status { margin: 0; line-height: 1; }
.desc { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.closing { font-size: .95rem; color: var(--ink-soft); }

/* ---- principles grid ---- */
.principles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem; row-gap: 1.4rem; margin: 0 auto;
}
.principles dt { font-size: 1.05rem; margin-bottom: .2rem; }
.principles dd { font-size: .95rem; }
.note { font-size: .95rem; color: var(--ink-soft); margin: 1.8rem auto 0; }

/* ---- status chips ---- */
.chip {
  display: inline-block; padding: .18rem .5rem; border-radius: 4px; border: 1px solid transparent;
  font: 600 .68rem/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.chip-done { background: var(--accent-wash); color: var(--accent-ink); }
.chip-built { border-color: var(--accent); color: var(--accent-ink); }
.chip-ahead { border-color: var(--line-strong); color: var(--ink-soft); }

/* ---- where it stands ---- */
.stamp {
  font: 600 .72rem/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1rem;
}
.phases { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.phase {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; column-gap: .8rem;
  align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.phase:last-child { border-bottom: none; }
.phase .num { font: 600 .78rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; color: var(--ink-soft); }
.phase .ptitle { font: 600 1.05rem/1.3 ui-serif, "New York", Charter, Georgia, serif; color: var(--ink); }
.phase .chip { justify-self: end; }
.phase .pline { grid-column: 2 / -1; margin: .2rem 0 0; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }

/* ---- footer (charter, with --ink-soft for body text) ---- */
.site-foot { margin-top: 3.5rem; }
.site-foot .measure { padding-bottom: 5rem; font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }
/* the rule sits inside the padding box so it spans the text, as the charter's footer rule does */
.site-foot .measure::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 1.4rem; }
.site-foot p { margin: 0 0 .6rem; }
.nb { white-space: nowrap; }
.site-foot a { color: var(--accent); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: currentColor; }

/* ---- phone ---- */
@media (max-width: 720px) {
  .hero .measure { padding-top: 2.5rem; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }

  .skyline { display: block; }
  .skyline::before { display: none; }
  .skyline li {
    grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto; column-gap: 1.1rem;
    padding: 1rem 0; border-bottom: 1px solid var(--line);
  }
  .skyline li:last-child { border-bottom: none; }
  .glyph { grid-row: 1 / span 3; align-self: start; width: 40px; isolation: isolate; }
  .glyph::after {
    content: ""; position: absolute; z-index: -1; left: -8px; right: -8px;
    top: calc(100px * var(--s) - 1.5px); height: 3px; background: var(--accent);
  }
  .app { grid-column: 2; margin-top: 0; }
  .role, .body { grid-column: 2; }

  .principles { grid-template-columns: minmax(0, 1fr); }

  .phase { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .phase .chip { grid-column: 2; justify-self: start; margin-top: .3rem; }
  .phase .pline { grid-column: 2; }
}
