:root {
  --paper: #fbf4ea;
  --cream: #fffdf8;
  --ink: #242220;
  --muted: #6c635a;
  --red: #8f2440;
  --red-dark: #541c2b;
  --green: #456b4f;
  --ochre: #d2a94e;
  --blue: #405d6f;
  --line: rgba(36, 34, 32, 0.14);
  --shadow: 0 24px 80px rgba(41, 28, 22, 0.16);
  --radius: 8px;
  --wrap: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--wrap);
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 40px rgba(41, 28, 22, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.footer-grid {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
}

.brand span {
  width: 30px;
  height: 30px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, var(--cream) 32% 37%, transparent 38%),
    conic-gradient(var(--red), var(--ochre), var(--green), var(--blue), var(--red));
  box-shadow: 0 0 0 1px var(--line);
}

.nav {
  gap: 6px;
}

.nav a,
.toc a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.toc a:hover,
.toc a:focus-visible {
  color: var(--ink);
  background: rgba(143, 36, 64, 0.1);
  outline: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(var(--ink), var(--ink)) center / 20px 2px no-repeat;
}

.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transform: translateY(-7px);
}

.menu-button::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  margin-top: -80px;
  overflow: hidden;
  color: var(--cream);
  background: var(--red-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(84, 28, 43, 0.92), rgba(84, 28, 43, 0.58) 48%, rgba(84, 28, 43, 0.18)),
    linear-gradient(0deg, rgba(36, 34, 32, 0.76), transparent 46%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  min-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 auto;
  padding: 138px 0 70px;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--ochre);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  color: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 7.6vw, 92px);
  line-height: 0.93;
  font-weight: 700;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.lead {
  max-width: 740px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(18px, 2.1vw, 23px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  color: var(--red-dark);
  background: var(--ochre);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.btn.secondary {
  color: var(--cream);
  border-color: rgba(255, 253, 248, 0.36);
  background: rgba(255, 253, 248, 0.08);
}

.btn:hover,
.btn:focus-visible {
  outline: 3px solid rgba(210, 169, 78, 0.34);
  outline-offset: 2px;
}

.notice {
  padding: 38px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.notice-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.notice h2 {
  font-size: clamp(28px, 3.5vw, 42px);
}

.notice-card,
.callout,
.recipe-list article,
.tracker,
.success-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(41, 28, 22, 0.08);
}

.notice-card {
  padding: 22px;
}

.notice-card.urgent {
  color: var(--cream);
  background: var(--red-dark);
}

.notice-card p,
.content p,
.recipe-list .note,
.avoid-grid span,
.footer span {
  color: var(--muted);
}

.notice-card.urgent p {
  color: rgba(255, 253, 248, 0.8);
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 54px;
  padding: 86px 0 94px;
}

.toc {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
}

.toc b {
  margin-bottom: 6px;
}

.content {
  display: grid;
  gap: 76px;
}

.content > section {
  scroll-margin-top: 110px;
}

.content p {
  max-width: 760px;
  font-size: 18px;
}

.callout {
  max-width: 800px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  margin-top: 28px;
  padding: 20px;
  background: #f7e5dc;
}

.callout b {
  color: var(--red-dark);
}

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

.recipe-list article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.recipe-list small {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.recipe-list button {
  min-height: 42px;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--red-dark);
  background: var(--cream);
  font-weight: 900;
  cursor: pointer;
}

.recipe-list button:hover,
.recipe-list button:focus-visible {
  background: #f0ddc6;
  outline: none;
}

.recipe-list .note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.tracker {
  max-width: 720px;
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
}

.tracker label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.tracker input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

.tracker output {
  margin-top: 8px;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--cream);
  background: var(--green);
  font-weight: 900;
}

.avoid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.avoid-grid div {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--cream);
}

.avoid-grid b {
  color: var(--red-dark);
  font-size: 20px;
}

.summary {
  margin-inline: max(-40px, -4vw);
  padding: 42px max(28px, 4vw);
  color: var(--cream);
  background: var(--green);
}

.summary p {
  color: rgba(255, 253, 248, 0.82);
}

.sources ul {
  margin: 0;
  padding-left: 20px;
}

.sources li {
  margin-bottom: 10px;
}

.sources a {
  color: var(--red-dark);
  font-weight: 800;
}

.footer {
  padding: 28px 0;
  color: var(--cream);
  background: var(--ink);
}

.footer-grid {
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  color: var(--cream);
}

.success-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-card {
  max-width: 560px;
  padding: 34px;
}

.success-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.94;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
  }

  .menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    inset: 64px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
  }

  .topbar.is-open .nav {
    display: flex;
  }

  .notice-grid,
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toc b {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --wrap: min(100% - 28px, 1120px);
  }

  .topbar {
    margin-top: 10px;
  }

  .hero,
  .hero-inner {
    min-height: 740px;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(84, 28, 43, 0.9), rgba(84, 28, 43, 0.5)),
      linear-gradient(90deg, rgba(84, 28, 43, 0.78), transparent);
  }

  .hero-inner {
    padding: 122px 0 42px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .notice,
  .layout {
    padding: 58px 0;
  }

  .toc,
  .recipe-list,
  .avoid-grid,
  .callout {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
