/* ==========================================================================
   JULIA & JACKSON — DESIGN SYSTEM
   Browns are the ground; ivory and tan are the type.
   Colours, fonts and sizes are tokens here — change them once.
   ========================================================================== */

/* Slight (commercial script by Up Up Creative). Add the licensed web font files to
   assets/fonts/ with these names and it takes over from Sacramento automatically. */
@font-face {
  font-family: "Slight";
  src: local("Slight"), local("Slight Regular"), url("../fonts/Slight.woff2") format("woff2"), url("../fonts/Slight.woff") format("woff");
  font-display: swap;
}

:root {
  /* Palette — inverted warm neutrals */
  --espresso: #26190F;
  --espresso-deep: #1A110B;
  --chocolate: #4B3427;
  --ivory: #F1E9DC;          /* primary type */
  --cream: #E6DAC6;
  --tan: #CDBBA3;            /* secondary type — 8.9:1 on espresso */
  --taupe: #A8957E;          /* quiet details — 5.4:1 */
  --rule: rgba(241, 233, 220, .2);
  --rule-strong: rgba(241, 233, 220, .45);
  --accent: #C0714F;         /* the one muted pop — dusty terracotta */

  /* Type */
  --display: "Homemade Apple", "Bradley Hand", cursive;   /* handwritten headings */
  --body: "Courier Prime", "Courier New", Courier, monospace;   /* typewriter body */
  --sans: "Courier Prime", "Courier New", Courier, monospace;   /* small labels */
  --script: "Slight", "Sacramento", "Brush Script MT", cursive;   /* Slight loads from assets/fonts when its file is added */
  --heading-case: none;   /* change to lowercase for all-lowercase headings */

  /* Space */
  --g: clamp(20px, 4vw, 64px);
  --sec: clamp(56px, 7vw, 104px);
  --max: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Logo colours (sprite) */
  --lg-ink: var(--ivory);
  --lg-outline: var(--espresso);
  --lg-fill: var(--ivory);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.reduce-motion { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--espresso) url("../texture/ground.jpg") repeat;
  background-size: 1024px;
  color: var(--ivory);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-style: italic; }
sup { font-family: var(--body); font-size: .55em; letter-spacing: .02em; margin-right: .5em; vertical-align: .75em; color: var(--tan); }
::selection { background: var(--cream); color: var(--espresso); }
:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }
h1:focus, h1:focus-visible { outline: none; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ivory); color: var(--espresso); padding: 10px 16px; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { padding-inline: var(--g); max-width: var(--max); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Type ---------- */
.label { font-family: var(--sans); font-size: 10px; font-weight: 500; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; color: var(--tan); }
.h1, .h2, .h3 { font-family: var(--display); font-weight: 500; text-transform: var(--heading-case); text-wrap: balance; }
.h1 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.08; letter-spacing: .05em; }
.h2 { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.1; letter-spacing: .05em; }
.h3 { font-size: 21px; line-height: 1.2; letter-spacing: .08em; }
.lede { font-size: clamp(16px, 1.2vw, 18px); font-style: italic; color: var(--tan); max-width: 34em; }
.narrow { max-width: 34em; margin-inline: auto; }
.script-head, .script { font-family: var(--script); font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; }
.script-head { font-size: clamp(34px, 3.2vw, 48px); line-height: 1.05; color: var(--ivory); }
.dot { color: var(--taupe); margin: 0 .4em; }

/* Justified two-column copy, like a printed page */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 36px; max-width: 680px; margin-inline: auto; text-align: justify; hyphens: auto; font-size: 15.5px; line-height: 1.75; }
.twocol p + p { margin-top: .9em; }
.twocol em { color: var(--cream); }
@media (max-width: 640px) { .twocol { grid-template-columns: 1fr; text-align: left; hyphens: manual; } }

/* Placeholders you still need to fill in */
.ph-text { background: rgba(241, 233, 220, .08); text-decoration: underline dotted rgba(241, 233, 220, .45); text-underline-offset: 3px; font-style: normal; font-family: var(--sans); font-size: .72em; letter-spacing: .06em; padding: 0 .2em; }

/* ---------- Links & buttons ---------- */
.cta { display: inline-flex; align-items: center; gap: .7em; min-height: 44px; font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ivory); }
.cta:not(.cta--box) { background: linear-gradient(currentColor, currentColor) 0 calc(50% + 11px) / 100% 1px no-repeat; transition: color .5s var(--ease); }
.cta:hover { color: var(--accent); }
.cta.is-pending { opacity: .7; cursor: default; }
.cta--sm { min-height: 32px; font-size: 9.5px; }
.cta--box { border: 1px solid var(--rule-strong); padding: 16px 34px; transition: background-color .6s var(--ease), color .6s var(--ease); }
.cta--box:hover { background: var(--ivory); color: var(--espresso); }

/* ---------- Photographs ---------- */
.photo { position: relative; overflow: hidden; aspect-ratio: var(--ratio, auto); max-width: 100%; background: var(--chocolate); box-shadow: 0 0 0 1px var(--rule-strong); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.warm-photos .is-bw img { filter: sepia(.2) saturate(.85) contrast(1.02) brightness(.97); }
.photo--small { width: clamp(150px, 15vw, 220px); }

.photo--ph { --tone: #6E5D4E; --tone-ink: var(--ivory); background: var(--tone); color: var(--tone-ink); display: flex; flex-direction: column; justify-content: space-between; padding: 12px; text-align: left; }
.photo--ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ph__top { display: flex; justify-content: space-between; gap: 8px; font: 500 9px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .75; position: relative; z-index: 1; }
.ph__note { font-family: var(--body); font-style: italic; font-size: 17px; line-height: 1.2; position: relative; z-index: 1; }
[data-tone="stone"]      { --tone: #8C7B69; }
[data-tone="parchment"]  { --tone: #CDBDA5; --tone-ink: var(--espresso); }
[data-tone="taupe"]      { --tone: #A8957E; --tone-ink: var(--espresso); }
[data-tone="champagne"]  { --tone: #D6C3A0; --tone-ink: var(--espresso); }
[data-tone="marigold"]   { --tone: #C9962F; --tone-ink: var(--espresso); }
[data-tone="chartreuse"] { --tone: #A9B83A; --tone-ink: var(--espresso); }
[data-tone="chocolate"]  { --tone: #5A4130; }
[data-tone="espresso"]   { --tone: #1C1410; }
[data-tone="wine"]       { --tone: #6A2733; }
[data-tone="burgundy"]   { --tone: #4E1A22; }
[data-tone="green"]      { --tone: #22392E; }
[data-tone="navy"]       { --tone: #1D2639; }
[data-tone="black"]      { --tone: #141110; }
[data-tone="charcoal"]   { --tone: #3A3836; }
[data-tone="rust"]       { --tone: #9A4A2E; }
[data-tone="poppy"]      { --tone: #B8322A; }
[data-tone="fuchsia"]    { --tone: #A8285E; }

.icon { width: 36px; height: 36px; display: block; color: var(--cream); overflow: visible; }

/* ---------- Reveal (only when motion is allowed) ---------- */
html.js:not(.reduce-motion) [data-reveal] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 1.3s var(--ease), transform 1.4s var(--ease); }
html.js:not(.reduce-motion) [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--g) 16px; transition: transform .8s var(--ease), background-color .6s var(--ease); }
.nav.is-solid { background: rgba(30, 20, 13, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__mark { display: block; line-height: 0; padding: 4px 0; transition: opacity .6s var(--ease); }
.nav__logo { width: clamp(104px, 9vw, 128px); height: auto; }
.nav__mark:hover { opacity: .75; }
body[data-page="home"] .nav:not(.is-solid) .nav__mark { opacity: 0; pointer-events: none; }
.nav__links ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__links a { font: 500 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ivory); padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .5s var(--ease), color .5s var(--ease), background-color .5s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--ivory); }
.nav__links a.nav__rsvp { border: 1px solid var(--rule-strong); padding: 9px 14px; }
.nav__links a.nav__rsvp:hover, .nav__links a.nav__rsvp[aria-current="page"] { background: var(--ivory); color: var(--espresso); }
.nav__toggle { display: none; font: 500 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; min-height: 44px; min-width: 60px; text-align: right; }
.nav__toggle-close, body.menu-open .nav__toggle-open { display: none; }
body.menu-open .nav__toggle-close { display: inline; }
body.menu-open .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .nav__mark { opacity: 1 !important; pointer-events: auto !important; }
@media (max-width: 1000px) { .nav__links { display: none; } .nav__toggle { display: inline-block; } }

.menu { position: fixed; inset: 0; z-index: 40; background: linear-gradient(rgba(26, 17, 11, .84), rgba(26, 17, 11, .84)), var(--espresso-deep) url("../../images/placeholder-staircase.jpg") 50% 50% / cover; display: flex; flex-direction: column; justify-content: space-between; padding: calc(100px + env(safe-area-inset-top, 0px)) var(--g) calc(28px + env(safe-area-inset-bottom, 0px)); opacity: 0; transition: opacity .6s var(--ease); overflow-y: auto; }
.menu { pointer-events: none; }
body.menu-open .menu { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.menu__list { text-align: center; display: grid; gap: 6px; }
.menu__list a { display: inline-block; font-family: var(--display); font-size: clamp(30px, 8.4vw, 42px); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 8px 0; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(.1s + var(--i) * .05s); }
body.menu-open .menu__list a { opacity: 1; transform: none; }
.menu__list a[aria-current="page"] { color: var(--accent); }
.menu__foot { display: flex; justify-content: space-between; padding-top: 28px; }

.curtain { position: fixed; inset: 0; z-index: 100; background: var(--espresso-deep); display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; }
.curtain.is-in { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); pointer-events: all; }
.curtain.is-out { opacity: 0; visibility: visible; transition: opacity .85s var(--ease); }

/* ==========================================================================
   HOME — HERO with drifting filmstrip
   ========================================================================== */
.hero { padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
.hero__mark { width: min(56vw, 700px); margin: 0 auto; padding-block: clamp(20px, 3vw, 44px) clamp(28px, 3.6vw, 52px); line-height: 0; }
.hero__logo { width: 100%; height: auto; }
.strip { overflow: hidden; }
.strip__belt { display: flex; width: max-content; animation: drift 180s linear infinite; }
.strip:hover .strip__belt { animation-play-state: paused; }
@keyframes drift { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.strip__track { display: flex; }
.strip__item { flex: none; height: clamp(300px, 56vh, 620px); aspect-ratio: 2 / 3; margin-right: 12px; box-shadow: inset 0 0 0 1px var(--rule-strong); overflow: hidden; background: var(--chocolate); }
.strip__item img, .strip__item .photo { width: 100%; height: 100%; object-fit: cover; }
.warm-photos .strip__item.is-bw img { filter: sepia(.2) saturate(.85) contrast(1.02) brightness(.97); }
.hero__foot { display: flex; justify-content: space-between; align-items: center; padding-block: 12px 0; }
.hero__scroll { min-height: 44px; }
html.js:not(.reduce-motion) .hero__mark, html.js:not(.reduce-motion) .strip { opacity: 0; transition: opacity 2s var(--ease); }
html.js:not(.reduce-motion) .strip { transition-delay: .5s; }
html.js:not(.reduce-motion) .hero.is-in .hero__mark, html.js:not(.reduce-motion) .hero.is-in .strip { opacity: 1; }
html.reduce-motion .strip { overflow-x: auto; }
html.reduce-motion .strip__belt { animation: none; }
html.reduce-motion .strip__track[aria-hidden] { display: none; }
@media (max-width: 760px) {
  .hero { padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
  .hero__mark { width: calc(100% - 2 * var(--g)); }
  .strip__item { height: 52vh; margin-right: 8px; }
  .strip__belt { animation-duration: 120s; }
}

/* ==========================================================================
   PAINTED PANELS (the textured feature bands)
   ========================================================================== */
.panel { position: relative; padding: var(--sec) var(--g); border-block: 1px solid var(--rule); }
/* Bands: an engagement photo, darkened and warmed so the type stays white */
.panel--painted { background: linear-gradient(rgba(26, 17, 11, .76), rgba(26, 17, 11, .84)), var(--espresso-deep) url("../../images/placeholder-elevator-kiss.jpg") 50% 35% / cover; background-size: cover; }
.panel--painted .panel__inner, .panel--painted .rsvp__frame { text-shadow: 0 1px 14px rgba(15, 10, 6, .55); }
.panel.panel--painted { border-block: 0; }
.panel__inner { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 24px; text-align: center; }
.panel__inner--wide { max-width: var(--max); }
.panel__corner { position: absolute; top: 44px; left: var(--g); display: grid; line-height: 1.8; }
.panel__note { font-size: 14px; color: var(--tan); max-width: 36em; }
@media (max-width: 640px) { .panel__corner { position: static; justify-items: center; margin-bottom: 18px; text-align: center; } }

.cross { position: relative; width: 1px; height: 48px; background: var(--tan); margin-bottom: 4px; }
.cross::after { content: ""; position: absolute; top: 13px; left: -10px; width: 21px; height: 1px; background: var(--tan); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding-block: var(--sec); }
.section--tight { padding-top: 0; }
.section--rule { border-top: 1px solid var(--rule); }
.section--center { display: grid; justify-items: center; gap: 22px; text-align: center; }
.section--center .twocol { margin-top: 6px; }

.pagehead { padding-top: calc(clamp(120px, 11vw, 160px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(32px, 4vw, 56px); display: grid; justify-items: center; gap: 18px; text-align: center; }
.pagehead .twocol { margin-top: 10px; }

/* Section tabs with roman numerals */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(24px, 4vw, 64px); padding-block: 8px; }
.tabs a, .tabs button { font-family: var(--display); font-size: clamp(20px, 1.7vw, 25px); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--ivory); padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .5s var(--ease); min-height: 44px; }
.tabs a:hover, .tabs button:hover { border-bottom-color: var(--rule-strong); }

/* Detail rows */
.details { border-top: 1px solid var(--rule); text-align: left; width: 100%; }
.details > div { display: grid; grid-template-columns: minmax(96px, 32%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.details dd { font-size: 16px; line-height: 1.5; }
.details a { color: var(--ivory); text-decoration-color: var(--accent); }

/* Home: schedule at a glance */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: clamp(32px, 4vw, 56px) auto 0; border-top: 1px solid var(--rule); }
.glance__item { display: grid; justify-items: center; gap: 6px; padding: 24px 8px 0; text-align: center; }
.glance__item + .glance__item { border-left: 1px solid var(--rule); }
.glance__time { font-family: var(--display); font-size: 27px; letter-spacing: .03em; margin-top: 4px; }
@media (max-width: 640px) { .glance { grid-template-columns: 1fr 1fr; } .glance__item:nth-child(3) { border-left: 0; } .glance__item { padding-bottom: 20px; } }

/* ==========================================================================
   OUR STORY — feature image with text overlay
   ========================================================================== */
.feature { position: relative; min-height: clamp(460px, 70vh, 760px); display: grid; align-items: end; border-block: 1px solid var(--rule); overflow: hidden; }
.feature__img { position: absolute; inset: 0; aspect-ratio: auto; box-shadow: none; }
.feature__img img { object-position: 50% 38%; }
.feature__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 10, .8) 0%, rgba(20, 14, 10, .35) 45%, rgba(20, 14, 10, 0) 70%); }
.feature__text { position: relative; z-index: 1; padding: var(--g); max-width: 480px; display: grid; gap: 14px; }
.feature__text p { font-size: 16px; }
@media (max-width: 640px) { .feature__img::after { background: linear-gradient(0deg, rgba(20, 14, 10, .88) 0%, rgba(20, 14, 10, .2) 60%); } }

/* ==========================================================================
   THE WEDDING
   ========================================================================== */
.venue { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; max-width: 1080px; margin-inline: auto; }
.venue__head { display: grid; gap: 14px; justify-items: start; }
.venue__cta { margin-top: 18px; }
@media (max-width: 760px) { .venue { grid-template-columns: 1fr; } }

.route { display: flex; align-items: center; gap: 18px; width: min(100%, 560px); margin-bottom: 18px; }
.route__time { font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); letter-spacing: .04em; white-space: nowrap; }
.route__line { flex: 1; position: relative; height: 1px; background: var(--rule-strong); }
.route__line .label { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); white-space: nowrap; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 1000px; border-top: 1px solid var(--rule); margin-bottom: 12px; }
.timeline li { display: grid; justify-items: center; gap: 6px; padding: 26px 10px 8px; }
.timeline li + li { border-left: 1px solid var(--rule); }
.timeline sup { margin: 0 0 4px; font-size: 11px; vertical-align: 0; }
.timeline__time { font-family: var(--display); font-size: clamp(28px, 2.5vw, 36px); letter-spacing: .03em; margin-top: 6px; }
.timeline__title { font-style: italic; font-size: 16px; }
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .timeline li { padding-bottom: 24px; }
}

/* ==========================================================================
   DRESS CODE — moodboard gallery (Previous / Next)
   ========================================================================== */
.gallery { padding-block: clamp(16px, 2vw, 32px) var(--sec); }
.gallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--g); scroll-padding-inline: var(--g); }
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; gap: 10px; width: max-content; padding-right: var(--g); }
.gallery__item { flex: none; scroll-snap-align: start; --gh: clamp(340px, 40vw, 600px); }
.gallery__item .photo { height: var(--gh); aspect-ratio: 2 / 3; }
.gallery__item--w .photo { aspect-ratio: 5 / 4; }
.gallery__item--m .photo { aspect-ratio: 4 / 5; }
.gallery__item[style*="--ar"] .photo { aspect-ratio: var(--ar); }
.gallery__cap { margin-top: 10px; font-size: 14px; color: var(--tan); display: flex; gap: 10px; align-items: baseline; }
.gallery__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.gallery__nav button { min-height: 44px; color: var(--ivory); border-bottom: 1px solid transparent; }
.gallery__nav button:hover { border-bottom-color: var(--rule-strong); }
@media (max-width: 640px) { .gallery__item { --gh: 60vh; } .gallery__title { display: none; } }

.statement { max-width: 22em; }
.attire { display: grid; justify-items: center; gap: 22px; text-align: center; padding-top: clamp(48px, 6vw, 84px); }
.attire + .attire { border-top: 1px solid var(--rule); margin-top: clamp(48px, 6vw, 84px); }
.list { text-align: left; border-top: 1px solid var(--rule); }
.list li { border-bottom: 1px solid var(--rule); padding: 8px 0; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 12px; }
.swatches li { display: grid; justify-items: center; gap: 8px; width: 64px; text-align: center; }
.swatch { width: 44px; aspect-ratio: 3 / 4; background: var(--c); box-shadow: 0 0 0 1px var(--rule-strong); }
.swatches .label { font-size: 8.5px; letter-spacing: .12em; }
.twocol .swatches { justify-content: flex-start; }
.section > .center { margin-top: clamp(48px, 6vw, 84px); }

/* ==========================================================================
   TRAVEL
   ========================================================================== */
.section > .script-head { text-align: center; }
.hotels { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); max-width: 1080px; margin: clamp(28px, 3vw, 44px) auto 0; }
.hotel { display: grid; gap: 14px; justify-items: start; }
.hotel__ctas { display: flex; gap: 8px 28px; flex-wrap: wrap; }
@media (max-width: 760px) { .hotels { grid-template-columns: 1fr; } }

.around { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; width: 100%; max-width: 760px; margin-top: 8px; }
.around > div { display: grid; justify-items: center; gap: 10px; text-align: center; }
.around p { font-size: 16px; }
@media (max-width: 760px) { .around { grid-template-columns: 1fr; } }

.guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px clamp(24px, 4vw, 56px); width: 100%; max-width: 1080px; margin-top: 18px; text-align: left; }
.guide__cat h3 { border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 6px; }
.guide__cat li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.guide__name { font-family: var(--display); font-size: 22px; letter-spacing: .05em; text-transform: uppercase; }
.guide__cat em { color: var(--tan); font-size: 15px; }
@media (max-width: 1100px) { .guide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guide { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; display: grid; grid-template-columns: 1fr 20px; gap: 12px; align-items: baseline; padding: 18px 0; cursor: pointer; min-height: 56px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary sup { vertical-align: 0; font-size: 11px; }
.qa__q { font-family: var(--display); font-size: clamp(21px, 1.8vw, 26px); letter-spacing: .05em; text-transform: uppercase; }
.qa__icon { position: relative; width: 14px; height: 14px; align-self: center; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ivory); transition: transform .6s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open]:not(.is-closing) .qa__icon::after { transform: rotate(0); }
.qa__a { overflow: hidden; }
.qa__inner { padding: 0 32px 22px 0; display: grid; gap: 12px; justify-items: start; font-size: 16px; color: var(--cream); }
@media (max-width: 560px) { .qa summary { grid-template-columns: 1fr 16px; } .qa__inner { padding: 0 0 20px 0; } }

/* ==========================================================================
   RSVP — the invitation
   ========================================================================== */
.rsvp { padding-top: calc(clamp(110px, 10vw, 150px) + env(safe-area-inset-top, 0px)); padding-bottom: var(--sec); }
.rsvp__card { max-width: 720px; margin: 0 auto; padding: clamp(14px, 1.6vw, 22px); box-shadow: 0 0 0 1px var(--rule); }
.rsvp__frame { border: 1px solid var(--rule-strong); outline: 1px solid var(--rule); outline-offset: -8px; padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 64px); display: grid; justify-items: center; gap: 16px; text-align: center; }
.rsvp__seal { width: 104px; height: 104px; }
.rsvp__by { font-size: 18px; }
.rsvp__note { color: var(--tan); max-width: 30em; }
.rsvp .details { margin-top: 8px; }
@media (max-width: 560px) { .cta--box { width: 100%; justify-content: center; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--espresso-deep); border-top: 1px solid var(--rule); padding: clamp(48px, 6vw, 80px) var(--g) calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: grid; justify-items: center; gap: 14px; text-align: center; }
.footer__seal { width: 92px; height: 92px; }
.footer__love { font-size: 30px; line-height: 1; color: var(--ivory); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-top: 10px; }
.footer__links a, .footer__links button { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--tan); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.footer__links a:hover, .footer__links button:hover { color: var(--ivory); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

.credit { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.credit:hover { color: var(--ivory); text-decoration-color: currentColor; }
.spooky { display: flex; align-items: center; justify-content: center; gap: 14px; }
.spooky__icon { width: 46px; height: 46px; overflow: visible; }
.spooky__icon:first-child { width: 36px; height: 36px; transform: scaleX(-1) rotate(-8deg) translateY(4px); }
.spooky__icon:last-child { transform: rotate(10deg) translateY(-10px); }


/* Home intro panel: all text in the same warm cream as the italic paragraph */
.panel--intro .panel__inner, .panel--intro .panel__inner .script-head, .panel--intro .panel__inner .h1, .panel--intro .panel__inner p, .panel--intro .panel__inner em, .panel--intro .panel__inner .cta { color: var(--cream); }

/* ==========================================================================
   THE WEDDING PARTY
   ========================================================================== */
.party .party__lead { display: flex; justify-content: center; gap: 32px; width: 100%; margin-top: 8px; }
.party__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: center; gap: 40px clamp(20px, 3vw, 44px); width: 100%; margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--rule); }
.member { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.member__photo { width: 100%; margin-bottom: 10px; }
.member__name { font-family: var(--display); font-weight: 400; font-size: 23px; letter-spacing: .06em; text-transform: var(--heading-case); line-height: 1.3; }
.member__note { font-size: 15px; color: var(--tan); max-width: 18em; }
.member--lead { max-width: 320px; }
.member--lead .member__name { font-size: clamp(28px, 2.6vw, 36px); }
.member--lead .member__photo { width: 240px; }
.party__flower { width: 44px; height: 44px; }
@media (max-width: 900px) { .party__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .party__grid { grid-template-columns: 1fr; } }

.party__parents { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 32px clamp(24px, 4vw, 64px); width: 100%; margin-top: 8px; }
@media (max-width: 760px) { .party__parents { grid-template-columns: 1fr; } }

/* ==========================================================================
   TEXAS, BLACK TIE — western details
   Rope dividers · scalloped panel edges · bandana pattern · star bullets
   ========================================================================== */
:root {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.1L14.8 8.8L22.9 9L16.5 14.1L18.8 21.9L12 17.3L5.2 21.9L7.5 14.1L1.1 9L9.2 8.8Z'/%3E%3C/svg%3E");
}
.star { display: inline-block; width: .8em; height: .8em; background: var(--accent); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; vertical-align: -.05em; }

/* Rope dividers replace the plain rules between sections */
.section--rule, .footer { border-top: 0; position: relative; }
.section--rule::before, .footer::before, .rope {
  content: ""; display: block; height: 10px; opacity: .55;
  background: url("../texture/rope.svg") left center / 6px 10px repeat-x;
}
.section--rule::before { position: absolute; top: -5px; left: var(--g); right: var(--g); }
.footer::before { position: absolute; top: -5px; left: 0; right: 0; }
.rope { width: min(100%, 220px); margin-inline: auto; }

/* Scalloped edges on the painted bands, with a dotted stitch line inside */
.panel--painted:not(.rsvp__card) {
  --sc: 11px;
  -webkit-mask:
    radial-gradient(circle at 50% 100%, #000 calc(var(--sc) - .5px), transparent var(--sc)) top / calc(var(--sc) * 2) var(--sc) repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - var(--sc) * 2) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--sc) - .5px), transparent var(--sc)) bottom / calc(var(--sc) * 2) var(--sc) repeat-x;
  mask:
    radial-gradient(circle at 50% 100%, #000 calc(var(--sc) - .5px), transparent var(--sc)) top / calc(var(--sc) * 2) var(--sc) repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - var(--sc) * 2) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--sc) - .5px), transparent var(--sc)) bottom / calc(var(--sc) * 2) var(--sc) repeat-x;
  margin-block: 4px;
}
.panel--painted:not(.rsvp__card)::before, .panel--painted:not(.rsvp__card)::after {
  content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 2px dotted rgba(241, 233, 220, .3); pointer-events: none;
}
.panel--painted:not(.rsvp__card)::before { top: 24px; }
.panel--painted:not(.rsvp__card)::after { bottom: 24px; }

/* Bandana pattern: footer, mobile menu, page curtain, RSVP card */
.footer, .menu, .curtain { isolation: isolate; }
.footer::after, .menu::before, .curtain::before, .rsvp__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../texture/bandana.svg") center / 96px 96px repeat; opacity: .06;
}
.footer { position: relative; }
.rsvp__frame { position: relative; isolation: isolate; }
.rsvp__frame::before { opacity: .05; }

/* Star bullets */
.list li { display: flex; gap: 12px; align-items: baseline; }
.tabs { gap: 10px clamp(14px, 2vw, 30px); }
.tabs a:hover, .tabs button:hover { border-bottom-color: transparent; color: var(--accent); }
.footer__links { gap: 4px 0; }
.footer__links li { display: inline-flex; align-items: center; }
.route__line { background: url("../texture/rope.svg") left center / 6px 10px repeat-x; height: 10px; opacity: 1; }

/* Hand-drawn Texas motifs */
.motif { display: flex; align-items: flex-end; justify-content: center; gap: 14px; color: var(--cream); }
.motif .icon { width: 44px; height: 44px; }
.motif .icon--sm { width: 30px; height: 30px; }
.footer .footer .footer .footer .attire .icon { width: 46px; height: 46px; }
.curtain__inner { display: grid; justify-items: center; gap: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__links a.nav__rsvp:hover, .nav__links a.nav__rsvp[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--ivory); }
.cta--box:hover { background: var(--accent); border-color: var(--accent); color: var(--ivory); }
.attire + .attire { border-top: 0; position: relative; }
.attire + .attire::before { content: ""; position: absolute; top: -5px; left: 0; right: 0; height: 10px; opacity: .55; background: url("../texture/rope.svg") left center / 6px 10px repeat-x; }
.route__line .label { top: 18px; }
@media (max-width: 480px) { .footer__sep { display: none !important; } .footer__links { gap: 0 22px; } }

.tabs a, .tabs button, .member__name, .glance__time, .route__time, .timeline__time, .qa__q, .guide__name, .menu__list a { font-weight: 500; }
.rsvp__frame::before { display: none; }

/* Script subheadings are always lowercase */
.script-head { text-transform: lowercase; }
/* "take a peek at the dress code!" — the cursive, slanted */
.script--link { font-style: italic; font-size: 1.55em; line-height: 1; text-decoration: none; white-space: nowrap; }
.script--link:hover { color: var(--accent); }
/* Home hero without the filmstrip */
.hero__mark { padding-bottom: clamp(18px, 2vw, 28px); }
.hero__foot { border-top: 1px solid var(--rule); padding-block: 6px 10px; justify-content: center; }
/* Dress code moodboard: a drifting strip, a bit quicker than the old home one */
.gallery--drift .strip__belt--fast { animation-duration: 95s; }
.gallery--drift .gallery__track { gap: 0; padding: 0; width: auto; }
.gallery--drift .gallery__item { margin-right: 10px; }
.gallery--drift .gallery__title { text-align: center; margin-top: 18px; }
html.reduce-motion .gallery--drift .strip { overflow-x: auto; }
@media (max-width: 760px) { .gallery--drift .strip__belt--fast { animation-duration: 70s; } }
html.js:not(.reduce-motion) .gallery--drift .strip { opacity: 1; }
html.reduce-motion .gallery--drift .strip__belt { animation: none; }
html.reduce-motion .gallery--drift .gallery__track[aria-hidden] { display: none; }

/* ==========================================================================
   TYPE: Homemade Apple headings · Courier Prime body
   ========================================================================== */
.h1, .h2, .h3, .tabs a, .tabs button, .member__name, .qa__q, .guide__name, .menu__list a { font-weight: 400; letter-spacing: 0; text-transform: none; }
.h1 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.55; }
.h2 { font-size: clamp(21px, 2vw, 28px); line-height: 1.55; }
.h3 { font-size: 18px; line-height: 1.6; }
.statement.h1 { font-size: clamp(24px, 2.4vw, 34px); }
.tabs a, .tabs button { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.8; }
.menu__list a { font-size: clamp(22px, 6vw, 30px); line-height: 1.7; }
.member__name { font-size: 18px; line-height: 1.6; }
.member--lead .member__name { font-size: clamp(21px, 2vw, 26px); }
.qa__q { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }
.guide__name { font-size: 17px; line-height: 1.7; }
/* Times stay crisp in the typewriter face */
.glance__time, .route__time, .timeline__time { font-family: var(--body); font-weight: 700; letter-spacing: .02em; }
.glance__time { font-size: 22px; }
.route__time { font-size: clamp(20px, 1.9vw, 26px); }
.timeline__time { font-size: clamp(22px, 2vw, 28px); }
/* Courier Prime is wider and heavier than a sans — ease the sizes */
body { font-size: 15px; line-height: 1.75; }
.twocol { font-size: 14.5px; line-height: 1.8; text-align: left; hyphens: manual; }
.details dd { font-size: 15px; }
.label { font-size: 11px; font-weight: 400; letter-spacing: .12em; }
.cta { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; }
.nav__links a { font-size: 11px; font-weight: 400; letter-spacing: .12em; }
.nav__toggle { font-size: 11.5px; font-weight: 400; }
.venue > * { min-width: 0; }
@media (max-width: 560px) { .script--link { white-space: normal; } }

.lc { text-transform: lowercase !important; letter-spacing: .08em !important; }

/* ==========================================================================
   The little saxophone (replaces every star) — it rocks and blows notes
   ========================================================================== */
.sax { display: inline-block; width: 22px; height: 22px; color: var(--cream); flex: none; vertical-align: middle; overflow: visible; }
.sax--lg { width: 40px; height: 40px; }
.tabs { align-items: center; }
.tabs .sax { width: 20px; height: 20px; }
.list li { display: flex; gap: 10px; align-items: center; }
.list li .sax { width: 18px; height: 18px; }
.guide__name { display: inline-flex; align-items: center; gap: 8px; }
.guide__name .sax { width: 18px; height: 18px; }
.footer__sep { display: inline-flex; align-items: center; }
.footer__sep .sax { width: 18px; height: 18px; color: var(--tan); }
.footer__links { gap: 4px 18px; align-items: center; }
.route__sax { position: absolute; top: -8px; width: 22px; height: 22px; }
.route__sax--a { left: -14px; } .route__sax--b { right: -14px; transform: scaleX(-1); }
.motif .sax { width: 22px; height: 22px; align-self: center; }
.motif .sax--lg { width: 44px; height: 44px; }
.curtain__sax { width: 52px; height: 52px; }
.attire .sax--lg { width: 46px; height: 46px; }

/* ==========================================================================
   HOME — the names, written out by a little pencil
   ========================================================================== */
.nav__name { font-family: var(--display); font-size: 15px; line-height: 1.9; color: var(--ivory); text-decoration: none; white-space: nowrap; }
.hero__write { display: grid; justify-items: center; gap: .2em; line-height: 1; text-align: center; font-weight: 400; }
.hand { position: relative; display: inline-block; font-family: var(--display); color: var(--ivory); white-space: nowrap; }
.hand--names { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.7; }
.hand--line { font-size: clamp(15px, 1.7vw, 23px); line-height: 2; color: var(--cream); }
.pencil { position: absolute; left: 0; bottom: .32em; width: 1.25em; height: auto; margin-left: -.07em; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.hand--line .pencil { width: 2.2em; bottom: .25em; }
html.js:not(.reduce-motion) .hand {
  --start: calc(.6s + var(--i) * 0s);
}
html.js:not(.reduce-motion) .hand--names { --start: .6s; --dur: 2.6s; }
html.js:not(.reduce-motion) .hand--line:nth-child(2) { --start: 3.4s; --dur: 1.7s; }
html.js:not(.reduce-motion) .hand--line:nth-child(3) { --start: 5.3s; --dur: 1.6s; }
html.js:not(.reduce-motion) .hand__ink { display: inline-block; clip-path: inset(-40% 100% -60% -10%); animation: hand-write var(--dur) cubic-bezier(.45, .1, .55, .9) var(--start) forwards; }
html.js:not(.reduce-motion) .hand .pencil { animation: pen-move var(--dur) cubic-bezier(.45, .1, .55, .9) var(--start) forwards, pen-bob .32s ease-in-out var(--start) 6, pen-out .45s ease calc(var(--start) + var(--dur)) forwards; }
@keyframes hand-write { to { clip-path: inset(-40% -10% -60% -10%); } }
@keyframes pen-move { from { left: 0; opacity: 1; } to { left: 100%; opacity: 1; } }
@keyframes pen-bob { 50% { transform: translateY(-.12em) rotate(-4deg); } }
@keyframes pen-out { from { opacity: 1; } to { opacity: 0; transform: translate(.4em, -.3em); } }
html.js:not(.reduce-motion) .hero__mark { opacity: 1; }
/* Script subheadings ("the reception", "we're getting married!") now in the typewriter body font */
.script-head { font-family: var(--body); font-style: italic; font-weight: 400; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.4; letter-spacing: .03em; }

/* Quill + a slightly quicker hand */
.footer { display: none !important; }
.quill { width: 1.5em; bottom: .3em; margin-left: -.065em; }
.hand--line .quill { width: 2.6em; bottom: .22em; }
html.js:not(.reduce-motion) .hand--names { --start: .5s; --dur: 2s; }
html.js:not(.reduce-motion) .hand--line:nth-child(2) { --start: 2.7s; --dur: 1.3s; }
html.js:not(.reduce-motion) .hand--line:nth-child(3) { --start: 4.15s; --dur: 1.2s; }
html.js:not(.reduce-motion) .hand .pencil { animation: pen-move var(--dur) cubic-bezier(.45, .1, .55, .9) var(--start) forwards, pen-bob .28s ease-in-out var(--start) 5, pen-out .4s ease calc(var(--start) + var(--dur)) forwards; }
.hero__write { padding-bottom: clamp(28px, 3.6vw, 52px); }

/* ==========================================================================
   Texas + New Orleans jazz doodles (replace the wall of saxophones)
   ========================================================================== */
.doodle { display: inline-block; width: 22px; height: 22px; color: var(--cream); flex: none; vertical-align: middle; overflow: visible; }
.doodle--lg { width: 42px; height: 42px; }
.doodle--sep { width: 22px; height: 22px; opacity: .85; }
.doodle--gator.doodle--sep, .doodle--trumpet.doodle--sep { width: 28px; height: 28px; }
.doodle--bullet { width: 16px; height: 16px; }
.motif .doodle--lg { width: 44px; height: 44px; }
.motif .doodle--gator { width: 56px; height: 56px; }
.motif__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); align-self: center; }
.attire .doodle--lg { width: 50px; height: 50px; }
.route__sax.doodle--gator { width: 30px; height: 30px; top: -14px; right: -22px; transform: none; }
.route__sax.doodle--hat { width: 26px; height: 26px; top: -12px; left: -20px; }
.curtain__sax { width: 52px; height: 52px; }
.list li .doodle { width: 14px; height: 14px; }
.guide__name .doodle { width: 15px; height: 15px; }
.route { gap: 38px; }

/* No italics anywhere */
em, i, .lede, .script-head, .script--link, .twocol em, .gallery__cap em, .member__note em, .guide__cat em,
.timeline__title, .rsvp__note, .ph__note, .qa__inner, .panel--intro em { font-style: normal !important; }

/* Travel page: everything in the typewriter body font */
body[data-page="travel"] #main .h1, body[data-page="travel"] #main .h2, body[data-page="travel"] #main .h3,
body[data-page="travel"] #main .tabs button, body[data-page="travel"] #main .guide__name { font-family: var(--body); letter-spacing: .02em; }
body[data-page="travel"] #main .h1 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; }
body[data-page="travel"] #main .h2 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; line-height: 1.35; }
body[data-page="travel"] #main .h3 { font-size: 16px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }
body[data-page="travel"] #main .tabs button { font-size: clamp(14px, 1.15vw, 16px); }
body[data-page="travel"] #main .guide__name { font-size: 16px; font-weight: 700; }

/* Dots between navigation-style tabs */
.sep-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; align-self: center; }
/* "take a peek at the dress code!" — body font, burgundy (lifted so it reads on the dark brown) */
.script--link { font-family: var(--body) !important; font-size: 1em !important; color: #C4566B; text-decoration: underline; text-decoration-color: rgba(196, 86, 107, .5); text-underline-offset: 3px; white-space: normal; }
.script--link:hover { color: #D9798B; }
.details a.script--link { color: #C4566B; text-decoration-color: rgba(196, 86, 107, .5); }
.details a.script--link:hover { color: #D9798B; }

/* Registry */
.registry { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 28px; width: 100%; }
.registry__item { display: grid; justify-items: center; gap: 16px; padding: 36px 24px; border: 1px solid var(--rule-strong); outline: 1px solid var(--rule); outline-offset: -8px; text-align: center; }
.nav__links a.nav__rsvp.lc, .cta.lc { text-transform: lowercase !important; }
@media (max-width: 1080px) { .nav__links { display: none; } .nav__toggle { display: inline-block; } }

/* Navigation all lowercase */
.nav__links a, .menu__list a { text-transform: lowercase !important; letter-spacing: .08em; }
.menu__list a { letter-spacing: 0; }

/* ==========================================================================
   REGISTRY — shoppable gift wall that animates in as you scroll
   ========================================================================== */
.registry-page { max-width: 1240px; }
.gifts__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 14px 0; border-block: 1px solid var(--rule); margin-bottom: clamp(28px, 3vw, 44px); }
.gifts__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 400 12px/1 var(--body); letter-spacing: .06em; padding: 10px 14px; min-height: 38px; border: 1px solid var(--rule-strong); color: var(--cream); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--ivory); }
.gifts__sort { display: inline-flex; align-items: center; gap: 10px; }
.gifts__sort select { font: 400 13px var(--body); color: var(--ivory); background: transparent; border: 1px solid var(--rule-strong); padding: 9px 30px 9px 12px; min-height: 38px; letter-spacing: 0; text-transform: none; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.gifts__sort select option { color: #1a110b; }
.gifts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); }
@media (max-width: 1000px) { .gifts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.gift__link { display: grid; gap: 6px; text-decoration: none; color: var(--ivory); height: 100%; align-content: start; }
.gift__photo { display: block; aspect-ratio: 1; background: #F4EFE8; overflow: hidden; box-shadow: 0 0 0 1px var(--rule-strong); margin-bottom: 8px; }
.gift__photo img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform 1.1s var(--ease); }
.gift__link:hover .gift__photo img { transform: scale(1.06); }
.gift__brand { color: var(--tan); }
.gift__name { font-size: 14px; line-height: 1.45; }
.gift__price { font-weight: 700; font-size: 14px; }
.gift--fund .gift__price { font-weight: 400; color: var(--cream); font-size: 13px; }
.gift__shop { justify-self: start; margin-top: 4px; font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 5px; border-bottom: 1px solid currentColor; transition: color .4s var(--ease); }
.gift__link:hover .gift__shop { color: var(--accent); }
.gifts__note { text-align: center; margin: clamp(36px, 4vw, 56px) auto 8px; max-width: 40em; }
/* The scroll animation: each gift rises, unblurs and settles in, staggered across the row */
html.js:not(.reduce-motion) .gift { opacity: 0; transform: translate3d(0, 46px, 0) scale(.96); filter: blur(4px); transition: opacity .9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), filter .9s var(--ease) var(--d, 0ms); }
html.js:not(.reduce-motion) .gift.is-in { opacity: 1; transform: none; filter: none; }
.gift[hidden] { display: none !important; }
.gift__photo.is-missing { display: grid; place-items: center; background: var(--chocolate); }
.gift__photo.is-missing::after { content: attr(data-brand); font-family: var(--display); font-size: clamp(16px, 1.6vw, 22px); color: var(--cream); padding: 12%; text-align: center; line-height: 1.5; }
.gift__photo img { object-fit: cover; padding: 0; }
