/* Daytime postcard alternative. The evening page keeps its original stylesheet. */
:root {
  color-scheme: light;
  --background: #fffaf1;
  --paper: #304f64;
  --muted: #627477;
  --subtle: #72766b;
  --gold: #ae573c;
  --line: #304f641a;
  --blue: #376c88;
  --coral: #b95b40;
}

body::before { background: radial-gradient(ellipse at 85% 13%, #ffe6a34a, transparent 38%); }
::selection { background: #f9dc9f; color: var(--paper); }
:focus-visible { outline-color: var(--blue); }
.masthead { min-height: 90px; }
.wordmark { color: var(--paper); }
.wordmark svg { color: var(--coral); }
.edition-star { color: #b68023; }
main { grid-template-areas: "intro scene" "details scene" "pleasures pleasures" "reply reply"; padding-top: 52px; row-gap: 20px; }
.intro { align-self: end; }
h1 { font-size: clamp(40px, 4.65vw, 59px); }
h1 em { color: var(--coral); }
.trip-date { color: var(--blue); width: fit-content; padding: 8px 12px; background: #f4ebcf; border-radius: 7px; font-size: 11px; }
.trip-date svg { stroke: var(--blue); }
.date-dot { color: #8a8a6a; }
.imagine-link { color: var(--blue); font-size: 12px; gap: 19px; }
.intro .imagine-link { margin-top: 15px; }
.intro .imagine-link > span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #376c8840; border-radius: 50%; }
.fresh-air { margin-bottom: 17px; }
.fresh-air p:first-child { color: var(--paper); }
.letter { color: #5e7278; font-size: 13px; }
.names, .warm-line { color: #3c6372; }
.little-note { color: #6f7468; border-left: 2px solid #e9c877; margin-top: 17px; font-size: 11px; }
.postcard { padding: 20px 19px 21px; background: #fffdf7; border: 1px solid #e4d9c3; border-radius: 10px; box-shadow: 0 15px 45px #8261340b, 5px 7px 0 #f0e7d6; transform: rotate(2deg); animation: sunny-arrive 1100ms 100ms both; }
.postcard-top { color: #6c7d7b; font-size: 7px; margin: 0 3px 17px; }
.scene-frame { background: #bfe2e8; border-color: #6296a221; border-radius: 230px 230px 5px 5px; outline: none; }
.scene-label { color: #315d70; font-size: 8px; }
.scene-label > span { background: #fff8e2; box-shadow: none; }
figcaption { color: #7d725e; font-size: 16px; margin-top: 21px; }
.lit-window { opacity: 1; }
.water-lines { stroke-opacity: .6; }
.water-reflections { opacity: .5; }
body.has-accepted .canal-scene { filter: saturate(1.1); }
body.has-accepted .lit-window, body[data-moment="coffee"] .lit-window { filter: drop-shadow(0 0 2px #ffe6a3); }
.day-cloud { animation: sunny-cloud 12s ease-in-out infinite alternate; }
.cloud-two { animation-duration: 16s; animation-delay: -6s; }
.sun-rays { transform-origin: 367px 108px; animation: sunny-rays 24s linear infinite; }

.little-pleasures { margin-top: 55px; padding-top: 38px; }
.pleasures-heading { margin-bottom: 27px; }
.pleasures-heading h2 { font-size: clamp(31px, 3vw, 40px); }
.pleasures-heading h2 em { color: var(--blue); }
.activity-playground { gap: 30px; grid-template-columns: .95fr 1.05fr; }
.moment-preview { background: #eaf2ec; border-color: #c5d9cd; border-radius: 16px; transition: background 400ms, border-color 400ms; }
.moment-top { color: #537568; }
.moment-top > span:last-child { color: #9a691a; }
.moment-copy p:first-child { color: #355e69; font-size: 23px; }
.moment-copy p + p { color: #61776f; }
.art-text { fill: #406985; }
.art-code { fill: #304f64; }
body[data-moment="airport"] .moment-preview, body[data-moment="trip"] .moment-preview { background: #e6eff5; border-color: #c4d8e4; }
body[data-moment="autumn"] .moment-preview, body[data-moment="coffee"] .moment-preview { background: #f8edce; border-color: #e7d7ac; }
body[data-moment="photos"] .moment-preview, body[data-moment="dinner"] .moment-preview { background: #f9e6df; border-color: #e8cfc4; }
body[data-moment="dance"] .moment-preview { background: #eee8f3; border-color: #d9cde6; }
.art-autumn > path:first-child { fill: #dfa867; fill-opacity: .3; }
.art-coffee > path:not(.coffee-steam) { fill: #dc9372; fill-opacity: .23; }
.art-museum > rect:first-child { fill: #f5d291; fill-opacity: .5; }
.art-dance > circle { fill: #baa5cb; fill-opacity: .25; }
.activity-chip { --chip-color: #36667f; --chip-tint: #e7f0f6; min-height: 56px; border-color: #dddccc; border-radius: 10px; background: #fffdf8; color: #4e626b; font-size: 12px; }
.activity-chip[data-activity="autumn"], .activity-chip[data-activity="coffee"] { --chip-color: #946017; --chip-tint: #f9edcd; }
.activity-chip[data-activity="photos"], .activity-chip[data-activity="dinner"] { --chip-color: #ac553e; --chip-tint: #fae7df; }
.activity-chip[data-activity="museum"] { --chip-color: #49735c; --chip-tint: #e7efe1; }
.activity-chip[data-activity="dance"] { --chip-color: #7a5d99; --chip-tint: #f0e7f5; }
.activity-chip svg { stroke: var(--chip-color); }
.activity-chip .chip-check { color: #7b877f; }
.activity-chip[aria-pressed="true"] { color: var(--chip-color); border-color: var(--chip-color); background: var(--chip-tint); }
.activity-chip[aria-pressed="true"] .chip-check { color: var(--chip-color); }
.activity-chip.is-suggested { border-color: var(--chip-color); outline-color: var(--chip-color); }
@media (hover: hover) { .activity-chip:hover { background: var(--chip-tint); border-color: var(--chip-color); transform: translateY(-2px) rotate(-.5deg); } }
.activity-extras { margin-top: 11px; }
.activity-extras > span { color: #757b70; }
#surprise-idea { color: var(--blue); text-decoration-color: #376c8855; }
.festival-note { color: #63757a; }
.festival-note a { color: var(--blue); text-decoration-color: #376c8855; }
.possible-plan { padding: 20px 22px; background: #f5efd9; border: 1px dashed #dace9f; border-radius: 10px; margin-top: 24px; }
.possible-title { color: #70603c; }
#plan-empty { color: #766f59; }
#selected-ideas li { background: #fffdf4; border-color: #ded4b4; color: #5d655b; border-radius: 6px; }
#selected-ideas svg { stroke: #6c7858; }
.plan-freedom { color: #73735e; }
.return-to-invite { margin: 10px 0 0; }

.reply-panel { grid-area: reply; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 29px; padding: 36px 38px; border: 1px solid #dedfcf; background: #f0f2e7; border-radius: 16px; position: relative; }
.reply-intro { position: relative; }
.reply-intro h2 { font-size: clamp(27px, 2.7vw, 35px); line-height: 1.25; margin-top: 14px; }
.reply-intro h2 em { color: var(--blue); font-weight: 400; }
.reply-doodle { display: block; font: 36px/1 Georgia, serif; color: #a97928; margin-bottom: 19px; transform: rotate(-10deg); width: fit-content; }
.reply-note { color: #6b786d; font-size: 12px; line-height: 1.8; margin-top: 15px; }
.reply-controls { min-width: 0; }
.invitation-actions { margin-top: 0; }
.button { border-radius: 9px; }
.button-primary { background: var(--coral); color: #fffdf4; box-shadow: 0 4px 0 #91442f16; }
.button-primary:hover { background: #a64e35; box-shadow: 0 6px 15px #91442f20; }
.button-no { color: #72796e; border-color: #cad0bf; background: #fafbf2; }
.button-caption { color: #727967; max-width: 320px; }
.text-button { color: var(--blue); text-decoration-color: #376c8855; }
.think-button { color: #617367; text-decoration-color: #61736760; font-size: 12px; }
.date-panel, .success-panel, .thinking-panel { border-color: #b9c3aa; margin-top: 0; padding-top: 0; border-top: 0; }
.date-fields { max-width: none; }
.date-fields label { color: #5b7065; }
input[type="date"] { color: var(--paper); background: #fffdf6; border-color: #c6cfbb; }
input[type="date"]:hover { border-color: #839c90; }
input[aria-invalid="true"] { border-color: #a64e35; }
.form-error { color: #a0422d; }
.success-mark { border-color: #a6b798; background: #fafbef; color: #587752; }
.page-footer { margin-top: 0; }
.footer-right > span { color: #b68023; }

@keyframes sunny-arrive { from { opacity: 0; transform: translateY(12px) rotate(0); } to { opacity: 1; transform: translateY(0) rotate(2deg); } }
@keyframes sunny-cloud { from { transform: translateX(-6px); } to { transform: translateX(10px); } }
@keyframes sunny-rays { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  main { column-gap: 35px; }
  h1 { font-size: clamp(36px, 4.65vw, 49px); }
  .postcard { padding: 16px 14px; }
  .postcard-top { font-size: 6px; letter-spacing: .1em; }
  figcaption { font-size: 13px; }
  .activity-chip { font-size: 11px; padding: 10px; gap: 8px; }
  .reply-panel { padding: 30px 25px; gap: 25px; }
  .reply-controls .button-primary { gap: 15px; padding: 0 17px; }
}
@media (max-width: 720px) {
  .masthead { min-height: 79px; }
  main { grid-template-areas: "intro" "scene" "details" "pleasures" "reply"; row-gap: 32px; padding-top: 37px; padding-bottom: 32px; }
  h1 { font-size: clamp(37px, 8.8vw, 48px); }
  .trip-date { margin-inline: auto; font-size: 10px; padding: 7px 9px; }
  .intro .imagine-link { margin-top: 9px; font-size: 11px; }
  .postcard { width: 91%; max-width: 350px; padding: 15px 13px 17px; }
  .postcard-top { margin-bottom: 12px; }
  .scene-label { bottom: 12px; font-size: 7px; }
  figcaption { font-size: 13px; margin-top: 17px; white-space: normal; }
  .letter { font-size: 13px; }
  .little-note { font-size: 11px; }
  .little-pleasures { margin-top: 5px; padding-top: 29px; }
  .pleasures-heading h2 { font-size: 32px; }
  .activity-playground { grid-template-columns: 1fr; gap: 18px; }
  .moment-preview { background: #eaf2ec; box-shadow: 0 7px 16px #526d6117; border-radius: 12px; }
  .moment-copy p:first-child { font-size: 20px; }
  .activity-chip { min-height: 51px; font-size: 10px; gap: 8px; }
  .activity-extras > span { font-size: 10px; }
  .possible-plan { padding: 17px 16px; }
  .reply-panel { grid-template-columns: 1fr; gap: 24px; padding: 25px 20px; margin-top: 0; }
  .reply-doodle { font-size: 30px; margin-bottom: 15px; }
  .reply-intro h2 { font-size: 28px; }
  .reply-note { font-size: 11px; }
  .reply-controls .button-row { gap: 9px; }
  .reply-controls .button { font-size: 11px; padding: 0 13px; }
  .reply-controls .button-primary { gap: 13px; }
  .no-home, .button-no { width: 67px; }
  .date-fields { gap: 8px; }
  input[type="date"] { font-size: 12px; padding: 10px 7px; }
  .button-caption { font-size: 10px; }
}
@media (max-width: 360px) {
  h1 { font-size: 34px; }
  .trip-date { font-size: 9px; }
  .activity-chip { padding: 9px 8px; gap: 6px; }
  .reply-panel { padding: 23px 16px; }
  .reply-intro h2 { font-size: 25px; }
  .reply-controls .button-primary { gap: 10px; }
  .moment-copy p:first-child { font-size: 18px; }
}

/* A paper moodboard: the space stays steady while little wishes collect on it. */
.activity-playground { grid-template-columns: 1fr; gap: 24px; }
.activity-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.moodboard,
body[data-moment] .moodboard {
  position: relative;
  background: radial-gradient(circle, #bba88435 .8px, transparent 1px) 0 0 / 18px 18px, #f4eddd;
  border: 1px solid #ded1b9;
  box-shadow: inset 0 0 0 6px #fffaf160;
  overflow: hidden;
}
.moodboard .moment-top { margin: 20px 28px 8px; color: #76694f; }
.moodboard .board-stamp { color: #a16b30; font: italic 14px Georgia, serif; letter-spacing: 0; transform: rotate(3deg); }
.moodboard > .moment-scene { height: 300px; }
.moodboard.has-cards > .moment-scene { position: absolute; width: 0; height: 0; overflow: hidden; }
.moodboard .moment-copy { min-height: 69px; padding: 0 20px 9px; }
.moodboard .moment-copy p:first-child { font-size: 22px; }
.moodboard .moment-copy p + p { max-width: none; color: #766f5e; }
.board-hint { font-size: 10px; line-height: 1.6; text-align: center; color: #7d7564; padding: 0 15px 18px; }
.moodboard #plan-empty { margin: 0; font-size: 10px; color: #7d7564; }
#selected-ideas.mood-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 122px; align-content: start; gap: 20px 24px; height: 300px; margin: 0; padding: 13px 34px 9px; }
#selected-ideas .mood-card {
  --card-tint: #e2eef4; --card-ink: #3f6b80; --card-tape: #a4c7d4b3; --card-tilt: -2deg;
  display: block; position: relative; min-width: 0; padding: 0; border: 1px solid #dfd5c3;
  border-radius: 3px; background: #fffdf7; color: var(--card-ink);
  box-shadow: 1px 4px 6px #795b3220; transform: rotate(var(--card-tilt));
}
#selected-ideas .mood-card::before { content: ''; position: absolute; z-index: 1; top: -7px; left: calc(50% - 20px); width: 40px; height: 14px; background: repeating-linear-gradient(90deg, transparent 0 4px, #fffaf130 4px 5px), var(--card-tape); transform: rotate(-5deg); pointer-events: none; }
#selected-ideas .mood-card[data-card="autumn"], #selected-ideas .mood-card[data-card="coffee"] { --card-tint: #f9eccb; --card-ink: #896326; --card-tape: #e3c47fa6; --card-tilt: 2deg; }
#selected-ideas .mood-card[data-card="photos"], #selected-ideas .mood-card[data-card="dinner"] { --card-tint: #f9e3db; --card-ink: #a35b45; --card-tape: #e6ac98a6; --card-tilt: -3deg; }
#selected-ideas .mood-card[data-card="museum"] { --card-tint: #e3eedf; --card-ink: #4e755f; --card-tape: #a7c1a2b3; --card-tilt: 3deg; }
#selected-ideas .mood-card[data-card="dance"] { --card-tint: #ede4f3; --card-ink: #7c6398; --card-tape: #baa5d3a6; --card-tilt: 2deg; }
.mood-card-button { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding: 7px 7px 9px; border: 0; border-radius: inherit; background: none; color: inherit; touch-action: manipulation; }
#selected-ideas .mood-card-art { flex: 1 1 auto; display: block; width: 100%; height: 75px; min-height: 0; border-radius: 1px; background: var(--card-tint); stroke: none; }
.mood-card-title { flex: 0 0 auto; font: 14px/1.4 Georgia, serif; padding-top: 7px; }
.mood-card-remove { position: absolute; right: 9px; top: 7px; color: var(--card-ink); font: 15px/1 sans-serif; opacity: .65; }
.mood-card-button:focus-visible { outline-offset: 3px; }
.board-freedom { text-align: center; font: italic 14px/1.7 Georgia, serif; margin-top: 17px; }
/* Each new card gets its own brief animation; older cards remain settled. */
.sunny .mood-card [class] { animation: none; }
#selected-ideas .mood-card.is-new { animation: card-land 650ms cubic-bezier(.2,.7,.2,1) both; }
.sunny .mood-card.is-new .paper-flight { animation: paper-flight 1800ms ease-in-out both; }
.sunny .mood-card.is-new .falling-leaf { animation: falling-leaf 2400ms ease-in-out both; }
.sunny .mood-card.is-new .coffee-steam { animation: coffee-steam 1100ms ease-in-out 2; }
.sunny .mood-card.is-new .photo-reveal { animation: photo-reveal 1200ms ease-out both; }
.sunny .mood-card.is-new .frame-draw { animation: frame-draw 1300ms ease-out both; }
.sunny .mood-card.is-new .train-roll { animation: train-roll 1700ms ease-in-out both; }
.sunny .mood-card.is-new .candle-flame, .sunny .mood-card.is-new .candle-glow { animation: candle-warmth 1100ms ease-in-out 2; }
.sunny .mood-card.is-new .dance-light, .sunny .mood-card.is-new .dance-sparkle { animation: dance-light 1200ms ease-in-out 2; }
@keyframes card-land {
  0% { opacity: 0; transform: translateY(25px) rotate(calc(var(--card-tilt) - 9deg)) scale(.86); }
  65% { opacity: 1; transform: translateY(-4px) rotate(calc(var(--card-tilt) + 2deg)) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--card-tilt)) scale(1); }
}
@media (hover: hover) {
  .mood-card-button:hover { background: #fff4d970; }
  .mood-card-button:hover .mood-card-remove { opacity: 1; }
}
@media (max-width: 1050px) and (min-width: 721px) {
  #selected-ideas.mood-cards { column-gap: 17px; padding-inline: 25px; }
  .mood-card-title { font-size: 12px; }
}
@media (max-width: 720px) {
  .activity-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moodboard, body[data-moment] .moodboard { position: sticky; top: 8px; z-index: 2; box-shadow: 0 6px 16px #795b3217; }
  .moodboard .moment-top { margin: 14px 15px 7px; font-size: 6px; letter-spacing: .08em; }
  .moodboard .board-stamp { font-size: 11px; }
  .moodboard > .moment-scene { height: 300px; }
  #selected-ideas.mood-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 59px; gap: 12px 14px; height: 300px; padding: 13px 18px 0; }
  .mood-card-button { flex-direction: row; gap: 6px; padding: 5px; }
  #selected-ideas .mood-card-art { flex: 0 0 44px; width: 44px; height: 100%; }
  .mood-card-title { flex: 1; padding: 0 6px 0 0; font-size: 11px; line-height: 1.3; text-align: left; }
  .mood-card-remove { right: 4px; top: 2px; font-size: 12px; }
  #selected-ideas .mood-card::before { width: 26px; height: 9px; top: -5px; left: calc(50% - 13px); }
  .moodboard .moment-copy { min-height: 62px; padding: 0 12px 6px; }
  .moodboard .moment-copy p:first-child { font-size: 19px; }
  .moodboard .moment-copy p + p { font-size: 10px; line-height: 1.5; }
  .board-hint { font-size: 9px; padding: 0 12px 13px; }
  .moodboard #plan-empty { font-size: 9px; }
  .activity-chip { scroll-margin-top: 450px; }
  .board-freedom { font-size: 13px; }
}
@media (max-width: 360px) {
  #selected-ideas.mood-cards { gap: 12px 10px; padding-inline: 14px; }
  #selected-ideas .mood-card-art { flex-basis: 34px; width: 34px; }
  .mood-card-title { font-size: 10px; }
  .moodboard .board-stamp { font-size: 9px; }
}
@media (max-width: 720px) and (max-height: 650px) {
  .moodboard, body[data-moment] .moodboard { position: static; }
  .activity-chip { scroll-margin-top: 20px; }
}
