:root {
  --ink: #0b1514;
  --forest: #10201f;
  --forest-raised: #172a28;
  --bone: #e3ddd0;
  --bone-muted: #a9afa7;
  --gold: #d2a85f;
  --gold-bright: #e2bc75;
  --line: #42534d;
  --line-soft: #2b3b37;
  color: var(--bone);
  background: var(--forest);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--forest); }
a { color: inherit; }

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(18px, calc((100vw - 960px) / 2));
  background: #121d1c;
  border-bottom: 1px solid #795f32;
  box-shadow: 0 3px 0 #08100f;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #1b1710;
  background: var(--gold);
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #5f4825;
}
.brand strong {
  display: block;
  color: var(--bone);
  font: 700 18px Georgia, "Palatino Linotype", serif;
  letter-spacing: .08em;
}
.brand small {
  color: var(--gold);
  font: 700 9px Georgia, "Palatino Linotype", serif;
  letter-spacing: .2em;
}

.builder-button,
.primary-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: #17140e;
  background: var(--gold);
  border: 1px solid var(--gold-bright);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}
.builder-button:hover,
.primary-cta:hover { background: var(--gold-bright); }

main { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 74px 0 56px; }
.eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Georgia, "Palatino Linotype", serif; }
h1 {
  max-width: 780px;
  margin: 12px 0 19px;
  color: var(--bone);
  font-size: clamp(40px, 6.5vw, 68px);
  line-height: .98;
  letter-spacing: -.035em;
}
.intro {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--bone-muted);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.65;
}

section { padding: 46px 0 12px; border-bottom: 1px solid var(--line-soft); }
section h2 {
  margin: 0 0 17px;
  color: var(--bone);
  font-size: clamp(25px, 3.5vw, 34px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
section h3 {
  margin: 0 0 7px;
  color: var(--bone);
  font-size: 18px;
  line-height: 1.2;
}
section p,
section li {
  color: var(--bone-muted);
  font-size: 16px;
  line-height: 1.72;
}
ol { display: grid; gap: 13px; padding-left: 23px; }
li strong { color: var(--bone); }

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode-grid article {
  padding: 18px;
  background: var(--forest-raised);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.mode-grid p { margin: 0; font-size: 14px; line-height: 1.6; }
kbd {
  padding: 2px 7px;
  color: var(--bone);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: inset 0 -1px #000;
}
.tip {
  margin: 25px 0 8px;
  padding: 17px 19px;
  color: var(--bone-muted);
  background: #18271f;
  border: 1px solid #6d5834;
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  line-height: 1.6;
}
.tip strong { color: var(--bone); }
.control-table { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.control-table div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 11px 14px;
  color: var(--bone-muted);
  background: #0d1917;
  border-bottom: 1px solid var(--line-soft);
}
.control-table div:nth-child(even) { background: #12211f; }
.control-table div:last-child { border-bottom: 0; }
.control-table strong { color: var(--bone); text-align: right; }

.final-cta { padding: 54px 0; border-bottom: 0; text-align: center; }
.final-cta p { max-width: 650px; margin: 0 auto 23px; }
footer {
  padding: 24px 18px 38px;
  color: #77847e;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
footer p { max-width: 800px; margin: auto; font-size: 11px; line-height: 1.6; }
footer a { display: inline-block; margin-top: 8px; color: #d0a45b; font-size: 12px; font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .site-header { min-height: 60px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .builder-button { min-height: 36px; padding: 0 11px; font-size: 12px; }
  main { padding-top: 50px; }
  .mode-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
