:root {
  --paper: #fdfdfb;
  --ink: #1c1c1a;
  --black: #302f2d;
  --line: #d1d0ca;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: clip; color: var(--ink); background-color: var(--paper); background-image: linear-gradient(rgb(253 253 251 / .3), rgb(253 253 251 / .3)), url("assets/paper-texture.webp"); background-position: center top; background-repeat: repeat-y; background-size: 100% auto; font: 1.05rem/1.85 "Castoro Titling", Georgia, "Times New Roman", serif; }
a { color: inherit; }
.skip-link { position: absolute; left: 1rem; top: -4rem; padding: .65rem 1rem; background: var(--paper); color: var(--ink); z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .75rem clamp(1.25rem, 5vw, 5rem); }
.wordmark { font-size: 1.7rem; font-weight: bold; text-decoration: none; white-space: nowrap; font-family: "Castoro Titling", Georgia, serif; }
.wordmark span, h1 span, footer span { font-style: italic; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
nav a { font-size: .85rem; font-family: "Castoro Titling", Georgia, serif; font-weight: bold; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { text-decoration: underline; text-underline-offset: .3rem; }
.language-switcher { display: flex; border: 1px solid var(--line); }
.language-switcher button { appearance: none; border: 0; border-right: 1px solid var(--line); padding: .4rem .6rem; color: var(--ink); background: transparent; font: bold .8rem/1 "Castoro Titling", Georgia, serif; cursor: pointer; }
.language-switcher button:last-child { border-right: 0; }
.language-switcher button[aria-pressed="true"] { background: var(--black); color: #fff; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #555; outline-offset: 3px; }
.hero { display: grid; place-items: start center; min-height: min(37rem, calc(100vh - 5.25rem)); padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 11vw, 11rem) clamp(3rem, 7vw, 7rem); color: #fff; text-align: center; background-image: linear-gradient(rgb(0 0 0 / .35), rgb(0 0 0 / .35)), url("assets/hero-forest.webp"); background-position: center center; background-size: cover; }
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.hero-content h1 { margin-top: 0; }
.hero-place { color: #fff; }
.eyebrow { margin: 0 0 1.15rem; color: #555; font: bold .82rem/1.3 "Castoro Titling", Georgia, serif; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2.1rem, 9vw, 8rem); font-weight: normal; line-height: .9; letter-spacing: -.02em; white-space: nowrap; }
#hero-title, .hero-date { font-family: "Castoro Titling", Georgia, "Times New Roman", serif; }
.hero-date { margin-bottom: .25rem; font-size: clamp(1.25rem, 3vw, 1.8rem); }
.hero-place { margin-bottom: 2rem; color: #444; }
.button { display: inline-block; padding: .9rem 1.4rem; border: 1px solid currentColor; font: bold .85rem/1 "Castoro Titling", Georgia, serif; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s; }
.button-light { color: #fff; background: var(--black); }
.button-light:hover, .button-light:focus-visible { color: var(--black); background: transparent; }
.section { padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 12vw, 12rem); }
.intro { max-width: 62rem; margin: auto; text-align: center; }
.save-the-date { display: block; width: 100%; max-width: 100%; margin-inline: auto; text-align: center; font-size: clamp(1.9rem, 5vw, 4rem); letter-spacing: .035em; overflow-wrap: anywhere; }
h2 { font-size: clamp(2.1rem, 4.5vw, 4rem); font-weight: normal; line-height: 1; letter-spacing: -.045em; }
.lede { max-width: 39rem; margin: 1.6rem auto 0; font-size: 1.2rem; }
.section-green { color: #fff; background: var(--black); }
.section-green .eyebrow { color: #d9d9d4; }
.location { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
address { font-style: normal; font-size: 1.15rem; }
.details { text-align: center; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 84rem; margin: 3rem auto 0; text-align: left; }
.detail-grid article { padding: 1.5rem clamp(1.2rem, 3vw, 3rem); border-left: 1px solid var(--line); }
.detail-grid article:first-child { border-left: 0; }
.detail-number { color: #666; font: .95rem "Castoro Titling", Georgia, serif; }
h3 { margin: 1.4rem 0 .7rem; font-size: 1.45rem; font-weight: normal; }
.travel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.travel > div:first-child { grid-column: 1 / -1; }
.travel > *, .travel-copy { min-width: 0; }
.travel-copy { max-width: 34rem; overflow-wrap: anywhere; }
.address-card { align-self: center; margin: 0; padding: 1.25rem 1.4rem; border-left: 3px solid var(--black); background: rgb(255 255 255 / .45); overflow-wrap: anywhere; }
.rsvp { text-align: center; }
.rsvp > p:not(.eyebrow):not(.email) { max-width: 38rem; margin: 0 auto 2rem; font-size: 1.15rem; }
.email { margin: 1.2rem 0 0; }
.faq { max-width: 64rem; margin: auto; }
.faq-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 1.2rem 2rem 1.2rem 0; cursor: pointer; font-size: 1.1rem; font-weight: bold; }
details p { max-width: 42rem; padding-bottom: 1.25rem; }
.song-form { display: grid; justify-items: start; gap: .75rem; max-width: 38rem; padding-bottom: 1.5rem; }
.song-form label { font-size: 1rem; }
.song-form textarea { width: 100%; min-height: 6rem; padding: .75rem; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: rgb(255 255 255 / .65); font: inherit; resize: vertical; }
.song-form textarea:focus-visible { outline: 3px solid #555; outline-offset: 2px; }
.song-input-help, .song-status { margin: 0; font-size: .9rem; }
.song-status:empty { display: none; }
.song-form button:disabled { opacity: .65; cursor: wait; }
footer { padding: 2rem; color: #fff; background: var(--black); text-align: center; }
footer p { margin: 0; }

@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; justify-content: center; gap: .8rem 1.2rem; }
  .wordmark { order: -1; }
  nav { order: 3; width: 100%; gap: 1rem; }
  .location, .travel { grid-template-columns: minmax(0, 1fr); display: grid; }
  .travel > div:first-child { grid-column: auto; }
  .address-card { margin-top: .5rem; }
  .hero { padding-top: 2.5rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid article, .detail-grid article:first-child { border-left: 0; border-top: 1px solid var(--line); }
  .detail-grid article:first-child { border-top: 0; }
}

@media (min-width: 701px) and (max-width: 980px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid article:nth-child(2) { border-left: 0; }
  .detail-grid article:nth-child(odd) { border-left: 0; }
  .detail-grid article:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 1.5rem; }
}

@media (min-width: 701px) {
  .hero { background-size: cover; }
}
