@font-face { font-family: 'Prata'; src: url('/assets/fonts/prata-regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Golos Text'; src: url('/assets/fonts/golos-regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #faf8f3;
  --blue-paper: #d4e1e8;
  --chocolate: #56392d;
  --ink: #56392d;
  --rule: #c7b9ad;
  --error: #8a3630;
  --serif: "Prata", Georgia, serif;
  --sans: "Golos Text", Arial, sans-serif;
  /* Two roles per family: display/detail and body/small. */
  --display-size: clamp(34px, 4.4vw, 58px);
  --detail-size: clamp(24px, 2.2vw, 28px);
  --body-size: 16px;
  --small-size: 13px;
  --paper-texture: url("/assets/paper-texture.webp");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper) var(--paper-texture) repeat; background-size: 520px 520px; font: 400 var(--body-size)/1.8 var(--sans); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #66899a; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .hero-date, .calendar-title, .calendar td, .event-time, .footer-names, .place-address { color: var(--chocolate); font-family: var(--serif); font-style: normal; font-weight: 400; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
h1, h2 { font-size: var(--display-size); line-height: 1.25; }
h2 { text-transform: uppercase; }
h3, .hero-date, .calendar-title, .calendar td, .event-time, .footer-names, .place-address { font-size: var(--detail-size); line-height: 1.5; }
.section-shell { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.section-padding { padding-block: clamp(100px, 10vw, 140px); }
.eyebrow, .text-link, .map-link, .button, .calendar th, .calendar-note, .site-footer > p:not(.footer-names), .site-footer > a { font: 400 var(--small-size)/1.8 var(--sans); color: var(--ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; }
.hero { padding-top: clamp(56px, 7vw, 92px); text-align: center; }
.hero-eyebrow { margin-bottom: 20px; }
.hero-names { display: flex; align-items: baseline; justify-content: center; gap: .25em; }
.hero-names i { font-style: normal; }
.hero-date { margin-top: 24px; }
.keepsake { width: min(850px, 100%); margin: 52px auto 0; isolation: isolate; }
.hero-photo { position: relative; z-index: 1; width: 78%; margin-inline: auto; padding: 14px 14px 46px; background: var(--paper) var(--paper-texture); box-shadow: 0 8px 24px #56392d1f; transform: rotate(-2deg); }
.hero-photo img { display: block; width: 100%; height: auto; }
.envelope-pocket { position: relative; z-index: 2; display: block; width: 100%; height: auto; margin-top: -24%; pointer-events: none; }
.invitation { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: clamp(58px, 9vw, 130px); }
.invitation-heading .eyebrow { margin-bottom: 24px; }
.invitation h2 em { font: inherit; text-transform: inherit; }
.invitation-copy { margin: 28px 0 20px; }
.text-link, .map-link { display: inline-flex; width: fit-content; padding: 10px 0 5px; border-bottom: 1px solid var(--chocolate); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.text-link:hover, .map-link:hover { opacity: .7; }
.calendar { width: 100%; text-align: center; }
.calendar-title { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; text-transform: uppercase; }
.calendar table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th { padding: 12px 2px; border-block: 1px solid var(--chocolate); text-transform: uppercase; }
.calendar td { height: 76px; border-bottom: 1px solid var(--chocolate); vertical-align: middle; }
.calendar td + td { border-left: 1px solid var(--rule); }
.calendar .wedding-day { background: var(--blue-paper) url('/assets/blue-paper.webp') center / 600px auto; }
.calendar-note { margin-top: 20px; }
/* One continuous textured background behind each section and its transparent torn edges. */
.paper-panel { background: var(--blue-paper) url('/assets/blue-paper.webp') repeat; background-size: 1100px auto; }
.paper-edge { height: clamp(56px, 7vw, 88px); background: url('/assets/ivory-paper-edge.webp') center 50% / cover no-repeat; }
.paper-edge-bottom { transform: rotate(180deg); }
.schedule-section { padding-block: 52px 62px; }
.schedule-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.section-heading > p:last-child:not(.eyebrow) { margin-top: 26px; max-width: 400px; }
.section-heading .eyebrow { margin-bottom: 20px; }
.schedule-list { position: relative; border-top: 1px solid var(--rule); }
.schedule-list::before { content: ""; position: absolute; left: 7px; top: 72px; bottom: 72px; border-left: 1px solid var(--chocolate); }
.schedule-item { position: relative; min-height: 148px; display: grid; grid-template-columns: 14px 100px 86px minmax(0, 1fr); gap: 12px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.timeline-point { z-index: 1; width: 8px; height: 8px; justify-self: center; border-radius: 50%; background: var(--chocolate); }
.event-icon, .note-icon { display: block; background: url('/assets/wedding-icons.webp') no-repeat; background-size: 300% 200%; }
.event-icon, .event-art { width: 100px; height: 100px; object-fit: contain; }
.event-icon-glasses { background-position: 50% 0; }
.event-icon-dinner { background-position: 100% 0; }
.event-time { white-space: nowrap; }
.schedule-item h3 { overflow-wrap: normal; }
.place-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(58px, 9vw, 125px); }
.place-illustration { display: block; width: min(100%, 360px); height: auto; justify-self: center; }
.place-copy { padding-left: 32px; border-left: 1px solid var(--rule); }
.place-copy .eyebrow { margin-bottom: 24px; }
.place-address { margin: 26px 0 20px; }
.map-link { padding: 12px 22px; border: 1px solid var(--chocolate); }
.dresscode-section { padding-block: 70px; }
.dresscode-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(48px, 9vw, 130px); }
.dresscode-heading .eyebrow { margin-bottom: 20px; }
.color-swatches { display: flex; gap: 16px; margin-top: 28px; }
.swatch { display: block; width: 46px; height: 46px; border: 1px solid #56392d66; }
.swatch-blue { background: #9dbbca; }
.swatch-chocolate { background: #684632; }
.swatch-ivory { background: var(--paper); }
.notes-section .section-heading { margin-bottom: 52px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.notes-grid article { display: grid; justify-items: center; align-content: start; text-align: center; padding: 34px 26px; }
.notes-grid article + article { border-left: 1px solid var(--rule); }
.note-icon, .note-art { width: 108px; height: 108px; object-fit: contain; margin-bottom: 22px; }
.note-icon-gift { background-position: 0 100%; }
.note-icon-letter { background-position: 100% 100%; }
.notes-grid h3 { margin-bottom: 20px; }
.rsvp-section { padding-block: clamp(100px, 10vw, 140px); border-block: 1px solid var(--rule); }
.rsvp-inner { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(50px, 9vw, 125px); align-items: start; }
.rsvp-heading { position: sticky; top: 32px; }
.rsvp-heading .eyebrow { margin-bottom: 20px; }
.rsvp-heading h2 { margin-bottom: 24px; }
.rsvp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 34px; min-width: 0; }
.field-group { display: grid; gap: 12px; min-width: 0; }
.field-group-wide, .rsvp-form > button, .form-message { grid-column: 1 / -1; }
.field-label, fieldset legend { font: 400 var(--body-size)/1.8 var(--sans); }
.rsvp-form input:not([type='radio']):not([type='checkbox']), .rsvp-form textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 0; color: var(--ink); background: #ffffff66; }
.rsvp-form textarea { min-height: 120px; resize: vertical; }
.rsvp-form input::placeholder, .rsvp-form textarea::placeholder { color: #806f65; }
.rsvp-form fieldset { display: grid; align-content: start; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rsvp-form legend { padding: 0; margin-bottom: 12px; }
.choice { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 5px 0 0; flex: 0 0 auto; accent-color: var(--chocolate); }
.drink-grid { display: grid; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 14px 24px; border: 1px solid var(--chocolate); border-radius: 0; background: transparent; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.button-solid { width: min(100%, 360px); justify-self: center; }
.button:hover { color: var(--paper); background: var(--chocolate); }
.button:disabled { opacity: .65; cursor: wait; }
.form-message { min-height: 28px; text-align: center; }
.honeypot { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; padding-block: 36px; }
.site-footer > p:nth-child(2) { text-align: center; }
.site-footer > a { text-transform: uppercase; text-decoration: none; }
@media (max-width: 1000px) {
  .schedule-inner { grid-template-columns: 1fr; gap: 44px; }
  .schedule-section .section-heading { text-align: center; }
  .schedule-section .section-heading > p { margin-inline: auto; }
  .schedule-list { width: min(700px, 100%); margin-inline: auto; }
}
@media (max-width: 880px) {
  .section-shell { width: calc(100% - 48px); }
  .invitation { grid-template-columns: 1fr; gap: 54px; }
  .calendar { max-width: 600px; margin-inline: auto; }
  .place-layout { grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr); gap: 36px; }
  .rsvp-inner { grid-template-columns: 1fr; gap: 44px; }
  .rsvp-heading { position: static; text-align: center; }
  .rsvp-form { width: min(700px, 100%); margin-inline: auto; }
  .notes-grid article { padding-inline: 20px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}
@media (max-width: 600px) {
  :root { --display-size: 34px; --detail-size: 24px; --body-size: 15px; }
  .section-shell { width: calc(100% - 36px); }
  .section-padding { padding-block: 92px; }
  .hero { padding-top: 50px; }
  .hero-names { display: grid; grid-template-columns: auto auto; gap: 6px 12px; justify-content: center; }
  .hero-names > span:last-child { grid-column: 1 / -1; }
  .hero-date { margin-top: 24px; }
  .keepsake { margin-top: 42px; }
  .hero-photo { padding: 8px 8px 28px; }
  .invitation { gap: 42px; }
  .invitation-heading .eyebrow { margin-bottom: 20px; }
  .calendar th { padding: 10px 0; }
  .calendar td { height: 64px; }
  .calendar-title { flex-wrap: wrap; }
  .paper-edge { height: 56px; }
  .schedule-section { padding-block: 42px 48px; }
  .schedule-inner { gap: 36px; }
  .schedule-item { min-height: 150px; grid-template-columns: 12px 74px minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 12px; padding-block: 24px; }
  .schedule-list::before { left: 6px; top: 75px; bottom: 75px; }
  .timeline-point { grid-column: 1; grid-row: 1 / 3; }
  .schedule-item .event-icon, .schedule-item .event-art { grid-column: 2; grid-row: 1 / 3; }
  .event-time { grid-column: 3; align-self: end; }
  .schedule-item h3 { grid-column: 3; align-self: start; }
  .event-icon, .event-art { width: 74px; height: 74px; }
  .place-layout { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .place-illustration { width: min(280px, 100%); }
  .place-copy { padding: 0; border: 0; }
  .place-address { margin-block: 24px; }
  .dresscode-section { padding-block: 48px; }
  .dresscode-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .color-swatches { justify-content: center; }
  .notes-section .section-heading { margin-bottom: 38px; }
  .notes-grid { grid-template-columns: 1fr; }
  .notes-grid article { padding: 32px 12px; }
  .notes-grid article + article { border-left: 0; border-top: 1px solid var(--rule); }
  .notes-grid p { max-width: 390px; }
  .note-art, .note-icon { width: 104px; height: 104px; }
  .rsvp-section { padding-block: 92px; }
  .rsvp-form { grid-template-columns: 1fr; }
  .button-solid { width: 100%; }
}
@media (max-width: 360px) {
  .section-shell { width: calc(100% - 28px); }
  .schedule-item { grid-template-columns: 10px 58px minmax(0, 1fr); gap: 6px 9px; }
  .schedule-list::before { left: 5px; }
  .event-icon, .event-art { width: 58px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
