/* Coco & Slava — design tokens from brand/guidelines.txt */
:root {
  --ivory: #F7F3EB;
  --linen: #EAE2D5;
  --shell: #AA9785;
  --taupe: #77685B;
  --ink: #3E3832;
  --seaglass: #DCE5DF;
  --clay: #8F493F;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-gap: clamp(48px, 9vw, 112px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  padding-block: 0;
  padding-inline: var(--gutter);
}
@media (min-width: 720px) { body { font-size: 18px; } }
a { color: var(--taupe); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 640px; }

/* Header */
.nav {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; align-items: center;
  padding-block: 20px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav a { color: var(--taupe); text-decoration: none; padding: 6px 2px; }
.nav a:hover { color: var(--ink); }
.nav .nav-rsvp { border: 1px solid var(--taupe); padding: 8px 16px; border-radius: 3px; }

/* Type */
.serif { font-family: var(--serif); font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--ink); text-wrap: balance; }
h1.names {
  text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.08;
  font-size: clamp(36px, 7.5vw, 76px); color: var(--taupe);
}
h1.names .wrapnames { display: inline; }
@media (max-width: 480px) { h1.names .break { display: block; } }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
p { margin: 0; max-width: 62ch; }
.lede { font-size: 1.05em; }
.label { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe); }
.muted { color: var(--taupe); }
.small { font-size: 15px; }

/* Hero */
.hero { text-align: center; display: grid; justify-items: center; gap: 28px; padding-block: clamp(32px, 6vw, 72px) var(--section-gap); }
.hero .shell { width: clamp(110px, 18vw, 190px); color: var(--shell); }
.hero .sub { letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; font-weight: 500; color: var(--ink); }
.hero .when { font-family: var(--serif); font-weight: 500; display: grid; gap: 6px; }
.hero .when .date { font-size: clamp(26px, 3.4vw, 34px); }
.hero .when .place { font-size: clamp(20px, 2.6vw, 26px); }
.hero .lede { max-width: 48ch; }
.hero .explore { font-size: 15px; }

/* Buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 3px;
  background: var(--taupe); color: var(--ivory); border: 1px solid var(--taupe);
  font: 500 15px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 200ms, color 200ms;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.ghost { background: transparent; color: var(--taupe); }
.btn.ghost:hover { background: var(--linen); color: var(--ink); }
label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--ivory); border: 1px solid var(--taupe); border-radius: 3px; padding: 12px 14px;
}
textarea { min-height: 96px; resize: vertical; }
.field { display: grid; gap: 4px; }
.hint { font-size: 14px; color: var(--taupe); }
.error { color: var(--clay); font-size: 15px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.choice { display: flex; gap: 12px; flex-wrap: wrap; }
.choice label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  border: 1px solid var(--taupe); border-radius: 3px; padding: 10px 16px; cursor: pointer; font-weight: 400;
}
.choice input { accent-color: var(--taupe); margin: 0; }
.choice label:has(input:checked) { background: var(--taupe); color: var(--ivory); }

/* Sections */
section { padding-block: var(--section-gap) 0; }
section > .wrap { display: grid; gap: 28px; }
.rule { border: 0; border-top: 1px solid var(--linen); margin: 0; }
.band { background: var(--linen); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-block: var(--section-gap); }
.band + section { padding-top: var(--section-gap); }
.two { display: grid; gap: 28px 48px; }
@media (min-width: 860px) { .two { grid-template-columns: 5fr 7fr; align-items: start; } }

/* Itinerary rows */
.rows { display: grid; border-top: 1px solid var(--linen); }
.row { display: grid; gap: 4px 24px; padding-block: 20px; border-bottom: 1px solid var(--linen); min-width: 0; }
@media (min-width: 720px) { .row { grid-template-columns: 180px 1fr; } }
.row .d { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
.row .d small { display: block; font-family: var(--sans); font-size: 14px; color: var(--taupe); margin-top: 2px; }
.row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; min-width: 0; }
.row li time { color: var(--taupe); font-variant-numeric: tabular-nums; font-size: 15px; padding-top: 2px; }
.row li b { font-weight: 500; }
.row li span { display: block; color: var(--taupe); font-size: 15px; }

/* Facts */
.facts { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fact { display: grid; gap: 6px; min-width: 0; }
.fact h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe); }
.fact p { font-size: 16px; }
.list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Photo */
.photo { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; background: var(--seaglass); border-radius: 3px; display: grid; place-items: center; color: var(--ink); font-size: 15px; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--linen); }
.faq details { border-bottom: 1px solid var(--linen); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--taupe); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; }

/* Footer */
footer { text-align: center; padding-block: var(--section-gap) 56px; display: grid; gap: 14px; justify-items: center; }
footer .shell { width: 44px; color: var(--shell); }
footer .small { color: var(--taupe); }

/* Card pages (login, rsvp) */
.card-page { min-height: 100svh; display: grid; place-items: center; padding-block: 40px; }
.card { width: 100%; max-width: 560px; display: grid; gap: 24px; }
.card .shell { width: 80px; color: var(--shell); margin: 0 auto; }
.steps { display: grid; gap: 28px; }
.guest { border: 1px solid var(--linen); border-radius: 3px; padding: 20px; display: grid; gap: 16px; }
.guest h3 { font-size: 22px; }
.review dl { margin: 0; display: grid; gap: 10px; }
.review dt { font-size: 14px; color: var(--taupe); }
.review dd { margin: 0; }
.notice { background: var(--seaglass); color: var(--ink); padding: 14px 16px; border-radius: 3px; }
[hidden] { display: none !important; }
