:root {
  --bg: #ffffff;
  --ink: #1c1c1c;
  --muted: rgba(28, 28, 28, 0.7);
  --faint: rgba(28, 28, 28, 0.35);
  --rule: #eeeeee;
  --content-width: 800px;
  --text-width: 520px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f5f5f5;
}

body {
  margin: 0;
  background: #f5f5f5;
  color: var(--ink);
  font-family: "Figtree", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.site-frame {
  max-width: calc(var(--content-width) + 104px);
  margin: 100px auto;
  padding: 100px 50px 0;
  background: var(--bg);
  border: 2px solid #eeeeee;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

.site-shell {
  max-width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  padding: 0;
  margin-bottom: 0;
  text-align: center;
}

.site-header-inner {
  display: block;
}

.brand {
  display: inline-block;
  color: var(--ink);
}

.brand-mark {
  display: block;
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: none;
}

.brand-subtitle {
  display: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  margin-top: 40px;
  padding-top: 0;
  text-align: center;
}

.nav-list {
  display: inline-block;
  margin: 0;
  padding: 0 24px;
  list-style: none;
  line-height: 1.6;
  background: #ffffff;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.nav-item {
  display: inline-block;
  line-height: 1.6;
}

.nav-item + .nav-item {
  margin-left: 24px;
}

.nav a {
  display: inline-block;
  padding: 0 0 2px;
  border-bottom: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.page-divider {
  border-bottom: 1px solid #eeeeee;
  border-bottom-width: 2px;
}

.nav-page-divider {
  line-height: 1.6em;
  margin-top: -1.2em;
  margin-bottom: 1.2em;
  font-size: 12px;
}

.page-main {
  padding: 0 0 36px;
}

.page {
  margin-top: 68px;
  margin-bottom: 68px;
}

.hero {
  display: block;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  background: transparent;
}

.hero-image {
  position: static;
  width: 100%;
}

.hero-card {
  max-width: var(--text-width);
  margin: 34px auto 0;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  color: var(--ink);
}

h1 {
  font-family: "Figtree", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h2 {
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

h3,
.timeline-time {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 2px;
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem;
}

.lead,
.section-header p,
.card p,
.card li,
.timeline-item,
.callout,
.detail {
  color: var(--muted);
}

.lead,
.section-header p,
.callout {
  max-width: var(--text-width);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section {
  margin-top: 36px;
  padding: 0;
  text-align: center;
}

.section-header {
  max-width: var(--text-width);
  margin: 0 auto 20px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.center-column {
  max-width: var(--text-width);
  margin: 0 auto;
}

.invitation {
  max-width: var(--text-width);
  margin: 68px auto 0;
  text-align: center;
}

.invitation > h2:last-of-type {
  font-weight: 300;
  margin-top: 14px;
}

.rule {
  width: 100%;
  height: 1px;
  margin: 30px auto;
  background: var(--rule);
}

.name-stack h1 {
  font-family: "Figtree", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}

.name-join {
  margin: 14px 0;
  color: var(--muted);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 300;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.page-copy {
  max-width: var(--text-width);
  margin: 0 auto;
}

.page-copy h1,
.page-copy h2,
.page-copy h3,
.page-copy p,
.page-copy ul,
.page-copy ol {
  text-align: center;
}

.callout {
  padding: 0;
}

.timeline {
  max-width: 520px;
  margin: 0 auto;
}

.timeline-item {
  padding: 0.25rem 0 1rem;
  text-align: center;
}

.timeline-time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 600;
}

.photo-grid {
  display: block;
  max-width: 1024px;
  margin: 0 auto;
}

.photo-card,
.photo-large,
.photo-stack {
  display: block;
}

.photo-card {
  margin: 0 auto 18px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.photo-card figcaption {
  padding: 12px 0 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
  text-align: center;
}

.simple-gallery {
  max-width: 1024px;
  margin: 0 auto;
}

.simple-gallery img + img {
  margin-top: 18px;
}

.site-footer {
  display: none;
}

ul,
ol {
  max-width: var(--text-width);
  margin: 0 auto 1rem;
  padding: 0;
  list-style-position: inside;
  text-align: center;
}

.rsvp-form {
  max-width: var(--text-width);
  margin: 0 auto;
  text-align: left;
}

.rsvp-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-form label,
.rsvp-form legend {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
  text-align: center;
}

.rsvp-form .field,
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.rsvp-form textarea {
  min-height: 120px;
  resize: vertical;
}

.rsvp-form .field-group + .field-group {
  margin-top: 22px;
}

.rsvp-form .checkbox-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.rsvp-form .checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}

.rsvp-form .checkbox-option input {
  margin-top: 5px;
}

.rsvp-form .submit-row {
  margin-top: 28px;
  text-align: center;
}

.rsvp-form button {
  padding: 12px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-family: "Figtree", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  html,
  body {
    background: #ffffff;
  }

  .site-frame {
    max-width: none;
    margin: 0;
    padding: 50px 25px 0;
    border: 0;
  }
}

@media (max-width: 640px) {
  .site-frame {
    max-width: none;
    margin: 0;
    padding: 34px 17px 0;
  }

  .site-header {
    padding-top: 0;
  }

  .nav {
    margin-top: 20px;
    padding-top: 0;
  }

  .nav-list {
    padding: 0 14px;
  }

  .nav-item + .nav-item {
    margin-left: 14px;
  }

  .page-main {
    padding-top: 0;
  }

  .page {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.9rem;
    padding: 0 10px;
    white-space: normal;
  }

  .nav-item,
  .nav-item + .nav-item {
    margin-left: 0;
  }

  .nav-page-divider {
    display: none;
  }
}
