:root {
  --ink: #1b2822;
  --muted: #4e6157;
  --paper: #fbf7ef;
  --paper-2: #fffdf8;
  --sage: #e6f0e4;
  --line: #d7e0d4;
  --moss: #12382c;
  --moss-2: #1d5a45;
  --leaf: #2f7d57;
  --clay: #b24a22;
  --clay-dark: #8a3516;
  --gold: #e4b34a;
  --focus: #0c6f86;
  --shadow: 0 18px 40px rgba(18, 56, 44, 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(228, 179, 74, 0.18), transparent 28rem),
    linear-gradient(180deg, #f3f7f1 0%, #e7efe4 100%);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--clay-dark); text-underline-offset: 0.16em; }

a:hover { color: var(--clay); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus { top: 0.75rem; }

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--moss);
  color: #f6f3ea;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 50% 38%, #e37a45 0 5px, transparent 6px),
    linear-gradient(#1d5a45, #0d2820);
  box-shadow: inset 0 0 0 2px rgba(243, 210, 122, 0.7);
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  color: #d5e4da;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  justify-content: flex-end;
}

.site-nav a {
  color: #f6f3ea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.disclaimer {
  margin: 0;
  padding: 0.7rem 1rem;
  background: #fff4d8;
  color: #3e3422;
  text-align: center;
  font-size: 0.92rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
  align-items: start;
}

.sheet {
  background: var(--paper);
  border: 1px solid rgba(18, 56, 44, 0.08);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem 1.8rem;
  min-width: 0;
}

.sheet h1,
.sheet h2,
.sheet h3 {
  font-family: var(--serif);
  line-height: 1.15;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.sheet h1 { margin: 0.2rem 0 0.6rem; font-size: clamp(2rem, 4vw, 3.1rem); }

.sheet h2 { margin: 2rem 0 0.6rem; font-size: 1.65rem; }

.sheet h3 { margin: 1.4rem 0 0.4rem; font-size: 1.25rem; }

.kicker {
  margin: 0;
  color: var(--leaf);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.byline { margin: 0 0 1rem; color: var(--muted); }

.lead { font-size: 1.18rem; }

.sheet p { margin: 0.75rem 0; }

.sheet a,
.sheet code {
  overflow-wrap: anywhere;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #f3eee4;
  padding: 0.05em 0.28em;
  border-radius: 0.3em;
}

.sheet ul,
.sheet ol { padding-left: 1.2rem; }

.sheet li + li { margin-top: 0.35rem; }

.figure {
  margin: 1.2rem 0 1.4rem;
}

.figure img {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: #dfe8dc;
}

.figure figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--paper-2);
}

table { width: 100%; border-collapse: collapse; min-width: 36rem; }

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--sage);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--moss);
}

tr:last-child td { border-bottom: 0; }

.callout,
.unknown,
.split-note {
  margin: 1.1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
}

.callout {
  background: #eef6f1;
  border: 1px solid #cfe0d4;
}

.unknown {
  background: #fff7e6;
  border: 1px solid #f0ddb0;
}

.split-note {
  background: #f8f1ea;
  border: 1px solid #ead8c8;
}

.callout h2,
.unknown h2,
.split-note h2 { margin-top: 0; }

kbd {
  font-family: inherit;
  font-size: 0.92em;
  background: #fff;
  border: 1px solid #d5ddd2;
  border-bottom-width: 2px;
  border-radius: 0.35rem;
  padding: 0.02rem 0.35rem;
}

.faq dt {
  font-weight: 700;
  margin-top: 1.15rem;
}

.faq dd { margin: 0.3rem 0 0; }

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border: 1px dashed #8ea196;
  background: repeating-linear-gradient(-45deg, #f4f7f3, #f4f7f3 8px, #eef3ee 8px, #eef3ee 16px);
  color: #5d6d63;
  text-align: center;
}

.ad-native {
  min-height: 5.5rem;
  margin: 1.1rem 0 1.3rem;
  border-radius: 0.8rem;
}

.ad-banner {
  width: 300px;
  height: 250px;
  max-width: 100%;
  margin: 2rem auto 0;
  border-radius: 0.6rem;
}

.ad-label,
.ad-empty { margin: 0; }

.ad-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0;
  list-style: none;
}

.more-links a {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-weight: 600;
}

.rail { display: grid; gap: 1rem; }

.play-card,
.rail-nav {
  background: var(--paper-2);
  border: 1px solid rgba(18, 56, 44, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.play-card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0.15rem 0 0.4rem;
}

.play-card p { margin: 0.4rem 0; }

.rail-kicker {
  margin: 0;
  color: var(--leaf);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-links { display: grid; gap: 0.45rem; margin-top: 0.8rem; }

.play-button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  background: var(--clay);
  color: #fffaf4;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
}

.play-button:hover { background: var(--clay-dark); color: #fff; }

.rail-nav { display: grid; gap: 0.35rem; }

.rail-nav a { font-weight: 600; }

.site-footer {
  background: var(--moss);
  color: #e5efe8;
  padding: 1.4rem 0;
}

.site-footer a { color: #f3d27a; }

.footer-row { display: grid; gap: 0.6rem; }

.footer-row p { margin: 0; }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }

@media (max-width: 860px) {
  .header-row { align-items: flex-start; flex-direction: column; }
  .site-nav { justify-content: flex-start; }
  .layout { grid-template-columns: 1fr; }
  .sheet { padding: 1.2rem 1rem 1.4rem; }
  .rail { order: 2; }
}

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