/* REAL Food Act: shared styles for every page */

:root {
  --field: #1E3B2C;      /* deep field green: primary */
  --field-2: #2E5641;    /* lighter green for hovers */
  --soil: #4A3527;       /* dark soil brown: body text accents */
  --wheat: #D8A93A;      /* wheat gold: highlights */
  --tomato: #B3362B;     /* tomato red: calls to action */
  --paper: #FBFAF6;      /* page background */
  --linen: #EFEBDD;      /* section background */
  --ink: #1C1C1A;        /* body text */
  --muted: #5B5A52;

  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --measure: 66ch;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--field); text-underline-offset: 3px; }
a:hover { color: var(--tomato); }

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--field); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--field);
  color: #fff;
  border-bottom: 6px solid var(--wheat);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .9rem;
}

.brand {
  display: flex; align-items: baseline; gap: .6rem;
  color: #fff; text-decoration: none;
}
.brand-mark {
  font-family: var(--display); font-weight: 700;
  font-size: 1.55rem; letter-spacing: .01em; line-height: 1;
}
.brand-sub {
  font-size: .8rem; color: #D6DDD5; line-height: 1.2;
  max-width: 17ch;
}
.brand:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid rgba(255,255,255,.6); color: #fff;
  font: 600 .95rem var(--body); padding: .45rem .8rem; border-radius: 4px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .25rem;
}
.site-nav a {
  display: block; color: #fff; text-decoration: none;
  font-weight: 600; font-size: .98rem;
  padding: .5rem .8rem; border-radius: 4px;
}
.site-nav a:hover { background: var(--field-2); color: #fff; }
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--wheat);
  border-radius: 0;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: .5rem; }
  .site-nav a { padding: .75rem .25rem; border-top: 1px solid rgba(255,255,255,.15); }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--wheat); padding-left: .9rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: 700 1.05rem var(--body);
  text-decoration: none;
  padding: .85rem 1.35rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--tomato); color: #fff; }
.btn-primary:hover { background: #8F2A21; color: #fff; }
.btn-secondary { border-color: var(--field); color: var(--field); background: transparent; }
.btn-secondary:hover { background: var(--field); color: #fff; }

/* ---------- Landing: hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  line-height: .98;
  letter-spacing: -.015em;
  color: var(--field);
  margin: 0 0 1.4rem;
}

.act-name {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 600;
  color: var(--soil);
  margin: 0 0 1rem;
  padding-left: .9rem;
  border-left: 4px solid var(--wheat);
}

.hero .lede {
  font-size: 1.2rem; line-height: 1.55;
  max-width: 34em; margin: 0 0 2rem;
}

.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero image slot: shows a placeholder until images/hero.jpg is added */
.hero-figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background:
    repeating-linear-gradient(170deg, transparent 0 22px, rgba(30,59,44,.07) 22px 24px),
    var(--linen);
  border: 2px dashed #B9B29A;
}
.hero-figure.has-image { border: 0; }
.hero-figure img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-figure .placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
  color: var(--muted); font-size: .95rem; padding: 1.5rem;
}
.hero-figure.has-image .placeholder { display: none; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 16 / 10; order: -1; }
}

/* ---------- Landing: what the Act does ---------- */

.provisions {
  background: var(--field);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.provisions h2,
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 .75rem;
}
.provisions .intro { color: #D6DDD5; max-width: var(--measure); margin: 0 0 2.5rem; }

.provision-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,.25);
}
.provision-list li {
  padding: 1.6rem 2rem 1.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.provision-list li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.25); }
.provision-list li:nth-child(even) { padding-left: 2rem; }
.provision-list h3 {
  font-family: var(--display); font-size: 1.4rem;
  color: var(--wheat); margin: 0 0 .4rem;
}
.provision-list p { margin: 0; color: #EDF0EA; max-width: 42ch; }

@media (max-width: 720px) {
  .provision-list { grid-template-columns: 1fr; }
  .provision-list li,
  .provision-list li:nth-child(even) { padding: 1.4rem 0; border-right: 0; }
  .provision-list li:nth-child(odd) { border-right: 0; }
}

/* ---------- Generic section ---------- */

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section h2 { color: var(--field); }
.section .intro { max-width: var(--measure); margin: 0 0 2.5rem; color: var(--muted); }

/* ---------- Landing: take action ---------- */

.action-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem;
}
.action {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 1.75rem; border-radius: 4px;
  background: var(--linen);
}
.action.lead { background: var(--tomato); color: #fff; }
.action h3 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 .5rem; line-height: 1.15; }
.action p { margin: 0 0 1.5rem; flex: 1; }
.action.lead .btn { background: #fff; color: var(--tomato); }
.action.lead .btn:hover { background: var(--paper); color: #8F2A21; }

@media (max-width: 900px) { .action-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--soil); color: #E9E1D6;
  padding-block: 2.5rem; font-size: .95rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--wheat); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer p { margin: 0; }

@media (max-width: 520px) { .brand-sub { display: none; } }

.act-banner { display: block; width: 100%; height: auto; margin-bottom: 2.5rem; }
.hero { padding-top: 0; }

.doc-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; width: 100%; padding: .6rem 0; border-top: 1px solid 
#D8D2BF; }
.doc-name { flex-basis: 100%; font-weight: 600; }
.doc-btn { font-weight: 700; font-size: .9rem; text-decoration: none; padding: .35rem .8rem; border: 2px solid var(--field); border-radius: 4px; color: var(--field); }
.doc-btn:hover { background: var(--field); color: #fff; }