@font-face {
  font-family: Caveat;
  src: url("assets/fonts/caveat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --wine: #760e19;
  --wine-dark: #560b13;
  --paper: #fffaf2;
  --ink: #49332e;
  --muted: #79645c;
  --line: #ddc8ba;
  --blush: #f7eae0;
  --hand: Caveat, "Segoe Print", cursive;
  --sans: "DM Sans", sans-serif;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
body.dialog-open { overflow: hidden; }
::selection { background: #eed0ce; color: var(--wine-dark); }
a { color: inherit; text-underline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, input { border-radius: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--wine); font-family: var(--hand); font-weight: 600; line-height: 1.05; }
h2 { font-size: clamp(2.8rem, 5vw, 4rem); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 90px; }
.eyebrow { color: var(--wine); font-size: .65rem; font-weight: 600; letter-spacing: .2em; line-height: 1.6; text-transform: uppercase; }
.handwritten { color: var(--wine); font-family: var(--hand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 10px 16px; background: var(--wine); color: white; }
.skip-link:focus { top: 16px; }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 105px; border-bottom: 1px solid var(--line); }
.monogram { color: var(--wine); font-family: var(--hand); font-size: 2.2rem; font-weight: 600; line-height: 1; text-decoration: none; }
.monogram span { display: inline-block; margin-inline: 5px; font-size: .65rem; vertical-align: middle; transform: rotate(-12deg); }
.main-nav { display: flex; gap: 32px; margin-left: auto; margin-right: 58px; }
.main-nav a { font-size: .76rem; text-decoration: none; }
.main-nav a:hover { color: var(--wine); text-decoration: underline; }
.language-switch { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .65rem; }
.language-switch button { min-width: 34px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--muted); font-size: .7rem; }
.language-switch button[aria-pressed="true"] { color: var(--wine); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; min-height: 750px; padding-block: 62px 80px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy > .eyebrow { max-width: 380px; margin-bottom: 25px; }
.announcement { margin-bottom: 4px; font-size: 1.85rem; transform: rotate(-4deg); transform-origin: left; }
h1 { margin-bottom: 26px; font-size: clamp(5rem, 7.8vw, 7.4rem); line-height: .96; letter-spacing: -.035em; }
.ampersand { display: inline-block; margin-right: 5px; font-size: .8em; font-weight: 400; }
.hero-intro { max-width: 370px; color: var(--muted); font-size: .9rem; line-height: 1.85; }
.hero-date { display: flex; flex-direction: column; align-items: flex-start; margin-block: 23px 29px; }
.date-numbers { color: var(--wine); font-family: var(--hand); font-size: 2.65rem; font-weight: 500; line-height: 1.3; }
.date-numbers span { display: inline-block; margin-inline: 3px; font-size: .9rem; vertical-align: middle; transform: rotate(-10deg); }
.hero-date time { margin-top: 5px; font-size: .76rem; }
.place { color: var(--muted); font-size: .76rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 52px; padding: 13px 23px; border: 1px solid transparent; font-size: .76rem; font-weight: 500; line-height: 1.5; text-decoration: none; transition: background .2s, transform .2s; }
.button-primary { background: var(--wine); color: var(--paper); }
.button-primary:hover:not(:disabled) { background: var(--wine-dark); transform: translateY(-2px); }
.button > span[aria-hidden] { font-size: 1.15rem; line-height: 1; }
.hero-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; width: 100%; max-width: 500px; padding: 50px 24px 0; justify-self: end; }
.hero-ribbon { position: absolute; top: 0; left: -10%; width: 115%; height: 108%; overflow: visible; }
.hero-ribbon path { stroke: var(--wine); stroke-width: 4; stroke-linecap: round; }
.hero-bow { position: absolute; z-index: 3; top: -5px; left: 0; width: 94px; transform: rotate(-17deg); }
.photo-strip { position: relative; width: 100%; box-shadow: 0 8px 20px #49332e24; }
.photo-strip-one { transform: rotate(-9deg); }
.photo-strip-two { margin-top: 60px; transform: rotate(8deg); }
.photo-strip img { width: 100%; }
.photo-caption { grid-column: 1 / -1; justify-self: center; margin-top: 24px; font-size: 1.9rem; transform: rotate(-5deg); }
.little-star { position: absolute; color: var(--wine); line-height: 1; }
.star-one { top: 12px; right: 17%; font-size: 3rem; transform: rotate(10deg); }
.star-two { left: 0; bottom: 70px; font-size: 2rem; }

.day-section { border-top: 1px solid var(--line); }
.section-heading { text-align: center; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-intro { margin-top: 16px; color: var(--muted); font-size: .88rem; }
.events { display: grid; grid-template-columns: 1fr 1fr; margin-top: 54px; }
.event { display: flex; flex-direction: column; align-items: center; padding: 10px 34px 16px; text-align: center; }
.event + .event { border-left: 1px solid var(--line); }
.event-illustration { display: flex; align-items: center; justify-content: center; height: 112px; margin-bottom: 22px; }
.event-illustration img { max-width: 140px; max-height: 112px; object-fit: contain; }
.event .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 19px; }
.event-number { padding-right: 10px; border-right: 1px solid var(--line); font-weight: 400; }
.event h3 { display: flex; align-items: center; justify-content: center; min-height: 90px; font-size: 2.6rem; }
.venue-link { text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.venue-link:hover { text-decoration-color: var(--wine); }
.event-time { margin-block: 20px 11px; color: var(--wine); font-family: var(--hand); font-size: 2.15rem; line-height: 1.2; }
.event > p:not(.eyebrow) { color: var(--muted); font-size: .82rem; }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 17px; color: var(--wine); font-size: .73rem; text-decoration-thickness: 1px; }
.music-note { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }
.music-note > span { width: 70px; height: 1px; background: var(--line); }
.music-note img { width: 43px; transform: rotate(12deg); }

.rsvp-section { padding-bottom: 95px; }
.rsvp-note { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 54px 76px; border: 1px solid var(--line); background: var(--blush); }
.rsvp-note::before { position: absolute; inset: 7px; border: 1px solid #ddc8ba99; pointer-events: none; content: ""; }
.rsvp-copy { position: relative; z-index: 1; max-width: 550px; }
.rsvp-copy .eyebrow { margin-bottom: 12px; }
.rsvp-copy h2 { margin-bottom: 20px; }
.rsvp-copy > p:not(.eyebrow) { max-width: 440px; font-size: .87rem; }
.rsvp-deadline { display: block; margin-block: 8px 20px; font-size: 2.5rem; font-weight: 600; line-height: 1.2; }
.rsvp-copy .small-copy { max-width: 370px; color: var(--muted); font-size: .76rem; }
.cake-illustration { width: 165px; flex-shrink: 0; transform: rotate(4deg); }

.gift-section { overflow: hidden; background: var(--wine); color: var(--paper); text-align: center; }
.gift-inner { max-width: 690px; }
.gift-heart { display: block; font-family: var(--hand); font-size: 3.3rem; line-height: 1; }
.gift-section .eyebrow { margin-block: 13px 16px; color: #f6d5c6; }
.gift-section h2 { color: var(--paper); font-size: clamp(2.7rem, 5vw, 3.8rem); }
.gift-section h2 + p { margin: 23px auto 29px; max-width: 520px; color: #f6e3da; font-size: .87rem; line-height: 1.9; }
.button-light { background: var(--paper); color: var(--wine); }
.button-light:hover { background: #f0ded1; transform: translateY(-2px); }
.gift-footnote { margin-top: 18px; color: #edd0c4; font-size: .67rem; }
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-block: 54px 40px; text-align: center; }
.footer-names { color: var(--wine); font-family: var(--hand); font-size: 2.2rem; line-height: 1; text-decoration: none; }
.site-footer p { color: var(--muted); font-size: .68rem; letter-spacing: .05em; }
.site-footer p span { margin-inline: 7px; }
.footer-heart { margin-top: 12px; color: var(--wine); font-size: .7rem; }

dialog { position: fixed; width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px #21060940; }
dialog::backdrop { background: #30121999; backdrop-filter: blur(4px); }
.dialog-close { position: absolute; z-index: 1; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--wine); font-size: 1.8rem; line-height: 1; }
.dialog-content { padding: 35px 42px 24px; text-align: center; }
.dialog-heart { display: block; color: var(--wine); font-family: var(--hand); font-size: 2.5rem; line-height: 1.2; }
.dialog-content .eyebrow { margin-block: 8px 15px; font-size: .6rem; }
.dialog-content h2 { margin-bottom: 14px; font-size: 3.1rem; }
#gift-dialog-intro { color: var(--muted); font-size: .8rem; }
.preview-notice { margin-top: 22px; padding: 12px; border: 1px dashed #b7947f; color: #6f4936; font-size: .71rem; line-height: 1.6; }
.bank-details { margin: 22px 0; text-align: left; }
.bank-details > div { padding-block: 10px; border-bottom: 1px solid var(--line); }
.bank-details dt { margin-bottom: 3px; color: var(--muted); font-size: .6rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.bank-details dd { margin: 0; color: var(--wine); font-size: .84rem; overflow-wrap: anywhere; user-select: all; }
.bank-details .iban-row dd { font-size: .9rem; font-weight: 500; letter-spacing: .03em; }
.copy-button { width: 100%; }
.copy-status { min-height: 1.7em; margin-top: 9px; color: var(--wine); font-size: .71rem; }
.dialog-signature { margin-top: 6px; font-size: 1.8rem; }

@media (min-width: 1400px) {
  .hero { min-height: 810px; }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .main-nav { margin-right: 30px; gap: 22px; }
  .hero { min-height: 670px; padding-block: 55px 65px; }
  h1 { font-size: 6rem; }
  .hero-art { padding-inline: 15px; }
  .photo-caption { font-size: 1.65rem; }
  .hero-bow { top: 15px; width: 78px; }
  .hero-ribbon { left: -10%; }
  .rsvp-note { padding: 48px; }
  .cake-illustration { width: 135px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 82px; }
  .monogram { font-size: 2rem; }
  .main-nav { gap: 18px; margin-right: 17px; }
  .main-nav a { font-size: .69rem; }
  .main-nav a:last-child { display: none; }
  .language-switch { gap: 0; }
  .language-switch button { min-width: 30px; }
  .hero { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding-block: 46px 40px; }
  .hero-copy { text-align: center; }
  .hero-copy > .eyebrow { margin-inline: auto; margin-bottom: 23px; font-size: .58rem; }
  .announcement { font-size: 1.7rem; transform-origin: center; }
  h1 { margin-top: 8px; font-size: clamp(5.2rem, 17vw, 7rem); }
  .hero-intro { max-width: 340px; margin-inline: auto; font-size: .84rem; }
  .hero-date { align-items: center; margin-block: 18px 25px; }
  .date-numbers { font-size: 2.5rem; }
  .hero-art { justify-self: center; width: min(390px, 100%); margin-top: 10px; padding: 40px 20px 0; }
  .hero-bow { top: 0; left: 1%; width: 80px; }
  .hero-ribbon { top: -20px; left: -5%; width: 110%; }
  .photo-strip-two { margin-top: 44px; }
  .photo-caption { margin-top: 18px; font-size: 1.8rem; }
  .star-one { right: 12%; top: -4px; }
  .star-two { left: 0; bottom: 75px; }
  .section-space { padding-block: 62px; }
  .section-intro { max-width: 290px; margin-inline: auto; font-size: .8rem; }
  .section-heading h2 { max-width: 350px; margin-inline: auto; }
  .events { margin-top: 35px; }
  .event { padding-inline: 15px; }
  .event-illustration { height: 90px; }
  .event-illustration img { max-height: 90px; max-width: 110px; }
  .event .eyebrow { gap: 7px; font-size: .57rem; letter-spacing: .1em; }
  .event-number { padding-right: 7px; }
  .event h3 { min-height: 100px; font-size: 2.05rem; }
  .event-time { font-size: 1.9rem; margin-top: 13px; }
  .event > p:not(.eyebrow) { max-width: 180px; min-height: 42px; font-size: .73rem; }
  .text-link { gap: 7px; font-size: .68rem; }
  .music-note { margin-top: 25px; }
  .rsvp-section { padding-bottom: 62px; }
  .rsvp-note { padding: 38px 28px; gap: 15px; }
  .rsvp-copy { max-width: 72%; }
  .rsvp-copy h2 { font-size: 2.8rem; }
  .rsvp-copy > p:not(.eyebrow) { font-size: .78rem; }
  .rsvp-deadline { font-size: 2.1rem; }
  .rsvp-copy .small-copy { font-size: .71rem; }
  .cake-illustration { position: absolute; right: 12px; bottom: 38px; width: 24%; }
  .gift-inner { width: calc(100% - 54px); }
  .gift-section h2 + p { font-size: .8rem; }
  .gift-footnote { max-width: 260px; margin-inline: auto; }
}

@media (max-width: 400px) {
  .main-nav { gap: 12px; margin-right: 10px; }
  .main-nav a { font-size: .64rem; }
  .hero-art { padding-inline: 18px; }
  .photo-caption { font-size: 1.6rem; }
  .event { padding-inline: 10px; }
  .event .eyebrow { font-size: .5rem; }
  .event h3 { font-size: 1.9rem; }
  .rsvp-note { padding: 30px 23px; }
  .rsvp-copy { max-width: 70%; }
  .rsvp-copy h2 { font-size: 2.5rem; }
  .rsvp-deadline { font-size: 1.85rem; }
  .dialog-content { padding: 38px 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
