/* Fourth & Flour: colors and lettering follow the brand board. */
:root {
  --cream: #f4eee2;
  --cream-deep: #ebe2d1;
  --paper: #fbf8f1;
  --black: #1d1a17;
  --wheat: #a97f3e;        /* Wheat Gold (decorative) */
  --wheat-text: #7d5b25;   /* darker wheat, readable as small text */
  --wheat-light: #e3cd9c;
  --tan: #a8927a;          /* Soft Tan */
  --tan-panel: #8f7a64;
  --navy: #243655;         /* Muted Navy */
  --navy-deep: #1c2b45;

  --font-wordmark: "Bevan", "Rockwell", Georgia, serif;
  --font-serif-caps: "Cormorant Garamond", Georgia, serif;
  --font-label: "Josefin Sans", "Futura", system-ui, sans-serif;
  --font-body: "Lora", Georgia, serif;
  --font-script: "Homemade Apple", "Brush Script MT", cursive;

  --wrap: 70rem;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-wordmark);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
h3 { font-family: var(--font-serif-caps); font-weight: 600; font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--wheat-text); }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; border-radius: 4px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--cream); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.script { font-family: var(--font-script); word-spacing: 0.4em; line-height: 2; }

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wheat-text);
  margin-bottom: 0.6rem;
}
.center { text-align: center; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.7rem 0.85rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.button:hover { background: var(--black); border-color: var(--black); color: var(--cream); transform: translateY(-1px); }
.button-outline { background: transparent; color: var(--navy); }
.button-outline:hover { background: var(--navy); border-color: var(--navy); }
.button-light { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.button-light:hover { background: var(--wheat-light); border-color: var(--wheat-light); color: var(--black); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* "To fill in" boxes: clearly unfinished on purpose */
.todo {
  border: 2px dashed var(--wheat); background: #fff8e6; color: #5a4520;
  font-family: system-ui, sans-serif; font-size: 0.9rem; line-height: 1.5;
  padding: 0.75rem 1rem; border-radius: 8px; margin: 1rem 0; text-align: left;
}
.todo code { font-size: 0.85em; background: #f3e6c4; padding: 0.05em 0.3em; border-radius: 3px; }

/* Marks */
.mark-wheat, .mark-paw, .mark-laces { display: block; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem max(1rem, calc((100% - var(--wrap)) / 2));
}
.topbar-brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-wordmark); color: var(--black); text-decoration: none;
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em;
}
.topbar-brand .mark-wheat { width: 15px; height: 27px; color: var(--wheat); }
.topbar nav { display: flex; gap: 1.5rem; }
.topbar nav a {
  font-family: var(--font-label); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--black); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 3px;
}
.topbar nav a:hover { color: var(--navy); }
.topbar nav a[aria-current="page"] { border-color: var(--wheat); }

/* Hero */
.hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}
.hero-brand { text-align: center; }

.wordmark {
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
}
.wm-amp {
  display: flex; align-items: flex-end; justify-content: center; gap: 0.06em;
  font-size: 0.6em; line-height: 1; margin: 0.08em 0 0.06em;
}
.wm-wheat { width: 0.42em; height: 0.76em; color: var(--wheat); }
.wm-paw { width: 0.32em; height: 0.3em; color: var(--wheat); margin-bottom: 0.04em; }
.wm-laces { width: 5.5rem; height: 0.8rem; color: var(--wheat); margin: 0.9rem auto 0.9rem; }

.tagline {
  font-family: var(--font-serif-caps); font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin: 0 0 0.5rem; padding-left: 0.3em;
}
.loaf-line {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-family: var(--font-serif-caps); font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin: 0 0 1.5rem;
}
.loaf-line .rule { flex: 0 1 4.5rem; height: 1px; background: var(--wheat); }
.hero-lede { max-width: 30rem; margin-inline: auto; font-size: 1.15rem; }

.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(40 25 10 / 0.55);
  max-width: 30rem; width: 100%; margin-inline: auto;
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgb(20 14 8 / 0.65));
  color: #fff; text-align: center; font-size: clamp(1rem, 2.2vw, 1.25rem);
}

/* Photo strip (from the brand board) */
.table-strip { background: var(--paper); border-block: 1px solid var(--cream-deep); }
.strip-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 90rem; margin-inline: auto;
}
.strip-grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.strip-text {
  background: var(--tan-panel); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
  font-family: var(--font-label); font-size: clamp(0.62rem, 1.1vw, 0.85rem);
  letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.8;
}
.strip-text p { margin: 0; }
.strip-rule { width: 1.5rem; height: 1px; background: var(--cream); opacity: 0.6; margin: 0.6rem 0; }

/* Gift card: like the back of the loaf card */
.gift { padding: clamp(3rem, 7vw, 5rem) 0; }
.gift-card {
  max-width: 44rem; margin-inline: auto; text-align: center;
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.04), 0 26px 50px -28px rgb(60 40 15 / 0.5);
}
.gift-body { padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3rem) 0.5rem; }
.gift-card h2 { margin-bottom: 0.4em; }
.gift-strong { font-family: var(--font-serif-caps); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--navy); }
.desert { width: 100%; height: clamp(90px, 16vw, 130px); margin-top: 1.5rem; }
.gift-note {
  max-width: 38rem; margin: 1.5rem auto 0; text-align: center;
  font-size: 0.9rem; color: #5d5246; font-style: italic;
}

/* How it works */
.steps { background: var(--cream-deep); padding: clamp(3rem, 7vw, 5rem) 0; }
.section-title { text-align: center; margin-bottom: 2.25rem; }
.step-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.step-list li {
  background: var(--paper); border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem; text-align: center;
}
.step-icon { width: 2.4rem; height: 2.4rem; color: var(--wheat); margin: 0 auto 1rem; }
svg.step-icon.mark-wheat { width: 1.5rem; height: 2.7rem; }
.step-list h3 { margin-bottom: 0.4rem; }
.step-list p { margin: 0; }

/* Current rescue */
.rescue { padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.rescue-inner { max-width: 42rem; }
.rescue h2 { margin-bottom: 0.15em; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.rescue-full { font-family: var(--font-serif-caps); font-style: italic; font-size: 1.35rem; margin-bottom: 0.75rem; }
.rescue-laces { width: 5rem; height: 0.75rem; color: var(--wheat); margin: 0 auto 1.25rem; }
.rescue-area { font-size: 0.95rem; color: #5d5246; }

/* Emmy teaser */
.emmy-teaser { background: var(--navy); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0; }
.emmy-teaser .eyebrow { color: var(--wheat-light); }
.emmy-teaser-inner {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
}
.tag-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.emmy-teaser blockquote { margin: 0.5rem 0 1.75rem; font-size: 1.05rem; color: var(--wheat-light); }

/* Inner pages */
.page-head { text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 0 1rem; }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); text-transform: uppercase; margin-bottom: 0.25em; }
.page-paw { width: 38px; height: 36px; color: var(--wheat); margin: 0 auto 1rem; }
.page-laces { width: 5rem; height: 0.75rem; color: var(--wheat); margin: 0 auto 0.75rem; }
.page-script { color: var(--navy); font-size: 1.15rem; }

.story {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start;
  grid-template-columns: 0.85fr 1.15fr;
  padding-top: 1.5rem;
}
.story-photo img {
  border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  box-shadow: 0 30px 60px -30px rgb(40 25 10 / 0.55);
}
.story-text { font-size: 1.2rem; }
.story-text p:first-child::first-letter {
  font-family: var(--font-wordmark); float: left; font-size: 3.4em; line-height: 0.85;
  padding: 0.08em 0.1em 0 0; color: var(--wheat);
}
.story-quote {
  margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--tan);
  color: var(--navy); font-size: 1.15rem;
}
.photo-placeholder {
  aspect-ratio: 3 / 4; display: grid; place-content: center; justify-items: center; gap: 0.75rem;
  color: var(--tan); font-style: italic; text-align: center;
  border: 2px dashed var(--tan); border-radius: var(--radius);
}
.photo-placeholder .mark-paw { width: 56px; height: 54px; }

/* Footer */
.footer { background: var(--black); color: var(--cream-deep); text-align: center; padding: 3rem 0 2rem; font-size: 0.95rem; }
.footer-wheat { width: 18px; height: 32px; color: var(--wheat); margin: 0 auto 0.75rem; }
.footer-line { font-family: var(--font-script); color: var(--wheat-light); font-size: 1.1rem; word-spacing: 0.3em; margin-bottom: 0.5rem; }
.footer-laces { width: 4rem; height: 0.6rem; color: var(--wheat); margin: 0 auto 1rem; }
.footer-meta { font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-contact { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.footer a { color: var(--wheat-light); }
.footer-copy { font-size: 0.8rem; opacity: 0.7; margin: 0; }

/* Smaller screens */
@media (max-width: 720px) {
  .hero-grid, .emmy-teaser-inner, .story { grid-template-columns: 1fr; }
  .hero-photo { max-width: 24rem; }
  .story-photo { max-width: 24rem; margin-inline: auto; width: 100%; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-text { grid-column: 1 / -1; order: -1; padding: 1.75rem 1rem; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .topbar { flex-direction: column; gap: 0.6rem; }
  .tagline { letter-spacing: 0.18em; }
  .loaf-line .rule { flex-basis: 2rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
