/*
Theme Name: Cozy Onesie
Theme URI: https://example.com/cozy-onesie
Author: Built for the SISTUHS of Cozy Onesie
Description: An editorial theme for the annual Cozy Onesie getaway. Neutral winter palette, full-bleed imagery, narrative scroll sections, year archives, a password gate, and editable itinerary, SISTUHS, and expense sections.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cozy-onesie
Tags: one-column, custom-menu, featured-images, editor-style
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --snowfall: #F7F3EC;
  --linen: #FCFAF6;
  --oat: #EFE8DC;
  --birch: #D6CCBA;
  --timberline: #C3B9A8;

  --cocoa: #3E1C18;
  --bark: #241F1B;
  --stone: #574E43;
  --stone-soft: #6F6558;

  --pine: #5F6549;
  --pine-deep: #454A36;
  --sage-mist: #E2E3D6;
  --clay: #93826B;
  --clay-mist: #EDE6DA;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-script: "Sacramento", cursive;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 60ch;
  --shell: 1280px;
  --shell-narrow: 780px;

  --step: clamp(5rem, 10vw, 10rem);
  --step-sm: clamp(3rem, 5.5vw, 5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--snowfall);
  color: var(--bark);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine-deep); text-decoration: none; }
button { font: inherit; }

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
  color: var(--cocoa);
  line-height: 1.06;
  margin: 0 0 0.45em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2.125rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.3em; max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1.35rem;
  display: block;
}
.eyebrow--light { color: rgba(252, 250, 246, 0.94); }

.script {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  color: var(--pine);
  line-height: 1;
  font-weight: 400;
}

.lede {
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
  line-height: 1.62;
  color: var(--stone);
  font-weight: 400;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.shell { width: min(100% - 3rem, var(--shell)); margin-inline: auto; }
.shell-narrow { width: min(100% - 3rem, var(--shell-narrow)); margin-inline: auto; }
.section { padding-block: var(--step); }
.section--tight { padding-block: var(--step-sm); }
.section--oat { background: var(--oat); }
.section--linen { background: var(--linen); }
.section--pine { background: var(--pine-deep); color: rgba(252,250,246,0.94); }
.section--pine h2, .section--pine h3 { color: var(--linen); }
.section--pine p { color: rgba(252,250,246,0.9); }

.center { text-align: center; }
.center p { margin-inline: auto; }

.sprig-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; margin: 2.25rem auto; max-width: 340px;
}
.sprig-rule::before, .sprig-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--birch);
}
.sprig-rule svg { width: 34px; height: 14px; flex: none; color: var(--clay); }
.sprig-rule--light::before, .sprig-rule--light::after { background: rgba(252,250,246,0.3); }
.sprig-rule--light svg { color: rgba(252,250,246,0.7); }

/* ============================================================
   HEADER  (always legible, never disappears)
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1rem;
  background: rgba(247, 243, 236, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.site-header.is-solid {
  padding-block: 0.625rem;
  background: rgba(247, 243, 236, 0.97);
  border-bottom-color: var(--birch);
}
.site-header__inner {
  width: min(100% - 3rem, var(--shell)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.brand { display: flex; align-items: baseline; gap: 0.85rem; line-height: 1; }
.brand__name {
  font-family: var(--font-script);
  font-size: 2.125rem;
  color: var(--cocoa);
  line-height: 0.9;
  transition: color 0.4s var(--ease);
}
.brand:hover .brand__name { color: var(--pine); }

.brand__year {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--pine-deep);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--birch);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.brand__year:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--linen); }

.years { position: relative; }
.years__toggle {
  background: none; border: 0; cursor: pointer; padding: 0.4rem 0;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--stone);
  display: flex; align-items: center; gap: 0.4rem;
}
.years__toggle svg { width: 9px; height: 9px; transition: transform 0.3s var(--ease); }
.years__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.years__list {
  position: absolute; top: calc(100% + 0.75rem); right: 0;
  background: var(--linen); border: 1px solid var(--birch);
  list-style: none; margin: 0; padding: 0.5rem 0; min-width: 140px;
  display: none; box-shadow: 0 12px 32px rgba(36,31,27,0.1);
}
.years__list.is-open { display: block; }
.years__list a {
  display: block; padding: 0.55rem 1.25rem;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em;
  color: var(--bark);
}
.years__list a:hover { background: var(--oat); color: var(--cocoa); }
.years__list .is-current a { color: var(--pine-deep); font-weight: 600; }

.nav ul, .nav .cozy-fallback-menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a, .cozy-fallback-menu a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cocoa);
  padding-block: 0.5rem;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav a::after, .cozy-fallback-menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--pine);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:hover, .cozy-fallback-menu a:hover { color: var(--pine); }
.nav a:hover::after, .nav .current-menu-item > a::after,
.cozy-fallback-menu a:hover::after { transform: scaleX(1); }
.nav .current-menu-item > a { color: var(--pine-deep); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--cocoa); padding: 0.5rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; background: var(--pine-deep);
}
.hero__reel { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.07);
  transition: opacity 2.2s var(--ease), transform 10s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,27,0.5) 0%, rgba(36,31,27,0.22) 42%, rgba(36,31,27,0.66) 100%);
}
.hero__body {
  position: relative; z-index: 2; text-align: center;
  padding: 9rem 1.5rem 7rem; color: var(--linen);
  max-width: 900px;
}

/* Cycling greeting */
.greeting { height: 1.15em; overflow: hidden; position: relative; margin: 0 0 0.15em; }
.greeting__word {
  position: absolute; inset: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 120;
  color: var(--linen);
  line-height: 1.1;
  opacity: 0; transform: translateY(70%);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.greeting__word.is-active { opacity: 1; transform: translateY(0); }
.greeting__word.is-out { opacity: 0; transform: translateY(-70%); }

.hero__script { color: rgba(252,250,246,0.97); display: block; margin-top: 0.35rem; }
.hero__meta {
  margin-top: 2.75rem;
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(252,250,246,0.94);
}
.hero__meta span { display: inline-block; padding-inline: 0.9rem; }
.hero__meta span + span { border-left: 1px solid rgba(252,250,246,0.4); }

.hero__dots {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 0.75rem;
}
.hero__dots button {
  width: 32px; height: 2px; border: 0; padding: 0; cursor: pointer;
  background: rgba(252,250,246,0.4); transition: background 0.4s var(--ease);
}
.hero__dots button[aria-current="true"] { background: var(--linen); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.1rem 2.75rem;
  border: 1.5px solid var(--pine);
  color: var(--pine-deep);
  background: transparent;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--linen); }
.btn--solid { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--linen); }
.btn--solid:hover { background: var(--cocoa); border-color: var(--cocoa); }
.btn--light { border-color: rgba(252,250,246,0.7); color: var(--linen); }
.btn--light:hover { background: var(--linen); border-color: var(--linen); color: var(--cocoa); }

.explore {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pine-deep); margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--birch);
  transition: border-color 0.45s var(--ease), color 0.45s var(--ease), gap 0.45s var(--ease);
}
.explore::after { content: "\2192"; }
.explore:hover { border-color: var(--pine); color: var(--pine); gap: 1.35rem; }

/* ============================================================
   MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.15s var(--ease-out), transform 1.15s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

.words span { display: inline-block; overflow: hidden; vertical-align: bottom; }
.words span i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%);
  transition: transform 0.95s var(--ease-out);
}
.words.is-in span i { transform: translateY(0); }

.mask { overflow: hidden; }
.mask img, .mask .media-placeholder {
  transform: scale(1.14);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.5s var(--ease-out), transform 2.2s var(--ease-out);
}
.mask.is-in img, .mask.is-in .media-placeholder {
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}

.marquee {
  overflow: hidden; padding-block: 2.25rem;
  border-block: 1px solid var(--birch);
  background: var(--linen);
}
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: cozy-marquee 46s linear infinite; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  color: var(--clay);
  white-space: nowrap;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes cozy-marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SPLIT / NARRATIVE
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 3/2; }
.media-placeholder {
  width: 100%; aspect-ratio: 4/5;
  background: var(--clay-mist);
  border: 1px solid var(--birch);
  display: grid; place-items: center;
  color: var(--clay); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-align: center; padding: 2rem;
}

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.story + .story { margin-top: var(--step); }
.story--flip .story__media { order: 2; }
.story__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story__body h2 { margin-bottom: 0.5em; }
.story__body p { color: var(--stone); font-size: 1.1875rem; line-height: 1.7; }

/* ============================================================
   JOURNAL CARDS
   ============================================================ */
.journal { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.journal__item { background: var(--linen); border: 1px solid var(--birch); display: flex; flex-direction: column; }
.journal__thumb { aspect-ratio: 3/2; overflow: hidden; background: var(--clay-mist); display: block; }
.journal__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.journal__item:hover .journal__thumb img { transform: scale(1.05); }
.journal__body { padding: 2rem 2rem 2.25rem; flex: 1; display: flex; flex-direction: column; }
.journal__date { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.9rem; }
.journal__title { font-size: 1.625rem; margin-bottom: 0.5rem; }
.journal__excerpt { font-size: 1rem; color: var(--stone); margin-bottom: 1.5rem; }
.journal__more { margin-top: auto; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pine-deep); }
.journal__more::after { content: " \2192"; }

/* ============================================================
   ITINERARY
   ============================================================ */
.day-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 4rem; }
.day-nav button {
  background: transparent; border: 1.5px solid var(--birch);
  padding: 0.85rem 1.85rem; cursor: pointer;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone);
  transition: all 0.35s var(--ease);
}
.day-nav button:hover { border-color: var(--pine); color: var(--pine-deep); }
.day-nav button[aria-selected="true"] { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--linen); }

.day { margin-bottom: var(--step-sm); scroll-margin-top: 7rem; }
.day__head { display: flex; align-items: baseline; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--birch); }
.day__name { font-size: clamp(2rem, 3.2vw, 2.75rem); margin: 0; }
.day__date { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay); }

.event { display: grid; grid-template-columns: 165px 1fr; gap: 2rem; padding: 2.25rem 0; border-bottom: 1px solid var(--birch); }
.event__time { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pine); padding-top: 0.4rem; }
.event__title { font-size: 1.625rem; margin: 0 0 0.4rem; }
.event__loc { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em; color: var(--stone); margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.event__loc svg { width: 14px; height: 14px; color: var(--clay); flex: none; }
.event__note { font-size: 1.0625rem; color: var(--stone); margin: 0; }
.anchor-tag {
  display: inline-block; margin-left: 0.75rem; vertical-align: 0.3em;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--sage-mist); color: var(--pine-deep);
  padding: 0.32rem 0.7rem;
}

/* ============================================================
   SISTUHS WALL
   ============================================================ */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.sistuh { position: relative; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.sistuh__frame { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--clay-mist); display: block; }
.sistuh__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.8s var(--ease); filter: saturate(0.85); }
.sistuh:hover .sistuh__frame img, .sistuh:focus-visible .sistuh__frame img { transform: scale(1.06); filter: saturate(1); }
.sistuh__veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(36,31,27,0.78) 100%); }
.sistuh__label { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.15rem; z-index: 2; }
.sistuh__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--linen); line-height: 1.15; display: block; }
.sistuh__role { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(252,250,246,0.88); margin-top: 0.4rem; display: block; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(36,31,27,0.66); }
.modal__panel {
  position: relative; z-index: 2;
  width: min(100% - 2rem, 880px); max-height: 88svh; overflow-y: auto;
  margin: 6svh auto 0; background: var(--linen);
  display: grid; grid-template-columns: 330px 1fr;
}
.modal__media { background: var(--clay-mist); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(2rem, 4vw, 3.5rem); }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  background: var(--linen); border: 1px solid var(--birch);
  width: 42px; height: 42px; cursor: pointer; color: var(--stone);
  font-size: 1.25rem; line-height: 1;
}
.modal__name { font-size: clamp(2rem, 3.5vw, 2.875rem); margin-bottom: 0.3rem; }
.modal__meta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); margin-bottom: 1.75rem; }
.modal__facts { list-style: none; margin: 1.75rem 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--birch); }
.modal__facts li { display: flex; gap: 1rem; font-size: 0.9375rem; padding-block: 0.45rem; }
.modal__facts .k { color: var(--clay); min-width: 140px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding-top: 0.4rem; }

/* ============================================================
   WHAT TO EXPECT  (alternating picture cards)
   ============================================================ */
.expect-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.expect-card + .expect-card { margin-top: var(--step); }
.expect-card--right .expect-card__media { order: 2; }
.expect-card__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.expect-card__body h2 { margin-bottom: 0.45em; }
.expect-card__body p { color: var(--stone); font-size: 1.125rem; }
.expect-card__body > *:last-child { margin-bottom: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--birch); border: 1px solid var(--birch); }
.tile { background: var(--linen); padding: 2.75rem 2rem; }
.tile__icon { width: 28px; height: 28px; color: var(--pine); margin-bottom: 1.5rem; }
.tile h3 { font-size: 1.375rem; margin-bottom: 0.55rem; }
.tile p { font-size: 1rem; color: var(--stone); margin: 0; }

.packing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3rem; }
.packing__col h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay); font-family: var(--font-body); margin-bottom: 1.25rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--birch); }
.packing__col ul { list-style: none; margin: 0; padding: 0; }
.packing__col li { font-size: 1rem; color: var(--stone); padding-block: 0.5rem; display: flex; gap: 0.75rem; }
.packing__col li::before { content: ""; width: 4px; height: 4px; background: var(--clay); flex: none; margin-top: 0.85rem; }

.weather { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; text-align: center; }
.weather__stat { font-family: var(--font-display); font-size: clamp(2.75rem, 5vw, 4rem); color: var(--cocoa); line-height: 1; font-variation-settings: "SOFT" 40, "WONK" 1; }
.weather__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin-top: 0.8rem; }

/* ============================================================
   EXPENSES
   ============================================================ */
.ledger { border-top: 1px solid var(--birch); }
.ledger__row { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; padding: 2.5rem 0; border-bottom: 1px solid var(--birch); }
.ledger__name { font-family: var(--font-display); font-size: 1.625rem; color: var(--cocoa); margin: 0 0 0.4rem; line-height: 1.15; }
.ledger__cat { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.7rem; }
.ledger__desc { font-size: 1rem; color: var(--stone); margin: 0; max-width: 52ch; }
.ledger__amt { font-family: var(--font-display); font-size: clamp(1.625rem, 2.6vw, 2.125rem); color: var(--pine-deep); white-space: nowrap; text-align: right; }
.ledger__amt small { display: block; font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-top: 0.4rem; }
.ledger__total { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 2.75rem 0; border-bottom: 2px solid var(--cocoa); }
.ledger__total .ledger__name { font-size: 1.875rem; }

.payment-note { margin-top: var(--step-sm); padding: clamp(2.5rem, 5vw, 4rem); background: var(--sage-mist); text-align: center; }
.payment-note p { margin: 0 auto; max-width: 46ch; color: var(--bark); }
.payment-note .script { display: block; margin-bottom: 0.4rem; }

/* ============================================================
   CONTENT
   ============================================================ */
.entry-content > * { max-width: var(--measure); }
.entry-content > .alignwide, .entry-content > .alignfull, .entry-content > figure { max-width: none; }
.entry-content h2 { margin-top: 2.25em; }
.entry-content h3 { margin-top: 1.85em; }
.entry-content ul, .entry-content ol { color: var(--stone); padding-left: 1.25rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 2px solid var(--clay); margin: 2.5rem 0; padding-left: 2rem;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--cocoa); font-style: italic;
}
.entry-content a { border-bottom: 1px solid var(--clay); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry-content th, .entry-content td { text-align: left; padding: 0.95rem 0; border-bottom: 1px solid var(--birch); }

.page-hero { padding: 12rem 0 var(--step-sm); text-align: center; }
.page-hero h1 { margin-bottom: 0.12em; }
.page-hero .lede { margin-inline: auto; }
.page-hero--image { position: relative; min-height: 64svh; display: grid; place-items: center; padding: 11rem 0 5rem; background: var(--pine-deep); overflow: hidden; }
.page-hero--image .page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero--image .page-hero__scrim { position: absolute; inset: 0; background: rgba(36,31,27,0.52); }
.page-hero--image .page-hero__inner { position: relative; z-index: 2; text-align: center; }
.page-hero--image h1 { color: var(--linen); }
.page-hero--image .lede { color: rgba(252,250,246,0.94); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--cocoa); color: rgba(252,250,246,0.82); padding-block: var(--step-sm) 3rem; }
.site-footer h2, .site-footer h3 { color: var(--linen); }
.footer__top { text-align: center; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(252,250,246,0.18); }
.footer__mark { font-family: var(--font-script); font-size: 2.75rem; color: var(--linen); line-height: 1; margin: 0; }
.footer__script { color: var(--clay-mist); margin-top: 0.75rem; font-size: 1.375rem; letter-spacing: 0.1em; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; padding-top: 2.5rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__nav ul, .site-footer .cozy-fallback-menu { display: flex; flex-wrap: wrap; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.footer__nav a, .site-footer .cozy-fallback-menu a { color: rgba(252,250,246,0.82); font-size: 0.75rem; }
.footer__nav a:hover, .site-footer .cozy-fallback-menu a:hover { color: var(--linen); }
.site-footer .cozy-fallback-menu a::after { display: none; }

/* ============================================================
   PASSWORD GATE
   ============================================================ */
.gate {
  position: relative; min-height: 100svh; width: 100%;
  display: grid; place-items: center;
  background: var(--bark); overflow: hidden;
}
/* Centred float box. Photo positions resolve against this, not the viewport,
   so the ring stays around the wordmark instead of spreading to the edges. */
.gate__float {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 1120px);
  height: min(100%, 780px);
}
.gate__el { position: absolute; will-change: transform; }
.gate__el img {
  object-fit: cover; opacity: 0;
  transform: scale(var(--gate-scale, 1));
  transition: opacity 1.1s var(--ease-out), transform 0.5s var(--ease);
  filter: saturate(0.72) brightness(0.86);
}
.gate__el img.is-in { opacity: 1; }
.gate__scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(36,31,27,0.42) 0%, rgba(36,31,27,0.84) 74%); }

.gate__panel { position: relative; z-index: 10; text-align: center; padding: 2rem; width: min(100% - 3rem, 460px); }
.gate__mark {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 11vw, 6rem);
  color: var(--linen); line-height: 1; margin: 0;
  opacity: 0; transform: translateY(14px);
  animation: gate-in 1s var(--ease-out) 0.35s forwards;
}
.gate__sub {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(252,250,246,0.72); margin: 1.5rem auto 0; max-width: none;
  opacity: 0; animation: gate-in 1s var(--ease-out) 0.6s forwards;
}
.gate__enter { margin-top: 2.75rem; opacity: 0; animation: gate-in 1s var(--ease-out) 0.85s forwards; }
.gate__form {
  margin-top: 2.25rem;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.7s var(--ease-out), opacity 0.5s var(--ease-out);
}
.gate__form.is-open { max-height: 280px; opacity: 1; }
.gate__field { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.gate__input {
  flex: 1 1 220px;
  background: rgba(252,250,246,0.07);
  border: 1.5px solid rgba(252,250,246,0.34);
  color: var(--linen);
  padding: 1.05rem 1.25rem;
  font-family: var(--font-body); font-size: 0.9375rem;
  letter-spacing: 0.12em; text-align: center;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.gate__input::placeholder { color: rgba(252,250,246,0.44); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.75rem; }
.gate__input:focus { outline: none; border-color: var(--linen); background: rgba(252,250,246,0.12); }
.gate__error {
  margin: 1.25rem auto 0; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: #E8B4A8;
}
.gate__hide { display: none; }
@keyframes gate-in { to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .split, .story, .expect-card { grid-template-columns: 1fr; }
  .split--flip .split__media, .story--flip .story__media, .expect-card--right .expect-card__media { order: 0; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__media { aspect-ratio: 3/2; }
  .event { grid-template-columns: 1fr; gap: 0.65rem; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--snowfall);
    display: none; place-items: center; z-index: 99;
  }
  .nav.is-open { display: grid; }
  .nav ul, .nav .cozy-fallback-menu { flex-direction: column; gap: 2rem; text-align: center; }
  .nav a, .nav .cozy-fallback-menu a { font-size: 1.0625rem; }
  .brand__name { font-size: 1.75rem; }
  .ledger__row, .ledger__total { grid-template-columns: 1fr; gap: 1rem; }
  .ledger__amt { text-align: left; }
  .years { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__slide { transform: none; }
  .words span i { transform: none; }
  .mask img, .mask .media-placeholder { clip-path: none; transform: none; }
  .marquee__track { animation: none; }
  .gate__mark, .gate__sub, .gate__enter { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

.cozy-fallback-menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }

/* ============================================================
   v2.1 FIXES
   ============================================================ */

/* Homepage intro sits to the side, matching the story blocks below it */
.intro { max-width: 640px; }
.intro .lede { max-width: 46ch; }

/* Footer text was left-aligning because paragraphs carry a max-width */
.footer__top p, .footer__top .footer__line {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.footer__line {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(252,250,246,0.72);
  margin-top: 0.25rem;
}
.footer__mark { margin-inline: auto; }
.section--pine p, .payment-note p { margin-left: auto; margin-right: auto; }
.center p, .center .lede { margin-left: auto; margin-right: auto; }

/* Gate photo picker preview in the dashboard */
.cozy-gate-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.cozy-gate-grid img {
  width: 92px; height: 92px; object-fit: cover;
  border: 1px solid #c3c4c7; border-radius: 3px;
}
.cozy-gate-empty { color: #646970; font-style: italic; margin: 12px 0; }

/* Homepage intro, optionally paired with a picture */
.intro-wrap.has-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.intro-wrap.has-media .intro { max-width: none; }
.intro-wrap.has-media .intro__media { order: 2; }
.intro-wrap--flip .intro__media { order: 0; }
.intro__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

@media (max-width: 980px) {
  .intro-wrap.has-media { grid-template-columns: 1fr; }
  .intro-wrap.has-media .intro__media,
  .intro-wrap--flip .intro__media { order: 0; }
}

/* Gate photos shrink and tighten on smaller screens so the ring keeps its
   shape instead of piling onto the wordmark. */
@media (max-width: 1100px) {
  .gate__float { width: min(100%, 860px); height: min(100%, 700px); }
  :root { --gate-scale: 0.82; }
}
@media (max-width: 780px) {
  .gate__float { width: 100%; height: min(100%, 620px); }
  :root { --gate-scale: 0.58; }
}
@media (max-width: 520px) {
  :root { --gate-scale: 0.44; }
}
