/* ============================================================
   Ever After Celebrations - design system
   Editorial, warm, photography first. Mobile first.
   ============================================================ */

:root {
  /* Base carried over from the original site: warm cream #FFF8F0 */
  --ivory: #FFF8F0;
  --stone: #F7EDDF;
  --stone-deep: #EBDCC6;
  --ink: #2E2620;
  --ink-soft: #6E5F52;
  --gold: #A98C5B;
  --gold-light: #D9BC8C;
  --gold-deep: #85683D;
  /* Wordmark colors carried over from the original site identity */
  --maroon: #7B1F3A;
  --logo-gold: #8B6914;
  --blush: #C08A7C;
  --white: #FFFFFF;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
/* height: auto keeps photos in proportion when max-width shrinks them on phones
   (otherwise the height attribute wins and the image stretches tall) */
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.12; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Type scale ---------- */
.display { font-size: clamp(2.4rem, 6.5vw, 4.4rem); }
h1, .h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2, .h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3, .h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.75; color: var(--ink-soft); }
.small { font-size: .875rem; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.serif-i { font-style: italic; font-weight: 400; }

/* ---------- Layout ---------- */
.container { width: min(var(--max-w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ink .eyebrow { color: var(--gold); }
.section--ink .lede { color: rgba(250, 247, 241, .75); }
.center { text-align: center; }

.rule {
  width: 56px; height: 1px; background: var(--gold);
  border: 0; margin: 1.6rem auto;
}
.rule--left { margin-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid currentColor;
  padding: 1rem 2.2rem;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }
.btn--light { color: var(--ivory); }
.btn--light:hover, .btn--light:focus-visible { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--solid-light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--solid-light:hover, .btn--solid-light:focus-visible { background: var(--gold-light); color: var(--ink); border-color: var(--gold-light); }
.btn--text {
  border: 0; padding: 0 0 .35rem;
  border-bottom: 1px solid var(--gold);
}
.btn--text:hover, .btn--text:focus-visible { background: transparent; color: var(--gold-deep); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__inner {
  width: min(1340px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1rem;
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.55rem; font-weight: 600; letter-spacing: .015em;
  text-decoration: none; color: var(--ivory);
  line-height: 1.1;
  transition: color .4s var(--ease);
}
.nav__logo small {
  display: block; font-family: var(--font-body);
  font-size: .6rem; letter-spacing: .3em; font-weight: 600;
  color: var(--gold-light); text-transform: uppercase;
  margin-top: .1rem;
}
/* On light backgrounds the wordmark uses the original brand maroon and gold */
.nav.is-solid .nav__logo, .nav.is-open .nav__logo, .nav--dark .nav__logo { color: var(--maroon) !important; }
.nav.is-solid .nav__logo small, .nav.is-open .nav__logo small, .nav--dark .nav__logo small { color: var(--logo-gold); }
/* Over photography (transparent nav) lift the wordmark off bright areas */
.nav:not(.is-solid):not(.nav--dark):not(.is-open) .nav__logo,
.nav:not(.is-solid):not(.nav--dark):not(.is-open) .nav__links a {
  text-shadow: 0 1px 3px rgba(20, 14, 8, .55), 0 2px 14px rgba(20, 14, 8, .45);
}
.nav.is-open .nav__logo, .nav.is-open .nav__links a { text-shadow: none; }
.nav__links { display: none; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory);
  padding-block: .4rem;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.nav__links a:hover, .nav__links a:focus-visible,
.nav__links a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav__cta { display: none; }

.nav.is-solid, .nav.is-open { background: var(--ivory); box-shadow: 0 1px 0 var(--stone-deep); }
.nav.is-solid .nav__logo, .nav.is-open .nav__logo,
.nav.is-solid .nav__links a, .nav.is-open .nav__links a { color: var(--ink); }
.nav--dark .nav__logo, .nav--dark .nav__links a { color: var(--ink); }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ivory);
  transition: transform .3s var(--ease), opacity .3s, background .3s;
}
.nav.is-solid .nav__toggle span, .nav.is-open .nav__toggle span, .nav--dark .nav__toggle span { background: var(--ink); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__menu {
  display: none;
  background: var(--ivory);
  border-top: 1px solid var(--stone-deep);
  padding: 1.2rem var(--gutter) 2rem;
}
.nav.is-open .nav__menu {
  display: block;
  /* The header is fixed, so on short screens the menu scrolls within itself */
  max-height: calc(100svh - 76px); overflow-y: auto; overscroll-behavior: contain;
}
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  display: block; padding: .85rem 0;
  font-family: var(--font-head); font-size: 1.45rem;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--stone);
}
.nav__menu .btn { margin-top: 1.4rem; width: 100%; text-align: center; }
/* .nav__menu a sets serif ink text for the links; the button keeps its own look */
.nav__menu a.btn--solid {
  font-family: var(--font-body); font-size: .78rem;
  padding: 1rem 2.2rem; color: var(--ivory); border: 1px solid var(--ink);
}

@media (min-width: 920px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-block; padding: .8rem 1.6rem; font-size: .72rem; white-space: nowrap; }
  .nav__links a { white-space: nowrap; }
  .nav:not(.is-solid):not(.nav--dark) .nav__cta { color: var(--ivory); }
  .nav__toggle, .nav__menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--ivory);
  isolation: isolate;
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Darker band at the very top keeps the logo and nav readable over bright imagery */
  background: linear-gradient(to top, rgba(20, 14, 8, .72) 0%, rgba(20, 14, 8, .25) 45%, rgba(20, 14, 8, .62) 100%);
}
.hero__content {
  width: min(var(--max-w), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(4rem, 12vh, 7.5rem);
  max-width: 100%;
}
.hero__content .eyebrow { color: #D9BC8C; text-shadow: 0 1px 3px rgba(20, 14, 8, .55); }
.hero__title { color: var(--white); max-width: 17ch; }
.hero__sub { max-width: 52ch; margin-top: 1.4rem; color: rgba(250, 247, 241, .88); font-size: clamp(1rem, 1.7vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero--page { min-height: 62svh; }

/* ---------- Editorial split ---------- */
.split {
  display: grid; gap: 2.5rem;
  align-items: center;
}
.split__media img { width: 100%; height: auto; }
.split__body { max-width: 54ch; }
@media (min-width: 880px) {
  .split { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 7vw, 6rem); }
  .split--flip .split__media { order: 2; }
  .split--flip .split__body { justify-self: end; }
}

/* ---------- Wedding experience rows ---------- */
.exp { display: grid; gap: 3.5rem; }
.exp__item { display: grid; gap: 1.6rem; align-content: start; }
.exp__item img { width: 100%; height: auto; }
.exp__item h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.exp__kicker { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.exp__item p { max-width: 46ch; color: var(--ink-soft); }
@media (min-width: 880px) {
  .exp { gap: clamp(4rem, 8vw, 6.5rem); }
  .exp__item { grid-template-columns: 7fr 5fr; align-items: end; }
  .exp__item:nth-child(even) .exp__media { order: 2; }
  .exp__item:nth-child(even) .exp__body { justify-self: end; text-align: left; }
}

/* ---------- Cards free grid ---------- */
.grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Philosophy ---------- */
.philosophy { counter-reset: phil; display: grid; gap: 2.8rem; }
.philosophy__item { max-width: 40ch; }
.philosophy__item h3 { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .7rem; }
.philosophy__item h3::before {
  counter-increment: phil;
  content: "0" counter(phil);
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; color: var(--gold);
}
.philosophy__item p { color: rgba(250, 247, 241, .72); }
@media (min-width: 720px) { .philosophy { grid-template-columns: 1fr 1fr; gap: 3.4rem clamp(3rem, 8vw, 7rem); } }

/* ---------- Portfolio tiles ---------- */
.tiles { display: grid; gap: 1.8rem; }
@media (min-width: 680px) { .tiles { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1000px) { .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.tile { text-decoration: none; color: inherit; display: block; }
.tile figure { margin: 0; overflow: hidden; }
.tile img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile--tall img { aspect-ratio: 3 / 4; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile figcaption { padding-top: 1.1rem; }
.tile__title { display: block; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.2; }
.tile__meta { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .35rem; }

/* Featured layout: one lead project across the full width, the rest in pairs */
.tiles--feature .tile--lead img { aspect-ratio: 4 / 3; }
@media (min-width: 680px) {
  .tiles--feature .tile--lead { grid-column: 1 / -1; }
  .tiles--feature .tile--lead img { aspect-ratio: 16 / 9; }
  .tiles--feature .tile--lead .tile__title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
}
@media (min-width: 680px) { .tiles--feature { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Positioning statement ---------- */
.statement h2 { line-height: 1.15; }
.statement .serif-i { color: var(--gold-deep); }

/* ---------- Celebrations we design ---------- */
.occasions {
  list-style: none; margin: 0 auto; padding: 0; max-width: 54rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 0;
}
.occasions li { display: flex; align-items: center; }
.occasions li + li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); margin-inline: 1.1rem;
}
.occasions a {
  font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid transparent; transition: border-color .3s, color .3s;
}
.occasions a:hover, .occasions a:focus-visible { color: var(--gold-deep); border-bottom-color: var(--gold); }
/* On phones the list wraps a lot, so separators would start lines; use spacing instead */
@media (max-width: 719px) {
  .occasions { gap: .5rem 1.5rem; }
  .occasions li + li::before { display: none; }
}

/* ---------- Design process ---------- */
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 1.6rem;
}
.process li { border-top: 1px solid var(--gold); padding-top: 1.2rem; }
.process__num { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-deep); margin-bottom: .6rem; }
.process h3 { margin-bottom: .35rem; }
.process p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 599px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .6rem; padding-block: 1rem; }
  .process__num { grid-row: span 2; margin: .45rem 0 0; }
}
@media (min-width: 900px) { .process { grid-template-columns: repeat(5, 1fr); gap: 2rem; } }

/* ---------- Closing call to action ---------- */
.cta-band {
  position: relative; isolation: isolate;
  min-height: 82svh; display: flex; align-items: center;
  padding-block: var(--section);
  color: var(--ivory);
}
.cta-band__media, .cta-band__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 14, 8, .62);
}
.cta-band .eyebrow { color: var(--gold-light); }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(250, 247, 241, .85); }

/* Call | WhatsApp | Email | Instagram */
.reach {
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 0;
}
.reach li { display: flex; align-items: center; }
.reach li + li::before { content: ""; width: 1px; height: .9rem; background: currentColor; opacity: .4; margin-inline: 1.1rem; }
.reach a {
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: inherit; padding-block: .5rem;
  border-bottom: 1px solid transparent;
}
.reach a:hover, .reach a:focus-visible { border-bottom-color: var(--gold); }
.reach--dark { color: var(--ink); }
@media (max-width: 479px) {
  .reach { gap: .4rem 1.3rem; }
  .reach li + li::before { display: none; }
  .reach a { font-size: .7rem; letter-spacing: .14em; }
}

/* ---------- Mobile sticky call to action ---------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  transform: translate(-50%, 160%);
  padding: .85rem 1.8rem;
  font-size: .72rem;
  background: var(--ink); color: var(--ivory); border-color: var(--ink);
  box-shadow: 0 6px 24px rgba(20, 14, 8, .28);
  transition: transform .45s var(--ease);
  white-space: nowrap;
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }
@media (min-width: 920px) { .sticky-cta { display: none; } }

/* Masonry gallery (CSS columns fallback; site.js rebuilds into balanced flex columns) */
.masonry { columns: 2; column-gap: 1.2rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1.2rem; }
.masonry img { width: 100%; height: auto; }
@media (min-width: 900px) { .masonry { columns: 3; column-gap: 1.8rem; } .masonry > * { margin-bottom: 1.8rem; } }

.masonry--js { columns: auto; display: flex; gap: 1.2rem; align-items: flex-start; }
.masonry--js .masonry__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.masonry--js .masonry__col > * { margin: 0 !important; }
@media (min-width: 900px) {
  .masonry--js { gap: 1.8rem; }
  .masonry--js .masonry__col { gap: 1.8rem; }
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 2rem 0 2.6rem; }
.filters button {
  background: none; border: 0; cursor: pointer; padding: .4rem 0;
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- Before / After ---------- */
.ba {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  user-select: none;
}
.ba img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ba__after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%);
  width: 1px; background: var(--ivory);
  pointer-events: none;
}
.ba__handle::after {
  content: "\2194";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ivory); color: var(--ink);
  display: grid; place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba__tag {
  position: absolute; bottom: 1rem; z-index: 2;
  font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(20, 14, 8, .55); color: var(--ivory);
  padding: .35rem .8rem;
  pointer-events: none;
}
.ba__tag--before { left: 1rem; }
.ba__tag--after { right: 1rem; }

/* ---------- Quote / testimonial ---------- */
.quote { max-width: 44rem; margin-inline: auto; text-align: center; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400; font-style: italic; line-height: 1.45;
}
.quote figcaption { margin-top: 1.4rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Journey / process ---------- */
.steps { display: grid; gap: 2.4rem; }
.steps__item h3 { margin-bottom: .5rem; }
.steps__num { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-deep); display: block; margin-bottom: .8rem; }
.steps__item p { color: var(--ink-soft); max-width: 38ch; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* ---------- Instagram strip ---------- */
.ig-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.ig-strip img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 720px) { .ig-strip { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.5rem; }
@media (min-width: 720px) {
  .form { grid-template-columns: 1fr 1fr; }
  .form .form__full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .55rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--stone-deep);
  padding: .9rem 1rem;
  transition: border-color .3s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236E5F52'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field--error input, .field--error select { border-color: #A4483C; }
.field__hint { font-size: .8rem; color: var(--ink-soft); margin-top: .45rem; }

/* Field that does not apply to the chosen event (e.g. Number of Events for a birthday) */
.field--off label { opacity: .45; }
.field--off select { background-color: var(--stone); color: var(--ink-soft); cursor: not-allowed; }

/* Wedding events checklist */
.subevents { border: 0; margin: 0; padding: 0; min-width: 0; }
.subevents legend {
  padding: 0; margin-bottom: .75rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.subevents__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.field .subevents__list label {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0; font-weight: 400; letter-spacing: normal; text-transform: none;
  background: var(--white); border: 1px solid var(--stone-deep);
  padding: .6rem 1rem; cursor: pointer;
  font-size: .95rem; color: var(--ink);
  transition: border-color .25s, background .25s;
}
.field .subevents__list label:hover { border-color: var(--gold); }
.field .subevents__list label:has(input:checked) { border-color: var(--gold-deep); background: var(--stone); }
.field .subevents__list input {
  width: auto; padding: 0; border: 0; background: none;
  -webkit-appearance: auto; appearance: auto;
  accent-color: var(--gold-deep); margin: 0;
}
.subevents.field--error .subevents__list label { border-color: #A4483C; }

.upload {
  border: 1px dashed var(--stone-deep);
  background: var(--white);
  padding: 1.6rem; text-align: center;
  cursor: pointer;
  transition: border-color .3s;
}
.upload:hover, .upload:focus-visible { border-color: var(--gold); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload__thumbs { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1rem; }
.upload__thumbs img { width: 64px; height: 64px; object-fit: cover; }

.form__note { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-soft); }
.form__success {
  grid-column: 1 / -1;
  background: var(--stone);
  padding: 2rem;
  font-family: var(--font-head); font-size: 1.25rem; line-height: 1.5;
}

/* Read by screen readers, not shown */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(250, 247, 241, .78); padding-block: 4.5rem 2.5rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--gold); }
.footer__brand {
  font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ivory);
}
.footer__tag { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: .6rem; }
.footer__grid { display: grid; gap: 2.5rem; margin-block: 2.8rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer h4 { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(250, 247, 241, .5); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__base {
  border-top: 1px solid rgba(250, 247, 241, .14);
  padding-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between;
  font-size: .8rem; color: rgba(250, 247, 241, .5);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-img img { transition: transform 1.4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .reveal-img img { transition: none; }
  *, *::before, *::after { animation-duration: .001s !important; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.measure { max-width: 62ch; }
.measure-c { max-width: 62ch; margin-inline: auto; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: .8rem 1.2rem;
}
.skip-link:focus { left: 0; }
