/* ============================================================
   Stratego Games — field dispatch theme
   Palette: map paper, olive drab, signal red, brass.
   ============================================================ */

:root {
  --paper: #f1e7d2;
  --paper-2: #e7dabf;
  --paper-3: #faf4e6;
  --ink: #1b1915;
  --ink-soft: #4d4639;
  --olive: #26301f;
  --olive-2: #37432e;
  --olive-3: #4a5940;
  --red: #b03226;
  --red-deep: #8c2319;
  --brass: #b0873c;
  --line: rgba(27, 25, 21, 0.16);
  --line-soft: rgba(27, 25, 21, 0.09);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 24px 60px -28px rgba(27, 25, 21, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(255, 255, 255, 0.7), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(176, 135, 60, 0.13), transparent 38%),
    radial-gradient(circle at 50% 120%, rgba(38, 48, 31, 0.1), transparent 60%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(176, 50, 38, 0.45);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-deep);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.shell {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-3);
  font: 600 13px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--paper-3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 244, 230, 0.85), rgba(241, 231, 210, 0.55));
  backdrop-filter: blur(6px);
}

.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--olive);
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav a:hover {
  color: var(--red-deep);
  border-bottom-color: var(--red);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 26px 0 8px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  background-image:
    repeating-linear-gradient(0deg, rgba(27, 25, 21, 0.045) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(27, 25, 21, 0.045) 0 1px, transparent 1px 40px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
}

.hero .shell {
  position: relative;
}

.dispatch-line {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.dispatch-line .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(176, 50, 38, 0.14);
}

.dispatch-line .sep {
  color: var(--brass);
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(58px, 10vw, 120px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin-top: 18px;
  background: var(--red);
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- war table ---------- */

.table-frame {
  margin-top: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 244, 230, 0.7), rgba(231, 218, 191, 0.4));
  box-shadow: var(--shadow);
}

.table {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #171a12;
  border: 5px solid var(--olive);
  outline: 1px solid rgba(27, 25, 21, 0.35);
  color: var(--paper-3);
  isolation: isolate;
}

.table::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
}

/* cover */

.cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: clamp(20px, 2.6vw, 34px);
  background:
    radial-gradient(circle at 78% 22%, rgba(176, 135, 60, 0.22), transparent 45%),
    radial-gradient(circle at 8% 88%, rgba(176, 50, 38, 0.18), transparent 52%),
    linear-gradient(115deg, #222b1b 0%, #1a2115 55%, #12160e 100%);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(241, 231, 210, 0.055) 0 1px, transparent 1px 9%),
    repeating-linear-gradient(90deg, rgba(241, 231, 210, 0.055) 0 1px, transparent 1px 10%);
  opacity: 0.9;
  pointer-events: none;
}

.cover-text {
  position: relative;
  z-index: 2;
  max-width: 30ch;
  transform: translateY(-46px);
}

.cover-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px clamp(18px, 3vw, 38px) 10px;
  border-bottom: 1px solid rgba(241, 231, 210, 0.12);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 244, 230, 0.55);
}

.cover-kicker {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #d8b877;
}

.cover-head {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper-3);
  text-wrap: balance;
}

.cover-blurb {
  margin: 14px 0 20px;
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(250, 244, 230, 0.74);
}

.play-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px 17px;
  border: 2px solid #150f0b;
  background: var(--red);
  color: #fff8ea;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), background 0.18s var(--ease);
}

.play-btn:hover {
  background: #c33a2c;
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.45);
}

.play-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.play-tri {
  width: 0;
  height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.cover-foot {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 244, 230, 0.5);
}

.cover-shot {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: calc(100% - 10px);
  margin: 0;
  padding: 8px 8px 0;
  background: #f8f2e3;
  box-shadow: 12px 16px 0 rgba(0, 0, 0, 0.32);
  transform: rotate(-1deg);
}

.cover-shot::before {
  display: none;
}

.cover-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 648;
  object-fit: cover;
  object-position: center 45%;
}

.cover-shot figcaption {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 2px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6c6252;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* loading */

.loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(176, 135, 60, 0.16), transparent 55%),
    linear-gradient(160deg, #1e2517, #12160e 70%);
  color: var(--paper-3);
  text-align: center;
}

.load-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(241, 231, 210, 0.07) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(90deg, rgba(241, 231, 210, 0.07) 0 1px, transparent 1px 10%);
}

.load-scan {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(176, 50, 38, 0.32) 45%, rgba(176, 50, 38, 0.06) 70%, transparent);
  animation: sweep 2.8s var(--ease) infinite;
}

@keyframes sweep {
  0% { top: -30%; }
  100% { top: 108%; }
}

.load-inner {
  position: relative;
  padding: 24px;
}

.load-kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}

.load-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.01em;
}

.load-steps {
  position: relative;
  height: 20px;
  margin: 14px 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 244, 230, 0.55);
}

.load-steps span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: step 9s infinite;
}

.load-steps span:nth-child(1) { animation-delay: 0s; }
.load-steps span:nth-child(2) { animation-delay: 3s; }
.load-steps span:nth-child(3) { animation-delay: 6s; }

@keyframes step {
  0%, 2% { opacity: 0; transform: translateY(3px); }
  6%, 26% { opacity: 1; transform: none; }
  32%, 100% { opacity: 0; transform: translateY(-3px); }
}

.load-bar {
  width: min(220px, 60%);
  height: 3px;
  margin: 0 auto;
  background: rgba(241, 231, 210, 0.16);
  overflow: hidden;
}

.load-bar i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--red);
  animation: fill 1.9s var(--ease) infinite;
}

@keyframes fill {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

[hidden] {
  display: none !important;
}

.table-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 12px 4px 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- controls ---------- */

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0 6px;
  border-bottom: 1px solid var(--line-soft);
}

.controls-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(250, 244, 230, 0.55);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}

.ctrl svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.ctrl:hover {
  border-color: var(--ink);
  background: var(--paper-3);
}

.ctrl[data-gf-liked],
.ctrl[aria-pressed="true"] {
  border-color: var(--red);
  color: var(--red-deep);
  background: rgba(176, 50, 38, 0.08);
}

.ctrl[data-gf-liked] svg path,
.ctrl[aria-pressed="true"] svg path {
  fill: currentColor;
}

.ctrl-num {
  font-weight: 700;
  min-width: 1ch;
}

.controls-note {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}

.share-msg {
  color: var(--red-deep);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(44px, 7vw, 76px) 0;
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 8px;
}

.section-label span {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--brass);
}

.section-label em {
  font-style: normal;
}

.section-body {
  max-width: 72ch;
}

h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}

.section-body p {
  margin: 0 0 18px;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 30px 0 6px;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts > div {
  padding: 14px 16px;
  background: var(--paper-3);
}

.facts dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 15px;
}

.shot {
  margin: 32px 0 0;
  padding: 10px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  transform: rotate(0.25deg);
}

.shot img {
  display: block;
  width: 100%;
}

.shot figcaption {
  padding: 10px 2px 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 0 22px 66px;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--brass);
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* roster */

.table-scroll {
  overflow-x: auto;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.roster {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

.roster th,
.roster td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.roster thead th {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.roster tbody th {
  font-weight: 600;
  font-family: var(--sans);
}

.roster td.rank {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--olive);
  width: 64px;
}

.roster tr.special td.rank {
  color: var(--brass);
}

.roster tbody tr:hover {
  background: rgba(176, 135, 60, 0.07);
}

.table-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* tips */

.tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 34px;
  margin-top: 30px;
}

.tip {
  padding-left: 18px;
  border-left: 2px solid var(--brass);
}

.tip h3 {
  font-size: 19px;
}

.tip p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* faq */

.faq {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 17px 44px 17px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--serif);
  font-size: 26px;
  color: var(--brass);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 20px;
  padding-right: 40px;
  color: var(--ink-soft);
}

/* comments */

.section-comments {
  background: linear-gradient(180deg, rgba(231, 218, 191, 0.35), transparent 60%);
}

.comment-form {
  margin: 26px 0 38px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper-3);
  box-shadow: 6px 6px 0 rgba(27, 25, 21, 0.06);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field label span {
  text-transform: none;
  letter-spacing: 0.05em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(176, 50, 38, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.submit {
  padding: 12px 22px;
  border: 1px solid #160f0b;
  background: var(--olive);
  color: var(--paper-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s var(--ease);
}

.submit:hover {
  background: var(--red-deep);
}

.form-msg {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.reply-to {
  display: none;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.comment-form[data-gf-replying] .reply-to {
  display: block;
}

.reply-cancel {
  display: none;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
}

.comment-form[data-gf-replying] .reply-cancel {
  display: inline-block;
}

.comment-list {
  border-top: 1px solid var(--line);
}

.comments-empty,
.comments-off {
  display: none;
  margin: 0;
  padding: 22px 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.comment-list[data-gf-empty] .comments-empty {
  display: block;
}

.comment-list[data-gf-off] .comments-off {
  display: block;
}

.comment {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.comment[data-gf-owner] {
  border-left: 3px solid var(--brass);
  padding-left: 16px;
  background: rgba(176, 135, 60, 0.06);
}

.comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.comment-name {
  font-weight: 700;
  font-size: 15px;
}

.comment-time {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.comment-owner {
  display: none;
  padding: 2px 7px;
  background: var(--brass);
  color: #1b1409;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comment[data-gf-owner] .comment-owner {
  display: inline-block;
}

.comment-text {
  margin: 0 0 10px;
  font-size: 16px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.comment-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.comment-reply {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
}

.comment-reply:hover {
  color: var(--red-deep);
}

.comment-to {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--brass);
}

.comment-replies {
  margin: 14px 0 0 20px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.comment-replies:empty {
  display: none;
}

/* ---------- footer ---------- */

.colophon {
  margin-top: 20px;
  padding: 46px 0 26px;
  background: var(--olive);
  color: rgba(250, 244, 230, 0.78);
}

.colophon-in {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(250, 244, 230, 0.16);
}

.colophon-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--paper-3);
  line-height: 1;
}

.colophon-name span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 244, 230, 0.5);
}

.colophon-line {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  color: rgba(250, 244, 230, 0.6);
}

.colophon-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.colophon-links a {
  color: rgba(250, 244, 230, 0.82);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(250, 244, 230, 0.2);
  padding-bottom: 3px;
}

.colophon-links a:hover {
  color: #fff;
  border-bottom-color: var(--brass);
}

.colophon-fine {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.colophon-fine p {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: rgba(250, 244, 230, 0.42);
  max-width: 78ch;
}

/* ---------- content pages ---------- */

.doc {
  padding: clamp(40px, 6vw, 70px) 0 20px;
}

.doc-head {
  max-width: 70ch;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.doc-kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.doc h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.doc-lead {
  margin: 0;
  font-size: 18px;
  color: var(--ink-soft);
}

.prose {
  max-width: 68ch;
  padding: 30px 0 0;
  font-size: 16.5px;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 26px;
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 19px;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose a {
  color: var(--red-deep);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

/* ---------- not found ---------- */

.notfound {
  padding: 90px 0 60px;
  text-align: center;
}

.notfound-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.notfound h1 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1;
}

.doc-updated {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.notfound-lead {
  max-width: 48ch;
  margin: 0 auto 10px;
  color: var(--ink-soft);
  font-size: 17px;
}

.notfound .back {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.solo-link {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.solo-link a {
  color: var(--red-deep);
}

.practice {
  padding: 34px 0 0;
}

.practice-title {
  margin: 4px 0 14px;
  font-family: var(--serif);
  font-size: clamp(46px, 7.5vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.practice .hero-lead {
  margin: 0;
  max-width: 60ch;
}

.practice .table-frame {
  margin-top: 24px;
}

.practice-note {
  max-width: 72ch;
  margin: 36px 0 0;
}

.practice-note h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 26px;
}

.practice-note ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.practice-note li {
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.practice-note p {
  margin: 0;
}

.practice-comments {
  margin-top: 40px;
  padding-top: 40px;
  padding-bottom: 0;
  border-top: 1px solid var(--line);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-label {
    padding-top: 0;
  }

  .section-label span {
    font-size: 26px;
  }

  .tips {
    grid-template-columns: 1fr;
  }

  .cover {
    display: flex;
    align-items: flex-end;
    padding: 0;
  }

  .cover-top {
    display: none;
  }

  .cover-text {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 26px;
    transform: none;
  }

  .cover-shot {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    transform: none;
    box-shadow: none;
    background: #171a12;
  }

  .cover-shot::before {
    display: none;
  }

  .cover-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    filter: saturate(0.9) brightness(0.8);
  }

  .cover-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 22, 14, 0.55) 0%, rgba(18, 22, 14, 0.82) 52%, rgba(18, 22, 14, 0.97) 100%);
  }

  .cover-shot figcaption {
    display: none;
  }

  .controls-note {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: calc(100% - 28px);
  }

  .masthead-in {
    min-height: 60px;
  }

  .nav {
    gap: 14px;
    overflow-x: auto;
    max-width: 60%;
    padding-right: 16px;
    padding-bottom: 2px;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent 100%);
  }

  .nav a:nth-child(3),
  .nav a:nth-child(4) {
    display: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
    font-size: 10px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-name em {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-title {
    font-size: clamp(58px, 20vw, 92px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .table {
    aspect-ratio: 4 / 5;
    border-width: 4px;
  }

  .cover-text {
    padding: 20px;
  }

  .cover-blurb {
    display: none;
  }

  .cover-head {
    font-size: clamp(30px, 9vw, 44px);
  }

  .play-btn {
    width: 100%;
    justify-content: center;
    padding: 17px 20px;
  }

  .cover-foot {
    margin-top: 12px;
    font-size: 9px;
  }

  .table-caption {
    gap: 6px 16px;
    font-size: 8.5px;
  }

  .ctrl {
    flex: 1 1 auto;
    justify-content: center;
  }

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

  .section {
    padding: 38px 0;
  }

  .steps li {
    padding-left: 48px;
  }

  .steps li::before {
    font-size: 24px;
  }

  .shot {
    transform: none;
  }

  .colophon {
    padding-top: 34px;
  }
}

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

  .load-scan,
  .load-bar i,
  .load-steps span,
  .live-dot {
    animation: none;
  }

  .load-steps span:first-child {
    opacity: 1;
  }
}
