:root {
  --ink: #2a211a;
  --ink-soft: #5e5145;
  --forest: #294b3a;
  --forest-dark: #183529;
  --moss: #70805a;
  --cream: #fbf3e4;
  --paper: #fffaf0;
  --honey: #c8914c;
  --honey-soft: #efd4a5;
  --rosewood: #8f4332;
  --rose-soft: #f5ddd2;
  --line: rgba(69, 48, 31, 0.2);
  --shadow: 0 22px 60px rgba(48, 33, 21, 0.12);
  --radius-lg: 34px;
  --radius-md: 22px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 145, 76, 0.1), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, #f8efdf 100%);
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #d58d2e;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--forest-dark);
  color: white;
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.88);
  border-bottom: 1px solid rgba(69, 48, 31, 0.12);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--forest-dark);
  text-decoration: none;
  line-height: 1.05;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  margin-top: 0.24rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-seal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50% 48% 52% 45%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.05em;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px currentColor;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.main-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.25rem;
  height: 2px;
  background: var(--honey);
  transition: right 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--forest-dark);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero,
.content-section,
.checker-section,
.emergency-section,
.help-section,
.garden-section,
.sources-section {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.hero {
  padding-top: clamp(1rem, 2.5vw, 2rem);
}

.hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.6 / 1;
  border: 1px solid rgba(72, 48, 30, 0.16);
  border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 110px clamp(24px, 4vw, 44px);
  background: #f3dfba;
  box-shadow: var(--shadow);
}

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

.hero-copy {
  position: absolute;
  top: 50%;
  left: clamp(2rem, 6vw, 5rem);
  width: min(45%, 490px);
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest-dark);
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
}

h1 em {
  color: var(--rosewood);
  font-weight: 400;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4.3vw, 3.8rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-lead {
  max-width: 47ch;
  margin-bottom: 1.5rem;
  color: #493c31;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.55;
}

.hero-actions,
.first-aid-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--forest-dark);
  color: white;
  box-shadow: 0 10px 24px rgba(24, 53, 41, 0.2);
}

.button-primary:hover {
  background: #0f2c20;
}

.button-quiet {
  border-color: rgba(42, 33, 26, 0.28);
  background: rgba(255, 250, 240, 0.62);
  color: var(--ink);
}

.quick-facts {
  width: min(92%, 1020px);
  margin: -48px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--forest-dark);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 38px rgba(24, 53, 41, 0.22);
}

.quick-facts article {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 1.4rem;
}

.quick-facts article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.fact-number {
  color: var(--honey-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
}

.quick-facts article div span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  line-height: 1.45;
}

.content-section,
.checker-section,
.emergency-section,
.help-section,
.garden-section,
.sources-section {
  padding-top: clamp(5.5rem, 9vw, 9rem);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading > p:last-child,
.checker-intro > p:last-child,
.emergency-topline > p:last-child,
.garden-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.feeding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.food-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.food-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 210px;
  height: 210px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.14;
  box-shadow: 0 0 0 26px transparent, 0 0 0 27px currentColor, 0 0 0 55px transparent, 0 0 0 56px currentColor;
}

.food-card-good {
  color: var(--forest-dark);
  background: #dde7d3;
}

.food-card-bad {
  color: #562b23;
  background: var(--rose-soft);
}

.card-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-kicker span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
}

.food-card h3 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.clean-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 1rem 0 1rem 1.4rem;
  border-top: 1px solid currentColor;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.65rem;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.clean-list strong,
.clean-list span {
  display: block;
}

.clean-list span {
  margin-top: 0.22rem;
  color: color-mix(in srgb, currentColor 78%, transparent);
}

.note-ribbon {
  margin: 1.3rem auto 0;
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.note-ribbon p {
  margin: 0;
}

.note-ribbon a {
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.note-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--honey);
  color: #2e1d0a;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.checker-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.7fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.checker-intro {
  position: sticky;
  top: 110px;
}

.checker-panel {
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.search-field > span:first-child {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.search-input-wrap {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.search-input-wrap:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(41, 75, 58, 0.14);
}

.search-input-wrap svg {
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ink-soft);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search-input-wrap input::placeholder {
  color: #817569;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.filter-button {
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  font-weight: 720;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--forest-dark);
  color: white;
  border-color: var(--forest-dark);
}

.result-count {
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.food-results {
  border-top: 1px solid var(--line);
}

.food-result {
  display: grid;
  grid-template-columns: 118px minmax(130px, 0.7fr) minmax(180px, 1.3fr);
  align-items: start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.food-result[hidden] {
  display: none;
}

.food-result h3,
.food-result p {
  margin: 0;
}

.food-result h3 {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.food-result p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.status {
  width: fit-content;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.status-good {
  background: #d9ead1;
  color: #1d512e;
}

.status-sometimes {
  background: #f5e3b9;
  color: #70470e;
}

.status-no {
  background: #f1d3cc;
  color: #7a2e25;
}

.empty-state {
  margin: 1.2rem 0 0;
  padding: 1rem;
  background: #f5e3b9;
  border-radius: 12px;
}

.feeding-station {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.frame-image {
  position: relative;
  padding: clamp(0.65rem, 1.5vw, 1rem);
  background: var(--honey-soft);
  border: 1px solid rgba(76, 48, 28, 0.22);
  border-radius: 48% 48% 20px 20px;
  transform: rotate(-1deg);
  box-shadow: var(--shadow);
}

.frame-image::after {
  content: "";
  position: absolute;
  inset: 2rem -1rem -1rem 2rem;
  z-index: -1;
  border: 1px solid var(--forest);
  border-radius: inherit;
  opacity: 0.42;
}

.frame-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 48% 48% 14px 14px;
}

.steps-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.steps-list li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--honey);
  border-radius: 50%;
  color: var(--rosewood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
}

.steps-list p {
  margin: 0;
}

.source-note {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.source-note a {
  font-weight: 700;
}

.emergency-section {
  margin-top: clamp(5.5rem, 9vw, 9rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 48px;
  background: var(--forest-dark);
  color: white;
}

.emergency-section .eyebrow {
  color: var(--honey-soft);
}

.emergency-section h2,
.emergency-section h3 {
  color: white;
}

.emergency-topline {
  max-width: 780px;
}

.emergency-topline > p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.emergency-grid article {
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.emergency-icon {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--honey-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.emergency-grid h3 {
  font-size: 1.12rem;
}

.emergency-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.55;
}

.first-aid-card {
  margin-top: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: 0.7fr 1.35fr;
  gap: 1.5rem 3rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
}

.first-aid-card h3 {
  color: var(--forest-dark);
  font-size: 1.8rem;
}

.first-aid-card ol {
  margin: 0;
  padding-left: 1.25rem;
}

.first-aid-card li + li {
  margin-top: 0.55rem;
}

.first-aid-actions {
  grid-column: 2;
}

.button-light {
  background: var(--forest);
  color: white;
}

.text-link {
  color: var(--forest-dark);
  font-weight: 750;
}

.law-note {
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.law-note a {
  color: white;
  font-weight: 750;
}

.help-heading {
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.help-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.directory-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.directory-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: #e6dec9;
  border: 1px solid var(--line);
  border-radius: 26px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.directory-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: var(--shadow);
}

.directory-card-primary {
  background: var(--forest-dark);
  color: white;
}

.directory-card h3 {
  margin-top: 0.7rem;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
}

.directory-card-primary h3 {
  color: white;
}

.directory-card p {
  max-width: 56ch;
  margin-bottom: 1.5rem;
  color: color-mix(in srgb, currentColor 76%, transparent);
}

.directory-label {
  padding: 0.32rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.directory-link {
  margin-top: auto;
  font-weight: 800;
}

.region-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.region-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.region-title {
  min-height: 132px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.region-title > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
}

.region-title p {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.region-title h3 {
  margin: 0;
  font-size: 1.15rem;
}

.region-north .region-title {
  background: #dce6d6;
  color: var(--forest-dark);
}

.region-west .region-title {
  background: #efe0c1;
  color: #684311;
}

.region-south .region-title {
  background: #ead7cf;
  color: #6f3028;
}

.region-east .region-title {
  background: #dde3e3;
  color: #2f4d50;
}

.region-card ul {
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
}

.region-card li + li {
  border-top: 1px solid var(--line);
}

.region-card li a {
  position: relative;
  display: block;
  padding: 1rem 1.8rem 1rem 0;
  text-decoration: none;
}

.region-card li a::after {
  content: "↗";
  position: absolute;
  top: 1rem;
  right: 0;
  color: var(--rosewood);
  font-weight: 800;
}

.region-card li a:hover strong {
  color: var(--rosewood);
}

.region-card strong,
.region-card li span {
  display: block;
}

.region-card strong {
  line-height: 1.4;
}

.region-card li span {
  margin-top: 0.26rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.help-note {
  margin: 1rem 0;
  padding: 1.2rem 1.35rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.9rem;
  background: #f4dfba;
  border: 1px solid rgba(107, 67, 18, 0.2);
  border-radius: 18px;
}

.help-note > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #70470e;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.help-note p {
  margin: 0;
}

.knowledge-links {
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.7);
}

.knowledge-links > div,
.knowledge-links > a {
  padding: 1.25rem;
}

.knowledge-links > a {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-left: 1px solid var(--line);
}

.knowledge-links > a:hover {
  background: rgba(200, 145, 76, 0.1);
}

.knowledge-links h3,
.knowledge-links p {
  margin: 0;
}

.knowledge-links h3 {
  font-size: 1.25rem;
}

.knowledge-links a strong,
.knowledge-links a span {
  display: block;
}

.knowledge-links a span {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.knowledge-links a i {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--rosewood);
  font-style: normal;
  font-weight: 800;
}

.garden-section {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.garden-heading {
  align-self: start;
  position: sticky;
  top: 110px;
}

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

.garden-list article {
  display: grid;
  grid-template-columns: 54px minmax(150px, 0.7fr) minmax(200px, 1fr);
  gap: 1rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.garden-list article > span {
  color: var(--rosewood);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.garden-list h3,
.garden-list p {
  margin: 0;
}

.garden-list p {
  color: var(--ink-soft);
}

.sources-section {
  margin-bottom: clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: 0.55fr 1.2fr;
  gap: 2rem 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.sources-section h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.sources-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.sources-section li {
  border-bottom: 1px solid var(--line);
}

.sources-section li a {
  display: block;
  padding: 0.8rem 0;
  font-weight: 700;
  text-decoration: none;
}

.sources-section li a:hover {
  color: var(--rosewood);
}

.sources-section > p {
  grid-column: 2;
  margin: -1.1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.footer-brand {
  justify-self: start;
}

.back-to-top {
  justify-self: end;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 980px) {
  .main-nav {
    gap: 1rem;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .hero-copy {
    left: 2.3rem;
    width: 47%;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    min-height: 42px;
    font-size: 0.9rem;
  }

  .quick-facts {
    width: 95%;
  }

  .quick-facts article {
    grid-template-columns: 1fr;
  }

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

  .first-aid-card {
    grid-template-columns: 1fr;
  }

  .first-aid-actions {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .brand-seal {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(48, 33, 21, 0.1);
    transform-origin: top;
    transform: scaleY(0.94);
    opacity: 0;
    visibility: hidden;
    transition: transform 160ms ease, opacity 160ms ease, visibility 160ms ease;
  }

  .main-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 0.72rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    width: 100%;
    padding-top: 0;
  }

  .hero-media {
    overflow: visible;
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0 0 50px 50px;
    background: #f2dab0;
    box-shadow: none;
  }

  .hero-media > img {
    height: 250px;
    order: 2;
    object-fit: cover;
    object-position: 74% center;
    border-radius: 0 0 48px 48px;
  }

  .hero-copy {
    position: static;
    order: 1;
    width: min(calc(100% - 2rem), 620px);
    margin: 0 auto;
    padding: 2rem 0 1.8rem;
    transform: none;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .quick-facts {
    width: min(calc(100% - 2rem), 620px);
    margin-top: -36px;
    grid-template-columns: 1fr;
  }

  .quick-facts article {
    grid-template-columns: 42px 1fr;
    padding: 1.1rem 1.2rem;
  }

  .quick-facts article + article {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .feeding-grid,
  .checker-section,
  .feeding-station,
  .directory-featured,
  .garden-section,
  .sources-section {
    grid-template-columns: 1fr;
  }

  .checker-intro,
  .garden-heading {
    position: static;
  }

  .food-card {
    min-height: auto;
  }

  .note-ribbon {
    grid-template-columns: auto 1fr;
  }

  .note-ribbon a {
    grid-column: 2;
  }

  .feeding-station {
    gap: 3rem;
  }

  .station-copy {
    order: -1;
  }

  .food-result {
    grid-template-columns: 104px 1fr;
  }

  .food-result p {
    grid-column: 2;
  }

  .garden-list article {
    grid-template-columns: 44px 1fr;
  }

  .garden-list p {
    grid-column: 2;
  }

  .sources-section > p {
    grid-column: 1;
    margin-top: 0;
  }

  .knowledge-links {
    grid-template-columns: 1fr 1fr;
  }

  .knowledge-links > a {
    border-top: 1px solid var(--line);
  }

  .knowledge-links > a:nth-of-type(1) {
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero-media > img {
    height: 210px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }

  .hero-actions,
  .first-aid-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feeding-grid {
    gap: 1rem;
  }

  .food-card,
  .checker-panel {
    border-radius: 24px;
  }

  .food-result {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .food-result p {
    grid-column: 1;
  }

  .emergency-section {
    width: 100%;
    border-radius: 34px 34px 0 0;
  }

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

  .region-directory,
  .knowledge-links {
    grid-template-columns: 1fr;
  }

  .region-title {
    min-height: 0;
  }

  .knowledge-links > a {
    border-left: 0;
  }

  .garden-list article {
    grid-template-columns: 36px 1fr;
  }

  .site-footer {
    align-items: end;
  }

  .footer-brand small {
    max-width: 12ch;
  }
}

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