:root {
  --ink: #253b30;
  --cream: #f8f5e8;
  --gold: #d4bc81;
  --line: #c7c6ae;
  --serif: "Baskerville", "Palatino Linotype", Georgia, serif;
  color: var(--ink);
  font-family: var(--serif);
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ad823f;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: -100vw;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: white;
  z-index: 5;
}
header,
footer,
.day {
  background: var(--ink);
  color: var(--cream);
}
.nav,
footer {
  padding: 0 clamp(22px, 6vw, 110px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav {
  min-height: 72px;
}
.brand {
  font-size: 30px;
  text-decoration: none;
  letter-spacing: 0.04em;
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 54px);
}
nav a,
footer a {
  font-family: "Avenir Next", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
nav a:hover,
footer a:hover {
  text-decoration: underline;
}
.nav-rsvp {
  border: 1px solid #a9b59c;
  padding: 8px 23px;
  letter-spacing: 0.12em;
}
.hero {
  position: relative;
  isolation: isolate;
  background: #e8e6bf;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-copy {
  position: absolute;
  inset: 0 auto 0 6.5%;
  width: 33%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 2%;
}
.eyebrow,
time,
.button,
.place,
footer small {
  font-family: "Avenir Next", Arial, sans-serif;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 20px;
}
h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: -0.05em;
  margin: 0;
}
h1 {
  font-size: clamp(64px, 7.7vw, 160px);
  line-height: 0.81;
}
#names {
  position: relative;
  isolation: isolate;
}
.ampersand {
  color: rgb(104 114 71 / 28%);
  font-family: var(--serif);
  font-size: inherit;
  font-style: normal;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
}
#names .ampersand {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 72%;
  transform: translate(-50%, -50%);
  font-size: 2.9em;
  line-height: 1;
  pointer-events: none;
}
.brand .ampersand,
footer .ampersand {
  color: rgb(212 188 129 / 35%);
}
h2 {
  font-size: clamp(46px, 5vw, 84px);
  line-height: 1.04;
}
h3 {
  font-size: 30px;
}
.date {
  font-size: clamp(19px, 1.8vw, 32px);
  margin: clamp(15px, 1.6vw, 36px) 0 4px;
}
.place {
  font-size: clamp(12px, 0.94vw, 18px);
  margin: 0;
}
.button {
  border: 0;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
  border-radius: 2px;
}
.button:hover {
  background: #405b44;
}
.hero .button {
  margin-top: clamp(15px, 1.8vw, 32px);
}
.letter,
.reply {
  text-align: center;
  padding: clamp(55px, 6vw, 106px) 22px;
}
.letter {
  border-bottom: 1px solid var(--line);
}
.ornament {
  font-size: 43px;
  color: #737f58;
  line-height: 1;
  margin-bottom: 15px;
}
.letter h2 em {
  color: #677650;
}
.letter > p:not(.eyebrow) {
  max-width: 500px;
  margin: 22px auto;
  font-size: 19px;
  line-height: 1.55;
}
.signed {
  font-style: italic;
  font-size: 25px;
}
.section-inner {
  max-width: 1200px;
  margin: auto;
  padding: clamp(50px, 7vw, 98px) 6%;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 8%;
}
.day .eyebrow {
  color: var(--gold);
}
.schedule {
  margin: 0;
  padding: 0;
  list-style: none;
}
.schedule li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  border-top: 1px solid #637569;
  padding: 21px 0;
}
.schedule li:last-child {
  padding-bottom: 0;
}
time {
  font-size: 13px;
  color: #e3cda5;
  padding-top: 6px;
}
.schedule p,
.faq p {
  line-height: 1.55;
  font-size: 17px;
  margin: 8px 0 0;
}
.schedule p {
  color: #e1e5d6;
}
.guest {
  background: #edeedc;
}
.faq details {
  border-top: 1px solid #acb499;
  padding: 18px 0;
}
.faq details:last-child {
  border-bottom: 1px solid #acb499;
}
.faq summary {
  cursor: pointer;
  font-size: 22px;
}
.faq p {
  padding-right: 12px;
}
.reply h2 {
  font-style: italic;
  margin-bottom: 24px;
}
footer {
  gap: 18px;
  padding-top: 25px;
  padding-bottom: 25px;
}
footer > .name-lockup {
  font-size: 24px;
}
footer small {
  font-size: 11px;
  color: #d4d8c9;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 36px;
  width: min(440px, 92vw);
  max-height: 88vh;
}
dialog::backdrop {
  background: #15241bc2;
}
dialog h2 {
  font-size: 45px;
}
.close {
  float: right;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 28px;
  color: inherit;
}
.demo {
  font:
    14px/1.5 Arial,
    sans-serif;
}
form {
  display: grid;
  gap: 16px;
}
label,
legend {
  font:
    14px/1.6 Arial,
    sans-serif;
}
fieldset {
  margin: 0;
  border: 1px solid var(--line);
  display: grid;
}
input:not([type="radio"]),
textarea {
  display: block;
  width: 100%;
  padding: 9px;
  border: 1px solid #9ca58f;
  background: #fffef7;
  font: inherit;
  color: inherit;
}
#guest-details,
.name-fields,
#guest-names {
  gap: 12px;
}
.name-fields,
#guest-names {
  display: grid;
}
#guest-names:empty {
  display: none;
}
form small {
  font-size: 10px;
}
#submit-status {
  margin: 0;
}
#submit-status:empty {
  position: absolute;
}
form button[type="submit"]:disabled {
  cursor: wait;
}
form button[type="submit"]:disabled::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.1em;
}
@media (prefers-reduced-motion: no-preference) {
  form button[type="submit"]:disabled::before {
    animation: rsvp-spin 0.8s linear infinite;
  }
}
@keyframes rsvp-spin {
  to {
    transform: rotate(1turn);
  }
}
#thanks {
  font-size: 19px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .nav {
    min-height: 60px;
  }
  nav {
    gap: 14px;
  }
  .brand {
    font-size: 24px;
  }
  .nav-rsvp {
    padding: 5px 10px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    background: #e8e8cb;
  }
  .hero img {
    height: clamp(250px, 56vw, 415px);
    width: 100%;
    object-fit: cover;
    object-position: right center;
  }
  .hero-copy {
    position: static;
    width: 100%;
    padding: 26px 18px 32px;
    align-items: center;
    text-align: center;
  }
  .hero-copy h1 {
    font-size: clamp(50px, 10vw, 77px);
    line-height: 1;
  }
  .hero .eyebrow {
    margin-bottom: 10px;
  }
  .hero .date {
    margin: 12px 0 3px;
  }
  .hero .button {
    margin-top: 18px;
  }
  .section-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer small {
    order: 3;
    width: 100%;
  }
}
@media (max-width: 450px) {
  .nav {
    padding-inline: 15px;
  }
  nav {
    gap: 10px;
  }
  nav a {
    font-size: 11px;
  }
  .nav-rsvp {
    padding: 5px 7px;
  }
  .hero img {
    height: 58vw;
  }
  .brand {
    font-size: 21px;
  }
  .schedule li {
    grid-template-columns: 48px 1fr;
  }
  h3 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
[hidden] {
  display: none !important;
}
