:root {
  --ink: #2a1840;
  --ink-soft: #4a2f66;
  --muted: #8a6a9a;
  --line: rgba(192, 146, 214, 0.28);
  --line-2: rgba(176, 120, 200, 0.35);
  --gold: #e8c56a;
  --gold-deep: #c9a227;
  --gold-soft: #f7e7b0;
  --lilac: #c9a0dc;
  --lilac-deep: #8e5aad;
  --rose: #f2b6d0;
  --night: #1a0f2e;
  --paper: #faf4ff;
  --cream: #fff8ef;
  --white: #fffcf7;
  --shell: min(1120px, calc(100% - 2.5rem));
  --display: "Cinzel", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 8% -5%, rgba(232, 197, 106, 0.22), transparent 55%),
    radial-gradient(800px 480px at 100% 0%, rgba(201, 160, 220, 0.28), transparent 55%),
    linear-gradient(180deg, #f7eefc 0%, #fff8ef 42%, #f3e8ff 100%);
}

.atmosphere__stars {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, rgba(232, 197, 106, 0.9), transparent),
    radial-gradient(1px 1px at 28% 55%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 62% 18%, rgba(201, 160, 220, 0.9), transparent),
    radial-gradient(1px 1px at 78% 42%, rgba(232, 197, 106, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 90% 70%, rgba(255, 255, 255, 0.75), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.8;
  }
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell--narrow {
  width: min(680px, calc(100% - 2.5rem));
}

/* Nav */
.nav {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem clamp(0.85rem, 2.5vw, 1.5rem);
  backdrop-filter: blur(14px);
  background: rgba(250, 244, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold-deep);
}

.nav__crown {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-soft), var(--lilac));
  color: var(--ink);
  font-size: 0.72rem;
  box-shadow: 0 0 0 1px rgba(232, 197, 106, 0.45);
}

.nav__links {
  display: none;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav__links a,
.nav__link-ext {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.nav__links a:hover,
.nav__link-ext:hover {
  color: var(--ink);
}

.nav__links a.is-active {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.28em;
}

/* Inner pages — fit viewport, no scroll */
.page {
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: clamp(0.75rem, 2vh, 1.4rem) 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page > .shell,
.page > .shell--narrow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page--night {
  padding: 0;
}

/* Home hero — split so full portrait is visible */
.hero--split {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  padding: clamp(0.75rem, 2vh, 1.5rem) clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 15% 20%, rgba(232, 197, 106, 0.18), transparent 60%),
    radial-gradient(600px 380px at 90% 10%, rgba(201, 160, 220, 0.22), transparent 55%),
    linear-gradient(135deg, #2a1840 0%, #4a2f66 42%, #6a4588 100%);
  color: #fff8ef;
}

.hero--split .hero__copy {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 560px;
}

.hero__stage {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(100%, 420px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero__frame {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(232, 197, 106, 0.55);
  box-shadow:
    0 0 0 6px rgba(255, 248, 239, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.35);
  background: #1a0f2e;
  aspect-ratio: 3 / 4;
  max-height: min(68vh, 560px);
}

.hero--split .hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: none;
  animation: none;
}

.hero__caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.hero__lanterns {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__lanterns {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lantern {
  position: absolute;
  bottom: -12%;
  width: 28px;
  height: 40px;
  border-radius: 7px 7px 11px 11px;
  background: linear-gradient(180deg, #fff6c8 0%, #e8c56a 42%, #b8860b 100%);
  box-shadow:
    0 0 22px rgba(232, 197, 106, 0.9),
    0 0 44px rgba(232, 197, 106, 0.4);
  animation: lanternRise linear infinite;
  opacity: 0.9;
}

.lantern::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 5px 5px 0 0;
  background: rgba(232, 197, 106, 0.88);
  box-shadow: 0 0 10px rgba(232, 197, 106, 0.55);
}

.lantern::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 35%, #fff8d6, transparent 72%);
}

.atmosphere__lanterns .lantern {
  width: 22px;
  height: 32px;
  opacity: 0.65;
}

.profile__lanterns {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__kicker {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero__brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #fff4c8 0%, #f7e7b0 35%, #e8c56a 70%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

.hero__title {
  margin: 0.3rem 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.5vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 248, 239, 0.92);
}

.hero__lede {
  margin: 0 0 1rem;
  max-width: 38ch;
  color: rgba(255, 248, 239, 0.78);
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  max-width: 420px;
}

.hero__stats div {
  padding: 0.85rem 0.7rem;
  border: 1px solid rgba(232, 197, 106, 0.35);
  background: rgba(26, 15, 46, 0.35);
  backdrop-filter: blur(8px);
  text-align: center;
}

.hero__stats dt {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.hero__stats dd {
  margin: 0.25rem 0 0;
  color: rgba(255, 248, 239, 0.65);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes photoDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes lanternRise {
  0% {
    transform: translate3d(0, 0, 0) scale(calc(var(--lantern-scale, 1) * 0.85));
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(22px, -115vh, 0) scale(calc(var(--lantern-scale, 1) * 1.12));
    opacity: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8c56a, #c9a227);
  color: var(--night);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(201, 162, 39, 0.45);
}

.btn--ghost {
  background: rgba(255, 248, 239, 0.08);
  color: #fff8ef;
  border-color: rgba(232, 197, 106, 0.5);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 248, 239, 0.16);
  box-shadow: none;
}

/* Sections */
.section {
  padding: clamp(4.2rem, 9vw, 6.5rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(247, 231, 176, 0.18), rgba(201, 160, 220, 0.14));
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 560px;
  margin-bottom: clamp(0.7rem, 1.8vh, 1.2rem);
  flex: 0 0 auto;
}

.section__head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--gold-deep);
}

.section__head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(247, 231, 176, 0.85);
}

/* Profile */
.profile {
  display: grid;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

.profile__portrait {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(232, 197, 106, 0.45);
  box-shadow: 0 16px 40px rgba(42, 24, 64, 0.14);
  min-height: 0;
  height: 100%;
  align-self: stretch;
  background: #1a0f2e;
}

.profile__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(58vh, 520px);
  object-fit: cover;
  object-position: center 22%;
  background: #1a0f2e;
}

.profile__portrait figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(transparent, rgba(26, 15, 46, 0.88));
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  z-index: 2;
}

.profile__main {
  padding: 1rem 1.15rem;
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(142, 90, 173, 0.1);
  overflow: hidden;
  min-height: 0;
}

.profile__main h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--gold-deep);
}

.profile__role {
  margin: 0 0 0.9rem;
  color: var(--lilac-deep);
  font-weight: 600;
}

.profile__bio {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.profile__facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.profile__facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.profile__facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.profile__facts dd {
  margin: 0;
  font-weight: 600;
}

.profile__facts a {
  color: var(--lilac-deep);
  font-weight: 700;
  text-decoration: none;
}

/* Path */
.path {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  overflow: hidden;
}

.path__item {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid var(--line);
}

.path__item time {
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.path__item h3 {
  margin: 0 0 0.1rem;
  font-size: 0.98rem;
  font-weight: 650;
}

.path__item .org {
  margin: 0 0 0.4rem;
  color: var(--lilac-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

.path__item p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

/* Work */
.work {
  display: grid;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-content: start;
}

.work__item {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.work__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(142, 90, 173, 0.14);
}

.work__item span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.work__item h3 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.work__item p {
  margin: 0;
  color: var(--ink-soft);
}

.work__item em {
  display: block;
  margin-top: 0.9rem;
  color: var(--lilac-deep);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Moment */
.moment {
  padding: clamp(1.2rem, 3vh, 2.5rem) 0;
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(232, 197, 106, 0.28), transparent 60%),
    linear-gradient(155deg, #1a0f2e 0%, #3a2258 45%, #5a3a7a 100%);
  color: #fff8ef;
}

.moment--page {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: grid;
  align-content: center;
  overflow: hidden;
}

.moment__inner {
  display: grid;
  gap: 2rem;
}

.moment__copy h2 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 500;
}

.moment__copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 248, 239, 0.72);
}

.clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.clock div {
  padding: 1.05rem 0.35rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 197, 106, 0.28);
  background: rgba(255, 248, 239, 0.06);
  text-align: center;
}

.clock strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-soft);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.clock strong.is-tick {
  transform: translateY(-3px);
  opacity: 0.75;
}

.clock span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 248, 239, 0.55);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.moment__done {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
}

/* Letter */
.letter-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.letter-split {
  display: grid;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.letter__photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 197, 106, 0.45);
  box-shadow: 0 12px 32px rgba(42, 24, 64, 0.14);
  background: #1a0f2e;
  min-height: 0;
}

.letter__photo img {
  width: 100%;
  height: 100%;
  min-height: min(36vh, 320px);
  object-fit: cover;
  object-position: center 18%;
}

.letter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.15rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.4vw, 1.9rem);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.85);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(142, 90, 173, 0.1);
  overflow: auto;
  min-height: 0;
}

.letter p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.55;
}

.letter p:first-child {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.15rem;
}

.letter__sign {
  margin-top: 1.6rem !important;
  margin-bottom: 0 !important;
  color: var(--ink) !important;
  font-family: var(--display) !important;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

/* Guestbook */
.guestbook--wishes {
  display: grid;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.guestbook__compose {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  height: 100%;
}

.wishes-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
}

.wishes-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(142, 90, 173, 0.12);
  background: #1a0f2e;
  min-height: 0;
  height: 100%;
}

.wishes-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishes-gallery figure:first-child img {
  object-position: center 20%;
}

.wishes-gallery figure:last-child img {
  object-position: center 35%;
}

.guestbook {
  display: grid;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

body[data-page="wishes"] .section__head {
  margin-bottom: 0.55rem;
}

body[data-page="wishes"] .section__head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  margin-bottom: 0.2rem;
}

body[data-page="wishes"] .section__head p:not(.eyebrow) {
  font-size: 0.88rem;
}

body[data-page="wishes"] .guestbook__form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 0 0 auto;
}

body[data-page="wishes"] .guestbook__wish-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.guestbook__form {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid var(--line);
  align-content: start;
}

.guestbook__form label {
  display: grid;
  gap: 0.35rem;
}

.guestbook__form label span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.guestbook__form input,
.guestbook__form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.guestbook__form input:focus,
.guestbook__form textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(232, 197, 106, 0.2);
}

.guestbook__form textarea {
  resize: none;
  min-height: 56px;
  max-height: 72px;
}

body[data-page="wishes"] .guestbook__form textarea {
  flex: 1;
  min-height: 64px;
  max-height: none;
}

.guestbook__list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.45rem;
  min-height: 0;
  overflow: hidden;
  align-content: start;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
}

body[data-page="wishes"] .guestbook__list {
  height: 100%;
}

body[data-page="wishes"] .guestbook__list:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body[data-page="wishes"] .guestbook__list:not(:empty) {
  display: grid;
  align-content: start;
  overflow: auto;
}

.guestbook__list:empty::before {
  content: "No lanterns yet — release the first wish ✦";
  color: var(--muted);
  font-size: 0.92rem;
}

body[data-page="wishes"] .guestbook__list:empty::before {
  max-width: 16rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.5;
}

.wish {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  animation: wishIn 0.4s var(--ease);
}

.wish__name {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--lilac-deep);
}

.wish__message {
  margin: 0;
  color: var(--ink-soft);
}

.wish__time {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
}

@keyframes wishIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Footer */
.footer {
  flex: 0 0 auto;
  padding: 0.65rem 0 0.85rem;
  border-top: 1px solid var(--line);
  background: rgba(247, 238, 252, 0.85);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
}

.footer__name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-deep);
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

.footer__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
}

.footer__links a:hover {
  color: var(--lilac-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }

  .hero--split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }

  .hero__stage {
    width: min(100%, 440px);
    justify-self: end;
    height: 100%;
  }

  .hero__frame {
    max-height: none;
    height: min(100%, 62vh);
  }

  .hero--split .hero__photo {
    object-position: center 22%;
  }

  .profile {
    grid-template-columns: 1fr 1.05fr;
    align-items: stretch;
  }

  .letter-split {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .path {
    grid-template-columns: 1fr 1fr;
  }

  .path__item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .work {
    grid-template-columns: repeat(3, 1fr);
  }

  .moment__inner {
    grid-template-columns: 1fr 1.15fr;
    align-items: end;
  }

  .guestbook {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
  }

  .guestbook--wishes {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

@media (max-width: 899px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
  }

  .nav__links {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 0.6rem 0.85rem;
    padding-top: 0.2rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .nav__link-ext {
    display: none;
  }

  .hero--split {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
  }

  .hero__stats {
    max-width: none;
  }

  .hero__stats dd {
    font-size: 0.62rem;
  }

  .profile__facts div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .hero__brand {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .hero__frame {
    max-height: min(42vh, 320px);
    aspect-ratio: 4 / 5;
  }

  .hero__caption {
    display: none;
  }

  .footer__links {
    display: none;
  }

  .path {
    grid-template-columns: 1fr 1fr;
  }

  .path__item p:last-child {
    display: none;
  }

  .work__item p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .guestbook__list {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__stars,
  .hero__photo,
  .lantern,
  .reveal,
  .clock strong,
  .wish {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
