:root {
  color-scheme: dark;
  --bg: #0a0704;
  --ink: #f6ead6;
  --mute: #b7a08a;
  --ember: #f25516;
  --gold: #d67722;
  --line: #2a2118;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
html { font-feature-settings: "kern" 1, "liga" 0, "dlig" 0, "hlig" 0; }
body {
  font-family: "Cormorant Garamond", Georgia, serif;
  overflow-x: hidden;
  font-variant-ligatures: none;
  word-spacing: 0.06em;
}

#embers {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.grain, .vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.grain {
  opacity: .12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
.vignette {
  background: radial-gradient(ellipse at 50% 20%, transparent 0%, rgba(10,7,4,.35) 45%, rgba(10,7,4,.88) 100%);
}

.top, main { position: relative; z-index: 2; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 7vw 0;
}
.mark {
  letter-spacing: .28em; font-size: .82rem; color: var(--gold);
  text-decoration: none;
}
.mark span { color: var(--mute); letter-spacing: .18em; }
nav { display: flex; gap: 22px; }
nav a {
  color: var(--mute); text-decoration: none; font-size: 1.05rem;
}
nav a:hover { color: var(--ink); }

.hero {
  min-height: calc(100vh - 80px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 8vh 7vw 12vh;
  max-width: 78rem;
}
.kicker {
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-size: .72rem; margin: 0 0 1.2rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
h1 {
  font-size: clamp(3.4rem, 11vw, 8.4rem);
  line-height: .9; letter-spacing: -0.01em; word-spacing: 0.08em;
  margin: 0 0 .6em; font-weight: 600;
}
h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: .95; margin: 0 0 .7em; font-weight: 600;
}
.lede {
  max-width: 38rem; font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45; color: var(--mute); margin: 0 0 2rem;
}
.lede.short { max-width: 32rem; }
.lede em, .essay strong { color: var(--ink); font-style: italic; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  appearance: none; border: 1px solid var(--gold);
  background: transparent; color: var(--ink);
  font: 600 1.05rem/1 "Cormorant Garamond", serif;
  padding: .85rem 1.35rem; text-decoration: none; cursor: pointer;
}
.btn.fire { background: var(--ember); border-color: var(--ember); color: #1a0b04; }
.btn.ghost { color: var(--gold); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.band, .split, .essay, .contracts, .hearth, footer {
  padding: 8vh 7vw;
}
.band { border-top: 1px solid var(--line); }
.rites {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
.rites span {
  display: block; color: var(--ember);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .16em; font-size: .75rem; margin-bottom: .7rem;
}
.rites h3, .cards h3 { margin: 0 0 .4rem; font-size: 1.8rem; }
.rites p, .cards p, .split p, .essay p, footer p {
  color: var(--mute); line-height: 1.55; font-size: 1.2rem;
}
code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .86em; color: var(--ink);
}

.split {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px;
  border-top: 1px solid var(--line); align-items: start;
}
.tablet {
  border: 1px solid var(--gold);
  padding: 28px 26px;
  background: rgba(214, 119, 34, .05);
}
.tablet-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-size: .68rem; margin: 0 0 1.2rem;
}
.tablet-line {
  margin: 0 0 .55rem; color: var(--ink); font-size: 1.25rem;
}
.tablet-foot { margin: 1.4rem 0 0; color: var(--mute); }

.essay { border-top: 1px solid var(--line); max-width: 46rem; }
.contracts { border-top: 1px solid var(--line); }
.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
h2 a.inline, .essay a, footer a {
  color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold);
}
h2 a.inline:hover, .essay a:hover, footer a:hover { color: var(--ink); }
.cards article {
  border: 1px solid var(--line); padding: 22px 20px;
}
.addr {
  display: block; margin-top: 1rem; color: var(--gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .78rem; word-break: break-all; text-decoration: none;
}

.hearth { border-top: 1px solid var(--line); }
.panel {
  margin-top: 1.5rem; max-width: 32rem;
  border: 1px solid var(--line); padding: 22px;
  background: rgba(10, 7, 4, .55);
}
.status, .fine {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .78rem; color: var(--gold); margin: 0 0 1rem;
}
.fine { color: var(--mute); margin: 1rem 0 0; }
label {
  display: block; color: var(--mute); font-size: 1.05rem; margin-bottom: 1.1rem;
}
input {
  display: block; width: 100%; margin-top: .4rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--gold);
  color: var(--ink); font: 600 1.6rem/1.4 "Cormorant Garamond", serif;
  padding: .3rem 0;
}
input:focus { outline: none; }

footer { border-top: 1px solid var(--line); }
footer p { max-width: 42rem; font-size: 1.05rem; }
.foot-mark {
  margin-top: 2rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-size: .72rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

@media (max-width: 860px) {
  nav { display: none; }
  .rites, .split, .cards, .cards.four { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 12vh; }
}
