:root { color-scheme: dark; --bg: #14151b; --ink: #f0ede7; --muted: #aba9b3; --accent: #b5cebd; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Segoe UI', Arial, sans-serif; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 30%, #33324028, transparent 65%); }
main { position: relative; max-width: 1120px; min-height: 100svh; margin: auto; padding: 30px 40px 22px; display: flex; flex-direction: column; }
.masthead { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; color: #d0cdd7; }
.tiny-heart { color: var(--accent); font-size: 25px; }
.edition { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: .17em; }
.invitation { text-align: center; width: 100%; max-width: 760px; margin: auto; padding: 10px 0 28px; }
.art { position: relative; width: min(100%, 460px); height: 260px; margin: 0 auto 16px; }
.pigeon-pair { position: absolute; left: 0; top: -5%; width: 100%; height: 108%; object-fit: contain; mix-blend-mode: lighten; animation: breathe 5s ease-in-out infinite; }
.orbit { position: absolute; width: 240px; height: 240px; border: 1px solid #92939e20; border-radius: 50%; left: 50%; top: 0; transform: translateX(-50%); }
.star { position: absolute; color: var(--accent); z-index: 1; }
.star-one { left: 12%; top: 27%; font-size: 27px; }
.star-two { right: 12%; top: 60%; font-size: 15px; }
.art-note { position: absolute; bottom: 0; left: 0; width: 100%; font: italic 16px Georgia, serif; color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--accent); margin: 24px 0 20px; line-height: 1.7; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(34px, 4.8vw, 55px); line-height: 1.14; letter-spacing: -.045em; margin: 0 auto; max-width: 720px; text-wrap: balance; }
h1 em { font-weight: 400; color: var(--accent); }
.intro { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 23px auto 27px; max-width: 480px; text-wrap: pretty; }
.choices { display: flex; gap: 12px; justify-content: center; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.button { min-height: 54px; border-radius: 6px; padding: 14px 25px; font-size: 15px; font-weight: 500; transition: background .2s, transform .2s, border-color .2s; }
.yes { background: var(--accent); color: #18251e; border: 1px solid var(--accent); }
.yes span { font-size: 21px; margin-left: 15px; vertical-align: -1px; }
.yes:hover { background: #c9dfd0; transform: translateY(-2px); }
.no { background: transparent; border: 1px solid #55545f; color: #d2cfd8; }
.no:hover { background: #25262e; border-color: #8b8996; }
button:focus-visible { outline: 3px solid #e5cd9e; outline-offset: 5px; }
#answer-title:focus { outline: none; }
.fine-print { font-size: 12px; line-height: 1.6; color: #9996a4; margin: 19px 0 0; }
footer { text-align: center; font-size: 12px; color: #93909c; letter-spacing: .025em; padding-top: 20px; }
footer span { color: var(--accent); font: italic 17px Georgia, serif; padding: 0 3px; }
.back { display: block; margin: 24px auto 0; padding: 9px; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.flock { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.flier { position: absolute; top: 0; left: 0; aspect-ratio: 1; opacity: 0; will-change: transform, opacity; }
.bird-facing, .bird-sprite { width: 100%; height: 100%; }
.bird-sprite { background: url('pigeon-wingbeat.png') 0 0 / 400% 200% no-repeat; }
.is-flying .bird-sprite { animation: wingbeat var(--wingbeat) steps(1, end) var(--phase) infinite; }
.taking-flight { animation: perch-hop .7s ease-in-out both; }
.noscript { text-align: center; color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#options-preview:not(:empty) { margin-top: 38px; }
.choosing-activities #answer-label, .choosing-activities #answer-title, .choosing-activities #answer-copy { display: none; }
#yes[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 4px; }
#date-options.is-locked { opacity: .4; filter: grayscale(1); }
.is-locked .date-option { cursor: default; }
.is-locked .date-option:hover { background: #1b1c23; border-color: #55545f; }
legend { width: 100%; font: 22px Georgia, serif; margin-bottom: 20px; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; margin-bottom: 24px; }
.date-option { display: flex; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid #55545f; border-radius: 6px; cursor: pointer; background: #1b1c23; }
.date-option:hover, .date-option:has(input:checked) { border-color: var(--accent); background: #242f2b; }
.date-option:focus-within { outline: 2px solid #e5cd9e; outline-offset: 3px; }
.date-option input { accent-color: var(--accent); margin: 4px 0 0; width: 18px; height: 18px; flex-shrink: 0; }
.date-option strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; }
.selection-hint { color: var(--muted); font-size: 14px; margin: -8px 0 20px; }
.selection-error { color: #f1c4b5; font-size: 16px; }
.calendar { max-width: 400px; margin: 0 auto 24px; padding: 16px 8px; border: 1px solid #55545f; border-radius: 8px; background: #1b1c23; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.calendar-heading h2 { font: 22px Georgia, serif; margin: 0; }
.calendar-heading button { min-width: 44px; min-height: 44px; background: transparent; border: 0; color: var(--accent); font-size: 28px; border-radius: 5px; }
.weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays { font-size: 13px; color: var(--muted); padding-bottom: 8px; }
.calendar-days button { min-width: 0; min-height: 44px; padding: 0; font-size: 16px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 5px; touch-action: manipulation; }
.calendar-days button[aria-current="date"] { border-color: #798d81; }
.calendar-days button:hover:not(:disabled) { background: #34453c; }
.calendar-days button[aria-pressed="true"] { background: var(--accent); color: #18251e; }
button:disabled { cursor: default; opacity: .35; transform: none; }
#selected-day { font-size: 14px; color: var(--accent); margin: 18px 0 0; line-height: 1.6; }
#date-calendar { margin-bottom: 24px; }
.date-option { min-height: 58px; align-items: center; touch-action: manipulation; }
.date-option input { margin-top: 0; }
.date-option strong { overflow-wrap: anywhere; }
.back { min-height: 44px; }
#date-options, #date-confirmation { max-width: 600px; margin: 0 auto 24px; }
#custom-idea { text-align: left; margin-bottom: 24px; }
#custom-idea label, #date-confirmation label { display: block; font-size: 16px; margin-bottom: 10px; }
#idea { width: 100%; border: 1px solid #66636f; border-radius: 6px; padding: 14px; background: #1b1c23; color: var(--ink); font: inherit; line-height: 1.6; }
#idea:focus-visible { outline: 2px solid #e5cd9e; outline-offset: 3px; }
#saved-summary, #save-status { line-height: 1.7; overflow-wrap: anywhere; }
#answer #replay { background: transparent; color: var(--accent); border-color: #55545f; font-size: 13px; }
body.has-answer .art { height: 165px; width: 280px; }
body.has-answer .orbit { width: 140px; height: 140px; }
@media (max-width: 540px) { .date-grid { grid-template-columns: 1fr; } .date-option { padding: 16px; } }
@keyframes breathe { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-5px) rotate(.5deg); } }
@keyframes wingbeat {
  0%, 100% { background-position: 0 0; transform: translate(0, 0); }
  12.5% { background-position: 33.333333% 0; transform: translate(-.5%, -.7%); }
  25% { background-position: 66.666667% 0; transform: translate(-3.2%, 0); }
  37.5% { background-position: 100% 0; transform: translate(-3.2%, 1.1%); }
  50% { background-position: 0 100%; transform: translate(-2.7%, 18.3%); }
  62.5% { background-position: 33.333333% 100%; transform: translate(-2.3%, 18.5%); }
  75% { background-position: 66.666667% 100%; transform: translate(-4%, 12.4%); }
  87.5% { background-position: 100% 100%; transform: translate(-.7%, 2.5%); }
}
@keyframes perch-hop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } 60% { transform: translateY(-8px); } }
@media (min-height: 850px) and (min-width: 600px) { .art { height: 300px; width: 510px; } .orbit { width: 270px; height: 270px; } .invitation { padding-bottom: 55px; } }
@media (max-width: 540px) { main { padding: 20px 22px; } .edition { font-size: 9px; letter-spacing: .1em; } .masthead { font-size: 10px; gap: 7px; } .art { height: 180px; margin-top: 18px; } .orbit { width: 160px; height: 160px; } .eyebrow { font-size: 10px; letter-spacing: .12em; } .choices { flex-direction: column; width: min(100%, 320px); margin: auto; } .button { width: 100%; } #replay { width: auto; } .fine-print { max-width: 240px; margin: 18px auto 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .flock { display: none; } }
