:root {
  --page: #fff9ef;
  --paper: #fbf2e4;
  --ink: #111923;
  --body: #10151c;
  --muted: #3e3429;
  --line: #ded0bc;
  --red: #b62010;
  --red-dark: #991d0f;
  --olive: #757d46;
  --olive-dark: #57613a;
  --ochre: #d79b27;
  --orange: #df761f;
  --clay: #c94718;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --hand: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body);
  background: linear-gradient(180deg, #fffaf2 0%, #f4eadb 100%);
  font-family: var(--sans);
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(124, 94, 56, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 94, 56, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(182, 32, 16, .42); outline-offset: 3px; }

.page {
  width: min(995px, calc(100% - 28px));
  margin: 13px auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 250, 241, .72);
  overflow: hidden;
}
.site-header {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 15px 26px 13px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.04;
  color: #101721;
}
.brand span { display: block; font-size: 18px; }
.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.top-nav a { padding: 8px 0 10px; border-bottom: 3px solid transparent; }
.top-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
main { padding: 30px 20px 0; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 0 0 12px;
  color: #111923;
  font-family: var(--serif);
  font-size: 45px;
  line-height: .98;
  font-weight: 700;
}
h2 {
  margin: 0 0 12px;
  color: #111923;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.12;
}
h3 {
  margin: 0 0 8px;
  color: #111923;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
}
p { font-size: 14px; line-height: 1.62; }
strong { font-weight: 800; }
.module-label {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 17px;
  font-weight: 700;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(330px, 1fr);
  gap: 26px;
  align-items: start;
}
.hero.single { grid-template-columns: minmax(0, 680px) minmax(230px, 1fr); }
.hero-warning {
  margin-bottom: 15px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
}
.hero-copy { max-width: 500px; margin-bottom: 17px; }
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin-top: 19px;
  font-size: 14px;
  font-weight: 700;
}
.primary-button, .tool-button {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  border: 0;
  border-radius: 5px;
  color: #fffaf1;
  background: linear-gradient(180deg, #c83216, #a71e0d);
  box-shadow: 0 6px 14px rgba(153, 29, 15, .18);
  cursor: pointer;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 11px 16px;
  border: 1px solid var(--red);
  border-radius: 5px;
  color: var(--red);
  background: rgba(255, 250, 241, .72);
  font-weight: 700;
  cursor: pointer;
}
.text-link { color: var(--red); font-weight: 700; }
.hero-image {
  position: relative;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  min-height: 305px;
  overflow: hidden;
  border-radius: 4px;
}
.hero-image img {
  width: 100%;
  height: 330px;
  display: block;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.85) 4%, #000 8%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.85) 4%, #000 8%);
}
.field-illustration {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    radial-gradient(circle at 72% 14%, rgba(217, 156, 57, .18), transparent 9rem),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(170, 126, 68, .10) 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(170, 126, 68, .07) 22px),
    rgba(255, 250, 241, .58);
  position: relative;
  overflow: hidden;
}
.field-illustration::after {
  content: "";
  position: absolute;
  right: 38px;
  bottom: 30px;
  width: 190px;
  height: 124px;
  transform: rotate(-3deg);
  background: #f5e1bd;
  box-shadow: 0 13px 22px rgba(79, 48, 22, .2);
}
.field-illustration span {
  position: absolute;
  z-index: 1;
  right: 66px;
  bottom: 60px;
  width: 135px;
  font-family: var(--hand);
  font-size: 17px;
  line-height: 1.35;
  transform: rotate(-3deg);
}
.divider { height: 1px; margin: 18px 0; background: var(--line); }
.section { padding: 12px 7px 0; border-top: 1px solid var(--line); }
.section-header { max-width: 690px; margin-bottom: 14px; }
.underlined::after {
  content: "";
  display: block;
  width: 49px;
  height: 2px;
  margin: 10px 0 0;
  background: var(--red);
}
.paper-panel, .callout, .warning, .rule-block, .note {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 250, 241, .56);
}
.paper-panel { padding: 17px 18px; margin: 14px 0; }
.callout, .warning, .note { padding: 14px 18px; margin: 16px 0; border-left: 4px solid var(--olive); }
.warning { border-left-color: var(--ochre); background: rgba(255, 246, 226, .7); }
.rule-block {
  padding: 15px 18px;
  margin: 16px 0;
  border-left: 4px solid var(--red);
  color: #fffaf1;
  background: linear-gradient(135deg, #6f2c1e, #a32913);
}
.rule-block p { margin: 0; }
.grid-2, .grid-3, .risk-grid {
  display: grid;
  gap: 12px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.risk-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card, .risk-card {
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 250, 241, .54);
}
.risk-card { border-top: 5px solid var(--olive); }
.risk-card:nth-child(2) { border-top-color: var(--ochre); }
.risk-card:nth-child(3) { border-top-color: var(--orange); }
.risk-card:nth-child(4) { border-top-color: var(--clay); }
.risk-card:nth-child(5) { border-top-color: var(--red); }
.risk-card h3 { font-size: 17px; }
.risk-card p, .card p { margin-bottom: 0; }
.compact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 13px;
}
.compact-table th {
  padding: 10px;
  color: #fffaf1;
  background: #5b452f;
  text-align: left;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}
.compact-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compact-table tr:nth-child(even) td { background: rgba(250, 241, 224, .58); }
.checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
}
.checklist li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--olive);
  background: #faf6e8;
}
.bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 11px;
  padding: 7px 0 17px;
  font-size: 14px;
  font-weight: 700;
}
.bottom-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  color: var(--red);
}
.bottom-nav a:nth-child(2) { justify-content: center; }
.bottom-nav a:nth-child(3) { justify-self: end; }
.bottom-nav .next {
  min-width: 201px;
  justify-content: center;
  gap: 18px;
  border-radius: 5px;
  color: #fffaf1;
  background: linear-gradient(180deg, #c83216, #a71e0d);
}
.progress { font-size: 12px; font-weight: 700; color: var(--muted); }
.progress-bar { height: 5px; margin: 8px 0 16px; background: rgba(117, 125, 70, .24); border-radius: 4px; }
.progress-fill { height: 5px; background: var(--olive); border-radius: 4px; transition: width .2s ease; }
.question-card, .terminal-card { padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--olive); border-radius: 7px; background: rgba(255, 250, 241, .58); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.terminal-card.green { border-left-color: var(--olive); }
.terminal-card.amber { border-left-color: var(--ochre); }
.terminal-card.red { border-left-color: var(--red); }
.terminal-label { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.terminal-links { display: grid; gap: 7px; margin-top: 14px; color: var(--red); font-weight: 700; }
[hidden] { display: none !important; }

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 200px;
  margin: 20px 0;
  padding: 28px 20px;
  border: 2px dashed var(--line);
  border-radius: 7px;
  background: rgba(255, 250, 241, .44);
  color: var(--muted);
  text-align: center;
}
.video-placeholder svg { width: 56px; height: 56px; opacity: .45; }
.video-placeholder p { margin: 0; font-size: 13px; font-style: italic; color: var(--muted); }
.page-footer {
  padding: 10px 26px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.risk-why { font-size: 12px; color: var(--muted); font-style: italic; margin: 0 0 6px; }
@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .top-nav { width: 100%; overflow-x: auto; gap: 22px; }
  .hero, .hero.single, .grid-2, .grid-3, .risk-grid { grid-template-columns: 1fr; }
  .hero-image img { height: auto; min-height: 240px; }
  .bottom-nav { grid-template-columns: 1fr; }
  .bottom-nav a, .bottom-nav a:nth-child(2), .bottom-nav a:nth-child(3) { justify-content: center; justify-self: stretch; }
  .bottom-nav .next { width: 100%; }
}
@media (max-width: 720px) {
  body { overflow-x: hidden; }
  .page { width: 100%; margin: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .page * { max-width: 100%; }
  main { padding: 22px 14px 0; }
  h1 {
    font-size: 24px;
    line-height: 1.04;
    overflow-wrap: anywhere;
  }
  h2 { font-size: 22px; }
  .hero-warning { font-size: 17px; }
  p, h2, h3, .card, .paper-panel { overflow-wrap: anywhere; }
  .hero, .section { min-width: 0; }
  .site-header { padding: 14px; }
  .top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px 12px;
    white-space: normal;
    overflow: visible;
  }
  .top-nav a { min-width: 0; padding: 7px 0 8px; font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .primary-button, .secondary-button, .tool-button { width: 100%; min-width: 0; }
  .compact-table { display: block; overflow-x: auto; max-width: 100%; }
  .compact-table th, .compact-table td { min-width: 9rem; }
  .field-illustration::after { right: 24px; width: 160px; }
  .field-illustration span { right: 46px; width: 118px; }
}

/* Email signup */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.signup-form { margin-top: 14px; }
.signup-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.signup-input {
  flex: 1;
  min-width: 220px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 250, 241, .72);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--body);
}
.signup-input:focus { outline: 3px solid rgba(182, 32, 16, .28); outline-offset: 2px; }
.signup-button {
  padding: 11px 20px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #c83216, #a71e0d);
  color: #fffaf1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.signup-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.kit-button {
  margin-top: 14px;
  display: inline-flex;
}
