/*
Theme Name: Cookbooks & Convos
Theme URI: https://cookbooksandconvos.com
Author: Sisterly Love Collective
Description: Official theme for Cookbooks & Convos — a Philadelphia culinary celebration featuring women chefs and cookbook authors.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cookbooks-convos
Tags: custom-menu, custom-logo, featured-images, footer-widgets, full-width-template
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* ── Color tokens — defaults only.
     The active values are output by cc_output_color_vars() in functions.php
     via wp_head priority 99, which overrides these defaults.
     Edit colors via Appearance → Customize → Color Scheme. ── */
  --cream:       #F7F2EA;
  --ivory:       #FBF8F2;
  --parchment:   #EDE6D6;
  --parchment-dk:#E0D6C4;
  --terracotta:  #C4603A;
  --rust:        #A8442A;
  --forest:      #3B5C3E;
  --sage:        #6B8F6E;
  --charcoal:    #2C2C2C;
  --ink:         #1A1A1A;
  --mist:        #8A8078;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --teal:        #43959F;
  --teal-dark:   #06595F;
  --white:       #FFFFFF;

  /* ── Non-color tokens — not overridden by color scheme ── */
  --font-display: 'Montserrat', sans-serif;
  --font-serif:   'Lora', Georgia, serif;
  --font-sans:    'Montserrat', sans-serif;

  --max-w:    1200px;
  --header-h: 80px;

  --shadow-sm: 0 1px 3px rgba(28,28,28,.07);
  --shadow-md: 0 4px 20px rgba(28,28,28,.11);
  --shadow-lg: 0 12px 40px rgba(28,28,28,.16);
  --radius:    6px;
  --ease:      cubic-bezier(.25,.46,.45,.94);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all .25s var(--ease); }
ul { list-style: none; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   TYPE
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem,5vw,3.8rem); }
h2 { font-size: clamp(1.7rem,3.5vw,2.6rem); }
h3 { font-size: clamp(1.1rem,2.5vw,1.5rem); }

.eyebrow {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.5rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn--primary:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196,96,58,.35);
}
.btn--ghost {
  background: transparent;
  color: var(--terracotta);
  padding-inline: 0;
}
.btn--ghost:hover { color: var(--rust); gap: .75rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--teal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.1);
  transition: box-shadow .3s;
  overflow: visible;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-branding a { display: flex; align-items: center; gap: .6rem; }
.site-branding img { height: 54px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.brand-tagline {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  display: block;
}

/* Nav — shared styles */
.site-nav ul { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  position: relative;
  padding-bottom: 2px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--white);
  transition: width .3s;
}
.site-nav a:hover::after, .site-nav a.current::after { width: 100%; }
.site-nav a:hover { color: var(--white); }
.site-nav .nav-cta {
  background: rgba(255,255,255,.2);
  color: var(--white) !important;
  padding: .45rem 1.1rem;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.35);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: rgba(255,255,255,.32); }

/* Mobile nav — hidden by default, lives outside header */
.site-nav--mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: auto;
  background: var(--teal);
  padding: 1rem 2rem;
  z-index: 200;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.site-nav--mobile.open {
  display: block;
}
.site-nav--mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav--mobile ul li {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.site-nav--mobile ul li:first-child { border-top: 1px solid rgba(255,255,255,.15); }
.site-nav--mobile a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white) !important;
  padding: 1rem 0;
  width: 100%;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-nav--mobile a::after { display: none; }
.site-nav--mobile .nav-cta {
  background: transparent;
  border: none;
  padding: 1rem 0;
  border-radius: 0;
  display: block;
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: all .25s; }

/* ============================================================
   HERO  — centred layout
   ============================================================ */
.cc-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  background: var(--teal);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* subtle depth overlay */
.cc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(201,168,76,.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(196,96,58,.14) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0,0,0,.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative diagonal accent line */
.cc-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--teal-dark));
  pointer-events: none;
}

.cc-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

/* Logo */
.cc-hero__logo img,
.cc-hero__logo .custom-logo { max-height: 160px; width: auto; max-width: min(480px, 90vw); }
.cc-hero__site-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
}

/* Presented by */
.cc-hero__presented-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}
.cc-hero__presented-label {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.cc-hero__premier-logo {
  max-height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: opacity .25s;
}
.cc-hero__premier-link:hover .cc-hero__premier-logo { opacity: .8; }
.cc-hero__premier-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

/* Divider */
.cc-hero__rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  border-radius: 2px;
  flex-shrink: 0;
}

/* Intro copy */
.cc-hero__intro {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255,255,255,.92);
  max-width: 600px;
}

/* Dates badge */
.cc-hero__dates {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.18);
  color: var(--white);
  padding: .5rem 1.1rem;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.3);
}
.cc-hero__dates svg { opacity: .75; flex-shrink: 0; }

/* CTA */
.cc-hero__cta-wrap { margin-top: .2rem; }


/* ============================================================
   SPONSORS SECTION
   ============================================================ */
.cc-sponsors {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
  padding-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-top: 3px solid var(--terracotta);
  border-bottom: 1px solid var(--parchment-dk);
  position: relative;
}
.cc-sponsors__heading {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.cc-sponsors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

/* individual sponsor card */
.cc-sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 1.25rem 1.5rem;
  background: var(--teal);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  transition: all .25s var(--ease);
  width: 100%;
}
a.cc-sponsor-card:hover {
  border-color: rgba(255,255,255,.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cc-sponsor-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.cc-sponsor-card__logo-wrap img {
  max-height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.cc-sponsor-card__body { display: none; }
.cc-sponsor-card__name { display: none; }
.cc-sponsor-card__desc { display: none; }


/* ============================================================
   BOOK PARTNER SECTION
   ============================================================ */
.cc-book-partner {
  background: var(--forest);
  color: var(--cream);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 4px solid var(--gold);
  position: relative;
}
.cc-book-partner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}
.cc-book-partner__eyebrow { color: var(--gold); }
.cc-book-partner__logo-link { display: inline-flex; align-items: center; justify-content: center; }
.cc-book-partner__logo {
  max-height: 64px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  /* invert to show white logo on dark bg — remove if logo is already light */
  filter: brightness(0) invert(1);
  transition: opacity .25s;
}
a.cc-book-partner__logo-link:hover .cc-book-partner__logo { opacity: .8; }
.cc-book-partner__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
}
.cc-book-partner__text {
  font-family: var(--font-serif);
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(251,248,242,.8);
  max-width: 560px;
}
.cc-book-partner__text a { color: var(--gold); text-decoration: underline; }


/* ============================================================
   ABOUT SECTION  — two columns
   ============================================================ */
.cc-about { background: var(--cream); }
.cc-about__text h2 {
  border-left: 4px solid var(--terracotta);
  padding-left: 1rem;
}

.cc-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Text column */
.cc-about__text .eyebrow { margin-bottom: .5rem; }
.cc-about__text h2 { margin-bottom: 1.1rem; }
.cc-about__body {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--charcoal);
  line-height: 1.85;
}
.cc-about__body p { margin-bottom: 1.1em; }
.cc-about__body p:last-child { margin-bottom: 0; }
.cc-about__body strong { color: var(--terracotta); }

/* Image column — 1, 2, or 3 images */
.cc-about__images {
  display: grid;
  gap: .75rem;
}
/* 1 image — full height portrait */
.cc-about__images--1 {
  grid-template-columns: 1fr;
}
.cc-about__images--1 .cc-about__img-frame {
  aspect-ratio: 4/5;
}
/* 2 images — stack vertically */
.cc-about__images--2 {
  grid-template-columns: 1fr;
}
.cc-about__images--2 .cc-about__img-frame {
  aspect-ratio: 3/2;
}
/* 3 images — first large, two small below */
.cc-about__images--3 {
  grid-template-columns: 1fr 1fr;
}
.cc-about__images--3 .cc-about__img-frame:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.cc-about__images--3 .cc-about__img-frame:not(:first-child) {
  aspect-ratio: 1;
}

.cc-about__img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--parchment);
}
.cc-about__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.cc-about__img-frame:hover img { transform: scale(1.03); }


/* ============================================================
   EVENTS SECTION
   ============================================================ */
.cc-events {
  background: var(--ivory);
  position: relative;
}
.cc-events::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--forest), var(--teal));
}

.cc-events__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.cc-events__header .eyebrow { margin-bottom: .35rem; }

.cc-events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cc-events__empty {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--mist);
  padding-block: 3rem;
}

/* Event Card */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(28,28,28,.08), 0 6px 24px rgba(28,28,28,.06);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(196,96,58,.07);
  border-top: 3px solid var(--terracotta);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Book cover area */
.event-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  max-height: 280px;
  overflow: hidden;
  background: var(--parchment);
}
.event-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.event-card:hover .event-card__cover img { transform: scale(1.04); }

.event-card__cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, var(--terracotta), var(--forest));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}
.event-card__cover-placeholder span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.3;
}

/* Date badge */
.event-card__date-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 3px;
  padding: .35rem .55rem;
  text-align: center;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.event-card__date-badge .date-month {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}
.event-card__date-badge .date-day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Card body */
.event-card__body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-card__venue {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .3rem;
}
.event-card__book {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: .25rem;
}
.event-card__author {
  font-family: var(--font-serif);
  font-size: .85rem;
  color: var(--mist);
  margin-bottom: 0;
}
.event-card__by { margin-right: .2rem; }
.event-card__author strong { color: var(--charcoal); font-style: normal; }

.event-card__footer {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--parchment);
}
.event-card__reserve {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .6rem .9rem;
  background: var(--forest);
  color: var(--cream);
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: all .25s;
}
.event-card__reserve:hover { background: var(--ink); color: var(--cream); }
.event-card__reserve svg { transition: transform .2s; }
.event-card__reserve:hover svg { transform: translateX(3px); }


/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.newsletter-section h2 { color: var(--cream); margin-bottom: 1.5rem; }

/* MailChimp form layout */
.cc-mc4wp-form .mc4wp-form-fields {
  display: flex;
  max-width: 460px;
  margin-inline: auto;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.cc-mc4wp-form .mc4wp-form-fields label {
  flex: 1;
  display: block;
}
.cc-mc4wp-form .mc4wp-form-fields input[type="email"] {
  width: 100%;
  height: 100%;
  padding: .85rem 1.1rem;
  border: none;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .9rem;
  outline: none;
  border-radius: 0;
}
.cc-mc4wp-form .mc4wp-form-fields input[type="email"]::placeholder { color: var(--mist); }
.cc-mc4wp-form .mc4wp-form-fields input[type="submit"] {
  padding: .85rem 1.4rem;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s;
  white-space: nowrap;
  border-radius: 0;
}
.cc-mc4wp-form .mc4wp-form-fields input[type="submit"]:hover { background: var(--rust); }
.cc-mc4wp-form .mc4wp-response {
  margin-top: .75rem;
  font-size: .85rem;
  color: rgba(251,248,242,.8);
}

@media (max-width: 768px) {
  .cc-mc4wp-form .mc4wp-form-fields { flex-direction: column; }
  .cc-mc4wp-form .mc4wp-form-fields input[type="email"] { border-radius: 3px 3px 0 0; }
  .cc-mc4wp-form .mc4wp-form-fields input[type="submit"] { border-radius: 0 0 3px 3px; width: 100%; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--teal-dark);
  color: var(--cream);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: .4rem;
}
.footer-brand .footer-tagline {
  font-family: var(--font-serif);
  font-size: .88rem;
  font-style: italic;
  color: rgba(251,248,242,.5);
  margin-bottom: 1rem;
}
.social-links { display: flex; gap: .5rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(251,248,242,.18);
  color: rgba(251,248,242,.6);
  font-size: .72rem;
  font-weight: 700;
  transition: all .25s;
}
.social-link:hover { border-color: var(--terracotta); color: var(--terracotta); }
.footer-col h4 {
  color: var(--cream);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(251,248,242,.1);
}
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { font-size: .85rem; color: rgba(251,248,242,.55); }
.footer-col ul li a:hover { color: var(--terracotta); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(251,248,242,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .75rem; color: rgba(251,248,242,.35); margin: 0; }
.footer-bottom a { color: rgba(251,248,242,.35); }
.footer-bottom a:hover { color: var(--terracotta); }


/* ============================================================
   SINGLE EVENT
   ============================================================ */
.event-single { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(3rem, 7vw, 6rem); }
.event-single__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.event-single__book { position: sticky; top: calc(var(--header-h) + 2rem); }
.event-single__book-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 1rem; aspect-ratio: 3/4; background: var(--parchment); }
.event-single__book-cover img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: .78rem; color: var(--mist); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: var(--terracotta); }
.event-single__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.meta-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .7rem; border-radius: 100px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.meta-tag--date { background: rgba(196,96,58,.1); color: var(--terracotta); }
.meta-tag--venue { background: rgba(59,92,62,.08); color: var(--forest); }
.event-single__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .35rem; }
.event-single__author { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; color: var(--mist); margin-bottom: 1.5rem; }
.event-single__description { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.85; color: var(--charcoal); margin-bottom: 1.5rem; }
.event-single__cta {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .9rem 1.75rem;
  background: var(--terracotta); color: var(--white);
  border-radius: 3px;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(196,96,58,.28);
}
.event-single__cta:hover { background: var(--rust); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(196,96,58,.38); }

/* Archive */
.archive-hero { background: var(--cream); padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3rem; text-align: center; }
.archive-hero .archive-description { font-family: var(--font-serif); font-size: 1.05rem; color: var(--mist); max-width: 520px; margin-inline: auto; font-style: italic; }
.archive-content { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--ivory); }


/* ============================================================
   ANCILLARY EVENTS SECTION
   ============================================================ */
.cc-ancillary {
  background: var(--parchment);
  border-top: 3px solid var(--forest);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
}

.cc-ancillary__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.cc-ancillary__header .eyebrow { margin-bottom: .4rem; }

.cc-ancillary__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin-inline: auto;
}

.cc-ancillary__item {
  text-align: center;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--parchment-dk);
}
.cc-ancillary__item:last-child { border-bottom: none; }

.cc-ancillary__date {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--terracotta);
  padding: .25rem .85rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}

.cc-ancillary__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .75rem;
  line-height: 1.2;
}

.cc-ancillary__desc {
  font-family: var(--font-sans);
  font-size: .95rem;
  line-height: 1.75;
  color: var(--mist);
  max-width: 560px;
  margin-inline: auto;
}
.cc-ancillary__desc p { margin-bottom: .75em; }
.cc-ancillary__desc p:last-child { margin-bottom: 0; }
.cc-ancillary__desc a { color: var(--terracotta); text-decoration: underline; }
.cc-ancillary__desc strong { color: var(--charcoal); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cc-about__grid { grid-template-columns: 1fr; }
  .cc-about__images { max-width: 600px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .event-single__grid { grid-template-columns: 260px 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .site-nav--desktop { display: none; }
  .menu-toggle { display: flex; }

  .cc-events__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  .event-single__grid { grid-template-columns: 1fr; }
  .event-single__book { position: static; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { border-radius: 3px 3px 0 0; }
  .newsletter-form button { border-radius: 0 0 3px 3px; }
}

@media (max-width: 500px) {
  .cc-events__grid { grid-template-columns: 1fr; }
  .cc-sponsors__grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cc-hero__logo        { animation: fadeInUp .7s both; }
.cc-hero__presented-by{ animation: fadeInUp .7s .1s both; }
.cc-hero__rule        { animation: fadeInUp .5s .18s both; }
.cc-hero__intro       { animation: fadeInUp .7s .22s both; }
.cc-hero__dates       { animation: fadeInUp .6s .3s both; }
.cc-hero__cta-wrap    { animation: fadeInUp .6s .38s both; }


/* ============================================================
   WP CORE
   ============================================================ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.alignwide  { max-width: calc(var(--max-w) + 6rem); margin-inline: auto; }
.alignfull  { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--mist); font-style: italic; margin-top: .4rem; }

/* ============================================================
   YEAR FILTER — ARCHIVE PAGE
   ============================================================ */
.cc-year-filter {
  background: var(--parchment-dk);
  border-bottom: 1px solid var(--parchment-dk);
  padding-block: .75rem;
}
.cc-year-tabs {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.cc-year-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.1rem;
  border-radius: 100px;
  border: 2px solid var(--parchment-dk);
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: all .22s var(--ease);
}
.cc-year-tab:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.cc-year-tab--active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}
.cc-year-tab--active:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}
.cc-year-tab__badge {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.25);
  padding: .1rem .4rem;
  border-radius: 100px;
}
.cc-year-tab--active .cc-year-tab__badge { background: rgba(255,255,255,.3); color: var(--white); }


/* ============================================================
   YEAR SWITCHER — HOMEPAGE
   ============================================================ */
.cc-home-year-tabs {
  display: flex;
  gap: .4rem;
  align-items: center;
}
.cc-home-year-tab {
  padding: .4rem 1rem;
  border-radius: 100px;
  border: 2px solid var(--parchment-dk);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .22s var(--ease);
}
.cc-home-year-tab:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.cc-home-year-tab--active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

/* Year panels — hidden unless active */
.cc-events__year-panel { display: none; }
.cc-events__year-panel--active { display: block; }




/* ============================================================
   PAST EVENT CARD STYLES
   ============================================================ */
.event-card--past {
  opacity: .82;
  border-top-color: var(--mist);
}
.event-card--past:hover { opacity: 1; }

.event-card__past-label {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  background: rgba(28,28,28,.6);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.event-card__past-note {
  display: block;
  font-size: .75rem;
  color: var(--mist);
  font-style: italic;
  padding: .5rem 0;
  text-align: center;
}

@media (max-width: 600px) {
  .cc-events__header { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .cc-home-year-tabs { width: 100%; }
  .cc-home-year-tab { flex: 1; text-align: center; }
}

/* ============================================================
   ANCILLARY EVENT SPONSORS — matches regular sponsor card style
   ============================================================ */
.cc-ancillary__sponsors {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--parchment-dk);
  text-align: center;
}

.cc-ancillary__sponsors-heading {
  margin-bottom: 1.25rem;
}

.cc-ancillary__sponsors-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.cc-ancillary__sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 1.25rem 1.5rem;
  background: var(--ancillary-card, var(--teal));
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  transition: all .25s var(--ease);
  width: 100%;
}

a.cc-ancillary__sponsor-item:hover {
  border-color: rgba(255,255,255,.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cc-ancillary__sponsor-item img {
  max-height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.cc-ancillary__sponsor-name {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 500px) {
  .cc-ancillary__sponsors-logos { grid-template-columns: 1fr; }
}
