@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4efe8;
  --paper-2: #ebe4da;
  --ink: #2c2623;
  --mute: #6a615a;
  --gold: #a68b5b;
  --gold-dim: #cbb892;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection {
  background: #e6d9c4;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 2;
}

#konfetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}
.ticker {
  overflow: hidden;
  background: var(--gold);
  color: #1c1815;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.85;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 0.15rem 0;
  animation: ticker 32s linear infinite;
}
.ticker-track span { display: inline; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.site-header {
  border-bottom: 1px solid var(--gold-dim);
  background: var(--paper);
}
.site-header .inner,
.site-footer .inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-wrap: balance;
}
.amp {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  padding: 0 0.12em;
}
.site-header nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-header nav a {
  text-decoration: none;
  color: var(--mute);
}
.site-header nav a:hover,
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.28em;
}

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
body.home main {
  max-width: none;
  padding: 0 0 4rem;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.85rem;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
h2.section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}

.lead, .recap-body {
  max-width: 36rem;
  text-wrap: pretty;
  color: var(--ink);
}
.date-line {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold);
  margin: 0 0 1.25rem;
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.75rem;
}

.cover {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: calc(100svh - 4.4rem);
  align-items: stretch;
  background: var(--paper);
}
.cover-photo {
  margin: 0;
  min-height: 100%;
  background: var(--paper-2);
}
.cover-photo img,
.cover-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 28%;
}
.cover-empty { min-height: 70vh; }
.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.6rem, 4vw, 4rem);
}
.cover-copy .names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.cover-copy .lead {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
  font-style: italic;
  margin: 0;
  max-width: 22rem;
}
.rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.8rem;
  border: 0;
}

.spreads {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1rem;
}
.spread {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: center;
  margin: 0 0 4.5rem;
  text-decoration: none;
}
.spread.is-flip .spread-photo,
.spread.is-flip .spread-card { order: 2; }
.spread-photo {
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}
.spread-photo.is-quer { aspect-ratio: 4 / 3; }
.spread-photo img,
.spread-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.spread-empty { min-height: 18rem; }
.spread-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.12;
  margin: 0.15rem 0 0.7rem;
  text-wrap: balance;
}
.spread-copy .dek {
  margin: 0 0 1.2rem;
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 28rem;
  text-wrap: pretty;
}
.more-line {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.12rem;
}
.spread:hover .more-line { color: var(--ink); border-bottom-color: var(--ink); }

.spread-card {
  width: min(24rem, 100%);
  margin: 0 auto;
  padding: 2.8rem 1.8rem 2.4rem;
  text-align: center;
  background: #faf6f0;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--gold-dim);
}

.essay {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 3.5rem;
}
.essay-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.55rem;
}
.essay-item {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  background: var(--paper-2);
  text-decoration: none;
}
.essay-item.is-quer { grid-column: span 6; }
.essay-item img,
.essay-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.essay-item .when,
.essay-item figcaption {
  position: absolute;
  left: 0.5rem;
  bottom: 0.45rem;
  margin: 0;
  padding: 0.18rem 0.42rem;
  background: rgba(44, 38, 35, 0.78);
  color: #f4efe8;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.essay-item.is-quer img { aspect-ratio: 4 / 3; }

.chapters {
  max-width: 52rem;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.chapters a {
  text-decoration: none;
  color: var(--mute);
}
.chapters a:hover { color: var(--ink); }

.more-recaps {
  max-width: 36rem;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.more-recaps ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.more-recaps li {
  margin: 0;
  border-bottom: 1px solid var(--gold-dim);
}
.more-recaps a {
  display: block;
  padding: 0.7rem 0;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.invite {
  max-width: 28rem;
  margin: 2rem auto 0;
  padding: 2.5rem 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--gold-dim);
}
.invite p {
  margin: 0 0 0.85rem;
  color: var(--mute);
  text-wrap: pretty;
}

.hero {
  margin: 0 0 2.25rem;
}
.hero-empty {
  min-height: 38vw;
  max-height: 22rem;
  background: var(--paper-2);
  margin: 0 auto 2.25rem;
}
.hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero.is-quer .hero-img {
  object-fit: cover;
  object-position: center 28%;
  max-height: 68vh;
}
.intro .hero.is-hoch {
  background: transparent;
  padding: 0;
}
.hero.is-hoch {
  display: flex;
  justify-content: center;
  background: var(--paper-2);
  padding: 1.75rem 1rem;
}
.hero.is-hoch .hero-img {
  width: auto;
  max-width: min(24rem, 100%);
  max-height: 78vh;
  object-fit: contain;
  object-position: center top;
}

body.recap main {
  max-width: 44rem;
  padding-top: 2.2rem;
}
body.recap h1 {
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.recap-hero {
  margin: 0 0 1.75rem;
}
.recap-hero.is-hoch {
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 0;
}
.recap-hero.is-hoch .hero-img {
  width: auto;
  max-width: min(32rem, 100%);
  max-height: 88vh;
  object-fit: contain;
}
.recap-hero.is-quer .hero-img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  object-position: center 30%;
}
body.recap .dek {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  font-style: italic;
  max-width: 32rem;
  margin: 0 0 1.4rem;
}
.recap-body {
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

figcaption {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--mute);
  margin-top: 0.55rem;
  max-width: 36rem;
  text-wrap: pretty;
}

.card-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 1rem 0 3rem;
}
.wedding-card {
  width: min(28rem, 100%);
  padding: 3.4rem 2rem 2.8rem;
  text-align: center;
  background: #faf6f0;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--gold-dim);
}
.card-over {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}
.card-names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0 0 1.2rem;
}
.wedding-card .rule,
.spread-card .rule { margin: 0 auto 1.6rem; }
.card-wish {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}
.card-wish2 {
  margin: 0;
  color: var(--mute);
  font-size: 1.02rem;
}
.card-from {
  margin: 2.4rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.mail {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gold);
  padding: 0;
  cursor: pointer;
}
.mail.copied { border-bottom-color: var(--ink); }

.masonry {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) {
  .masonry { column-count: 2; }
}
@media (min-width: 960px) {
  body.gallery .masonry { column-count: 3; }
}
.masonry figure,
.masonry a {
  break-inside: avoid;
  margin: 0 0 1rem;
  display: block;
}

.more-wrap { margin-top: 1.75rem; text-align: center; }
.more, .plain {
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--gold);
  color: var(--ink);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
}
.plain { margin-left: 0.5rem; }

.timeline { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 42rem; }
.timeline li {
  margin: 0 0 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--gold-dim);
}
.tl-item.has-thumb {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
.tl-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
}
.tl-thumb.is-quer { aspect-ratio: 4 / 3; }
.tl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin: 0.2rem 0 0.6rem;
}
.timeline a { text-decoration: none; }
.dek {
  max-width: 36rem;
  font-size: 1.12rem;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--ink);
}
.when {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.poem {
  max-width: 28rem;
  margin: 1.75rem 0 2rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
  font-style: italic;
}
.poem p { margin: 0; }
.poem-gap { height: 0.85rem; }
.from { font-size: 0.9rem; color: var(--mute); }
.next { margin-top: 2.5rem; }

.mono {
  font-family: var(--serif);
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  margin: 0;
  color: var(--gold);
}
.site-footer {
  border-top: 1px solid var(--gold-dim);
  background: var(--paper);
}
.site-footer .inner { font-size: 0.85rem; color: var(--mute); }
.site-footer a {
  margin-left: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.08em;
}

@media (max-width: 839px) {
  .cover {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cover-photo img,
  .cover-img {
    height: 78vh;
    max-height: 78vh;
    object-position: center 22%;
  }
  .cover-copy {
    padding: 2.2rem 1.4rem 3rem;
    text-align: center;
    align-items: center;
  }
  .cover-copy .lead { margin-left: auto; margin-right: auto; }
  .cover-copy .rule { margin-left: auto; margin-right: auto; }
  .spread,
  .spread.is-flip {
    grid-template-columns: 1fr;
  }
  .spread.is-flip .spread-photo,
  .spread.is-flip .spread-card { order: 0; }
  .spread { margin-bottom: 3.4rem; }
}

@media (max-width: 639px) {
  .site-header .inner { flex-direction: column; gap: 0.65rem; align-items: flex-start; }
  .cover-copy .names { font-size: 2.6rem; }
  .cover-photo img,
  .cover-img { height: 72vh; max-height: 72vh; }
  .essay-item,
  .essay-item.is-quer { grid-column: span 6; }
  .tl-item.has-thumb { grid-template-columns: 5.4rem 1fr; gap: 0.9rem; }
  .hero.is-hoch {
    background: transparent;
    padding: 0;
  }
  .hero.is-hoch .hero-img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
  }
  .hero.is-quer .hero-img {
    max-height: 52vh;
    object-position: center 30%;
  }
  .recap-hero.is-hoch .hero-img {
    max-width: 100%;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spread:hover .more-line { color: var(--gold); border-bottom-color: var(--gold-dim); }
}

body.gate-page main.gate {
  max-width: 28rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}
.gate h1 {
  font-weight: 300;
  margin: 0 0 1.2rem;
}
.gate p {
  margin: 0 0 0.9rem;
  text-wrap: pretty;
  color: var(--ink);
}
.gate .rule { margin: 0 0 1.6rem; }
.gate form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.8rem;
}
.gate label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.gate input[type="password"] {
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gold);
  background: #faf6f0;
  color: var(--ink);
  width: 100%;
}
.gate button {
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  justify-self: start;
}
.gate .err {
  color: #7a3a32;
  margin-top: 1.2rem;
}
