@font-face {
  font-family: "Kingthings Typewriter";
  src: url("fonts/kingthings-typewriter.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-italic.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f3eee4;
  --cream: #e7ddca;
  --ink: #191411;
  --oxblood: #6f3441;
  --line: rgba(25, 20, 17, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Kingthings Typewriter", "Courier New", monospace;
}
a { color: inherit; }
img { display: block; }
h1, h2, h3, p, figure { margin-top: 0; }
.site-shell { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.ornament {
  width: min(760px, calc(100% - 48px));
  margin: clamp(60px, 8vw, 120px) auto;
}
.ornament img { width: 100%; height: auto; }

.masthead {
  min-height: 88px;
  padding: 12px clamp(24px, 5vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark, .footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.025em;
}
.wordmark img, .footer-brand img { border-radius: 50%; }
.masthead nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.masthead nav a {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-underline-offset: 5px;
}
.header-join { color: var(--oxblood); }

.hero {
  min-height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
}
.hero-copy {
  padding: clamp(58px, 9vw, 150px) clamp(32px, 7vw, 132px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin-bottom: 28px;
  color: var(--oxblood);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1, h2 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 450;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h1 { max-width: 740px; font-size: clamp(3rem, 5.4vw, 6.4rem); }
h2 { font-size: clamp(2.7rem, 5vw, 5.6rem); }
.lede {
  max-width: 620px;
  margin: 38px 0;
  font-size: clamp(0.98rem, 1.18vw, 1.13rem);
  line-height: 1.75;
}
.hero-action { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-action span, .final-copy > span { font-size: 0.75rem; opacity: 0.72; }
.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  background: var(--oxblood);
  color: #fffaf1;
  border: 1px solid var(--oxblood);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover, .button:focus-visible { background: transparent; color: var(--oxblood); transform: translateY(-2px); }
.hero-image, .photo-banner, .evolving-image, .about-image, .final-image { position: relative; margin: 0; overflow: hidden; }
.hero-image { min-height: 620px; }
.hero-image img, .photo-banner img, .evolving-image img, .about-image img, .final-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.hero-image img { object-position: 52% center; }

.letter-note {
  padding: clamp(58px, 7vw, 108px) 24px clamp(40px, 5vw, 72px);
}
.letter-note + .ornament { margin-top: clamp(32px, 4vw, 58px); }
.letter-block { max-width: 900px; margin-inline: auto; }
.note-mark { margin-bottom: 40px; color: var(--oxblood); font-size: clamp(1rem, 1.3vw, 1.25rem); }
.note-copy p { font-size: clamp(1.06rem, 1.4vw, 1.32rem); line-height: 1.7; }
.note-copy .signature { margin: 52px 0 0; font-size: 1rem; line-height: 1.6; }

.contents { padding-block: clamp(40px, 7vw, 100px) clamp(90px, 12vw, 180px); }
.section-heading { max-width: 880px; margin-bottom: clamp(60px, 8vw, 110px); }
.contents .section-heading { margin-inline: auto; text-align: center; }
.keepsake-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 7vw, 100px); }
.keepsake { padding: 0; text-align: center; }
.keepsake span { color: var(--oxblood); font-size: 0.75rem; }
.keepsake h3, .how-it-works h3 {
  margin: 44px 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
  font-weight: 450;
}
.keepsake p, .evolving-copy > p:not(.eyebrow), .about-copy > p:not(.eyebrow), .how-it-works p, .faq p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.75;
}

.photo-banner { width: 100%; height: clamp(260px, 30vw, 430px); }
.photo-banner img { object-position: center 48%; }

.evolving, .about {
  margin-block: clamp(40px, 7vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.evolving-copy, .about-copy { padding-block: 30px; }
.evolving-copy h2, .about-copy h2 { margin-bottom: 44px; }
.evolving-copy > p:not(.eyebrow), .about-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 24px; }
.evolving-image, .about-image { min-height: clamp(580px, 52vw, 820px); }
.evolving-image img { object-position: center; }
.about-image img { object-position: center; }

.faq { padding-block: clamp(40px, 7vw, 100px); }
.faq .section-heading { margin-inline: auto; text-align: center; }
.faq-list { max-width: 980px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 28px 0;
  position: relative;
  display: block;
  text-align: center;
  cursor: pointer;
  list-style: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span {
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--oxblood);
  font-family: "Kingthings Typewriter", monospace;
  transition: transform 180ms ease;
  translate: 0 -50%;
}
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p {
  max-width: 780px;
  margin-inline: auto;
  padding: 0 24px 32px;
  text-align: center;
}

.how-it-works { padding-bottom: clamp(100px, 13vw, 200px); }
.how-it-works ol { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.how-it-works li {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.how-it-works li > span { color: var(--oxblood); padding-top: 9px; }
.how-it-works h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 2vw, 2rem); }
.how-it-works p { max-width: 650px; }

.final-invitation { min-height: 760px; position: relative; display: grid; place-items: center; color: #fffaf1; }
.final-image, .final-overlay { position: absolute; inset: 0; }
.final-image img { object-position: center; }
.final-overlay { background: rgba(27, 16, 12, 0.62); }
.final-copy { position: relative; z-index: 1; max-width: 930px; padding: 90px 24px; text-align: center; }
.final-copy img { margin: 0 auto 34px; border-radius: 50%; }
.final-copy .eyebrow { color: #f1c4c8; }
.final-copy h2 { margin-bottom: 44px; }
.final-copy .button { margin-bottom: 24px; }
.button-light { background: #fffaf1; color: var(--ink); border-color: #fffaf1; }
.button-light:hover, .button-light:focus-visible { background: transparent; color: #fffaf1; }
.final-copy > span { display: block; }

footer {
  min-height: 160px;
  padding-block: 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
footer p, footer > a { margin: 0; font-size: 0.72rem; letter-spacing: 0.03em; }
footer > a { justify-self: end; text-underline-offset: 5px; }

@media (max-width: 900px) {
  .masthead { min-height: 76px; }
  .wordmark img { width: 52px; height: 52px; }
  .masthead nav a:not(.header-join) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 620px; }
  .hero-image { min-height: 72svh; grid-row: 1; }
  .keepsake-grid { grid-template-columns: 1fr; }
  .keepsake { padding: 20px 0; }
  .keepsake h3 { margin-top: 24px; }
  .photo-banner { height: clamp(230px, 55vw, 390px); }
  .evolving, .about { grid-template-columns: 1fr; gap: 48px; }
  .evolving-image, .about-image { min-height: 90vw; }
  .about-image { grid-row: 1; }
  .faq-list { margin-inline: auto; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  footer > a { justify-self: center; }
}

@media (max-width: 560px) {
  .site-shell { width: calc(100% - 36px); }
  .ornament { width: calc(100% - 36px); margin-block: 54px; }
  .wordmark span { display: none; }
  .header-join { font-size: 0.68rem !important; }
  .hero-copy { min-height: auto; padding: 64px 24px 72px; }
  .hero-image { min-height: 62svh; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.5rem); }
  h2 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .letter-note { padding: 52px 24px 40px; }
  .letter-note + .ornament { margin-top: 34px; }
  .note-copy p { font-size: 1rem; }
  .evolving, .about { margin-block: 90px; }
  .how-it-works li { grid-template-columns: 48px minmax(0, 1fr); }
  .final-invitation { min-height: 690px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .faq summary span { transition: none; }
}
