@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f8f4ee;
  --ink: #682c37;
  --body: #705d58;
  --quiet: #8b736a;
  --line: #d8c6bb;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --roman: "Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: #e9e1d8; }
body { margin: 0; color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
body, p, h1, h2, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
h1, h2 { font-weight: 400; }
p { text-wrap: pretty; }
::selection { color: var(--paper); background: var(--ink); }

.invitation {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 60px #4f2d1d0a;
}

.eyebrow {
  font-family: var(--roman);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.opening { padding: 33px 28px 0; text-align: center; }
.opening__eyebrow { display: flex; align-items: center; justify-content: center; gap: 13px; }
.opening__eyebrow::before, .opening__eyebrow::after { content: ""; width: 24px; height: 1px; background: var(--line); }
.opening__announcement { margin-top: 20px; font-size: 14px; line-height: 1.6; letter-spacing: .28em; }
.couple { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; font-size: clamp(25px, 7.6vw, 34px); line-height: 1.4; letter-spacing: .12em; white-space: nowrap; }
.couple i { font-family: var(--roman); font-size: 26px; font-weight: 400; letter-spacing: 0; }
.opening__english { margin-top: 9px; font-family: var(--roman); font-size: 10px; line-height: 1.5; letter-spacing: .22em; }
.opening__portrait { position: relative; max-width: 400px; margin: 27px auto 0; padding: 7px; border: 1px solid var(--line); border-radius: 180px 180px 0 0; }
.opening__portrait .photo { border-radius: 170px 170px 0 0; }
.opening__portrait::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--quiet); background: var(--paper); bottom: -5px; left: calc(50% - 4px); transform: rotate(45deg); }
.opening__occasion { padding: 27px 0 26px; border-bottom: 1px solid var(--line); }
.opening__date { display: block; font-family: var(--roman); font-size: 30px; line-height: 1.2; letter-spacing: .12em; }
.opening__weekday { margin-top: 10px; font-size: 14px; line-height: 1.6; letter-spacing: .12em; }
.opening__weekday span { margin: 0 12px; color: var(--quiet); }
.opening__venue { margin-top: 8px; font-size: 14px; line-height: 1.8; letter-spacing: .015em; }

.photo { position: relative; margin: 0; overflow: hidden; background: #e6dcd0; }
.photo__image { width: 100%; height: auto; object-fit: contain; }
.photo__caption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 8px; color: #604a40; background: #f8f4eee8; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10px; line-height: 1.4; letter-spacing: .02em; }

.letter { position: relative; padding: 67px 28px 0; text-align: center; }
.letter__botanical { position: absolute; top: 41px; right: -36px; width: 124px; height: 155px; opacity: .38; transform: rotate(12deg); }
.letter h2 { position: relative; margin-top: 17px; font-size: 29px; line-height: 1.7; letter-spacing: .16em; }
.letter__copy { position: relative; margin-top: 26px; color: var(--body); font-size: 15px; line-height: 2.2; letter-spacing: .035em; }
.letter__copy p + p { margin-top: 18px; }
.fine-rule { display: block; width: 1px; height: 38px; margin: 32px auto 0; background: var(--line); }

/* Gallery photographs retain their full natural aspect ratios. */
.collection { padding: 55px 0 42px; }
.collection__heading { padding: 0 28px; margin-bottom: 26px; }
.collection__heading h2 { margin-top: 12px; font-size: 26px; line-height: 1.65; letter-spacing: .1em; }
.collection__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 20px; }
.collection__grid .photo { background: transparent; }
.collection__grid .photo--wide { grid-column: 1 / -1; }
.photo-strip { grid-column: 1 / -1; min-width: 0; }
.photo-strip__track {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.photo-strip__track::-webkit-scrollbar { display: none; }
.photo-strip__track:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.photo-strip__track > .photo { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
.photo-strip__hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 11px 0 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; letter-spacing: .025em; }
.photo-strip__instruction { display: flex; align-items: center; gap: 8px; }
.photo-strip__gesture { flex: 0 0 28px; width: 28px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.photo-strip__count { flex-shrink: 0; font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.collection--wine .photo-strip__hint, .collection--night .photo-strip__hint { color: var(--paper); border-color: #b58a8b; }
.collection__note { margin: 26px 28px 0; font-size: 14px; line-height: 2; letter-spacing: .08em; text-align: center; }
.collection--light .collection__note, .collection--keepsake .collection__note { color: var(--body); }
.collection--wine { color: var(--paper); background: var(--ink); }
.collection--wine .eyebrow, .collection--wine .collection__note { color: #eee0d7; }
.collection--night { color: var(--paper); background: #302526; }
.collection--night .eyebrow, .collection--night .collection__note { color: #e5d3c3; }
.collection--keepsake { padding-bottom: 63px; text-align: center; }
.collection--keepsake .collection__grid { margin-right: 28px; margin-left: 28px; gap: 24px; }
.collection--keepsake .photo { padding: 9px; border: 1px solid #e8dcd0; background: #fffcf7; box-shadow: 0 9px 22px #593b2b0a; }

.occasion { position: relative; margin: 0 22px; padding: 43px 25px 29px; border: 1px solid var(--line); text-align: center; }
.occasion::before { position: absolute; content: ""; inset: 5px; border: 1px solid #e3d6cb; pointer-events: none; }
.occasion__ornament { position: absolute; top: -16px; left: calc(50% - 21px); width: 42px; background: var(--paper); font-family: var(--roman); font-size: 27px; line-height: 30px; }
.occasion h2 { margin-top: 15px; font-size: 28px; line-height: 1.6; letter-spacing: .22em; }
.occasion__intro { margin-top: 12px; color: var(--body); font-size: 14px; line-height: 1.9; }
.occasion__details { margin-top: 30px; }
.occasion__detail + .occasion__detail { margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--line); }
.occasion__detail dt { font-size: 12px; line-height: 1.6; letter-spacing: .12em; }
.occasion__detail dt span { display: block; margin-bottom: 5px; font-family: var(--roman); font-style: italic; font-size: 21px; line-height: 1.1; letter-spacing: 0; }
.occasion__detail dd { margin-top: 12px; font-size: 18px; line-height: 1.9; letter-spacing: .02em; }
.occasion__secondary { color: var(--body); font-size: 14px; line-height: 1.9; letter-spacing: .08em; }
.occasion__english { margin-top: 27px; font-family: var(--roman); font-size: 10px; line-height: 1.6; letter-spacing: .1em; }

.closing { padding: 35px 28px max(38px, env(safe-area-inset-bottom)); text-align: center; }
.closing__botanical { width: 57px; height: 72px; margin: 0 auto 12px; opacity: .75; transform: rotate(25deg); }
.closing__script { font-family: var(--roman); font-style: italic; font-size: 34px; line-height: 1.2; letter-spacing: -.035em; }
.closing__message { margin-top: 17px; color: var(--body); font-size: 14px; line-height: 1.9; letter-spacing: .06em; }
.closing__names { margin-top: 24px; font-size: 17px; line-height: 1.6; letter-spacing: .1em; }
.closing__names span { margin: 0 7px; font-family: var(--roman); font-style: italic; }
.closing__date { margin-top: 9px; color: var(--quiet); font-family: var(--roman); font-size: 12px; line-height: 1.5; letter-spacing: .16em; }

@media (min-width: 600px) {
  .opening { padding: 40px 56px 0; }
  .opening__announcement { margin-top: 24px; }
  .couple { gap: 28px; font-size: 42px; }
  .couple i { font-size: 34px; }
  .opening__portrait { margin-top: 28px; border-radius: 220px 220px 0 0; }
  .opening__portrait .photo { border-radius: 210px 210px 0 0; }
  .opening__date { font-size: 34px; }
  .opening__venue { font-size: 16px; }
  .opening__occasion { padding-bottom: 34px; }
  .letter { padding-top: 64px; }
  .letter__botanical { top: 54px; right: 57px; width: 155px; height: 194px; }
  .letter h2 { font-size: 33px; }
  .letter__copy { font-size: 16px; }
  .collection { padding-top: 64px; padding-bottom: 52px; }
  .collection__heading { padding-right: 70px; padding-left: 70px; margin-bottom: 32px; }
  .collection__heading h2 { font-size: 32px; }
  .collection__grid { margin-right: 70px; margin-left: 70px; gap: 24px; }
  .photo-strip__track { gap: 18px; }
  .photo-strip__track > .photo { flex-basis: 54%; }
  .photo-strip__hint { margin-bottom: 16px; }
  .collection__note { margin-top: 32px; font-size: 16px; }
  .collection--keepsake { padding-bottom: 74px; }
  .collection--keepsake .collection__grid { max-width: 550px; margin-right: auto; margin-left: auto; gap: 28px; }
  .collection--keepsake .photo { padding: 14px; }
  .occasion { margin: 0 70px; padding: 48px 40px 35px; }
  .occasion h2 { font-size: 32px; }
  .occasion__details { display: grid; grid-template-columns: 1fr 1.3fr; margin-top: 34px; }
  .occasion__detail + .occasion__detail { margin-top: 0; padding: 0 0 0 22px; border-top: 0; border-left: 1px solid var(--line); }
  .occasion__detail:first-child { padding-right: 22px; }
  .occasion__detail dd { font-size: 18px; }
  .occasion__english { margin-top: 35px; }
  .closing { padding-top: 40px; padding-bottom: 48px; }
}

@media (max-width: 350px) {
  .opening { padding-right: 22px; padding-left: 22px; }
  .couple { gap: 10px; }
  .opening__venue { font-size: 14px; }
  .collection__heading h2 { font-size: 23px; }
  .collection__grid { gap: 10px; margin-right: 16px; margin-left: 16px; }
  .occasion { margin-right: 17px; margin-left: 17px; padding-right: 20px; padding-left: 20px; }
  .occasion__detail dd { font-size: 16px; }
}

@media print {
  html, body { background: var(--paper); }
  .invitation { box-shadow: none; }
  .opening, .photo, .occasion { break-inside: avoid; }
  .photo-strip__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .photo-strip__hint { display: none; }
  .collection--wine, .collection--night { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
