/* Gourmet Gifts &c. — magazine stylesheet
   Palette: terracotta / cream / olive / honey gold */

:root {
  --terracotta: #b34a26;
  --terracotta-deep: #8f3a1c;
  --terracotta-soft: #d98e63;
  --cream: #faf4e8;
  --cream-dark: #f2e9d7;
  --cream-line: #e4d7bf;
  --olive: #6b7a45;
  --olive-deep: #46522e;
  --ink: #2e251c;
  --muted: #7d6f5c;
  --gold: #c39246;
  --dark: #2a2419;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

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

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-line);
}
.head-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.4rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark .amp { color: var(--terracotta); font-style: italic; }
.wordmark:hover { text-decoration: none; color: var(--terracotta-deep); }
.site-nav {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}
.site-nav a { color: var(--muted); padding: 0.2rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--terracotta); text-decoration: none; }

/* ---------- Hero (pure CSS gradient — no photo, see _photo-manifest.json) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 90% at 12% 0%, rgba(179, 74, 38, 0.34), transparent 60%),
    radial-gradient(ellipse 70% 80% at 92% 100%, rgba(107, 122, 69, 0.38), transparent 62%),
    radial-gradient(ellipse 45% 55% at 85% 8%, rgba(195, 146, 70, 0.28), transparent 65%),
    linear-gradient(160deg, #f7eddb 0%, #f4e3c9 46%, #ead9ba 78%, #e3cfae 100%);
  border-bottom: 1px solid var(--cream-line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(46, 37, 28, 0.022) 0 2px, transparent 2px 5px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 5.2rem 1.4rem 4.6rem;
  text-align: center;
}
.overline {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.hero h1 .tc { color: var(--terracotta); }
.standfirst {
  font-size: 1.12rem;
  color: #584a37;
  max-width: 39rem;
  margin: 0 auto 1.8rem;
}
.hero-rule {
  width: 4.5rem;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.8rem;
  border: 0;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 70% 120% at 8% 0%, rgba(179, 74, 38, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 110% at 95% 10%, rgba(107, 122, 69, 0.14), transparent 55%),
    var(--cream-dark);
  border-bottom: 1px solid var(--cream-line);
}
.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.4rem 1.4rem 2.6rem;
}
.crumb {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumb a { color: var(--olive-deep); }
.page-hero h1 {
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.dek {
  font-size: 1.13rem;
  font-style: italic;
  color: #5a4c39;
  max-width: 42rem;
}
.byline {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 1.3rem;
}
.byline strong { color: var(--terracotta-deep); font-weight: 600; }

/* ---------- Sections & grids ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 3.2rem 1.4rem; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }
.section-title {
  font-size: 0.82rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  white-space: nowrap;
}
.section-title::after {
  content: "";
  display: inline-block;
  width: 3.2rem;
  height: 2px;
  background: var(--gold);
  margin-left: 0.9rem;
  vertical-align: middle;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.3rem;
}
.card {
  background: #fdfaf3;
  border: 1px solid var(--cream-line);
  border-top: 3px solid var(--terracotta);
  padding: 1.35rem 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card.olive-top { border-top-color: var(--olive); }
.card.gold-top { border-top-color: var(--gold); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(46, 37, 28, 0.10); }
.card .kicker {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 0.55rem;
}
.card h3 { font-size: 1.22rem; line-height: 1.3; margin-bottom: 0.55rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--terracotta); text-decoration: none; }
.card p { font-size: 0.94rem; color: #55483a; flex-grow: 1; }
.card .more {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}

/* ---------- Article prose ---------- */
.article-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr); }
.prose {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.8rem 0 1rem;
}
.prose p { margin-bottom: 1.25rem; }
.prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.4rem;
  line-height: 0.82;
  padding: 0.12rem 0.55rem 0 0;
  color: var(--terracotta);
  font-weight: 700;
}
.prose h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--cream-line);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.13rem; margin: 1.7rem 0 0.6rem; color: var(--olive-deep); }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.4rem; }
.prose li { margin-bottom: 0.45rem; }
.pull {
  border-left: 3px solid var(--gold);
  padding: 0.35rem 0 0.35rem 1.3rem;
  margin: 1.9rem 0;
  font-size: 1.24rem;
  font-style: italic;
  color: #4c3f2e;
  line-height: 1.5;
}
.note {
  background: var(--cream-dark);
  border: 1px solid var(--cream-line);
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem;
  margin: 1.8rem 0;
}
.further {
  background: #fdfaf3;
  border: 1px solid var(--cream-line);
  border-left: 3px solid var(--olive);
  padding: 1.25rem 1.4rem;
  margin: 2.4rem 0 0.5rem;
}
.further .kicker {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 0.6rem;
}
.further ul { list-style: none; margin: 0; }
.further li { padding: 0.3rem 0; border-bottom: 1px dotted var(--cream-line); }
.further li:last-child { border-bottom: 0; }

/* ---------- Home extras ---------- */
.letter {
  background:
    radial-gradient(ellipse 60% 100% at 100% 0%, rgba(107, 122, 69, 0.10), transparent 60%),
    #fdfaf3;
  border: 1px solid var(--cream-line);
  padding: 2.4rem 2.2rem;
  max-width: 820px;
  margin: 0 auto 0.6rem;
}
.letter .sig {
  font-family: var(--sans);
  font-size: 0.8rem;
  margin-top: 1.4rem;
  color: var(--muted);
}
.letter .sig strong { color: var(--terracotta-deep); }

.about-strip {
  background: var(--dark);
  color: #efe6d2;
}
.about-strip .section { padding: 3rem 1.4rem; }
.about-strip h2 {
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin-bottom: 1.1rem;
}
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.about-grid p { font-size: 0.97rem; color: #d9cdb4; }
.about-grid strong { color: #f3ead6; }

/* ---------- Footer ---------- */
.site-foot { background: #221d13; color: #c9bda4; }
.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.8rem 1.4rem 2.2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  font-size: 0.88rem;
}
.foot-inner h4 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin-bottom: 0.7rem;
}
.foot-inner ul { list-style: none; }
.foot-inner li { margin-bottom: 0.4rem; }
.foot-inner a { color: #c9bda4; }
.foot-inner a:hover { color: #f0e6cf; }
.foot-blurb { font-style: italic; color: #b3a68a; max-width: 26rem; }
.foot-legal {
  border-top: 1px solid #3a3222;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: #8d8166;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.4rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-blurb { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .head-inner { flex-direction: column; align-items: center; text-align: center; }
  .site-nav { justify-content: center; gap: 0.3rem 0.95rem; }
  .hero-inner { padding: 3.6rem 1.2rem 3.2rem; }
  .section { padding: 2.4rem 1.2rem; }
  .letter { padding: 1.8rem 1.4rem; }
  .foot-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .prose { hyphens: auto; -webkit-hyphens: auto; }
  .prose > p:first-of-type::first-letter { font-size: 2.9rem; }
}

::selection { background: rgba(179, 74, 38, 0.18); }
a:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

/* ---------- pipeline photos ---------- */
.hero-photo{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
}
.hero-veil{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(250,244,232,.44) 0%, rgba(250,244,232,.62) 55%, rgba(250,244,232,.76) 100%);
}
figure.photo{ margin:2.3rem 0; }
figure.photo img{
  width:100%; max-width:100%;
  aspect-ratio:3/2; object-fit:cover;
  border:1px solid var(--cream-line);
  box-shadow:0 10px 28px rgba(46,37,28,.14);
}
