:root {
  color-scheme: dark;
  --background: #101f2d;
  --paper: #f5f1e8;
  --muted: #aeb8bd;
  --subtle: #81949e;
  --gold: #e6c995;
  --line: #ffffff16;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--paper); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 78% 43%, #29404c42, transparent 55%); pointer-events: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: #e6c99533; color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
h1, h2, p, figure { margin: 0; }
.page-shell { width: min(1256px, 100%); min-height: 100svh; padding: 0 52px; margin: auto; display: flex; flex-direction: column; }
.masthead { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.wordmark { display: flex; align-items: center; gap: 13px; text-decoration: none; font-size: 12px; letter-spacing: .055em; color: #d7dddc; }
.wordmark svg { width: 26px; height: 30px; color: var(--gold); }
.edition { display: flex; align-items: center; gap: 22px; font-size: 10px; letter-spacing: .15em; color: var(--muted); }
.edition-star { color: var(--gold); font-size: 26px; font-weight: 300; }
main { flex: 1; display: grid; grid-template-columns: 1.06fr 1fr; grid-template-rows: auto auto auto; grid-template-areas: "intro scene" "details scene" "pleasures pleasures"; column-gap: 65px; row-gap: 27px; padding: 60px 0 64px; align-content: center; }
.intro { grid-area: intro; align-self: end; animation: arrive 900ms both; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10px; line-height: 1.5; letter-spacing: .2em; font-weight: 500; color: var(--gold); }
.little-line { width: 24px; height: 1px; background: var(--gold); opacity: .75; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(40px, 4.65vw, 61px); line-height: 1.13; letter-spacing: -.045em; margin: 24px 0 25px; }
h1 em { color: var(--gold); font-weight: 400; }
.trip-date { display: flex; align-items: center; gap: 9px; color: #c0c8c9; font-size: 12px; line-height: 1.7; }
.trip-date svg { width: 17px; height: 17px; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; flex: 0 0 auto; }
.date-dot { margin: 0 7px; color: var(--subtle); }
.invite-details { grid-area: details; align-self: start; animation: arrive 900ms 130ms both; }
.letter { max-width: 465px; color: #bac4c9; font-size: 14px; line-height: 1.85; }
.letter p + p { margin-top: 13px; }
.names, .warm-line { color: #e1e4e2; }
.little-note { margin-top: 21px; padding-left: 13px; border-left: 1px solid #e6c99542; max-width: 432px; font-size: 12px; color: #a9b5b9; line-height: 1.85; }
.little-note > span { color: var(--gold); margin-right: 3px; font-family: Georgia, serif; font-style: italic; }
.fresh-air { max-width: 450px; margin-bottom: 24px; }
.fresh-air p:first-child { font: 400 20px/1.5 Georgia, serif; color: #e5ddd0; letter-spacing: -.02em; }
.fresh-air p + p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
.imagine-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 8px; font-size: 11px; text-decoration: none; color: var(--gold); }
.imagine-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.invitation-actions { margin-top: 30px; }
.button-row { display: flex; gap: 12px; align-items: center; }
.button { min-height: 51px; border-radius: 6px; border: 1px solid transparent; padding: 0 22px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 30px; transition: background 180ms, border-color 180ms, box-shadow 180ms, transform 180ms; touch-action: manipulation; }
.button-primary { background: var(--gold); color: #182631; box-shadow: 0 4px 22px #0000000b; }
.button-primary:hover { background: #f0d7ac; transform: translateY(-2px); box-shadow: 0 6px 22px #e6c99512; }
.button-primary:active { transform: translateY(0); }
.button-primary > span[aria-hidden], .save-arrow { font-size: 22px; font-weight: 300; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.no-home { width: 87px; height: 51px; flex: 0 0 auto; }
.button-no { width: 87px; color: #a9b7be; border-color: #ffffff20; background: #142432; gap: 14px; padding: 0 16px; user-select: none; }
.button-no > span { font-size: 18px; opacity: .65; }
.button-no.is-roaming { position: fixed; z-index: 10; margin: 0; transition: left 170ms ease-out, top 170ms ease-out, border-color 180ms; }
.button-caption { margin-top: 15px; color: var(--subtle); font-size: 10px; line-height: 1.7; max-width: 410px; }

.postcard { grid-area: scene; align-self: center; position: relative; width: 100%; max-width: 493px; justify-self: end; animation: arrive 1200ms 100ms both; }
.postcard-top { display: flex; align-items: center; justify-content: space-between; color: #8b9da6; font-size: 8px; letter-spacing: .16em; margin: 0 17px 18px; }
.scene-frame { position: relative; overflow: hidden; border-radius: 250px 250px 8px 8px; background: #1b303e; border: 1px solid #e6c99526; outline: 1px solid #e6c9950a; outline-offset: 8px; transform: translateZ(0); }
.canal-scene { display: block; width: 100%; height: auto; transition: filter 1800ms ease; }
.scene-label { position: absolute; left: 50%; bottom: 17px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; white-space: nowrap; color: #d2dad6; font-size: 9px; letter-spacing: .08em; }
.scene-label > span { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px #e6c99599; }
figcaption { text-align: center; margin-top: 24px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 17px; color: #b3bcbb; letter-spacing: -.02em; }
.boat { animation: drift 10s ease-in-out infinite; }
.water-lines { animation: ripple 8s ease-in-out infinite alternate; }
.water-reflections { animation: shimmer 5s ease-in-out infinite alternate; }
.stars { animation: twinkle 7s ease-in-out infinite alternate; }
.lit-window { opacity: .78; transition: opacity 1600ms ease, filter 1600ms ease; }
body.has-accepted .lit-window { opacity: 1; filter: drop-shadow(0 0 2px #e6c99570); }
body.has-accepted .canal-scene { filter: brightness(1.1); }
body.has-accepted .scene-label > span { box-shadow: 0 0 14px #e6c995; }

/* Each choice has a quiet, brief response in both the postcard and its nearby preview. */
.postcard-play { pointer-events: none; }
.postcard-effect { display: none; }
body[data-moment="airport"] .effect-airport,
body[data-moment="autumn"] .effect-autumn,
body[data-moment="coffee"] .effect-coffee,
body[data-moment="photos"] .effect-photos,
body[data-moment="trip"] .effect-trip,
body[data-moment="museum"] .effect-museum,
body[data-moment="dinner"] .effect-dinner,
body[data-moment="dance"] .effect-dance { display: inline; }
body[data-moment="coffee"] .lit-window { opacity: 1; filter: drop-shadow(0 0 3px #e6c99590); }
.little-pleasures { grid-area: pleasures; margin-top: 44px; padding-top: 39px; border-top: 1px solid var(--line); scroll-margin-top: 28px; min-width: 0; }
.pleasures-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.pleasures-heading h2 { font-size: clamp(29px, 3vw, 38px); line-height: 1.2; margin-top: 13px; }
.pleasures-heading h2 em { color: var(--gold); font-weight: 400; }
.pleasures-heading > p { color: var(--muted); font-size: 12px; line-height: 1.8; padding-bottom: 3px; }
.activity-playground { display: grid; grid-template-columns: .95fr 1.05fr; gap: 36px; align-items: start; }
.moment-preview { min-width: 0; background: linear-gradient(145deg, #1e3340, #172a37); border: 1px solid #e6c99525; border-radius: 10px; overflow: hidden; }
.moment-top { display: flex; justify-content: space-between; align-items: center; margin: 17px 22px 0; font-size: 8px; letter-spacing: .13em; color: #b1b8b3; }
.moment-top > span:last-child { color: var(--gold); font-size: 17px; }
.moment-scene { width: 100%; height: 196px; display: block; }
.moment-art { transform-origin: center; }
.art-text { font: 8px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .11em; fill: #e6c995; stroke: none; }
.art-code { font: 32px Georgia, serif; letter-spacing: .06em; fill: #f5f1e8; stroke: none; }
.moment-copy { padding: 0 20px 21px; text-align: center; min-height: 82px; }
.moment-copy p:first-child { font: 21px/1.3 Georgia, serif; color: #e9ddc5; }
.moment-copy p + p { font-size: 12px; line-height: 1.65; color: #b6c2c6; margin: 7px auto 0; max-width: 310px; }
.activity-choices { min-width: 0; }
.activity-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.activity-chip { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 51px; padding: 10px 13px; border: 1px solid #ffffff20; border-radius: 7px; background: #1b2d3a66; color: #c9d0d0; text-align: left; font-size: 11px; line-height: 1.4; touch-action: manipulation; transition: border-color 180ms, background 180ms, transform 180ms; }
.activity-chip svg, #selected-ideas svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--gold); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.activity-chip .chip-check { margin-left: auto; color: #8599a2; font-size: 16px; }
.activity-chip[aria-pressed="true"] { background: #e6c99512; border-color: #e6c99570; color: var(--paper); }
.activity-chip[aria-pressed="true"] .chip-check { color: var(--gold); font-size: 12px; }
.activity-chip.is-suggested { border-color: var(--gold); outline: 1px dashed #e6c99560; outline-offset: 3px; }
@media (hover: hover) { .activity-chip:hover { background: #e6c9950d; border-color: #e6c99566; transform: translateY(-2px); } }
.activity-extras { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.activity-extras > span { font: italic 12px Georgia, serif; color: #8fa1a8; }
#surprise-idea { gap: 8px; font-size: 11px; }
#surprise-idea > span { font-size: 21px; text-decoration: none; }
.festival-note { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 5px; font-size: 11px; line-height: 1.9; color: #aeb8bd; }
.festival-note a { color: #d3d1c3; text-decoration-color: #e6c99560; text-underline-offset: 3px; }
.possible-plan { margin-top: 25px; border-left: 1px solid #e6c99550; padding: 2px 0 2px 17px; }
.possible-title { font: italic 21px Georgia, serif; color: #e1d6c0; }
#plan-empty { font-size: 12px; color: #aab8bf; margin-top: 12px; }
#selected-ideas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
#selected-ideas li { display: flex; align-items: center; gap: 7px; border: 1px solid #e6c99522; background: #e6c99506; border-radius: 5px; padding: 6px 9px; font-size: 10px; color: #d6d8d1; }
#selected-ideas svg { width: 15px; height: 15px; }
.plan-freedom { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 13px; }
.return-to-invite { margin: 14px 0 -14px; }
#invite-details { scroll-margin-top: 25px; }
body.is-playing .moment-art:not([hidden]) { animation: moment-arrive 450ms ease-out both; }
body.is-playing .paper-flight { animation: paper-flight 1800ms ease-in-out both; }
body.is-playing .falling-leaf { animation: falling-leaf 2400ms ease-in-out both; }
body.is-playing .leaf-second { animation-delay: 120ms; }
body.is-playing .coffee-steam { animation: coffee-steam 1100ms ease-in-out 2; }
body.is-playing .frame-draw { animation: frame-draw 1300ms ease-out both; }
.art-photos .frame-draw { --draw-length: 64; }
.art-museum .frame-draw { --draw-length: 500; }
.effect-museum .frame-draw { --draw-length: 230; }
body.is-playing .photo-reveal { animation: photo-reveal 1200ms ease-out both; }
body.is-playing .train-roll { animation: train-roll 1700ms ease-in-out both; }
body.is-playing .candle-flame, body.is-playing .candle-glow { animation: candle-warmth 1100ms ease-in-out 2; transform-origin: center; }
body.is-playing .dance-light { animation: dance-light 1300ms ease-in-out 2; transform-origin: center; }
body.is-playing .light-second { animation-delay: 150ms; }
body.is-playing .dance-sparkle { animation: candle-warmth 1200ms ease-in-out 2; }
@keyframes moment-arrive { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes paper-flight { 0% { transform: translate(-48px, 20px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translate(0, 0); opacity: 1; } }
@keyframes falling-leaf { 0% { transform: translate(0, -18px); opacity: 0; } 30% { opacity: 1; } 65% { transform: translate(9px, -6px); } 100% { transform: translate(0, 0); opacity: 1; } }
@keyframes coffee-steam { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(-6px); opacity: .35; } }
@keyframes frame-draw { from { stroke-dashoffset: var(--draw-length, 1450); opacity: .3; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes photo-reveal { from { opacity: .3; } to { opacity: 1; } }
@keyframes train-roll { 0% { transform: translateX(-28px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes candle-warmth { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes dance-light { 0%, 100% { transform: translateX(-8px); opacity: .55; } 50% { transform: translateX(8px); opacity: 1; } }

.date-panel { border-top: 1px solid #e6c99530; margin-top: 28px; padding-top: 22px; animation: arrive 500ms both; }
.form-heading { display: flex; align-items: center; justify-content: space-between; color: var(--gold); max-width: 450px; }
h2 { font: 400 27px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.025em; margin-top: 10px; }
h2:focus { outline: none; }
.form-description { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 9px; max-width: 430px; }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 17px; max-width: 450px; }
.date-fields label { display: grid; gap: 9px; min-width: 0; color: #c4ccce; font-size: 11px; }
input[type="date"] { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-width: 0; min-height: 49px; border: 1px solid #ffffff26; border-radius: 6px; padding: 12px; background: #1a2c3a; color: var(--paper); font-size: 14px; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 20px; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
input[type="date"]:hover { border-color: #e6c99565; }
input[aria-invalid="true"] { border-color: #e9aa96; }
.form-error { font-size: 12px; line-height: 1.7; color: #f2b9a5; margin: 0 0 16px; }
.success-panel { display: flex; align-items: flex-start; gap: 17px; margin-top: 29px; padding-top: 24px; border-top: 1px solid #e6c99530; animation: arrive 600ms both; }
.success-mark { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; border: 1px solid #e6c99555; border-radius: 50%; color: var(--gold); font-size: 17px; }
.success-panel h2 { margin: 8px 0 10px; }
.success-panel p:not(.eyebrow) { font-size: 13px; color: var(--muted); line-height: 1.8; }
.success-panel .saved-dates { color: var(--paper) !important; }
.text-button { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; background: transparent; color: var(--gold); border: 0; padding: 7px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #e6c99555; }
.think-button { margin-top: 8px; color: var(--muted); text-decoration-color: #aeb8bd55; font-size: 11px; }
.thinking-panel { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; animation: arrive 500ms both; }
.thinking-panel p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 12px 0 5px; }
.noscript-note { font-size: 13px; color: var(--gold); margin-top: 22px; line-height: 1.8; }
.page-footer { min-height: 76px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 8px; letter-spacing: .16em; color: var(--subtle); }
.footer-right { display: flex; align-items: center; gap: 17px; font-size: 11px; letter-spacing: .015em; }
.footer-right > span { font-size: 19px; color: var(--gold); }

@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(15px, -2px); } }
@keyframes ripple { from { transform: translateX(-4px); opacity: .65; } to { transform: translateX(4px); opacity: 1; } }
@keyframes shimmer { from { opacity: .45; } to { opacity: .8; } }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

@media (min-width: 1450px) { main { column-gap: 85px; } }
@media (max-width: 1050px) {
  .page-shell { padding: 0 35px; }
  main { column-gap: 35px; padding: 45px 0; }
  h1 { font-size: clamp(36px, 4.65vw, 49px); }
  .letter { font-size: 13px; }
  .postcard-top { font-size: 7px; letter-spacing: .1em; }
  figcaption { font-size: 15px; }
}
@media (max-width: 720px) {
  .page-shell { padding: 0 25px; max-width: 540px; }
  .masthead { min-height: 79px; gap: 10px; }
  .wordmark { font-size: 10px; gap: 9px; letter-spacing: .015em; }
  .wordmark svg { width: 21px; height: 25px; }
  .edition { font-size: 8px; gap: 0; letter-spacing: .08em; }
  .edition-star { display: none; }
  main { grid-template-columns: 1fr; grid-template-areas: "intro" "scene" "details" "pleasures"; gap: 35px; padding: 39px 0 37px; }
  .intro { text-align: center; }
  .intro .eyebrow { justify-content: center; font-size: 9px; }
  h1 { font-size: clamp(37px, 8.8vw, 48px); margin-top: 20px; margin-bottom: 20px; }
  .trip-date { justify-content: center; font-size: 11px; gap: 7px; }
  .date-dot { margin: 0 4px; }
  .postcard { width: 82%; max-width: 325px; justify-self: center; }
  .postcard-top { margin: 0 6px 13px; font-size: 6px; letter-spacing: .12em; }
  .scene-frame { outline-offset: 6px; }
  .scene-label { font-size: 7px; bottom: 10px; }
  figcaption { font-size: 15px; margin-top: 19px; white-space: nowrap; }
  .letter { max-width: none; font-size: 14px; line-height: 1.85; }
  .letter p + p { margin-top: 13px; }
  .little-note { font-size: 12px; margin-top: 21px; }
  .invitation-actions { margin-top: 27px; }
  .button { min-height: 53px; }
  .button-primary { gap: 25px; }
  .button-row > .button-primary { flex: 1; justify-content: space-between; }
  .no-home { height: 53px; }
  .button-caption { max-width: 300px; font-size: 10px; margin-top: 14px; }
  .page-footer { min-height: 90px; flex-direction: column; justify-content: center; gap: 13px; font-size: 7px; }
  .footer-right { font-size: 10px; gap: 10px; }
  .footer-right > span { font-size: 15px; }
  h2 { font-size: 26px; }
  .fresh-air p:first-child { font-size: 20px; }
  .little-pleasures { margin-top: 2px; padding-top: 28px; }
  .pleasures-heading { display: block; margin-bottom: 21px; }
  .pleasures-heading h2 { font-size: 30px; }
  .pleasures-heading > p { margin-top: 13px; font-size: 11px; }
  .activity-playground { grid-template-columns: 1fr; gap: 18px; }
  .moment-preview { position: sticky; top: 8px; z-index: 2; background: #1b303d; box-shadow: 0 8px 25px #101f2d66; }
  .moment-top { margin: 10px 15px 0; font-size: 7px; }
  .moment-scene { height: 141px; }
  .moment-copy { padding: 0 12px 14px; min-height: 72px; }
  .moment-copy p:first-child { font-size: 20px; }
  .moment-copy p + p { font-size: 11px; margin-top: 5px; }
  .activity-chip { min-height: 49px; gap: 8px; font-size: 10px; padding: 9px 10px; scroll-margin-top: 255px; }
  .activity-chips { gap: 9px; }
  .activity-chip svg { width: 18px; height: 18px; }
  .activity-extras { gap: 8px; }
  .activity-extras > span { font-size: 11px; }
  .possible-plan { margin-top: 22px; }
}
@media (max-width: 360px) {
  .page-shell { padding: 0 20px; }
  .wordmark { font-size: 9px; }
  .edition { font-size: 7px; }
  h1 { font-size: 34px; }
  .trip-date { font-size: 10px; }
  .button { font-size: 12px; padding: 0 16px; }
  .postcard { width: 88%; }
  .date-fields { gap: 9px; }
  input[type="date"] { font-size: 12px; padding: 10px 7px; }
  .activity-chip { gap: 6px; padding: 9px 8px; }
  .activity-chip svg { width: 16px; height: 16px; }
  .activity-chip .chip-check { font-size: 14px; }
  .moment-copy p:first-child { font-size: 18px; }
}
@media (max-width: 720px) and (max-height: 560px) { .moment-preview { position: static; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
