@font-face {
  font-family: '851 Makapop';
  src: url('./assets/fonts/851MkPOP_101.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0c1010;
  --cream: #f4eee1;
  --gold: #cbb27b;
  --muted: #b3afa1;
  --line: #545343;
  --hand: '851 Makapop', 'Hiragino Kaku Gothic ProN', sans-serif;
  --serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', Georgia, serif;
  --sans: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; color: var(--cream); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cream); outline-offset: 7px; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
.handwriting { font-family: var(--hand); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px 20px; background: var(--night); border: 1px solid var(--gold); transform: translateY(-160%); font: 15px var(--sans); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 3; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 44px; }
.brand { font-size: 31px; line-height: 1.4; letter-spacing: .05em; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; letter-spacing: .12em; }
.header-link:hover, .back-link:hover, .scroll-link:hover { color: var(--gold); }

.hero { position: relative; isolation: isolate; min-height: 660px; height: 100svh; display: grid; place-items: center; padding: 126px 28px 160px; overflow: hidden; }
.hero-background { position: absolute; z-index: -2; inset: 0; background: var(--night) url('./assets/christmas-night.webp') center center / cover no-repeat; }
.snow { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .75; }
.hero-content { width: 100%; text-align: center; transform: translateY(-45px); }
.invitation { margin: 0 0 40px; font-size: clamp(41px, 4.75vw, 73px); line-height: 1.42; letter-spacing: .035em; text-shadow: 0 2px 18px #0007; }
.invitation > span { display: block; }
.invitation span { white-space: nowrap; }
.apply-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 57px; min-width: 322px; padding: 15px 39px; border: 0; background: var(--gold); color: #161911; font-size: 18px; letter-spacing: .045em; clip-path: polygon(0 0,100% 0,95% 50%,100% 100%,0 100%,5% 50%); transition: background .2s, transform .2s; }
.apply-button svg, .dialog-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.apply-button:hover { background: #e0c690; transform: translateY(-2px); }
.apply-button:active { transform: translateY(0); }
.apply-button:focus-visible { outline: none; background: var(--cream); color: var(--night); box-shadow: inset 0 0 0 3px #776136; }
.scroll-link { position: absolute; bottom: 49px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 8px 16px; transform: translateX(-50%); font-size: 14px; letter-spacing: .13em; }
.scroll-link svg, .back-link svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.2; }

.reviews { position: relative; padding: 66px 6.3vw 0; scroll-margin-top: 0; }
.reviews::before { content: ''; display: block; height: 1px; max-width: 1344px; margin: 0 auto 62px; background: var(--line); }
.reviews-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.reviews h2 { margin: 0 0 18px; font-size: clamp(39px, 4.5vw, 66px); line-height: 1.5; letter-spacing: .1em; }
.rating { display: flex; justify-content: center; align-items: center; gap: 22px; }
.rating-number { color: var(--gold); font-family: Georgia, serif; font-size: 37px; line-height: 1; }
.stars { display: inline-flex; gap: 8px; color: var(--gold); }
.stars svg { width: 37px; height: 37px; fill: currentColor; }
.stars .star-outline { fill: none; stroke: currentColor; stroke-width: 1.3; }
.rating-label { font-size: 18px; letter-spacing: .1em; }
.carousel { position: relative; margin: 72px auto 0; }
.review-track { display: grid; gap: 60px; }
.review { min-width: 0; padding: 0 74px; }
.review-author { font-size: 28px; line-height: 1.5; letter-spacing: .06em; }
.review-date { margin: 7px 0 24px; color: var(--muted); font-size: 16px; letter-spacing: .07em; }
.review blockquote { margin: 0 auto; min-height: 172px; font-size: clamp(23px, 2.3vw, 34px); line-height: 1.85; letter-spacing: .035em; text-wrap: balance; }
.review blockquote::before { content: '「'; }
.review blockquote::after { content: '」'; }
.mobile-break { display: none; }
.is-enhanced .review-window { overflow: hidden; }
.is-enhanced .review-track { display: flex; gap: 0; transform: translateX(0); transition: transform .7s cubic-bezier(.22,.65,.2,1); }
.is-enhanced .review { flex: 0 0 100%; }
.carousel-controls { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; max-width: 270px; margin: 25px auto 0; }
.review-arrow { position: absolute; top: 115px; display: grid; place-items: center; width: 52px; height: 52px; padding: 9px; border: 0; background: transparent; color: var(--gold); transition: color .2s; }
.review-arrow:hover { color: var(--cream); }
.review-arrow.previous { left: 0; }
.review-arrow.next { right: 0; }
.review-arrow svg { width: 33px; height: 33px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.review-dots { grid-column: 2; display: flex; justify-content: center; }
.review-dot { display: grid; place-items: center; width: 38px; height: 44px; padding: 0; border: 0; background: transparent; }
.review-dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #68675a; transition: background .2s, transform .2s; }
.review-dot[aria-pressed='true']::after { background: var(--gold); transform: scale(1.18); }
.autoplay-button { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 9px; justify-self: center; margin-top: 12px; padding: 10px 12px; min-height: 44px; border: 0; background: transparent; font-size: 13px; letter-spacing: .045em; color: var(--muted); }
.autoplay-button span { text-decoration: underline; text-underline-offset: 5px; }
.autoplay-button svg { width: 13px; height: 13px; fill: none; stroke: var(--gold); stroke-width: 2.1; }
.autoplay-button .play-icon { fill: var(--gold); stroke: none; }
.autoplay-button:hover { color: var(--cream); }
.back-link { display: flex; flex-direction: column; align-items: center; gap: 9px; width: fit-content; margin: 61px auto 0; padding: 12px 18px; font-size: 14px; letter-spacing: .09em; }
.back-link span { text-decoration: underline; text-underline-offset: 6px; }
.site-footer { padding: 30px 20px 40px; text-align: center; color: var(--muted); font-size: 21px; letter-spacing: .08em; }

.application-dialog { width: min(580px, calc(100% - 40px)); max-height: calc(100svh - 48px); margin: auto; padding: 48px 32px 38px; border: 1px solid #726449; color: var(--cream); background: #101514; text-align: center; overflow-y: auto; }
.application-dialog::backdrop { background: #000b; backdrop-filter: blur(6px); }
.application-dialog[open] { animation: arrival .45s ease-out; }
.completion-mark { width: 46px; height: 46px; margin: 0 auto 21px; color: var(--gold); }
.completion-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; }
.completion-brand { margin: 0 0 26px; color: var(--gold); font-size: 26px; letter-spacing: .06em; }
.application-dialog h2 { margin: 0 0 21px; font-size: clamp(27px, 3.5vw, 38px); line-height: 1.6; }
.application-dialog #complete-message { margin: 0; font-size: 15px; line-height: 2.25; letter-spacing: .04em; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; gap: 23px; min-height: 48px; margin-top: 32px; padding: 11px 23px; border: 1px solid #78694c; background: transparent; font-size: 14px; letter-spacing: .06em; }
.dialog-close:hover { background: var(--gold); color: var(--night); }
body.dialog-open { overflow: hidden; }
@keyframes arrival { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .site-header { padding: 20px 23px; gap: 16px; }
  .brand { font-size: 26px; }
  .header-link { font-size: 12px; letter-spacing: .06em; }
  .hero { height: 100svh; min-height: 650px; padding: 120px 24px 146px; }
  .hero-background { background-image: url('./assets/christmas-night-mobile.webp'); background-size: cover; background-position: center; }
  .hero-content { transform: translateY(-8px); }
  .invitation { font-size: clamp(26px, 7.7vw, 43px); line-height: 1.62; letter-spacing: .025em; margin-bottom: 35px; }
  .invitation .first-line > span { display: block; }
  .apply-button { min-width: 0; width: min(302px, 100%); min-height: 55px; padding: 15px 22px; gap: 14px; font-size: 15px; }
  .apply-button svg { width: 20px; height: 20px; }
  .scroll-link { bottom: 40px; font-size: 12px; gap: 10px; }
  .reviews { padding: 39px 25px 0; }
  .reviews::before { margin-bottom: 39px; }
  .reviews h2 { margin-bottom: 18px; font-size: 39px; }
  .rating { flex-wrap: wrap; gap: 12px; }
  .rating-number { font-size: 31px; }
  .stars { gap: 5px; }
  .stars svg { width: 27px; height: 27px; }
  .rating-label { flex: 0 0 100%; font-size: 12px; margin-top: 1px; }
  .carousel { margin-top: 38px; }
  .review { padding: 0 3px; }
  .review-author { font-size: 23px; }
  .review-date { font-size: 13px; margin-top: 4px; margin-bottom: 23px; }
  .review blockquote { min-height: 181px; font-size: clamp(18px, 4.75vw, 25px); line-height: 2; letter-spacing: .02em; }
  .desktop-break { display: none; }
  .mobile-break { display: block; }
  .carousel-controls { grid-template-columns: 44px 1fr 44px; max-width: 255px; margin-top: 5px; }
  .review-arrow { position: static; width: 44px; height: 44px; padding: 9px; }
  .review-arrow.previous { grid-column: 1; grid-row: 1; }
  .review-arrow.next { grid-column: 3; grid-row: 1; }
  .review-dots { grid-column: 2; grid-row: 1; }
  .review-arrow svg { width: 25px; height: 25px; }
  .review-dot { width: 34px; }
  .autoplay-button { margin-top: 10px; font-size: 12px; }
  .back-link { margin-top: 40px; font-size: 12px; }
  .site-footer { padding: 25px 10px 30px; font-size: 20px; }
  .application-dialog { padding: 38px 23px 32px; }
  .application-dialog #complete-message { font-size: 13px; }
}

@media (max-height: 590px) and (min-width: 761px) {
  .hero { min-height: 540px; padding-top: 100px; padding-bottom: 100px; }
  .invitation { font-size: 42px; line-height: 1.35; margin-bottom: 25px; }
  .scroll-link { bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .snow { display: none; }
}
html.motion-off { scroll-behavior: auto; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
.motion-off .snow { display: none; }
