:root {
  --ink: #14181f;
  --mute: #5e584f;
  --stone: #efeae2;
  --paper: #f7f4ef;
  --panel: #171c24;
  --brass: #c8923a;
  --signal: #e23b24;
  --signal-d: #b92b18;
  --line: rgba(20, 24, 31, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--stone);
  background-image:
    linear-gradient(rgba(20, 24, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 31, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--signal-d); }
img { max-width: 100%; }

.shell { min-height: 100vh; }

.mast { position: sticky; top: 0; z-index: 30; }
.mast-top {
  display: flex;
  justify-content: space-between;
  gap: 12px 22px;
  flex-wrap: wrap;
  background: var(--panel);
  color: #c9c2b4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 32px;
}
.mast-top a { color: #f6f1e8; text-decoration: none; }
.mast-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 32px;
  background: rgba(247, 244, 239, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.word {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.tiles {
  display: grid;
  grid-template-columns: 16px 16px;
  gap: 2px;
}
.tiles i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  background: var(--ink);
  color: #f6f1e8;
  font-family: "Syne", sans-serif;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
}
.tiles i:nth-child(2) { background: var(--signal); }
.tiles i:nth-child(3) { background: var(--brass); color: var(--ink); }
.word-text {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.word-text em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.mast nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-left: auto; min-width: 0; }
.mast nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
.mast nav a:hover { background: rgba(20, 24, 31, 0.06); }
.mast nav a[aria-current="page"] { background: var(--ink); color: #f6f1e8; }

.stage {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 0;
}

.kicker {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
h1, h2, h3 { font-family: "Syne", sans-serif; font-weight: 750; letter-spacing: -0.045em; line-height: 0.98; }
h1 { font-size: clamp(48px, 6.4vw, 84px); max-width: 11ch; margin-bottom: 18px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin: 8px 0 18px; }
h3 { font-size: 24px; margin-bottom: 8px; }
.lede { font-size: 19px; max-width: 38em; color: #2c3138; margin-bottom: 24px; }
.prose p { margin-bottom: 14px; max-width: 42em; }
.prose p strong { font-weight: 650; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--signal);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: 600 15px/1 "Outfit", sans-serif;
  padding: 15px 20px;
  border-radius: 999px;
}
.btn:hover { background: var(--signal-d); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: #fff; }

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}
.plate {
  position: relative;
  background: var(--panel);
  color: #f6f1e8;
  padding: 26px 24px 18px;
  box-shadow: 14px 14px 0 var(--brass);
}
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--brass);
}
.plate::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.plate::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.plate-k {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.plate-name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 16px;
}
.plate dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.plate dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b7b0a4;
  margin-bottom: 3px;
}
.plate dd { font-size: 15px; line-height: 1.35; }

.band { margin: 42px 0 8px; }
.steps { list-style: none; display: grid; gap: 12px; margin: 0 0 36px; }
.steps.board { grid-template-columns: repeat(4, 1fr); }
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 16px 16px;
}
.steps b {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 28px;
  font-weight: 750;
  color: var(--signal);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.steps span { display: block; font-weight: 650; margin-bottom: 6px; }

.pair {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin: 10px 0 20px;
}
.pair article { background: #fff; padding: 28px 26px; border: 1px solid var(--line); }
.pair article + article { background: var(--panel); color: #f6f1e8; border: 0; }
.pair article + article p { color: #ddd6cb; }
.pair p { margin-top: 8px; }

table.sheet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 6px 0 28px;
}
table.sheet th,
table.sheet td {
  text-align: left;
  vertical-align: top;
  background: #fff;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
table.sheet th {
  width: 30%;
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  border-left: 4px solid var(--signal);
}
table.sheet td { border-right: 1px solid var(--line); color: #2c3138; }

form {
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(20, 24, 31, 0.05);
}
label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; letter-spacing: 0.02em; }
input, select, textarea {
  font: 16px/1.45 "Outfit", sans-serif;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #d7d0c6;
  border-radius: 8px;
  padding: 12px 12px;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--signal);
  border-color: transparent;
  background: #fff;
}
.ok {
  display: none;
  margin-top: 4px;
  background: #f4efe4;
  border-left: 4px solid var(--brass);
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 600;
}
.err { display: none; color: var(--signal-d); font-weight: 650; }
.err.show { display: block; }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
.card {
  background: var(--panel);
  color: #f6f1e8;
  padding: 26px 24px;
  box-shadow: 10px 10px 0 var(--brass);
}
.card h3 { color: #fff; }
.card p + p { margin-top: 14px; color: #ddd6cb; }
.checks { display: grid; gap: 8px; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.check input { width: auto; margin-top: 3px; accent-color: var(--signal); }
.voice {
  border: 1px dashed #c9bfb2;
  border-radius: 10px;
  padding: 16px;
  background: var(--paper);
}
.voice p { font-weight: 500; font-size: 15px; margin: 8px 0; }
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.controls button {
  font: 600 14px/1 "Outfit", sans-serif;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #f6f1e8;
  cursor: pointer;
}
.controls button.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.quote {
  font-family: "Syne", sans-serif;
  font-weight: 650;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin: 10px 0;
}
.colophon {
  margin-top: 72px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 36px max(24px, calc((100vw - 1120px) / 2));
  background: var(--panel);
  color: #cfc8bc;
  font-size: 14px;
}
.colophon strong { color: #fff; }
.colophon p { margin-bottom: 4px; }
.colophon a { color: #f6f1e8; text-decoration: none; }
.colophon .legal a { margin-right: 16px; }
.colophon .legal a:hover { color: var(--brass); }

@media (max-width: 900px) {
  .mast-top { justify-content: flex-start; padding: 8px 16px; gap: 10px 16px; }
  .mast-bar { flex-wrap: wrap; padding: 12px 16px; }
  .mast nav { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; }
  .stage { width: min(1120px, calc(100% - 28px)); padding-top: 28px; }
  .hero, .pair, .split, .steps.board { grid-template-columns: 1fr; }
  .plate { box-shadow: 8px 8px 0 var(--brass); }
  table.sheet th, table.sheet td { display: block; width: auto; }
  table.sheet th { border-right: 1px solid var(--line); padding-bottom: 0; border-bottom: 0; }
  table.sheet td { padding-top: 6px; }
  h1 { max-width: none; }
}
