:root {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--ivory);
  font-synthesis: none;
  /* Three core colours; neutral shades provide borders and secondary text. */
  --ivory: #fffaf0;
  --surface: #f5f0e7;
  --charcoal: #4a4a4a;
  --ink: var(--charcoal);
  --muted: #66635e;
  --accent: var(--charcoal);
  --accent-hover: #383838;
  --line: #d8d2c8;
  --line-strong: #89847c;
  --burnt-orange: #a34f24;
  --serif: 'EB Garamond', Georgia, serif;
  /* Shared type scale: labels, body, subheadings, headings, hero names. */
  --text-label: .875rem;
  --text-body: 1rem;
  --text-subheading: 1.5rem;
  --text-heading: clamp(2rem,4vw,3rem);
  --text-display: clamp(1.5rem,7vw,4.5rem);
  --shadow: 0 20px 60px #33333312;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: var(--text-body); line-height: 1.8; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--text-heading); letter-spacing: -2px; margin: 0 0 20px; }
h2 { font-size: var(--text-heading); letter-spacing: -1.4px; margin: 16px 0 28px; }
h3 { font-size: var(--text-subheading); margin: 10px 0 8px; }
p { margin: 0 0 20px; }
.eyebrow { font-size: var(--text-label); font-weight: 500; letter-spacing: 2.2px; line-height: 1.6; margin-bottom: 16px; }
.heading-accent { color: var(--burnt-orange); font-style: italic; }
.signature { display: block; font-family: var(--serif); font-size: var(--text-subheading); color: var(--burnt-orange); margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 52px; padding: 14px 26px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--ivory); font-size: var(--text-body); letter-spacing: .5px; line-height: 1.5; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 4px 16px #33333318; }
.button span, .text-link span { transition: transform .2s ease; }
@media(hover: hover) { .button:hover span, .text-link:hover span { transform: translate(2px,-2px); } }
@media(hover: hover) { .hero .button:hover span { transform: translateY(2px); } }
.button:active { box-shadow: none; }
.header>.monogram { font-size: var(--text-heading); }
.header>.button { min-height: 56px; font-size: var(--text-body); padding: 12px 22px; background: transparent; color: var(--accent); }
.header>.button:hover { background: var(--surface); }
.button:disabled { opacity: .7; cursor: wait; }
.button.small { padding: 10px 18px; font-size: var(--text-body); gap: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px 0; transition: color .2s ease, border-color .2s ease; background: none; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--accent); font-size: var(--text-body); }
.text-link:hover { border-color: var(--accent); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-180%); padding: 12px 18px; background: var(--accent); color: white; }
.skip-link:focus { transform: translateY(0); }
.header { max-width: 1440px; margin: auto; min-height: 124px; padding: 24px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.monogram { display: inline-block; font-family: var(--serif); font-size: var(--text-subheading); letter-spacing: -2px; line-height: 1; padding: 5px; }
.monogram span { font-family: var(--serif); font-size: var(--text-subheading); padding: 0 5px; color: var(--burnt-orange); }
.monogram i { display: block; font: normal var(--text-label)/1.5 'DM Sans', sans-serif; letter-spacing: 2px; text-align: center; margin-top: 6px; }
.menu-toggle { display: none; }
.header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: var(--text-body); font-weight: 500; letter-spacing: .2px; }
.header nav a { display: inline-flex; align-items: center; min-height: 56px; padding: 8px 10px; border-bottom: 1px solid transparent; }
.header nav a:hover { border-color: var(--accent); }
.hero { overflow: hidden; display: grid; place-items: center; position: relative; isolation: isolate; min-height: 760px; max-width: 1440px; margin: 0 auto; padding: 40px 24px 72px; background: var(--ivory); color: var(--ink); }
.hero-bridge { position: absolute; left: 50%; top: 50%; width: min(110%,1300px); aspect-ratio: 2360 / 1640; transform: translate(-50%,-50%); opacity: .10; pointer-events: none; z-index: 0; }
.hero-bridge img { position: absolute; left: 50%; top: 50%; width: 69.4915%; max-width: none; height: auto; transform: translate(-50%,-50%) rotate(90deg); }
.hero-floral { position: absolute; bottom: -24px; width: clamp(150px,24vw,340px); height: auto; pointer-events: none; z-index: 1; }
.hero-floral-left { left: -24px; transform: scaleX(-1); }
.hero-floral-right { right: -24px; }
.hero-content { position: relative; z-index: 2; text-align: center; width: min(100%,1040px); padding: 0 24px; }
.hero h1 { font-family: var(--serif); font-weight: 400; color: var(--charcoal); display: flex; flex-wrap: nowrap; justify-content: center; align-items: baseline; gap: .18em; white-space: nowrap; font-size: var(--text-display); line-height: 1.1; margin: 28px 0 32px; letter-spacing: normal; }
.hero h1 > span:not(.heading-accent) { text-transform: uppercase; letter-spacing: normal; }
.hero h1 .heading-accent { font-family: inherit; font-size: 1em; line-height: inherit; color: var(--burnt-orange); font-style: normal; }
.hero .eyebrow { font-family: var(--serif); font-weight: 400; font-size: var(--text-subheading); letter-spacing: 3px; color: var(--muted); }
.hero .button { background: var(--accent); border-color: var(--accent); color: var(--ivory); min-width: 200px; }
.hero .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.hero-script { font-family: var(--serif); font-size: var(--text-subheading); font-style: italic; line-height: 1.4; max-width: 420px; margin-inline: auto; }
.hero-date { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font-size: var(--text-label); letter-spacing: 1px; margin: 26px 0; }
.hero-date i { font-size: var(--text-subheading); }
.wedding-countdown { text-align: center; padding: 44px 24px; background: var(--ivory); border-bottom: 1px solid var(--line); max-width: 960px; margin: auto; }
.wedding-countdown-units { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); max-width: 500px; margin: auto; gap: 16px; }
.wedding-countdown-units>div+div { border-left: 1px solid var(--line); }
[data-countdown-value] { color: var(--burnt-orange); display: block; font-family: var(--serif); font-size: var(--text-heading); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-label { display: block; font-size: var(--text-label); color: var(--muted); margin-top: 8px; }
.countdown-date { font-size: var(--text-label); color: var(--muted); margin: 18px 0 0; }
.story-copy>p:not(.eyebrow), .travel p:not(.eyebrow), .timeline-heading>p:last-child, .timeline-card p, details p { color: var(--muted); }
.section-wrap { max-width: 1120px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 88px; padding: 56px 32px 96px; }
.section-wrap>* { min-width: 0; }
.story-photo { margin: 0; max-width: 520px; width: 100%; justify-self: center; }
.story-photo img { width: 100%; height: auto; padding: 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--ivory); box-shadow: var(--shadow); }
.story-copy p { max-width: 46ch; }
.wedding-timeline { padding: 88px 32px; background: var(--surface); border-block: 1px solid var(--line); }
.timeline-heading { max-width: 600px; text-align: center; margin: 0 auto 40px; }
.timeline-list { list-style: none; position: relative; max-width: 860px; margin: 0 auto; padding: 0; display: grid; gap: 20px; }
.timeline-list::before { content: ''; position: absolute; top: 38px; bottom: 38px; left: 50%; border-left: 1px solid var(--line-strong); }
.timeline-moment { display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; column-gap: 24px; position: relative; }
.timeline-doodle { grid-column: 2; grid-row: 1; width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--ivory); color: var(--charcoal); z-index: 1; box-shadow: 0 0 0 7px var(--surface); }
.timeline-doodle svg { width: 46px; height: 46px; }
.timeline-card { grid-column: 1; grid-row: 1; text-align: right; padding: 12px 0; }
.timeline-moment:nth-child(even) .timeline-card { grid-column: 3; text-align: left; }
.timeline-card time { display: block; font-family: var(--serif); font-size: var(--text-subheading); line-height: 1.15; }
.timeline-guests { display: block; font-size: var(--text-label); letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }
.timeline-card p { margin: 0; }
.travel { padding-top: 96px; gap: 64px 80px; }
address { font-style: normal; margin: 24px 0 12px; }
.travel figure { margin: 0; }
.travel img { width: 100%; height: 440px; object-fit: cover; object-position: center; border-radius: 48% 48% 2px 2px; background: var(--ivory); padding: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.travel figcaption { font-size: var(--text-label); letter-spacing: .2px; line-height: 1.7; color: var(--muted); margin-top: 12px; }
.bridge-photo { max-width: 1120px; margin: 0 auto; padding: 0 32px 96px; }
.bridge-photo img { width: 100%; height: auto; border-radius: 2px; background: var(--ivory); padding: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bridge-photo figcaption { text-align: center; font-size: var(--text-label); letter-spacing: .2px; line-height: 1.7; color: var(--muted); margin-top: 12px; }
.bridge-photo figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.travel figcaption a, details p a { text-decoration: underline; text-underline-offset: 3px; }
.travel details:first-of-type { margin-top: 24px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; padding: 22px 0; transition: color .2s ease; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 20px; line-height: 1.5; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary span { font-size: var(--text-subheading); color: var(--accent); flex: 0 0 24px; text-align: center; transition: transform .18s ease; }
details[open] summary span { transform: rotate(45deg); }
details p { margin: 0 0 22px; }
.details-section { max-width: 800px; padding: 0 32px 96px; margin: auto; text-align: center; }
.faq { text-align: left; margin-top: 32px; border-top: 1px solid var(--line); }
.final-invite { max-width: 960px; margin: auto; background: var(--ivory); color: var(--ink); text-align: center; padding: 88px 24px; border-top: 1px solid var(--line); }
.final-invite .rsvp-intro, .final-invite>.eyebrow, .final-invite>p:last-child { color: var(--muted); }
.rsvp-intro { max-width: 560px; margin: 0 auto 24px; color: var(--ink); }
.final-invite>p:last-child { margin: 20px 0 0; font-size: var(--text-label); letter-spacing: 1.5px; }
footer { max-width: 1440px; margin: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 48px; }
footer>span { font-size: var(--text-label); letter-spacing: .5px; }
.lock-site { font-size: var(--text-body); white-space: nowrap; }
dialog { border: 1px solid var(--line); border-radius: 0; box-shadow: 0 24px 80px #33333333; background: var(--ivory); color: var(--ink); width: min(510px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 40px 32px 32px; }
dialog::backdrop { background: #333333c7; }
dialog h2 { font-size: var(--text-heading); }
dialog>p:not(.eyebrow) { color: var(--muted); }
.close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--accent); font-size: var(--text-subheading); }
#rsvp-done { width: 100%; }
body:has(dialog[open]) { overflow: hidden; }
.password-page { min-height: 100svh; display: grid; place-items: center; padding: 36px 24px; background: var(--surface); }
.password-card { width: min(100%,540px); text-align: center; border: 1px solid var(--line); padding: 44px 40px; background: var(--ivory); box-shadow: var(--shadow); outline: 1px solid var(--line); outline-offset: 8px; }
.password-card .monogram { margin-bottom: 20px; }
.little-flower { display: none; }
.password-card h1 { font-size: var(--text-heading); margin: 20px 0; }
.password-intro, .password-help { color: var(--muted); }
.password-help { font-size: var(--text-label); margin: 24px 0 0; }
#password-form { margin: 28px auto 0; max-width: 360px; text-align: left; }
label { display: block; margin-bottom: 8px; }
.password-field { display: flex; border: 1px solid var(--line-strong); background: var(--ivory); border-radius: 0; }
.password-field:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.password-field:has([aria-invalid="true"]) { border-color: var(--burnt-orange); }
.password-field input { width: 100%; min-width: 0; min-height: 48px; padding: 12px; color: var(--ink); border: 0; background: transparent; border-radius: 0; outline: none; }
.password-toggle { min-width: 60px; min-height: 48px; padding: 0 12px; background: none; border: 0; color: var(--accent); font-size: var(--text-body); }
.password-error { font-size: var(--text-label); line-height: 1.5; color: var(--burnt-orange); margin: 12px 0; }
.password-error:empty { display: none; }
#password-form>.button { width: 100%; margin-top: 16px; }
.password-card .signature { margin-bottom: 0; }
.noscript-message { max-width: 540px; margin: 40px auto; padding: 24px; text-align: center; }
@media(max-width: 960px) {
  .header { display: grid; grid-template-columns: 1fr auto; min-height: 88px; padding: 12px 24px; gap: 12px; }
  .header>.monogram { justify-self: start; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; border: 1px solid var(--line-strong); background: var(--ivory); color: var(--ink); border-radius: 2px; }
  .header nav { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 12px; padding-top: 8px; border-top: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] + nav { display: grid; }
  .header nav a { justify-content: center; text-align: center; padding: 10px 4px; font-size: var(--text-body); }
  .hero-content { padding: 0 24px; }
  .section-wrap { gap: 40px; }
}
@media(max-width: 760px) {
  .hero { min-height: 480px; margin: 0; padding: 64px 20px 96px; }
  h2 { letter-spacing: -.5px; }
  .hero .eyebrow { letter-spacing: 1.5px; }
  .hero-bridge { width: max(100%,640px); max-width: none; opacity: .08; }
  .hero-floral { width: 145px; bottom: 0; }
  .hero-floral-left { left: 0; }
  .hero-floral-right { right: 0; }
  .hero-content { padding: 0; }
  .hero h1 { font-size: clamp(28px,8vw,56px); margin: 24px 0; }
  .hero-date { flex-direction: column; gap: 6px; margin: 24px 0; }
  .hero-date i { display: none; }
  .section-wrap { grid-template-columns: 1fr; padding: 40px 24px 56px; }
  .story-copy { grid-column: 1; grid-row: 1; }
  .story-copy p { max-width: none; }
  .story-photo { grid-column: 1; grid-row: 2; }
  .wedding-timeline { padding: 56px 24px; }
  .timeline-heading { margin-bottom: 28px; }
  .timeline-list { gap: 24px; }
  .timeline-list::before { left: 24px; top: 24px; bottom: 24px; }
  .timeline-moment { grid-template-columns: 48px minmax(0,1fr); align-items: start; gap: 14px; }
  .timeline-doodle { grid-column: 1; width: 48px; height: 48px; box-shadow: 0 0 0 5px var(--surface); }
  .timeline-doodle svg { width: 36px; height: 36px; }
  .timeline-card, .timeline-moment:nth-child(even) .timeline-card { grid-column: 2; text-align: left; padding: 0; }
  .travel { padding-top: 48px; gap: 32px; }
  .travel figure { max-width: 480px; width: 100%; justify-self: center; }
  .travel img { height: auto; aspect-ratio: 4 / 3; border-radius: 24% 24% 2px 2px; }
  .bridge-photo { padding: 0 24px 56px; }
  .bridge-photo figcaption { overflow-wrap: anywhere; }
  .travel figcaption { overflow-wrap: anywhere; }
  summary { gap: 12px; padding-block: 18px; }
  .final-invite .button { width: 100%; max-width: 360px; }
  .details-section { padding: 0 24px 56px; }
  .final-invite { padding: 64px 24px; }
  footer { justify-content: center; text-align: center; padding: 28px 24px; gap: 16px; }
  footer>span { width: 100%; }
  .password-card { padding: 30px 22px; }
}
@media(max-width: 480px) {
  .header { padding-inline: 16px; }
  .header nav { gap: 4px 12px; }
  .header nav a { font-size: var(--text-body); }
  .wedding-countdown { padding: 24px 16px; }
  .wedding-countdown-units { gap: 8px; }
  .password-page { padding: 24px 16px; }
  .password-card { padding: 28px 18px; }
  dialog { padding: 40px 24px 24px; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
