/* Ben's 60th — teal and brass
   Hosted on GraceInvite. Nothing of ours appears on this page. */

:root {
  --teal: #0f3d3e;
  --teal-2: #0c3233;
  --teal-3: #0a2b2c;
  --line: rgb(243 235 216 / 0.14);
  --brass: #c9a227;
  --brass-2: #e0bb45;
  --sand: #f3ebd8;
  --muted: rgb(243 235 216 / 0.68);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--teal); color: var(--sand); font-family: var(--sans); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

h1, h2, h3, .numeral, .footer__numeral, .footer__name, .count b, .decade__year { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; }
h3 { font-size: 1.4rem; }
p { margin: 0; }
p + p { margin-top: 1rem; }
a { color: inherit; }

.eyebrow { margin: 0 0 1rem; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); }
.lead { color: var(--muted); margin-top: 1.25rem; max-width: 52ch; }
.lead strong { color: var(--brass); font-weight: 500; }
.fine { margin-top: 1rem; font-size: 0.82rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0 1.5rem;
  border-radius: 999px; border: 1px solid transparent; font: 500 0.88rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--brass { background: var(--brass); color: var(--teal-3); box-shadow: 0 12px 30px rgb(201 162 39 / 0.3); }
.btn--brass:hover { background: var(--brass-2); }
.btn--ghost { border-color: rgb(243 235 216 / 0.35); color: var(--sand); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.link-pill {
  display: inline-flex; align-items: center; min-height: 2.3rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.82rem; text-decoration: none; color: var(--sand); transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.link-pill:hover { border-color: var(--brass); background: var(--brass); color: var(--teal-3); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.25rem; color: var(--sand); transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease; }
.nav.is-solid { background: rgb(15 61 62 / 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 0.65rem 1.25rem; }
.nav__brand { font-family: var(--serif); font-size: 1.3rem; font-style: italic; text-decoration: none; }
.nav__brand span { font-style: normal; color: var(--brass); margin-left: 0.3rem; }
.nav__links { display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none; font-size: 0.84rem; }
.nav__links a { text-decoration: none; opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.nav__links a:hover { opacity: 1; color: var(--brass); }
.nav__cta { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--brass); color: var(--brass); opacity: 1 !important; }
.nav__toggle { display: none; width: 2.5rem; height: 2.5rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 30%; right: 30%; height: 1.5px; background: currentColor; transition: transform 0.3s ease, top 0.3s ease; }
.nav__toggle span:first-child { top: 42%; }
.nav__toggle span:last-child { top: 58%; }
.nav__toggle.is-open span:first-child { top: 50%; transform: rotate(45deg); }
.nav__toggle.is-open span:last-child { top: 50%; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1.25rem; background: rgb(15 61 62 / 0.98); box-shadow: 0 20px 40px rgb(0 0 0 / 0.4); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links li { border-top: 1px solid var(--line); }
  .nav__links a { display: block; padding: 0.9rem 0; font-family: var(--serif); font-size: 1.4rem; opacity: 1; }
  .nav__cta { border: 0; padding: 0.9rem 0; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; isolation: isolate; background: linear-gradient(165deg, var(--teal), var(--teal-3) 75%); }
.hero__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 35%, rgb(201 162 39 / 0.42), transparent 55%); animation: breathe 8s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.15); opacity: 1; } }
.hero__inner { padding: 6rem 1.25rem 4rem; max-width: 60rem; }
.numeral { font-size: clamp(9rem, 38vw, 20rem); line-height: 0.8; color: var(--brass); letter-spacing: -0.06em; margin-top: 0.5rem; text-shadow: 0 30px 60px rgb(0 0 0 / 0.3); }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-style: italic; margin-top: 1rem; color: var(--sand); }
.hero__when { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); }
.hero__when .dot { margin: 0 0.5rem; color: var(--brass); }
.count { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.75rem; }
.count span { display: grid; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.count b { font-size: 2.2rem; color: var(--sand); }
.count__done { font-family: var(--serif); font-size: 1.6rem !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--brass) !important; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* Layout */
.section { padding: 5rem 1.25rem; }
.section--alt { background: var(--teal-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--rsvp { background: var(--sand); color: var(--teal-3); }
.section--rsvp .eyebrow { color: #8a6d12; }
.section--rsvp .lead, .section--rsvp .fine { color: #5b6664; }
.section--rsvp .lead strong { color: var(--teal-3); }
.wrap { max-width: 68rem; margin: 0 auto; }
.wrap--narrow { max-width: 44rem; }
.wrap--split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .wrap--split { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* Decades */
.decades { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .decades { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.decade { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.decade__year { font-size: 1.9rem; color: var(--brass); line-height: 1; padding-top: 0.15rem; }
.decade p { color: var(--muted); font-size: 0.95rem; }

/* Timeline */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0.5rem; bottom: 0.5rem; left: 6.35rem; width: 1px; background: var(--line); }
.timeline__row { display: grid; grid-template-columns: 5.5rem 1.7rem 1fr; gap: 0 0.5rem; padding: 1.1rem 0; }
.timeline__time { font-size: 0.76rem; letter-spacing: 0.08em; color: var(--brass); padding-top: 0.4rem; text-align: right; font-variant-numeric: tabular-nums; }
.timeline__dot { width: 0.7rem; height: 0.7rem; margin: 0.45rem auto 0; border-radius: 999px; background: var(--brass); box-shadow: 0 0 0 4px var(--teal-2); }
.timeline__body p { margin-top: 0.3rem; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 520px) {
  .timeline::before { left: 0.85rem; }
  .timeline__row { grid-template-columns: 1.7rem 1fr; }
  .timeline__time { grid-column: 2; text-align: left; padding-top: 0; order: -1; }
  .timeline__dot { grid-row: 1 / span 2; }
}

/* Cards */
.venue__grid, .gifts__grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .venue__grid { grid-template-columns: 1.3fr 1fr; } .gifts__grid { grid-template-columns: 1fr 1fr; } }
.card { padding: 1.75rem; border: 1px solid var(--line); border-radius: 1.25rem; background: rgb(0 0 0 / 0.14); }
.card__label { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.75rem; }
.card h3 + p { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.card__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

/* Dress */
.dress__figure { margin: 0; overflow: hidden; border-radius: 1.25rem; aspect-ratio: 4 / 5; background: var(--teal-3); }
.dress__figure img { width: 100%; height: 100%; object-fit: cover; }
.dress__text > p:not(.eyebrow) { color: var(--muted); margin-top: 1.2rem; max-width: 46ch; }
.swatches { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.swatches li { display: grid; gap: 0.5rem; justify-items: center; }
.swatches span { width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid rgb(243 235 216 / 0.25); }

/* FAQ */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.5rem; transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; max-width: 60ch; }

/* Form (on sand) */
.form { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__row.is-muted { opacity: 0.4; }
.field { display: grid; gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #5b6664; padding: 0; }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.7; }
.field input, .field select, .field textarea { width: 100%; min-height: 2.9rem; padding: 0.6rem 0.9rem; border: 1px solid #d3cbb8; border-radius: 0.8rem; background: #fff; color: var(--teal-3); font: inherit; font-size: 0.95rem; transition: border-color 0.2s ease; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa3a1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.opts { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border: 1px solid #d3cbb8; border-radius: 0.8rem; background: #fff; cursor: pointer; font-size: 0.95rem; transition: border-color 0.2s ease, background-color 0.2s ease; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt::before { content: ""; width: 1rem; height: 1rem; border-radius: 999px; border: 1px solid #9aa3a1; flex-shrink: 0; transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.opt:has(input:checked) { border-color: var(--teal); background: rgb(15 61 62 / 0.06); }
.opt:has(input:checked)::before { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.form__error { font-size: 0.85rem; color: #9a3a2e; }
.form .btn { justify-self: start; }
.form .fine { margin-top: -0.5rem; }
.success { margin-top: 2.5rem; padding: 2rem; border: 1px solid #d3cbb8; border-radius: 1.25rem; background: #fff; text-align: center; }
.success__mark { width: 3rem; height: 3rem; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 999px; background: var(--brass); color: var(--teal-3); font-size: 1.3rem; }
.success h3 { font-size: 2rem; }
.success p { color: #5b6664; margin-top: 0.75rem; }

/* Calendar */
.calendar { text-align: center; }
.calendar h2 { margin: 0 auto; }
.calendar > p:not(.eyebrow) { color: var(--muted); margin: 1rem auto 0; max-width: 44ch; }
.calendar__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.75rem; }

/* Footer */
.footer { padding: 4rem 1.25rem 3rem; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; background: var(--teal-3); }
.footer__numeral { font-size: 4rem; color: var(--brass); line-height: 1; letter-spacing: -0.05em; }
.footer__name { font-size: 1.8rem; font-style: italic; color: var(--sand); margin: 0.25rem 0 0.5rem; }
.footer__tag { margin-top: 1.25rem; color: var(--brass); letter-spacing: 0.04em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: 0.15s; }
.hero .numeral.reveal { transition-delay: 0.2s; }
.hero h1.reveal { transition-delay: 0.35s; }
.hero .hero__when.reveal { transition-delay: 0.45s; }
.hero .count.reveal { transition-delay: 0.55s; }
.hero .hero__cta.reveal { transition-delay: 0.65s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
