:root {
  color-scheme: light;
  --bg: #f4f1eb;
  --paper: #fffdf8;
  --ink: #151411;
  --muted: #6d675f;
  --line: #ddd5c8;
  --green: #0f5144;
  --green-dark: #09372f;
  --gold: #d9bd72;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

a {
  color: inherit;
}

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

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.back-link,
.cta {
  min-height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.brand {
  gap: 10px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.back-link {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
  color: var(--muted);
}

.hero {
  padding: 72px 0 34px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #b76632;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: 66px;
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.52;
}

.meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 253, 248, 0.84);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.article-image {
  overflow: hidden;
  border: 1px solid rgba(221, 213, 200, 0.86);
  border-radius: 14px;
  background: #0f1413;
}

.article-image img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.layout {
  padding: 34px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 42px;
  align-items: start;
}

article {
  display: grid;
  gap: 24px;
}

.answer,
.content-card,
.toc,
.related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
}

.answer {
  padding: 24px;
  font-size: 20px;
  line-height: 1.48;
}

.content-card {
  padding: 24px;
}

h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 20px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.62;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.62;
}

li + li {
  margin-top: 8px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.checklist li {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 740;
}

.toc {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
}

.cta-band {
  margin-top: 6px;
  border-radius: 14px;
  padding: 26px;
  background: #11100d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.cta {
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  white-space: nowrap;
}

.related {
  padding: 0 0 76px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  padding: 20px;
  min-height: 164px;
  text-decoration: none;
}

.related-card small {
  color: #b76632;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 26px 0 0;
  font-size: 22px;
}

footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 820px) {
  .topbar {
    padding-top: 12px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .lead {
    font-size: 17px;
  }

  .article-image img {
    aspect-ratio: 4 / 3;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .toc {
    position: static;
    order: -1;
  }

  .checklist,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta {
    width: 100%;
  }
}
