/* Page Lemon template: Aisle. Edit the tokens below; the rest reads from them. */
:root {
  --paper: #FFFFFF;          /* page ground */
  --ink: #1B1340;            /* text, outlines, footer ground */
  --tangerine: #FF6B2C;      /* block colour: sunset orange */
  --pink: #FF9ACB;           /* block colour: bubblegum */
  --cobalt: #1D3FD1;         /* block colour: cobalt, white text on it */
  --sun: #FFD23F;            /* confetti accent and chips, never body text */
  --muted: #4A4670;          /* secondary text on white */
  --font-display: "Abril Fatface", Georgia, serif;   /* fat display serif */
  --font-body: "Nunito Sans", system-ui, sans-serif; /* rounded, friendly body */
  --gutter: 20px;
  --max: 1200px;
  --radius: 28px;
  --hard: 6px 6px 0 var(--ink);
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .block-cobalt :focus-visible, .footer :focus-visible { outline-color: var(--sun); }
p { margin: 0 0 1em; }
ol, ul { padding: 0; margin: 0; }
address { font-style: normal; }

.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: .98; letter-spacing: -.005em; margin: 0 0 .45em; }
h1 { font-size: clamp(3rem, 11vw, 8.5rem); }
h2 { font-size: clamp(2.2rem, 6.4vw, 4.8rem); }
h3 { font-size: 1.7rem; line-height: 1.1; }
.eyebrow { font: 700 .82rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .9em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 38ch; }
.signature { font-family: var(--font-display); font-size: 1.9rem; margin: .5em 0 0; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.wordmark { font: 400 1.6rem/1 var(--font-display); text-decoration: none; }
.wordmark::after { content: ""; display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: var(--tangerine); margin-left: .14em; vertical-align: .55em; }
.desktop-nav { display: none; align-items: center; gap: 6px; }
.desktop-nav a { font-weight: 700; text-decoration: none; padding: .4em .5em; border-bottom: 3px solid transparent; }
.desktop-nav a:hover { border-color: var(--tangerine); }
.desktop-nav a[aria-current="page"] { border-color: var(--ink); }
.desktop-nav .button { margin-left: 10px; padding: .6em 1.1em; min-height: 44px; }
.mobile-nav summary { list-style: none; cursor: pointer; font-weight: 700; border: 3px solid var(--ink); border-radius: 999px; padding: .5em 1.1em; min-height: 44px; display: inline-flex; align-items: center; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--pink); }
.mobile-nav nav { display: grid; gap: 4px; padding: 14px 0 4px; }
.mobile-nav nav a { font: 700 1.2rem/1.2 var(--font-body); text-decoration: none; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.mobile-nav nav .button { justify-content: center; margin-top: 8px; }
@media (min-width: 900px) {
  .desktop-nav { display: flex; }
  .mobile-nav { display: none; }
}

/* Buttons and chips */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.4em; background: var(--tangerine); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; font: 700 1.05rem/1.1 var(--font-body); text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.button.light { background: #fff; }
.button.pink { background: var(--pink); }
.block-tangerine .button { background: #fff; }
.text-link { font-weight: 700; }
.chip { display: inline-flex; align-items: center; min-height: 44px; background: var(--sun); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: .4em 1.05em; font: 700 1rem/1.2 var(--font-body); transform: rotate(-2deg); }
.chip-btn { cursor: pointer; font-family: inherit; }
.chip-btn:hover { background: #fff; }

/* Colour blocks: each section sits on one ground */
.block { position: relative; padding: clamp(60px, 9vw, 120px) 0; overflow: hidden; }
.block > .wrap { position: relative; }
.block-white { background: var(--paper); }
.block-white + .block-white { padding-top: 0; }
.block-pink { background: var(--pink); }
.block-tangerine { background: var(--tangerine); }
.block-cobalt { background: var(--cobalt); color: #fff; }
.block-cobalt a:not(.button) { color: #fff; }
.block-cobalt .button { color: var(--ink); }

/* Hero */
.hero { background: var(--cobalt); color: #fff; padding-top: clamp(32px, 6vw, 72px); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("art/confetti.svg") 0 0 / 240px auto repeat; opacity: .22; pointer-events: none; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero .button { color: var(--ink); }
.hero .chip-btn { color: var(--ink); }
.hero-art { position: relative; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

/* Photo frames: CSS gives the frame its ratio so a real photo drops in */
.frame { margin: 0; border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--hard); }
.photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.photo.portrait { aspect-ratio: 4 / 5; }
.tilt { transform: rotate(-2deg); }

/* Confetti burst: progressive enhancement, triggered by the chip button in script.js */
.burst { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; pointer-events: none; overflow: visible; }
.burst-piece { opacity: 0; transform-box: view-box; }
.hero.is-burst .burst-piece { animation: burst 1100ms cubic-bezier(.2, .7, .3, 1) both; }
.bp1 { --dx: -160px; --dy: -130px; }
.bp2 { --dx: 150px; --dy: -120px; }
.bp3 { --dx: -190px; --dy: 30px; }
.bp4 { --dx: 180px; --dy: 70px; }
.bp5 { --dx: -90px; --dy: 170px; }
.bp6 { --dx: 100px; --dy: -190px; }
.bp7 { --dx: 40px; --dy: 180px; }
.bp8 { --dx: -30px; --dy: -200px; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(260deg); }
}

/* Split layout */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Cards: white tiles with a hard edge */
.cards { list-style: none; display: grid; gap: 22px; margin-top: 32px; }
.card { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--hard); }
.card .time { display: block; font: 400 2.2rem/1 var(--font-display); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.card p:last-child { margin-bottom: 0; }
.more { margin-top: 32px; }
.card .text-link { display: inline-block; margin-top: 8px; }
@media (min-width: 900px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

/* Schedule */
.schedule { list-style: none; margin-top: 28px; border-top: 3px solid var(--ink); }
.schedule li { display: grid; grid-template-columns: 5.4rem 1fr; gap: 6px 20px; padding: 20px 0; border-bottom: 3px solid var(--ink); }
.schedule .time { font: 400 1.9rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.schedule h3 { margin-bottom: 4px; }
.schedule p { margin: 0; }
@media (min-width: 720px) { .schedule li { grid-template-columns: 8rem 1fr; } }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 8px; list-style: none; }
.swatch { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 700; }
.swatch::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); }
.sw-tangerine::before { background: var(--tangerine); }
.sw-pink::before { background: var(--pink); }
.sw-sun::before { background: var(--sun); }

/* FAQ, no JS needed */
.faq { margin-top: 28px; }
.faq details { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; padding: 0 22px; margin-bottom: 14px; }
.faq summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 2rem/1 var(--font-display); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 20px; margin: 0; max-width: 62ch; }

/* Registry */
.gift-list { display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 900px) { .gift-list.two { grid-template-columns: 1fr 1fr; } }
.amounts { list-style: none; display: grid; gap: 14px; margin: 24px 0; }
.amounts li { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: baseline; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; padding: 18px 22px; }
.amounts .price { font: 400 2rem/1 var(--font-display); }
.amounts span:last-child { font-weight: 700; }

/* Forms: the designed form lives inside a template and stays inert in the demo */
.slot { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--hard); max-width: 62ch; }
.rsvp-form { display: grid; gap: 14px; }
.rsvp-form label { font-weight: 700; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; min-height: 48px; width: 100%; }
.rsvp-form textarea { min-height: 110px; }
.rsvp-form .button { justify-self: start; cursor: pointer; }

/* Footer */
.footer { background: var(--ink); color: #fff; padding: 64px 0 28px; }
.footer a:not(.button) { color: #fff; }
.footer .button { color: var(--ink); }
.footer .wordmark::after { background: var(--pink); }
.footer-grid { display: grid; gap: 30px; }
.footer-grid p { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .3); font-size: .95rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: start; gap: 40px; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero.is-burst .burst-piece { opacity: 0; }
  .button:hover { transform: none; }
}
