/*
 * Celebrate: Occasions. The seal pressed in plum: an afternoon party on lilac,
 * an evening do in midnight plum lit by candle amber. Prices read as a run
 * sheet. Motion character: the lights come on.
 */
:root {
  color-scheme: light dark;
  --ground: light-dark(#efe2f5, #160a1f);
  --card: light-dark(#fbf5fd, #24112f);
  --panel: light-dark(#4a1a63, #2a1238);
  --panel-text: #fbf3ff;
  --panel-muted: light-dark(#e3cdef, #d9c4e6);
  --text: light-dark(#2a0f3a, #f1e6f7);
  --muted: light-dark(#5a3a6e, #c7b0d6);
  --plum: light-dark(#6a2f94, #c59be6);
  --candle: #f2b54a;
  --line: light-dark(#d6c0e2, #3c2150);
  --focus: light-dark(#6a2f94, #f2b54a);
  --seal-line: var(--text);
  --note-bg: light-dark(#fbf5fd, #24112f);
  --note-text: var(--text);
  --hover-wash: light-dark(rgb(42 15 58 / .07), rgb(241 230 247 / .08));
  --select-bg: #f2b54a;
  --select-text: #2a0f3a;
  --scroll-thumb: light-dark(#b98fd3, #4a2a5e);
  --button-bg: #f2b54a;
  --button-text: #2a0f3a;

  --display: "Caprasimo", "Cooper Black", "Georgia", serif;
  --body: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 84rem;
  --shadow: 0 1px 2px rgb(42 15 58 / .14), 0 18px 34px -20px rgb(42 15 58 / .55);
}

body { background: var(--ground); color: var(--text); font-family: var(--body); font-weight: 300; font-size: 1.0625rem; line-height: 1.65; }
strong, b { font-weight: 600; }
h1, h2, h3, .price, .step-no, .extra-name { font-family: var(--display); font-weight: 400; }
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.75rem); line-height: 1.05; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .7rem var(--gutter); background: var(--ground); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-seal { width: 2.75rem; flex: none; transition: transform .35s var(--ease-press); }
.brand:hover .brand-seal { transform: rotate(-12deg); }
.brand-name { font-family: var(--display); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.1; }
.top-nav { display: none; gap: 1.5rem; }
.top-nav a { text-decoration: none; font-weight: 400; padding: .5rem 0; background: linear-gradient(currentColor 0 0) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease-out); }
.top-nav a:hover { background-size: 100% 2px; }
.top-actions { display: flex; align-items: center; gap: .25rem; }
.top-home { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 400; font-size: .9375rem; padding: .35rem .55rem .35rem .35rem; border-radius: 999px; transition: background-color .15s ease-out; min-height: 2.75rem; }
.top-home:hover { background: var(--hover-wash); }
.top-home-seal { width: 2rem; flex: none; transition: transform .35s var(--ease-press); }
.top-home:hover .top-home-seal { transform: rotate(-14deg); }
.top-call { display: none; padding: .6rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem; background: var(--button-bg); color: var(--button-text); transition: transform .15s var(--ease-out); }
.top-call:hover { transform: translateY(-1px) rotate(-1deg); }
@media (max-width: 479px) { .top-home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (min-width: 640px) { .top-call { display: inline-block; } }
@media (min-width: 1040px) { .top-nav { display: flex; margin-right: 1rem; } }

/* ---- hero: the hall, and the lights coming on ---- */
.hero { position: relative; }
.hall { position: relative; overflow: hidden; }
.hall-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lights-off { position: absolute; inset: 0; background: #12061b; opacity: 0; pointer-events: none; }
.panel {
  position: relative; z-index: 2; margin: -2.5rem var(--gutter) 0; padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--panel); color: var(--panel-text); border-radius: 1.25rem; box-shadow: var(--shadow);
  display: grid; gap: 1rem; justify-items: start;
  --focus: #f2b54a; --note-bg: #fbf5fd; --note-text: #2a0f3a;
}
.wax { position: absolute; right: clamp(-.5rem, -1vw, -1rem); top: clamp(-2.25rem, -3vw, -1.5rem); width: clamp(5.5rem, 12vw, 8rem); rotate: -10deg; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); }
.wax .seal { --seal-line: var(--text); }
.string { display: flex; gap: clamp(.6rem, 2vw, 1rem); margin-bottom: .25rem; }
.string li { width: .65rem; height: .65rem; border-radius: 50%; background: var(--candle); box-shadow: 0 0 0 3px rgb(242 181 74 / .18); }
.string li:nth-child(3n+2) { background: #e3cdef; box-shadow: 0 0 0 3px rgb(227 205 239 / .16); }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5rem); line-height: 1.02; max-width: 12ch; }
.panel .lede { max-width: 40ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 300; }
.from { color: var(--panel-muted); }
.from strong { font-family: var(--display); font-weight: 400; font-size: 1.75rem; color: var(--candle); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.button { display: inline-flex; align-items: center; padding: .95rem 1.5rem; border-radius: 999px; background: var(--button-bg); color: var(--button-text); font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease-press); }
.button:hover { transform: translateY(-2px) rotate(-1deg); }
.button:active { transform: scale(.97); }
.text-link { display: inline-block; font-weight: 400; padding: .7rem 0; color: inherit; }
@media (min-width: 900px) {
  .hall-img { aspect-ratio: auto; height: clamp(36rem, calc(100svh - 4.5rem), 58rem); }
  .panel { position: absolute; left: var(--gutter); bottom: clamp(2rem, 5vw, 4rem); margin: 0; width: min(38rem, 48vw); }
}

/* ---- the run sheet ---- */
.prices { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) var(--gutter) clamp(3rem, 6vw, 5rem); display: grid; gap: 2rem; }
.prices-head { display: grid; gap: .75rem; max-width: 44rem; }
.runsheet { display: grid; }
.rung { display: grid; gap: .35rem 0; padding: 0 0 2rem 1.75rem; position: relative; }
.rung::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: 0; width: 2px; background: var(--line); }
.rung::after { content: ""; position: absolute; left: .07rem; top: .3rem; width: .8rem; height: .8rem; border-radius: .2rem; background: var(--plum); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--ground); }
.rung:last-child::before { display: none; }
.when { font-weight: 600; color: var(--plum); font-size: .9688rem; }
.when span { display: inline; }
.rung-body { background: var(--card); border-radius: 1rem; padding: 1.25rem 1.35rem; box-shadow: var(--shadow); display: grid; gap: .6rem; max-width: 52rem; transition: transform .25s var(--ease-press); }
.rung-body:hover { transform: translateY(-3px); }
.rung-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.rung h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.1; }
.price { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.75rem); line-height: 1; color: var(--plum); font-variant-numeric: lining-nums; }
.price--words { font-family: var(--body); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.who { font-weight: 400; }
.turn { font-size: .9375rem; color: var(--muted); }
@media (min-width: 760px) {
  .rung { grid-template-columns: 10rem minmax(0, 1fr); column-gap: 2.75rem; padding-left: 0; }
  .rung::before { left: 11.33rem; }
  .rung::after { left: 10.95rem; }
  .when { text-align: right; padding-top: .9rem; }
  .when span { display: block; font-weight: 300; font-size: .875rem; }
}
.not-included { background: var(--card); border-radius: 1rem; padding: 1.25rem 1.35rem; display: grid; gap: .5rem; max-width: 52rem; box-shadow: inset 0 0 0 2px var(--line); }
.not-included h3 { font-family: var(--body); font-weight: 600; font-size: 1.0625rem; }
.suggest { color: var(--muted); font-size: .9375rem; }
@media (min-width: 760px) { .not-included { margin-left: 12.75rem; } }

/* ---- invitations: tent cards ---- */
.extras { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--gutter); display: grid; gap: 2rem; }
.extras-list { display: grid; gap: 2rem; }
.extra { display: grid; gap: .75rem; align-content: start; max-width: 32rem; }
.place-card { position: relative; background: var(--card); border-radius: .35rem; padding: 1.75rem 1.25rem 1.25rem; box-shadow: var(--shadow); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; transition: transform .3s var(--ease-press); }
.place-card::before { content: ""; position: absolute; left: 0; right: 0; top: .7rem; height: 1px; background: var(--line); }
.extra:hover .place-card { transform: rotate(-1.5deg) translateY(-2px); }
.extra-name { font-size: 1.5rem; line-height: 1.15; }
@media (min-width: 760px) { .extras-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- booking ---- */
.booking { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--gutter); display: grid; gap: 2rem; justify-items: start; }
.steps { display: grid; gap: 2rem; width: 100%; }
.steps li { display: grid; gap: .35rem; align-content: start; }
.step-no { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--panel); color: var(--candle); font-size: 1.75rem; line-height: 1; }
.steps h3 { font-size: 1.625rem; line-height: 1.15; margin-top: .5rem; }
.steps p { max-width: 34ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* ---- family ---- */
.family { max-width: var(--max); margin: 0 auto clamp(2rem, 5vw, 4rem); width: calc(100% - 2 * var(--gutter)); padding: clamp(1.75rem, 4vw, 3rem); background: var(--card); border-radius: 1.25rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.family h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.family .dock { margin-top: .75rem; }
.dock-name { font-weight: 600; }

/* ---- footer ---- */
.foot { max-width: var(--max); margin: 0 auto; padding: 2rem var(--gutter) 3rem; display: grid; gap: 1.25rem; align-items: center; }
.foot-brand { display: flex; gap: 1rem; align-items: center; }
.foot-seal { width: 3.5rem; flex: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot-links a { display: inline-block; padding: .7rem 0; }
.foot-note { font-size: .9375rem; color: var(--muted); }
@media (min-width: 900px) { .foot { grid-template-columns: auto 1fr; } .foot-links { justify-content: flex-end; } .foot-note { grid-column: 1 / -1; } }

/* ---- arrival: the hall is dim, the string of lights comes on, then the words ---- */
@media (prefers-reduced-motion: no-preference) {
  .lt-ready .lights-off { animation: lights-on 1.4s ease-out both; }
  .lt-ready .string li { animation: bulb .5s ease-out both; animation-delay: calc(.25s + var(--b) * 75ms); }
  .lt-ready .panel { animation: rise .8s var(--ease-out) both; animation-delay: .1s; }
  .lt-ready .wax { animation: wax .6s var(--ease-press) both; animation-delay: 1.2s; }
  .lt-ready .panel > :not(.string):not(.wax) { animation: rise .7s var(--ease-out) both; animation-delay: calc(.55s + var(--w, 0) * 70ms); }
  .rung.lt-arrived::after { animation: pop .5s var(--ease-press) both; }
}
@media (prefers-reduced-motion: reduce) {
  .lt-ready .hero { animation: fade .2s ease-out both; }
}
.panel > :nth-child(3) { --w: 0; } .panel > :nth-child(4) { --w: 1; } .panel > :nth-child(5) { --w: 2; } .panel > :nth-child(6) { --w: 3; } .panel > :nth-child(7) { --w: 4; }
.string li:nth-child(1) { --b: 0; } .string li:nth-child(2) { --b: 1; } .string li:nth-child(3) { --b: 2; } .string li:nth-child(4) { --b: 3; }
.string li:nth-child(5) { --b: 4; } .string li:nth-child(6) { --b: 5; } .string li:nth-child(7) { --b: 6; } .string li:nth-child(8) { --b: 7; }
.string li:nth-child(9) { --b: 8; } .string li:nth-child(10) { --b: 9; } .string li:nth-child(11) { --b: 10; } .string li:nth-child(12) { --b: 11; }
@keyframes lights-on { from { opacity: .62; } }
@keyframes bulb { from { opacity: .15; transform: scale(.5); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes wax { 0% { opacity: 0; transform: scale(1.35) rotate(-12deg); } 60% { opacity: 1; transform: scale(.95); } 100% { opacity: 1; transform: none; } }
@keyframes pop { from { transform: rotate(45deg) scale(.3); } }
@keyframes fade { from { opacity: 0; } }
[data-arrive] { --arrive-distance: 1.25rem; --arrive-duration: 650ms; }
