:root {
  --paper:#faf8f3;
  --ink:#383633;
  --red:#a84e45;
  --muted:#78716a;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:4.25rem;
}

body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:Georgia,serif;
  line-height:1.6;
}

a {
  color:inherit;
}

header {
  position:sticky;
  top:0;
  z-index:3;
  max-width:1050px;
  margin:auto;
  padding:17px 15px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:var(--paper);
  border-bottom:1px solid #e4dfd6;
}

.brand {
  font-style:italic;
  font-size:17px;
}

nav {
  display:flex;
  gap:10px;
  font:14px system-ui;
  font-size:13px;
}

nav a {
  text-decoration:none;
}

nav a:hover {
  color:var(--red);
}

main {
  overflow:hidden;
}

.hero {
  position:relative;
  max-width:1050px;
  margin:auto;
  text-align:center;
  padding:48px 17px 42px;
}

.eyebrow {
  font:12px system-ui;
  letter-spacing:.25em;
  text-transform:uppercase;
  color:var(--muted);
}

h1 {
  font-size:clamp(39px,7vw,76px);
  font-weight:400;
  line-height:1.04;
  margin:22px 0 15px;
  letter-spacing:-.045em;
}

h1 span {
  color:var(--red);
  font-style:italic;
}

.date {
  font-size:20px;
  letter-spacing:.08em;
  margin:0;
}

.sub {
  font-size:17px;
  margin:9px 0 0;
  color:var(--muted);
}

.gallery {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin:36px auto 30px;
  max-width:740px;
  padding:0 10px;
}

.frame {
  position:relative;
  margin:0;
  background:#fffdf9;
  padding:4px;
  border:7px solid #4e463c;
  box-shadow:4px 10px 15px #372b2025;
  width:32%;
  transform:rotate(-7deg);
  border-width:4px;
}

.frame:nth-child(2) {
  transform:rotate(3deg);
  width:36%;
  border-color:#a28d72;
  z-index:2;
}

.frame:nth-child(3) {
  transform:rotate(8deg);
}

.photo {
  aspect-ratio:4/5;
  background:#e8e2d8;
  display:grid;
  place-items:center;
  color:#706b61;
  position:relative;
  overflow:hidden;
}

.frame:nth-child(2) .photo {
  background:#e4ded1;
}

.photo svg {
  width:62%;
  opacity:.65;
}

.photo small {
  position:absolute;
  bottom:6px;
  left:0;
  right:0;
  text-align:center;
  font:11px system-ui;
  letter-spacing:0;
  text-transform:uppercase;
  font-size:8px;
}

.sketch {
  width:160px;
  height:99px;
  display:block;
  margin:8px auto 0;
}

.heart {
  color:var(--red);
}

.section {
  max-width:790px;
  margin:auto;
  padding:45px 23px;
  text-align:center;
  border-top:1px solid #e4dfd6;
}

h2 {
  font-weight:400;
  font-size:34px;
  line-height:1.2;
  margin:10px 0 24px;
  letter-spacing:-.025em;
}

.time {
  font-size:35px;
  color:var(--red);
  line-height:1.2;
}

.timeline {
  max-width:370px;
  margin:30px auto 10px;
  padding-left:24px;
  border-left:1px dashed #b6aea1;
  text-align:left;
  position:relative;
}

.timeline:before {
  content:'♥';
  position:absolute;
  left:-10px;
  top:0;
  background:var(--paper);
  color:var(--red);
  font-size:18px;
}

.timeline h3 {
  font-weight:400;
  font-size:23px;
  margin:7px 0;
}

.timeline p {
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.venue {
  font-size:26px;
  margin:0;
}

.address {
  color:var(--muted);
  margin:8px 0 26px;
}

.links {
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn {
  display:inline-block;
  text-decoration:none;
  font:14px system-ui;
  border:1px solid #a84e45;
  border-radius:3px;
  padding:13px 22px;
  color:var(--red);
  background:transparent;
}

.btn.primary {
  background:var(--red);
  color:white;
}

.btn:hover {
  filter:brightness(.9);
}

footer {
  text-align:center;
  padding:35px 20px;
  color:var(--muted);
  font-size:15px;
}

.divider {
  color:var(--red);
  letter-spacing:.4em;
  font-size:15px;
  margin-bottom:16px;
}

.venue-map {
  margin:0 auto 24px;
  max-width:680px;
  border:6px solid #fffdf9;
  outline:1px solid #e4dfd6;
  box-shadow:0 4px 14px #372b2015;
  overflow:hidden;
}

.venue-map iframe {
  display:block;
  width:100%;
  height:280px;
  border:0;
}

.brand { text-decoration: none; }
.welcome { margin: 4px auto 0; font-style: italic; font-size: 19px; }
.program-note { font-style: italic; color: var(--muted); margin: 29px 0 0; }

.rsvp-intro p {
  margin: .25rem auto;
}

.rsvp-intro time {
  color: var(--red);
  font-weight: bold;
}

.rsvp {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #e4d8cb;
  border-radius: .75rem;
  background: #fffdf9;
  box-shadow: 0 8px 24px #372b2010;
  text-align: left;
  font: .9375rem/1.5 system-ui, sans-serif;
}

.rsvp-choices {
  display: none;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-choices legend {
  margin-bottom: .75rem;
  padding: 0;
  font-weight: 650;
}

.rsvp-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.rsvp-choice-list label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .5rem .55rem;
  border: 1px solid #b6aea1;
  border-radius: .4rem;
  background: white;
  cursor: pointer;
}

.rsvp-choice-list input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--red);
}

.rsvp form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e4d8cb;
}

.rsvp form h3 {
  margin: 0 0 1rem;
  font: 1.25rem Georgia, serif;
}

@supports selector(:has(*)) {
  .rsvp-choices {
    display: block;
  }

  .rsvp form,
  .rsvp form h3 {
    display: none;
  }

  .rsvp:has(#rsvp-attend:checked) .rsvp-attend,
  .rsvp:has(#rsvp-decline:checked) .rsvp-decline {
    display: block;
  }

  .rsvp-choice-list label:has(input:checked) {
    border-color: var(--red);
    background: #f9eeeb;
  }
}

.rsvp-field {
  margin-bottom: 1rem;
}

.rsvp-field label {
  display: block;
  font-weight: 600;
}

.rsvp-field p,
.rsvp-field label span,
.rsvp-extras summary span {
  color: #675f57;
  font-size: .875rem;
  font-weight: normal;
}

.rsvp-field p {
  margin: .15rem 0 0;
}

.rsvp-field input,
.rsvp-field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin-top: .35rem;
  padding: .55rem .65rem;
  border: 1px solid #b6aea1;
  border-radius: .35rem;
  background: white;
  color: inherit;
  font: 1rem/1.5 system-ui, sans-serif;
}

.rsvp-field textarea {
  resize: vertical;
}

.rsvp-field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.rsvp-field-inline input {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  margin: 0;
}

.rsvp-extras {
  margin: .25rem 0 1rem;
  border-block: 1px solid #e4d8cb;
}

.rsvp-extras summary {
  padding: .7rem 0;
  color: var(--red);
  cursor: pointer;
}

.rsvp :focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.rsvp button {
  width: 100%;
  cursor: pointer;
}

@media (width > 550px) {
  html {
    scroll-padding-top:5.25rem;
  }
  header {
    padding:22px 25px;
  }
  .brand {
    font-size:21px;
  }
  nav {
    gap:24px;
    font-size:14px;
  }
  .hero {
    padding:72px 22px 65px;
  }
  .gallery {
    gap:28px;
    margin:47px auto 37px;
    padding:0 16px;
  }
  .frame {
    padding:8px;
    border-width:7px;
  }
  .photo small {
    font-size:11px;
    letter-spacing:.12em;
    bottom:12px;
  }
  .section {
    padding:58px 24px;
  }
  h2 {
    font-size:39px;
  }
  .date {
    font-size:23px;
  }
  .venue-map iframe {
    height:340px;
  }
}
