/* Component library — the structural furniture every site composes from.
 *
 * base.css styles HTML elements. This styles named patterns: header, hero,
 * footer, and the pieces that sit between them.
 *
 * A site should need no CSS beyond its brand tokens. If it does, the missing
 * piece belongs here — not in the site.
 */

/* Header ------------------------------------------------------------------ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding-block: var(--s-4);
}
.wordmark {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-mono { font-family: var(--font-mono); font-size: var(--step-0); }

.site-head nav { display: flex; align-items: center; gap: var(--s-6); font-size: var(--step--1); }
.site-head nav a { color: var(--ink-muted); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }

/* Hero -------------------------------------------------------------------- */

.hero {
  padding-block: var(--s-24) var(--s-16);
  background: radial-gradient(56rem 26rem at var(--hero-glow, 12% -12%), var(--accent-wash), transparent 70%);
}
.hero h1 { margin-block: var(--s-4) var(--s-6); }
.hero h1 em { font-style: normal; color: var(--accent); }

/* Two-column variant: content beside an illustration */
.hero-split > .wrap {
  display: grid;
  gap: var(--s-12);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
}
.hero-art { color: var(--accent); }
@media (max-width: 48rem) {
  .hero-split > .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 14rem; }
}

/* Centred variant: holding pages, single statements */
.hero-centre {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
}

/* Rule mark — three decreasing lines, the house motif */
.mark { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); margin-bottom: var(--s-8); }
.mark span { display: block; height: 3px; border-radius: 2px; background: var(--accent); }
.mark span:nth-child(1) { width: 4.5rem; opacity: 0.85; }
.mark span:nth-child(2) { width: 3rem;   opacity: 0.6; }
.mark span:nth-child(3) { width: 3.6rem; opacity: 0.4; }

/* Pieces ------------------------------------------------------------------ */

.status {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.muted { color: var(--ink-faint); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: var(--s-2) var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.pill-accent { border-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); color: var(--accent); }

/* Numbered steps */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-3);
         grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--s-3);
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-4) var(--s-6);
}
.steps .n { grid-row: 1 / 3; font-family: var(--font-mono); font-size: var(--step-1); color: var(--accent); opacity: 0.75; }
.steps b { font-weight: 600; }
.steps li > span:last-child { font-size: var(--step--1); color: var(--ink-muted); }

/* Footer ------------------------------------------------------------------ */

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-8);
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.site-foot > .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
}
.site-foot-centre > .wrap { justify-content: center; text-align: center; }

/* Page shell — sticks the footer to the bottom on short pages */
body { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
