/* ==========================================================================
   Cidermugs — brochure site
   Editorial design language pulled from the Trade Selections 2026 brochure.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --cream:        #FBF5E6;
  --cream-deep:   #F4ECD3;
  --ink:          #2A241D;
  --ink-soft:     #6E6457;
  --ink-soft-2:   #8E8472;
  --burgundy:     #8B2E26;
  --burgundy-dk:  #6E2520;
  --teal:         #2C4A5C;
  --rule:         #E5DCC4;
  --rule-strong:  #C9BD9F;

  --sans: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max:   72rem;     /* 1152px page max */
  --prose: 38rem;     /* ~608px reading column */
  --header-h: 5.5rem; /* matches sticky site header so other sticky elements sit below it */

  /* Semantic colour tokens — change these to recolour the whole site's hierarchy in one go. */
  --heading: var(--burgundy);  /* every large editorial heading / product name */
  --eyebrow: var(--ink);       /* every small uppercase eyebrow label */
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-stretch: 125%;                                /* Archivo Expanded width axis */
  font-variation-settings: 'wdth' 125;               /* explicit fallback for older engines */
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--burgundy-dk); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 1.1em; }

/* ---------- Layout helpers ---------- */
.wrap        { max-width: var(--max); margin: 0 auto; padding: 0 1.75rem; }
.wrap-prose  { max-width: var(--prose); margin: 0 auto; padding: 0 1.75rem; }
.section     { padding: 4.5rem 0; }
.section-sm  { padding: 2.5rem 0; }

/* ---------- Header / nav ---------- */
.site-header {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  height: 38px;
  width: auto;
  display: block;
}
.brand-wordmark {
  height: 22px;
  width: auto;
  display: block;
  position: relative;
  top: 1px;
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover, .nav a.is-current {
  color: var(--ink);
  border-bottom-color: var(--burgundy);
}

@media (max-width: 640px) {
  .site-header .wrap { gap: 1rem; }
  .nav { gap: 1.1rem; font-size: 0.72rem; letter-spacing: 0.15em; }
  .brand-mark { height: 32px; }
  .brand-wordmark { height: 18px; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  background: var(--cream-deep);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-mark {
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-mark img.footer-mark-icon {
  height: 26px; width: auto; display: block;
}
.footer-mark img.footer-mark-name {
  height: 14px; width: auto; display: block;
  position: relative; top: 1px;
}
.footer-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-meta a { color: var(--ink-soft); border-bottom-color: var(--rule-strong); }
.footer-meta a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 1.25rem; }
.footer-social a {
  border: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-social a:hover { color: var(--ink); }

/* ---------- Home / hero (cover treatment) ---------- */
.hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.hero-primary {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  margin: 0 auto;
  display: block;
}
.hero-tagline {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
/* Break the tagline into two lines on narrow viewports */
@media (max-width: 600px) {
  .hero-tagline-row2 { display: block; }
  .hero-tagline { line-height: 1.55; }
}

/* The poem — 2-column editorial layout: headline left, stanzas right */
.poem {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--rule);
}
.poem-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.75rem;
}
.poem-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem 5rem;
  align-items: start;
}
.poem-headline {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--heading);
  margin: 0;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.poem-stanzas {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.poem-stanzas p { margin: 0 0 1.4em; }
.poem-stanzas p:last-child { margin-bottom: 0; }
.poem-stanzas em { color: var(--ink); font-style: italic; }
@media (max-width: 720px) {
  .poem-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .poem-headline { position: static; }
}

/* Featured producer card on home */
.feature {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--rule);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-grid img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 2px;
}
.feature-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
  font-weight: 600;
  margin-bottom: 1rem;
}
.feature-title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 1rem;
  color: var(--heading);
}
.feature-body {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--burgundy-dk); color: var(--cream); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); }

@media (max-width: 800px) {
  .feature-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Page header (generic) ---------- */
.page-header {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.page-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
  font-weight: 600;
  margin-bottom: 1rem;
}
.page-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.75rem;
  color: var(--heading);
}
.page-lede {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Editorial layout (about, producer) ---------- */
/* Reusable 2-column with sticky left header — same pattern as the homepage poem */
.editorial {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem 5rem;
  align-items: start;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.75rem;
}
.editorial-header {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.editorial-header h1,
.editorial-header h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--heading);
  margin: 0;
}
.editorial-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}
.editorial-body p { margin: 0 0 1.4em; }
.editorial-body p:last-child { margin-bottom: 0; }
.editorial-body em { font-style: italic; }
@media (max-width: 720px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .editorial-header { position: static; }
}

/* ---------- About page ---------- */
.about-pull {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--heading);
}
/* Win specificity over the generic .editorial-header h1 rule */
.editorial-header .about-pull {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.22;
}
.about-signoff {
  margin-top: 2.5rem !important;
  font-style: italic;
  color: var(--ink-soft);
}

.founders-photo {
  max-width: 44rem;
  margin: 0 auto 4rem;
  padding: 0 1.75rem;
}
.founders-photo img {
  width: 100%;
  border-radius: 2px;
}

/* ---------- Producer page ---------- */
.producer-hero {
  padding: 0;
  position: relative;
}
.producer-hero img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

@media (max-width: 800px) {
  .producer-hero img { max-height: 50vh; }
}

/* Cider cards */
.ciders {
  padding: 3rem 0 5rem;
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
}
.ciders-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.ciders-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 3rem;
  color: var(--heading);
}

.cider {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto 5rem;
  padding: 0 1.75rem;
}
.cider:nth-child(even) {
  grid-template-columns: 1.4fr 1fr;
}
.cider:nth-child(even) .cider-img { order: 2; }
.cider:last-child { margin-bottom: 0; }

.cider-img {
  display: flex; justify-content: center;
}
.cider-img img {
  max-height: 480px;
  width: auto;
  max-width: 100%;
  border-radius: 2px;
}

.cider-name {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.1em;
}
.cider-sub {
  font-size: 1.25rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.cider-notes {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.cider-desc {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
}
.cider-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.cider-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.cider-meta .price {
  color: var(--burgundy);
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .cider, .cider:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }
  .cider:nth-child(even) .cider-img { order: 0; }
  .cider-img img { max-height: 380px; }
}

/* Trade enquiry block */
.trade {
  text-align: center;
  padding: 3.5rem 1.75rem;
  margin: 0 auto;
  max-width: 36rem;
  border-top: 1px solid var(--rule);
}
.trade-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.trade h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  margin-bottom: 1rem;
  color: var(--heading);
}
.trade p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.trade-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--burgundy);
}

/* ---------- Contact page ---------- */
.contact-card {
  max-width: 32rem;
  margin: 3rem auto 5rem;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--cream-deep);
}
.contact-row { margin-bottom: 2rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.contact-row a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.01em;
}

/* ---------- Decorative bottle+cup mark ---------- */
.bottle-cup-mark {
  display: inline-block;
  vertical-align: middle;
  color: var(--ink);
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.muted  { color: var(--ink-soft); }
.divider {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 3rem 0;
}
