/*
Theme Name: Zhao Jingxuan Birthday
Theme URI: https://zhao-jingxuan.love
Author: OpenAI Codex
Description: Editorial birthday microsite theme for zhao-jingxuan.love.
Version: 1.1.9
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: zhao-jingxuan-birthday
*/

:root {
  --bg: #fbf8f3;
  --bg-strong: #f4efe7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(34, 34, 41, 0.08);
  --line-strong: rgba(34, 34, 41, 0.14);
  --text: #17212f;
  --muted: #5a6677;
  --accent: #be7559;
  --accent-soft: #ead0c5;
  --accent-gold: #aa8458;
  --shadow: 0 24px 70px rgba(27, 33, 46, 0.11);
  --content-width: min(1200px, calc(100vw - 36px));
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --hero-copy-width: 392px;
  --hero-video-height: clamp(560px, 74vh, 740px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(234, 208, 197, 0.7), transparent 30%),
    linear-gradient(180deg, #fdfaf7 0%, #f8f2eb 55%, #f5f1ea 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
}

.page-shell {
  position: relative;
  overflow: clip;
}

.background-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(251, 248, 243, 0.24), rgba(251, 248, 243, 0.48)),
    url("assets/hero-portrait.jpg") center 8% / cover no-repeat;
  filter: saturate(1) brightness(0.96) contrast(1.03);
}

.background-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.54), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(190, 117, 89, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(251, 248, 243, 0.36));
  backdrop-filter: blur(1.2px);
}

.site,
.noscript-shell {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.section {
  margin-bottom: 50px;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    minmax(300px, var(--hero-copy-width))
    minmax(300px, calc((var(--hero-video-height) * 9 / 16) + 20px))
    minmax(168px, 232px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding: 36px 0 24px;
}

.hero-copy,
.hero-video-column,
.hero-preview {
  position: relative;
  z-index: 1;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -24px -18px -24px -18px;
  z-index: -1;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 47, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.62), transparent 55%);
  backdrop-filter: blur(8px);
}

.kicker,
.section-heading .kicker,
.closing-label,
.wish-meta span,
.video-meta span,
.wish-count-pill,
.noscript-hero p:first-child {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.hero-title,
.section-heading h2,
.closing-line,
.noscript-hero h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-title {
  margin-top: 12px;
  font-size: clamp(2.9rem, 6.4vw, 5.25rem);
  white-space: pre-line;
}

.hero-copy .kicker {
  max-width: 32ch;
  font-size: 0.74rem;
  line-height: 1.6;
  letter-spacing: 0.14em;
}

.hero-subtitle {
  margin: 18px 0 22px;
  max-width: 26ch;
  font-size: 0.98rem;
  line-height: 1.82;
  color: var(--muted);
}

.hero-signature {
  display: grid;
  gap: 8px;
}

.hero-signature-line {
  width: fit-content;
  max-width: 100%;
  padding: 0.12em 0.18em;
  border-radius: 14px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.14rem, 2vw, 1.58rem);
  line-height: 1.2;
  color: rgba(23, 33, 47, 0.8);
  background: rgba(255, 255, 255, 0.34);
}

.hero-signature-line:nth-child(2) {
  margin-left: 14px;
}

.hero-signature-line:nth-child(3) {
  margin-left: 34px;
}

.hero-video-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-card {
  width: min(100%, calc((var(--hero-video-height) * 9 / 16) + 20px));
  padding: 10px 10px 12px;
  border-radius: 24px;
  border: 1px solid rgba(23, 33, 47, 0.08);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 56px rgba(31, 41, 59, 0.1);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: var(--hero-video-height);
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(160deg, rgba(224, 212, 204, 0.92), rgba(188, 117, 89, 0.28));
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.video-frame video,
.video-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    linear-gradient(180deg, rgba(20, 24, 32, 0.22), rgba(20, 24, 32, 0.06));
}

.video-placeholder {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(19, 22, 31, 0.3);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.video-placeholder p,
.video-placeholder span {
  margin: 0;
  line-height: 1.6;
}

.video-placeholder code {
  font-family: "Manrope", monospace;
}

.video-placeholder.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 33, 47, 0.07);
}

.hero-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  padding: 8px 0 0;
}

.hero-preview-figure {
  width: min(100%, 198px);
  margin: 0;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(23, 33, 47, 0.08);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 42px rgba(27, 33, 46, 0.08);
  backdrop-filter: blur(10px);
  transform: rotate(4deg) translateY(26px);
}

.hero-preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.preview-note {
  width: min(100%, 286px);
  justify-self: start;
  padding: 16px 18px 15px;
  border-radius: 12px;
  border: 1px solid rgba(23, 33, 47, 0.1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 34px rgba(27, 33, 46, 0.06);
  backdrop-filter: blur(10px);
}

.preview-note:nth-child(2) {
  margin-left: 28px;
}

.preview-note:nth-child(3) {
  margin-left: 10px;
}

.preview-note p {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  line-height: 1.65;
}

.preview-note footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portrait-section {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 46px);
  align-items: start;
  padding: 14px 0 18px;
}

.portrait-copy {
  position: sticky;
  top: 56px;
  align-self: start;
  display: grid;
  gap: 14px;
  max-width: 26ch;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.portrait-copy h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  max-width: 11ch;
  font-size: clamp(1.9rem, 3.1vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  overflow-wrap: normal;
  word-break: keep-all;
}

.portrait-description {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.84;
  color: var(--muted);
}

.portrait-stage {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.portrait-frame {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: min(100%, 760px);
  min-height: 0;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(23, 33, 47, 0.08);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 26px 70px rgba(27, 33, 46, 0.1);
  backdrop-filter: blur(12px);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  pointer-events: none;
}

.portrait-full-image {
  display: block;
  width: auto;
  max-width: min(100%, 736px);
  height: auto;
  max-height: min(82vh, 920px);
  object-fit: contain;
  object-position: center center;
  border-radius: 12px;
  background: transparent;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  max-width: 12ch;
}

.wish-band {
  position: relative;
  padding: 30px 0;
}

.wish-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(23, 33, 47, 0.1), rgba(23, 33, 47, 0.02));
  z-index: -1;
}

.wish-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 20px;
  padding: 8px 0 12px;
}

.featured-ribbon {
  gap: 28px 22px;
}

.wish-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  width: min(100%, var(--card-width, 320px));
  border-radius: 12px;
  border: 1px solid var(--card-border, rgba(23, 33, 47, 0.1));
  background: var(--card-bg, var(--surface));
  box-shadow: 0 14px 36px rgba(27, 33, 46, 0.07);
  backdrop-filter: blur(10px);
  transform: translateY(var(--y-offset, 0px)) rotate(var(--tilt, 0deg));
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease;
}

.wish-card:hover,
.wish-card:focus-within {
  transform: translateY(calc(var(--y-offset, 0px) - 2px)) rotate(var(--tilt, 0deg));
  box-shadow: 0 18px 42px rgba(27, 33, 46, 0.08);
}

.wish-card.is-open {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 33, 47, 0.18);
}

.wish-card[data-tone="playful"] {
  --card-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72)),
    linear-gradient(160deg, rgba(234, 208, 197, 0.16), rgba(255, 255, 255, 0.02));
  --card-border: rgba(190, 117, 89, 0.1);
}

.wish-card[data-tone="warm"] {
  --card-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74)),
    linear-gradient(160deg, rgba(226, 217, 205, 0.2), rgba(255, 255, 255, 0.02));
}

.wish-card[data-tone="emotional"] {
  --card-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74)),
    linear-gradient(155deg, rgba(255, 236, 228, 0.16), rgba(255, 255, 255, 0.02));
}

.wish-card.featured {
  padding: 20px 20px 18px;
}

.wish-card::after {
  content: none;
}

.wish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(23, 33, 47, 0.07);
}

.wish-author {
  font-family: "Manrope", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wish-meta span:last-child {
  color: var(--muted);
  font-size: 0.85rem;
}

.wish-excerpt {
  display: grid;
  gap: 2px;
}

.wish-excerpt p,
.wish-full p,
.fallback-excerpt {
  margin: 0;
}

.wish-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: var(--excerpt-size, 1.08rem);
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.wish-card.featured .wish-line {
  --excerpt-size: 1.22rem;
}

.wish-full {
  display: grid;
  gap: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 360ms ease,
    opacity 240ms ease,
    margin-top 240ms ease;
}

.wish-card.is-open .wish-full {
  opacity: 1;
  max-height: 520px;
  margin-top: 6px;
}

.wish-full p {
  line-height: 1.9;
  color: var(--muted);
}

.wish-toggle {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 4px 0 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 33, 47, 0.16);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.76rem/1 "Manrope", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.wish-toggle:hover,
.wish-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(23, 33, 47, 0.34);
}

.wish-toggle::after {
  content: "→";
  font-size: 0.86rem;
}

.wish-card.is-open .wish-toggle::after {
  content: "↑";
}

.wish-count-pill {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.duck-bowl-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 350px);
  grid-template-areas: "stage copy";
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
  padding: 20px 0 16px;
}

.duck-bowl-copy {
  grid-area: copy;
  position: sticky;
  top: 56px;
  display: grid;
  gap: 16px;
  justify-items: end;
  text-align: right;
  z-index: 4;
}

.duck-bowl-copy .section-heading {
  margin-bottom: 0;
}

.duck-bowl-copy .section-heading h2 {
  max-width: 10ch;
  font-size: clamp(1.85rem, 3vw, 2.48rem);
  line-height: 1.07;
}

.duck-bowl-description {
  margin: 0;
  max-width: 32ch;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.84;
}

.quack-toggle {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(23, 33, 47, 0.13);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    rgba(234, 208, 197, 0.24);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(27, 33, 46, 0.08);
  font: 700 0.78rem/1 "Manrope", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.quack-toggle:hover,
.quack-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(23, 33, 47, 0.28);
  box-shadow: 0 16px 36px rgba(27, 33, 46, 0.1);
}

.quack-toggle[aria-pressed="true"] {
  border-color: rgba(190, 117, 89, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    rgba(255, 221, 135, 0.34);
}

.quack-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.duck-bowl-stage {
  grid-area: stage;
  position: relative;
  min-height: clamp(640px, 82vw, 980px);
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(23, 33, 47, 0.08);
  background:
    radial-gradient(circle at 26% 14%, rgba(255, 255, 255, 0.84), transparent 30%),
    radial-gradient(circle at 74% 16%, rgba(255, 229, 164, 0.22), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.2)),
    rgba(251, 248, 243, 0.56);
  box-shadow: 0 26px 72px rgba(27, 33, 46, 0.1);
  backdrop-filter: blur(10px);
  isolation: isolate;
}

.duck-bowl-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 229, 164, 0.24), transparent 18%),
    radial-gradient(circle at 28% 82%, rgba(190, 117, 89, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
}

.duck-figure {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  aspect-ratio: 1713 / 1800;
}

.duck-illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 20px 46px rgba(27, 33, 46, 0.1));
}

.duck-bowl {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  mask-image: url("assets/duck-belly-mask.png");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-image: url("assets/duck-belly-mask.png");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
}

.duck-bowl::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.34), transparent 30%),
    radial-gradient(circle at 52% 58%, rgba(251, 248, 243, 0.74), rgba(251, 248, 243, 0.08) 72%);
  opacity: 0.88;
  pointer-events: none;
}

.duck-bowl::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 34%, rgba(23, 33, 47, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.duck-wish {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--duck-width, 114px);
  height: var(--duck-height, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("assets/name-duck.png") center / contain no-repeat;
  color: rgba(23, 33, 47, 0.84);
  cursor: pointer;
  filter: drop-shadow(0 12px 18px rgba(83, 64, 37, 0.16));
  opacity: 0;
  transform-origin: 50% 50%;
  transition:
    opacity 260ms ease,
    filter 180ms ease,
    transform 180ms ease;
  will-change: transform;
}

.duck-wish.is-released {
  opacity: 1;
}

.duck-wish.is-resting {
  filter: drop-shadow(0 10px 16px rgba(83, 64, 37, 0.14));
}

.duck-wish:hover,
.duck-wish:focus-visible {
  filter: drop-shadow(0 18px 22px rgba(83, 64, 37, 0.22)) saturate(1.02) brightness(1.02);
}

.duck-wish:focus-visible {
  outline: 3px solid rgba(190, 117, 89, 0.32);
  outline-offset: 4px;
}

.duck-wish-label {
  position: absolute;
  left: 18%;
  right: 24%;
  top: 64%;
  transform: translateY(-50%);
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: var(--name-font-size, 1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

.wish-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wish-dialog[aria-hidden="true"] {
  display: none;
}

.wish-dialog-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 36%),
    rgba(23, 33, 47, 0.34);
  backdrop-filter: blur(10px);
}

.wish-dialog-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(76vh, 620px);
  overflow: auto;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(23, 33, 47, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
    rgba(251, 248, 243, 0.92);
  box-shadow: 0 28px 90px rgba(17, 24, 39, 0.22);
}

.dialog-close {
  position: absolute;
  right: 20px;
  top: 18px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 33, 47, 0.18);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: 700 0.76rem/1.4 "Manrope", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--text);
  border-color: rgba(23, 33, 47, 0.42);
}

.wish-dialog-card h2 {
  margin: 10px 0 18px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dialog-body {
  display: grid;
  gap: 14px;
}

.dialog-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
  font-size: 1rem;
}

body.dialog-open {
  overflow: hidden;
}

.closing {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 72px 0 18px;
  text-align: center;
}

.closing-line {
  max-width: 18ch;
  font-size: clamp(1.95rem, 3.8vw, 3.1rem);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 640ms ease,
    transform 640ms ease;
}

.js-enhanced .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-shell {
  padding-top: 42px;
}

.noscript-hero {
  margin-bottom: 36px;
}

.noscript-hero h1 {
  margin-top: 10px;
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.noscript-list {
  display: grid;
  gap: 20px;
}

.noscript-list article {
  padding: 22px 20px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.noscript-list h2 {
  margin: 0 0 12px;
  font-size: 1.14rem;
}

.noscript-list p {
  margin: 0;
  line-height: 1.85;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-enhanced .reveal,
  .wish-card,
  .wish-toggle,
  .wish-full,
  .duck-wish,
  .quack-toggle {
    transition: none;
  }
}

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: minmax(280px, 1fr) minmax(292px, 390px);
    align-items: start;
  }

  .hero-preview {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 12px;
  }

  .hero-preview-figure {
    transform: rotate(4deg);
  }

  .portrait-section {
    grid-template-columns: 1fr;
  }

  .portrait-copy {
    position: static;
  }

  .portrait-stage {
    justify-content: flex-start;
  }

  .duck-bowl-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "copy";
  }

  .duck-bowl-copy {
    position: static;
  }

  .duck-bowl-description {
    max-width: 52ch;
  }
}

@media (max-width: 880px) {
  :root {
    --content-width: min(100vw - 24px, 1200px);
  }

  .site,
  .noscript-shell {
    padding-top: 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 24px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-copy .kicker {
    max-width: 100%;
  }

  .hero-video-column {
    justify-content: flex-start;
  }

  .video-card {
    width: min(100%, 410px);
  }

  .video-frame {
    max-height: none;
  }

  .hero-preview {
    justify-content: flex-start;
    padding-top: 4px;
  }

  .hero-preview-figure {
    width: min(100%, 184px);
    transform: rotate(3deg);
  }

  .portrait-frame {
    min-height: 0;
  }

  .portrait-full-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(76vh, 760px);
  }

  .section-heading h2 {
    max-width: 100%;
  }

  .portrait-copy h2,
  .duck-bowl-copy .section-heading h2 {
    max-width: 100%;
  }

  .wish-card {
    transform: none !important;
    width: min(100%, var(--card-width, 320px));
  }

  .wish-card:hover,
  .wish-card:focus-within {
    transform: none !important;
  }

  .video-meta {
    flex-direction: column;
  }

  .duck-bowl-stage {
    min-height: 760px;
    border-radius: 28px;
  }

  .duck-figure {
    width: min(100%, 700px);
  }
}

@media (max-width: 620px) {
  .hero-title {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .hero-copy .kicker {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .hero-signature-line {
    margin-left: 0 !important;
  }

  .video-card {
    width: 100%;
  }

  .hero-copy::before {
    inset: -18px -12px -18px -12px;
  }

  .portrait-copy {
    padding: 22px 18px;
  }

  .portrait-frame {
    padding: 10px;
    border-radius: 18px;
  }

  .portrait-full-image {
    height: auto;
    max-height: none;
    border-radius: 10px;
  }

  .wish-ribbon {
    gap: 18px;
  }

  .wish-card {
    width: 100% !important;
    max-width: 100%;
    padding: 18px 18px 16px;
  }

  .wish-card::after {
    content: none;
  }

  .section {
    margin-bottom: 36px;
  }

  .duck-bowl-section {
    gap: 22px;
    padding-top: 8px;
  }

  .duck-bowl-copy {
    padding: 22px 18px;
    border-radius: 22px;
    border: 1px solid rgba(23, 33, 47, 0.07);
    background: rgba(255, 255, 255, 0.54);
    backdrop-filter: blur(8px);
  }

  .duck-bowl-description {
    max-width: 100%;
  }

  .quack-toggle {
    width: 100%;
    min-height: 46px;
  }

  .duck-bowl-stage {
    min-height: 640px;
    border-radius: 22px;
    padding-inline: 10px;
  }

  .duck-figure {
    width: min(100%, 560px);
  }

  .duck-wish {
    filter: drop-shadow(0 9px 14px rgba(83, 64, 37, 0.14));
  }

  .duck-wish-label {
    left: 19%;
    right: 24%;
    top: 65%;
  }

  .wish-dialog {
    padding: 14px;
  }

  .wish-dialog-card {
    padding: 28px 22px 24px;
    border-radius: 22px;
  }
}
