/*
Theme Name: Celebrations Wine Club
Theme URI: https://www.celebrationswineclub.com/
Author: Restoration and redesign build for Celebrations Wine Club
Description: Lightweight, accessible, responsive theme for Celebrations Wine Club — an editorial wine identity in burgundy, champagne gold and warm ivory. Self-hosted variable fonts, no page builder, no jQuery, no trackers, semantic HTML5.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: celebrations-wine-club
Tags: wine, e-commerce, accessibility-ready, custom-menu, responsive-layout
*/

/* ===========================================================================
   1. Fonts — self-hosted variable files, SIL OFL 1.1.
      One file per family covers every weight used: two requests, ~84 KB.
   ======================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===========================================================================
   2. Design tokens
   ======================================================================== */

:root {
  /* Brand */
  --wine-burgundy: #531D2D;
  --wine-burgundy-dark: #321018;
  --warm-ivory: #F7F2E9;
  --soft-ivory: #FCF9F3;
  --charcoal: #262321;
  --muted-olive: #77765A;
  --champagne-gold: #B4935A;
  --terracotta: #A96348;
  --warm-gray: #8B847C;
  --border-light: rgba(83, 29, 45, 0.14);

  /* Derived, for text that must pass contrast on light grounds */
  --gold-ink: #7A6132;
  --olive-ink: #55543F;
  --body-ink: #3A3633;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --wrap-read: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 8rem);
  --grid-gap: clamp(1.25rem, 3vw, 3rem);

  --radius: 2px;
  --shadow-soft: 0 1px 2px rgba(38, 35, 33, .04), 0 12px 32px rgba(38, 35, 33, .06);
  --focus-ring: 3px solid var(--champagne-gold);

  --header-h: 84px;
  --announce-h: 40px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===========================================================================
   3. Reset and base
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;              /* 17px */
  line-height: 1.7;
  color: var(--body-ink);
  background: var(--white);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  body { font-size: 1.125rem; }      /* 18px desktop */
}

img, svg, video { max-width: 100%; height: auto; }
img { border: 0; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--charcoal);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 3.9vw, 4.5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); }
h4 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); }

p, ul, ol, table, blockquote, figure, pre { margin: 0 0 1.35rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .5rem; }

a { color: var(--wine-burgundy); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px; transition: color .2s var(--ease); }
a:hover, a:focus { color: var(--terracotta); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius);
}

blockquote {
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.5rem;
  border-left: 2px solid var(--champagne-gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--charcoal);
}

hr { border: 0; border-top: 1px solid var(--border-light); margin: 3rem 0; }

table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .7rem .85rem; border-bottom: 1px solid var(--border-light); text-align: left; }
th { background: var(--warm-ivory); font-weight: 600; color: var(--charcoal); }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
pre { background: var(--warm-ivory); padding: 1rem; overflow-x: auto; }

::selection { background: var(--champagne-gold); color: var(--wine-burgundy-dark); }

/* ===========================================================================
   4. Layout helpers
   ======================================================================== */

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap-narrow, .wrap-read { width: min(100% - (var(--gutter) * 2), var(--wrap-read)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--ivory { background: var(--warm-ivory); }
.section--soft { background: var(--soft-ivory); }
.section--burgundy { background: var(--wine-burgundy); color: var(--warm-ivory); }
.section--dark { background: var(--wine-burgundy-dark); color: var(--warm-ivory); }

.section--burgundy h1, .section--burgundy h2, .section--burgundy h3,
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--warm-ivory); }
.section--burgundy a, .section--dark a { color: var(--champagne-gold); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1.1rem;
}
.section--burgundy .eyebrow, .section--dark .eyebrow, .hero .eyebrow { color: var(--champagne-gold); }

.lede { font-size: 1.125rem; line-height: 1.7; color: var(--olive-ink); }
.section--burgundy .lede, .section--dark .lede { color: rgba(247, 242, 233, .82); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--wine-burgundy); color: #fff;
  padding: .85rem 1.4rem; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===========================================================================
   5. Buttons
   ======================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.75rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--wine-burgundy);
  background: var(--wine-burgundy);
  color: var(--warm-ivory);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover, .btn:focus-visible {
  background: var(--wine-burgundy-dark);
  border-color: var(--wine-burgundy-dark);
  color: var(--warm-ivory);
  transform: translateY(-1px);
}

.btn--gold { background: var(--champagne-gold); border-color: var(--champagne-gold); color: var(--wine-burgundy-dark); }
.btn--gold:hover, .btn--gold:focus-visible { background: #A4834A; border-color: #A4834A; color: var(--wine-burgundy-dark); }

.btn--ghost { background: transparent; color: var(--wine-burgundy); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--wine-burgundy); color: var(--warm-ivory); }

.btn--on-dark { background: transparent; border-color: rgba(247, 242, 233, .5); color: var(--warm-ivory); }
.btn--on-dark:hover, .btn--on-dark:focus-visible { background: var(--warm-ivory); border-color: var(--warm-ivory); color: var(--wine-burgundy-dark); }

/* Editorial underline link — the underline travels on hover. */
.link-underline {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body);
  font-size: .9375rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wine-burgundy);
  text-decoration: none;
  padding-bottom: .35rem;
  background-image: linear-gradient(var(--champagne-gold), var(--champagne-gold));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .32s var(--ease), color .22s var(--ease);
}
.link-underline:hover, .link-underline:focus-visible {
  background-size: 40% 1px;
  color: var(--terracotta);
}
.link-underline .arrow { transition: transform .32s var(--ease); }
.link-underline:hover .arrow { transform: translateX(4px); }
.section--burgundy .link-underline, .section--dark .link-underline { color: var(--champagne-gold); }
.section--burgundy .link-underline:hover, .section--dark .link-underline:hover { color: var(--warm-ivory); }

/* ===========================================================================
   6. Announcement bar + header
   ======================================================================== */

.announce {
  background: var(--wine-burgundy-dark);
  color: rgba(247, 242, 233, .92);
  font-size: .8125rem;
  letter-spacing: .02em;
  position: relative;
  z-index: 60;
}
.announce__inner {
  min-height: var(--announce-h);
  display: flex; align-items: center; justify-content: center;
  gap: .35rem 1.5rem; flex-wrap: wrap;
  padding: .5rem 0;
  text-align: center;
}
.announce a { color: var(--champagne-gold); text-decoration: none; font-weight: 600; white-space: nowrap; }
.announce a:hover, .announce a:focus-visible { color: var(--warm-ivory); text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--warm-ivory);
  border-bottom: 1px solid var(--border-light);
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
/* Over a hero, the header is transparent and the hero is pulled up behind it.
   Sticky rather than fixed, so it can never overlap the announcement bar. */
body.has-hero .site-header {
  background: transparent;
  border-bottom-color: transparent;
}
body.has-hero .site-header.is-stuck {
  background: var(--wine-burgundy-dark);
  border-bottom-color: rgba(247, 242, 233, .12);
  box-shadow: 0 1px 24px rgba(38, 35, 33, .18);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.site-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex: 0 0 auto; }
.site-brand img { max-height: 56px; width: auto; }
.site-brand__text {
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1.05; color: var(--wine-burgundy);
}
.site-brand__tag {
  display: block; font-family: var(--font-body); font-size: .68rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--warm-gray); margin-top: .25rem;
}

/* Header colour in each state */
body.has-hero .site-header .site-brand__text,
body.has-hero .site-header .primary-nav > ul > li > a,
body.has-hero .site-header .submenu-toggle { color: var(--warm-ivory); }
body.has-hero .site-header .site-brand__tag { color: rgba(247, 242, 233, .72); }
/* The historical logo is a raster with its own light ground, so inverting it
   produced a solid white block. Give it a small ivory plaque instead: invisible
   on the ivory header, deliberate-looking on the dark one. */
.site-brand img { background: var(--soft-ivory); padding: 5px 9px; border-radius: 2px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: .15rem; }
.primary-nav li { position: relative; margin: 0; }
.primary-nav > ul > li > a,
.primary-nav > ul > li > .menu-link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .5rem .8rem;
  font-size: .875rem; font-weight: 500; letter-spacing: .02em;
  color: var(--charcoal); text-decoration: none;
  transition: color .2s var(--ease);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > a:focus-visible { color: var(--terracotta); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--wine-burgundy); }
body.has-hero .site-header .primary-nav .current-menu-item > a { color: var(--champagne-gold); }

.primary-nav .sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 240px; padding: .5rem 0;
  background: var(--soft-ivory);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a {
  display: block; padding: .6rem 1.1rem; min-height: 44px;
  font-size: .875rem; color: var(--charcoal); text-decoration: none;
  display: flex; align-items: center;
}
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus-visible {
  background: var(--warm-ivory); color: var(--wine-burgundy);
}

.submenu-toggle {
  background: none; border: 0; color: inherit; font: inherit;
  cursor: pointer; padding: .35rem .25rem; line-height: 1;
  min-width: 28px; min-height: 28px;
}

.header-cta { flex: 0 0 auto; }
.header-cta .btn { min-height: 44px; padding: .6rem 1.25rem; font-size: .8125rem; }
body.has-hero .site-header .header-cta .btn {
  background: transparent; border-color: rgba(247, 242, 233, .55); color: var(--warm-ivory);
}
body.has-hero .site-header .header-cta .btn:hover,
body.has-hero .site-header .header-cta .btn:focus-visible {
  background: var(--champagne-gold); border-color: var(--champagne-gold); color: var(--wine-burgundy-dark);
}

.menu-toggle {
  display: none; align-items: center; gap: .55rem;
  min-height: 44px; min-width: 44px;
  background: none; border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: .5rem .8rem; font: inherit; font-size: .8125rem; font-weight: 600;
  color: var(--charcoal); cursor: pointer;
}
body.has-hero .site-header .menu-toggle { color: var(--warm-ivory); border-color: rgba(247, 242, 233, .4); }
.menu-toggle__bars { position: relative; display: block; width: 18px; height: 1.5px; background: currentColor; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
  transition: transform .24s var(--ease), top .24s var(--ease);
}
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .primary-nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(88vw, 380px);
    background: var(--wine-burgundy-dark);
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    z-index: 55;
    box-shadow: -16px 0 40px rgba(38, 35, 33, .25);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(247, 242, 233, .12); display: flex; flex-wrap: wrap; align-items: center; }
  .primary-nav > ul > li > a { flex: 1; color: var(--warm-ivory); font-size: 1rem; padding: 1rem .25rem; }
  .primary-nav .submenu-toggle { color: var(--warm-ivory); padding: 1rem .5rem; }
  .primary-nav .sub-menu {
    position: static; flex-basis: 100%; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    padding: 0 0 .75rem .9rem; display: none;
  }
  .primary-nav .submenu-toggle[aria-expanded="true"] + .sub-menu { display: block; }
  .primary-nav .sub-menu a { color: rgba(247, 242, 233, .82); font-size: .9375rem; padding: .7rem .25rem; }
  .primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus-visible { background: transparent; color: var(--champagne-gold); }
  .nav-cta-mobile { margin-top: 1.75rem; }
  .nav-cta-mobile .btn { width: 100%; }
}

.nav-scrim {
  position: fixed; inset: 0; z-index: 54;
  background: rgba(38, 35, 33, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.nav-scrim.is-visible { opacity: 1; visibility: visible; }
@media (min-width: 1024px) { .nav-scrim { display: none; } }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) { .nav-cta-mobile { display: none; } }

/* ===========================================================================
   7. Inner-page furniture (kept so the other 300+ pages stay coherent)
   ======================================================================== */

.page-header {
  background: var(--warm-ivory);
  border-bottom: 1px solid var(--border-light);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-header h1 { color: var(--wine-burgundy); margin-bottom: .35rem; }
.page-header p { margin: 0; color: var(--olive-ink); max-width: 60ch; }

.breadcrumbs { font-size: .8125rem; color: var(--warm-gray); padding: .85rem 0; background: var(--soft-ivory); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--border-light); }
.breadcrumbs a { color: var(--wine-burgundy); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.entry { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.5rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { font-size: .875rem; color: var(--warm-gray); padding-top: .5rem; }
.entry-content a { font-weight: 500; }

.entry-meta {
  font-size: .8125rem; color: var(--warm-gray);
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem;
  margin-bottom: 1.75rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: .02em;
}
.entry-meta a { color: var(--wine-burgundy); text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }

.entry-thumb { margin: 0 0 2.25rem; }
.entry-thumb img { width: 100%; border-radius: var(--radius); }

.entry-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); font-size: .9rem; }
.entry-footer .tag-list a {
  display: inline-block; background: var(--warm-ivory); color: var(--wine-burgundy);
  padding: .25rem .7rem; border: 1px solid var(--border-light); border-radius: 2rem;
  text-decoration: none; font-size: .8125rem; margin: 0 .35rem .4rem 0;
}
.entry-footer .tag-list a:hover, .entry-footer .tag-list a:focus-visible {
  background: var(--wine-burgundy); color: var(--warm-ivory); border-color: var(--wine-burgundy);
}

.with-sidebar { display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; }
@media (min-width: 960px) { .with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }

.sidebar { font-size: .9375rem; }
.widget {
  background: var(--soft-ivory);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
}
.widget h2, .widget .widget-title {
  font-family: var(--font-body);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
  color: var(--gold-ink); margin-bottom: .9rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--border-light);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: .55rem; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }

/* Article cards — used by archives and the homepage journal */
.grid { display: grid; gap: var(--grid-gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card { display: flex; flex-direction: column; background: transparent; }
.card__media { display: block; overflow: hidden; background: var(--warm-ivory); margin-bottom: 1.25rem; }
.card__media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card__media img, .card:focus-within .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__meta {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 .6rem;
}
.card__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); margin-bottom: .6rem; line-height: 1.2; }
.card__title a { color: var(--charcoal); text-decoration: none; }
.card__title a:hover, .card__title a:focus-visible { color: var(--wine-burgundy); }
.card__excerpt { font-size: 1rem; color: var(--olive-ink); margin-bottom: 1.1rem; line-height: 1.65; }
.card__more { margin-top: auto; }

.post-nav { display: flex; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-top: 3rem; }
.post-nav a { font-weight: 500; text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

.pagination { margin: 3rem 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: .5rem .8rem;
  border: 1px solid var(--border-light); text-decoration: none;
  color: var(--wine-burgundy); border-radius: var(--radius); font-size: .9rem;
}
.pagination .page-numbers.current { background: var(--wine-burgundy); color: var(--warm-ivory); border-color: var(--wine-burgundy); }
.pagination .page-numbers:hover:not(.current) { background: var(--warm-ivory); }

/* ===========================================================================
   8. Forms
   ======================================================================== */

label { display: block; font-weight: 500; margin-bottom: .4rem; font-size: .9375rem; color: var(--charcoal); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px;
  padding: .75rem .9rem;
  font: inherit; font-size: 1rem;
  color: var(--charcoal); background: var(--white);
  border: 1px solid rgba(83, 29, 45, .28);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--wine-burgundy);
  box-shadow: 0 0 0 3px rgba(83, 29, 45, .1);
}
textarea { min-height: 10rem; resize: vertical; }
.form-row { margin-bottom: 1.25rem; }
.form-hint { font-size: .8125rem; color: var(--warm-gray); margin-top: .35rem; display: block; }
.required-mark { color: var(--terracotta); }
.cwc-hp { position: absolute !important; left: -9999px !important; }

.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; }
.search-again { max-width: 34rem; margin-bottom: 2rem; }

.notice-box {
  background: var(--warm-ivory);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--champagne-gold);
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  margin: 1.75rem 0; font-size: .95rem;
}
.notice-box strong { color: var(--wine-burgundy); }

/* ===========================================================================
   9. Footer
   ======================================================================== */

.site-footer {
  background: var(--wine-burgundy-dark);
  color: rgba(247, 242, 233, .74);
  padding-top: clamp(3rem, 6vw, 5rem);
  font-size: .9375rem;
  margin-top: 0;
}
.site-footer a { color: rgba(247, 242, 233, .88); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--champagne-gold); text-decoration: underline; }

.footer-top {
  display: grid; gap: var(--grid-gap);
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 720px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer-brand__mark { margin-bottom: 1.1rem; }
.footer-brand__mark img { max-height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand__name { font-family: var(--font-display); font-size: 1.6rem; color: var(--warm-ivory); margin: 0 0 .75rem; }
.footer-brand p { color: rgba(247, 242, 233, .7); max-width: 42ch; }

.footer-col h2 {
  font-family: var(--font-body);
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600;
  color: var(--champagne-gold); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; }

.footer-contact li { margin-bottom: .55rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(247, 242, 233, .22); border-radius: 50%;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.footer-social a:hover, .footer-social a:focus-visible {
  border-color: var(--champagne-gold); background: rgba(180, 147, 90, .14);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-newsletter { margin-top: 1.5rem; }
.footer-newsletter .form-row { margin-bottom: .75rem; }
.footer-newsletter input { background: rgba(247, 242, 233, .06); border-color: rgba(247, 242, 233, .24); color: var(--warm-ivory); }
.footer-newsletter input::placeholder { color: rgba(247, 242, 233, .5); }
.footer-newsletter label { color: rgba(247, 242, 233, .82); }

.footer-bottom {
  border-top: 1px solid rgba(247, 242, 233, .14);
  padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  justify-content: space-between; align-items: center;
  font-size: .8125rem; color: rgba(247, 242, 233, .58);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-legal li { margin: 0; }

.footer-notice {
  background: rgba(0, 0, 0, .22);
  color: rgba(247, 242, 233, .58);
  font-size: .78125rem; text-align: center;
  padding: .9rem 0;
  border-top: 1px solid rgba(247, 242, 233, .08);
}

/* ===========================================================================
   10. Age confirmation dialog
   ======================================================================== */

.age-gate[hidden] { display: none !important; }
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  background: rgba(50, 16, 24, .78);
  backdrop-filter: blur(3px);
}
.age-gate__panel {
  background: var(--soft-ivory);
  max-width: 28rem; width: 100%;
  border-top: 3px solid var(--champagne-gold);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(38, 35, 33, .4);
}
.age-gate__panel h2 { color: var(--wine-burgundy); font-size: 1.75rem; margin-bottom: .6rem; }
.age-gate__panel p { font-size: .9375rem; color: var(--olive-ink); }
.age-gate__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.age-gate__small { font-size: .78125rem; color: var(--warm-gray); margin: 1.25rem 0 0; }

/* ===========================================================================
   11. WooCommerce — restrained, matches the editorial system
   ======================================================================== */

.woocommerce ul.products {
  display: grid; gap: var(--grid-gap); margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
}
.woocommerce ul.products li.product img { margin: 0 auto 1rem; width: auto; max-height: 240px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display); font-size: 1.15rem !important;
  padding: 0 !important; color: var(--charcoal); line-height: 1.25;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--wine-burgundy) !important; font-weight: 600; font-size: 1rem;
}
.woocommerce span.onsale {
  background: var(--champagne-gold); color: var(--wine-burgundy-dark); font-weight: 600;
  border-radius: var(--radius); min-height: auto; line-height: 1; padding: .4rem .65rem;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
}
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info {
  border-top-color: var(--champagne-gold); background: var(--warm-ivory);
}
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--champagne-gold); }
.woocommerce nav.woocommerce-pagination ul { border: 0; gap: .4rem; display: flex; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid var(--border-light); border-radius: var(--radius);
  color: var(--wine-burgundy); padding: .6rem .9rem; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--wine-burgundy); color: var(--warm-ivory); }

/* Purchase controls are removed at the data layer too — see inc/woocommerce.php */
.woocommerce .single_add_to_cart_button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .product_type_variable,
.woocommerce .quantity,
.woocommerce-variation-add-to-cart { display: none !important; }

.catalogue-notice {
  background: var(--warm-ivory);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--champagne-gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin: 1.5rem 0; font-size: .9375rem;
}
.catalogue-notice strong { color: var(--wine-burgundy); }

.woocommerce div.product div.images { width: 100% !important; }
.woocommerce div.product div.images img { width: 100% !important; max-width: 460px; }
@media (min-width: 768px) {
  .woocommerce div.product div.images { width: 46% !important; float: left; }
  .woocommerce div.product div.summary { width: 50%; float: right; }
  .woocommerce div.product::after { content: ""; display: table; clear: both; }
}

/* ===========================================================================
   12. Scroll reveal + utilities
   ======================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
/* Never let the reveal hide content if JavaScript does not run. */
.no-js [data-reveal] { opacity: 1; transform: none; }

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.table-scroll { overflow-x: auto; }

@media print {
  .announce, .site-header, .site-footer, .age-gate, .pagination, .post-nav, .nav-scrim { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a { text-decoration: underline; }
}

/* ---------------------------------------------------------------------------
   13. Small-screen legibility floor
   Body copy never drops below 16px on a phone; only true micro-labels
   (eyebrows, meta, captions) sit smaller, and never below 12px.
   ------------------------------------------------------------------------ */

@media (max-width: 767px) {
  .card__excerpt,
  .trust__text,
  .plan__positioning,
  .plan__facts li,
  .plans-note,
  .lede,
  .founder__attrib,
  .site-footer,
  .widget,
  .sidebar { font-size: 1rem; }

  .form-hint, .newsletter__privacy { font-size: .875rem; }
  .footer-bottom, .footer-notice, .announce { font-size: .8125rem; }
  .founder__media figcaption, .regions__img figcaption { font-size: .75rem; }
}
