/* ============================================================
   Sangjun & Christie — Mobile Wedding Invitation
   Palette: warm ivory / deep brown-charcoal / muted gold
   ============================================================ */

:root {
  --bg:          #f6f1ea;
  --bg-outer:    #e8ded1;
  --surface:     #fffdf9;
  --ink:         #3a322e;
  --ink-soft:    #6c5f57;
  --ink-mute:    #9b8c81;
  --gold:        #b3945f;
  --gold-deep:   #97794a;
  --gold-soft:   #ddcbaa;
  --line:        #e4dacb;
  --line-soft:   #efe7db;
  --sun:         #b9705f;

  --serif-latin: 'Cormorant Garamond', 'Noto Serif KR', serif;
  --serif-ko:    'Noto Serif KR', 'Cormorant Garamond', serif;
  --serif-ja:    'Noto Serif JP', 'Noto Serif KR', 'Cormorant Garamond', serif;

  --col:  430px;
  --pad:  26px;
  --ease: cubic-bezier(0.22, 0.72, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-outer);
  color: var(--ink);
  font-family: 'Cormorant Garamond', 'Noto Serif KR', 'Noto Serif JP', serif;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ja"] body {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', 'Noto Serif KR', serif;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- page column ---------- */
.page {
  max-width: var(--col);
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 520px) {
  .page { box-shadow: 0 0 60px rgba(74, 58, 42, 0.14); }
}

/* ============================================================
   LANGUAGE SWITCH
   ============================================================ */
.lang-switch {
  position: fixed;
  z-index: 60;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: max(14px, calc(50vw - (var(--col) / 2) + 14px));
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(179, 148, 95, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(58, 50, 46, 0.10);
}

.lang-btn {
  background: none;
  border: 0;
  padding: 3px 7px;
  font-family: var(--serif-latin);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.11em;
  color: var(--ink-mute);
  border-radius: 999px;
  transition: color 0.25s var(--ease);
}

.lang-btn.is-active {
  color: var(--gold-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.lang-sep {
  color: rgba(155, 140, 129, 0.5);
  font-size: 12px;
  line-height: 1;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #241f1c;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.06);
  animation: kenburns 26s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.19) translate3d(0, -1.6%, 0); }
}

.hero__petals {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(28, 22, 18, 0.42) 0%, rgba(28, 22, 18, 0) 34%),
    linear-gradient(to top, rgba(28, 22, 18, 0.72) 0%, rgba(28, 22, 18, 0.28) 34%, rgba(28, 22, 18, 0) 62%);
}

.hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
  z-index: 3;
  padding: 0 var(--pad);
  text-align: center;
  color: #fdfbf7;
  text-shadow: 0 1px 18px rgba(20, 15, 12, 0.55);
}

.hero__eyebrow {
  margin: 0 0 22px;
  font-family: var(--serif-latin);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.86);
}

.hero__names {
  margin: 0;
  font-weight: 300;
  font-size: clamp(27px, 8vw, 34px);
  line-height: 1.45;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero__amp {
  font-family: var(--serif-latin);
  font-style: italic;
  font-size: 0.62em;
  color: var(--gold-soft);
  line-height: 1;
  margin: 4px 0;
}

.hero__rule {
  width: 44px;
  height: 1px;
  margin: 22px auto 18px;
  background: rgba(253, 251, 247, 0.55);
}

.hero__date {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(253, 251, 247, 0.95);
}

.hero__venue {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(253, 251, 247, 0.78);
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 38px);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: rgba(253, 251, 247, 0.22);
}

.hero__scroll-line {
  position: absolute;
  inset: 0;
  background: rgba(253, 251, 247, 0.9);
  animation: scrollhint 2.4s ease-in-out infinite;
}

@keyframes scrollhint {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   SHARED SECTION FURNITURE
   ============================================================ */
.section {
  padding: 76px var(--pad) 68px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--serif-latin);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.section__title {
  margin: 0;
  font-family: var(--serif-ko);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

html[lang="ja"] .section__title { font-family: var(--serif-ja); }
html[lang="en"] .section__title { font-family: var(--serif-latin); font-size: 25px; letter-spacing: 0.05em; }

.subsection__title {
  margin: 0 0 20px;
  font-family: var(--serif-ko);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.09em;
  color: var(--ink);
}

html[lang="ja"] .subsection__title { font-family: var(--serif-ja); }

.ornament {
  position: relative;
  width: 66px;
  height: 1px;
  margin: 26px auto 34px;
  background: linear-gradient(to right, transparent, var(--gold-soft) 22%, var(--gold-soft) 78%, transparent);
}

.ornament::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--bg);
  border: 1px solid var(--gold);
}

.ornament--footer { margin: 0 auto 26px; }

.hairline {
  height: 1px;
  margin: 46px 0 40px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

/* ============================================================
   2. INVITATION
   ============================================================ */
.invite__body { margin: 0; }

.invite__p {
  margin: 0 0 26px;
  white-space: pre-line;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.015em;
  color: var(--ink-soft);
}

html[lang="en"] .invite__p { font-size: 17px; line-height: 1.95; }

.invite__p:last-child { margin-bottom: 0; }

.parents { margin: 0; }

.parents__line {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.parents__line:last-child { margin-bottom: 0; }

.parents__of {
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
}

.parents__name {
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

/* ============================================================
   3. CALENDAR + COUNTDOWN
   ============================================================ */
.calendar__dateline {
  margin: 0 0 30px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.calendar {
  padding: 24px 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.calendar__month {
  margin: 0 0 18px;
  font-family: var(--serif-latin);
  font-size: 17px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

html[lang="ko"] .calendar__month,
html[lang="ja"] .calendar__month { font-size: 15px; letter-spacing: 0.1em; }

.calendar__grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar__grid th {
  padding-bottom: 12px;
  font-family: var(--serif-latin);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

html[lang="ko"] .calendar__grid th,
html[lang="ja"] .calendar__grid th { font-family: inherit; font-size: 12px; letter-spacing: 0.04em; }

.calendar__grid th:first-child { color: var(--sun); }

.calendar__grid td {
  height: 40px;
  text-align: center;
  vertical-align: middle;
  font-family: var(--serif-latin);
  font-size: 15px;
  color: var(--ink-soft);
}

.calendar__grid td.is-sun { color: var(--sun); }
.calendar__grid td.is-empty { color: transparent; }

.cal-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  line-height: 1;
}

td.is-wedding { position: relative; }

td.is-wedding .cal-day {
  background: var(--gold);
  color: #fffdf9;
  font-weight: 500;
  box-shadow: 0 0 0 4px rgba(179, 148, 95, 0.14);
}

.cal-heart {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  font-size: 9px;
  line-height: 1;
  color: var(--gold);
}

/* ---------- countdown ---------- */
.countdown { margin-top: 34px; }

.countdown__prefix {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

.countdown__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  gap: 6px;
}

.cd-num {
  font-family: var(--serif-latin);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.cd-num.is-tick { opacity: 0.25; transform: translateY(-3px); }

.cd-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

html[lang="ko"] .cd-label,
html[lang="ja"] .cd-label { font-size: 11.5px; letter-spacing: 0.06em; text-transform: none; }

.cd-colon {
  font-family: var(--serif-latin);
  font-size: 22px;
  line-height: 1.15;
  color: var(--gold-soft);
}

.countdown__note {
  margin: 20px 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}

/* ============================================================
   4. GALLERY
   ============================================================ */
.gallery__hint {
  margin: -18px 0 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tile {
  position: relative;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  background: var(--line-soft);
  aspect-ratio: 3 / 4;
  display: block;
}

.tile--wide {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}

/* studio-lean: anchor the crop to the top so the faces are never cut off.
   Affects the gallery thumbnail only — the lightbox shows the full image. */
.tile--top img { object-position: top center; }

.tile:hover img,
.tile:focus-visible img { transform: scale(1.045); }

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 24, 20, 0.16), rgba(30, 24, 20, 0) 45%);
  pointer-events: none;
}

/* ============================================================
   5. PARALLAX DIVIDER
   ============================================================ */
.divider {
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #201a17;
}

.divider__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -14%;
  height: 128%;
  background-image: url('../img/station-wide-1600.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.divider__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24, 18, 15, 0.5), rgba(24, 18, 15, 0.34) 45%, rgba(24, 18, 15, 0.62));
}

.divider__quote {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 32px;
  white-space: pre-line;
  text-align: center;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.09em;
  color: #fdfbf7;
  text-shadow: 0 1px 16px rgba(20, 15, 12, 0.6);
}

html[lang="en"] .divider__quote { font-size: 19px; font-style: italic; letter-spacing: 0.04em; }

/* ============================================================
   6. LOCATION
   ============================================================ */
.venue__name {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.venue__hall {
  margin: 0 0 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}

.venue__address {
  margin: 0 0 3px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.venue__address-sub {
  margin: 0 0 18px;
  font-family: var(--serif-latin);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
}

.map-frame {
  margin: 26px 0 28px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--line-soft);
  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.12) contrast(0.98);
}

/* Shown instead of the embed inside in-app webviews (KakaoTalk 등). */
.map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  padding: 26px 22px;
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  color: var(--ink);
}

.map-fallback[hidden] { display: none; }

.map-fallback__pin { color: var(--gold); line-height: 0; }

.map-fallback__pin svg {
  display: block;
  width: 26px;
  height: 26px;
}

.map-fallback__venue {
  font-size: 15px;
  letter-spacing: 0.05em;
}

.map-fallback__addr {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

.map-fallback__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 20px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}

.map-links__label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

.map-links {
  display: flex;
  gap: 8px;
}

/* ---------- parking ---------- */
.parking { text-align: center; }

.parking__item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.parking__item:first-of-type { border-top: 1px dashed var(--line); }

.parking__label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.parking__name {
  margin: 0 0 3px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.parking__addr {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

.parking__note {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-mute);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn__icon { font-size: 13px; line-height: 1; }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--gold-soft);
  color: var(--ink-soft);
}

.btn--ghost:hover { background: rgba(179, 148, 95, 0.08); }

.btn--solid {
  width: 100%;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #fffdf9;
}

.btn--solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--solid[disabled] { opacity: 0.55; cursor: default; }

.btn--map {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 8px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 4px;
}

.btn--map:hover { border-color: var(--gold-soft); color: var(--gold-deep); }

.btn--copy-sm {
  min-height: 34px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  border-radius: 999px;
}

.btn--copy-sm:hover { border-color: var(--gold-soft); color: var(--gold-deep); }

.btn--share { margin-top: 6px; }

/* ============================================================
   7. GIFTS
   ============================================================ */
.gifts__intro {
  margin: 0 0 30px;
  white-space: pre-line;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-mute);
}

.accordions { text-align: left; }

.accordion { border-bottom: 1px solid var(--line); }
.accordion:first-child { border-top: 1px solid var(--line); }
.accordion[hidden] { display: none; }

.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 4px;
  background: none;
  border: 0;
  text-align: left;
}

.accordion__title {
  font-size: 15px;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.accordion__chevron {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.34s var(--ease);
}

.accordion.is-open .accordion__chevron {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.accordion.is-open .accordion__panel { grid-template-rows: 1fr; }

.accordion__inner {
  min-height: 0;
  overflow: hidden;
}

.account {
  padding: 16px 4px 20px;
  border-top: 1px dashed var(--line);
}

.accordion__inner > .account:first-child { border-top: 0; }

.account__bank {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.account__holder {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.account__number {
  margin: 0 0 12px;
  font-family: var(--serif-latin);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   8. GUESTBOOK
   ============================================================ */
.gb__intro {
  margin: 0 0 28px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-mute);
}

.gb__unavailable {
  margin: 0 0 8px;
  padding: 26px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-mute);
}

.gb__form { text-align: left; }

.gb__field {
  position: relative;
  display: block;
  margin-bottom: 16px;
}

.gb__label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.gb__form input[type='text'],
.gb__form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}

.gb__form input[type='text']:focus,
.gb__form textarea:focus {
  border-color: var(--gold-soft);
  outline: none;
}

.gb__form ::placeholder { color: #bcaea2; opacity: 1; }

.gb__counter {
  display: block;
  margin-top: 5px;
  text-align: right;
  font-family: var(--serif-latin);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

/* honeypot — visually and from AT hidden, still fillable by bots */
.gb__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gb__error {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #a8564a;
}

.gb__total {
  margin: 30px 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.gb__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  text-align: left;
}

.gb__item {
  padding: 18px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.gb__item:first-child { border-top: 1px solid var(--line-soft); }

.gb__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.gb__name {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.gb__date {
  flex: none;
  font-family: var(--serif-latin);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}

.gb__message {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.gb__empty {
  margin: 26px 0;
  font-size: 13px;
  color: var(--ink-mute);
}

#gbMore { margin-top: 4px; }

/* ============================================================
   9. FOOTER
   ============================================================ */
.footer {
  padding: 60px var(--pad) calc(env(safe-area-inset-bottom, 0px) + 64px);
  text-align: center;
  background: linear-gradient(to bottom, var(--bg), #f0e9df);
  border-top: 1px solid var(--line-soft);
}

.footer__thanks {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-mute);
}

.footer__names {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: 0.09em;
  color: var(--ink);
}

.footer__date {
  margin: 0 0 26px;
  font-family: var(--serif-latin);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--gold-deep);
}

.footer__mark {
  margin: 30px 0 0;
  font-family: var(--serif-latin);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: rgba(155, 140, 129, 0.7);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 17, 14, 0.96);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  touch-action: pan-y;
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  margin: 0;
  padding: 0 12px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  max-height: 80svh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.25s var(--ease);
}

.lightbox.is-swapping .lightbox__img { opacity: 0; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: 50%;
  color: rgba(255, 253, 249, 0.92);
  line-height: 1;
}

.lightbox__close {
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  font-size: 26px;
}

.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 30px; padding-bottom: 4px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

.lightbox__counter {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--serif-latin);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255, 253, 249, 0.66);
}

body.is-locked { overflow: hidden; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 30px);
  transform: translate(-50%, 10px);
  max-width: calc(100vw - 48px);
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(48, 40, 35, 0.94);
  color: #fdfbf7;
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero__img { animation: none; transform: scale(1.02); }
  .hero__scroll { display: none; }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
