/* Live v0 additions on top of Option D's styles.css */
.tonight-link { color: #FFD24A; font-weight: 700; white-space: nowrap; }
.tonight-link:hover, .tonight-link:focus-visible { color: #FFE59A; }
.tonight[data-past] .tonight-label { color: #c9d3df; }

.nav-links { gap: var(--s5); }

.earlier { margin-top: var(--s5); font-size: 1.0625rem; color: var(--ink-soft); }

.field.two { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 36rem) { .field.two { grid-template-columns: 2fr 1fr; } }
.field.two > div { display: grid; gap: var(--s2); min-width: 0; }

.ts { min-height: 0; margin-block: var(--s3); }

.signup { background: var(--sky-tint); }
.signup-inner { display: grid; gap: var(--s6); }
@media (min-width: 56rem) { .signup-inner { grid-template-columns: 1fr 1fr; align-items: start; } }
.signup-form { display: grid; gap: var(--s4); }
.signup-form input { width: 100%; }

.spread { padding-block: var(--s7); }
.spread h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-bottom: var(--s3); }

button[disabled] { opacity: .6; cursor: progress; }
.form-status .status-title { margin: 0; }

/* Email fields share the text-input look (D only styled type=text). */
input[type="email"] { font: inherit; font-size: 1.125rem; width: 100%; padding: 0.75rem 0.9rem; min-height: 3rem; border: 1.5px solid #8b94a5; border-radius: 8px; background: #fff; color: var(--ink); }
input[type="email"]:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(36, 95, 143, 0.25); }
.field.two label { font-weight: 700; }

/* ---------- v1: wall of stories and photos ---------- */
.hero-slim { padding-block: var(--s5) var(--s6); }
@media (min-width: 64rem) { .hero-slim { padding-block: var(--s6) var(--s7); } .hero-slim .hero-photo { max-width: 32rem; } }
.hero-slim h1 { font-size: clamp(3rem, 1.5rem + 6vw, 6rem); }

.wall-section { padding-block: var(--s7) var(--s8); }
.wall-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.wall-head h2 { margin: 0; }
.wall-controls { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.sorts, .chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sorts button, .chip { font: inherit; font-family: var(--label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 0.95rem; padding: 0.45rem 0.9rem; min-height: 2.5rem; border-radius: 999px; border: 1.5px solid var(--hairline); background: #fff; color: var(--ink); cursor: pointer; }
.sorts button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 500; font-size: 0.95rem; }
.chip[aria-pressed="true"] { border-color: var(--alpenglow); color: var(--alpenglow-deep); box-shadow: inset 0 0 0 1px var(--alpenglow); }
.sorts button:focus-visible, .chip:focus-visible, .love:focus-visible, .ph:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wall-status:empty { display: none; }
.wall-status { color: var(--ink-soft); }

.wall { columns: 1; column-gap: var(--s4); }
@media (min-width: 40rem) { .wall { columns: 2; } }
@media (min-width: 64rem) { .wall { columns: 3; } }
.card { break-inside: avoid; margin: 0 0 var(--s4); background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; display: block; }
.card.text-only { background: var(--mist); }
.card-photos { display: grid; gap: 2px; background: var(--hairline); }
.card-photos.n2, .card-photos.n3 { grid-template-columns: 1fr 1fr; }
.card-photos.n3 .ph:first-child { grid-column: 1 / -1; }
.ph { display: block; padding: 0; border: 0; background: #e9edf2; cursor: zoom-in; width: 100%; }
.ph img { display: block; width: 100%; height: auto; }
.card-photos.n2 .ph img, .card-photos.n3 .ph:not(:first-child) img { aspect-ratio: 1; object-fit: cover; height: 100%; }
.card-body { padding: var(--s4) var(--s4) var(--s3); display: grid; gap: var(--s2); }
.story { margin: 0; white-space: pre-line; font-size: 1.125rem; line-height: 1.6; }
.text-only .story { font-family: var(--display); font-size: 1.25rem; line-height: 1.5; }
.story.caption { font-size: 1rem; color: var(--ink-soft); }
.story.clamp { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.more { justify-self: start; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 0.95rem; color: var(--ink-soft); }
.meta .who { font-weight: 600; color: var(--ink); }
.meta .rel { font-style: italic; flex-basis: 100%; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.love { font: inherit; font-size: 1.05rem; min-height: 2.5rem; min-width: 3.25rem; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1.5px solid var(--hairline); background: #fff; color: var(--alpenglow-deep); cursor: pointer; }
.love[aria-pressed="true"] { background: #fdecea; border-color: #f3c3bc; }
.report-btn { font-size: 0.9rem; color: var(--ink-soft); }
.link-button { font: inherit; background: none; border: 0; padding: 0.25rem 0; color: var(--sky); text-decoration: underline; cursor: pointer; }
.report-panel { border-top: 1px solid var(--hairline); padding-top: var(--s3); display: grid; gap: var(--s2); }
.report-panel[hidden] { display: none; }
.report-panel input { font: inherit; font-size: 1rem; padding: 0.5rem 0.7rem; border: 1.5px solid #8b94a5; border-radius: 8px; width: 100%; }
.rp-q { margin: 0; font-weight: 600; }
.rp-row { display: flex; gap: var(--s4); align-items: center; }
.rp-msg:empty { display: none; }
.btn-small { padding: 0.45rem 1rem; min-height: 2.5rem; font-size: 1rem; }
.hidden-card { padding: var(--s4); color: var(--ink-soft); background: var(--mist); }
.wall-foot { margin-top: var(--s5); color: var(--ink-soft); font-size: 1rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); width: 100%; }
.lightbox::backdrop { background: rgba(10, 14, 22, 0.88); }
.lb-inner { position: relative; background: #0f141c; color: #e8edf3; border-radius: 10px; padding: var(--s3); display: grid; gap: var(--s2); }
.lb-inner img { width: 100%; max-height: 78vh; object-fit: contain; display: block; }
.lb-cap { margin: 0; font-size: 1rem; }
.lb-close { position: absolute; top: 6px; right: 8px; font-size: 2rem; line-height: 1; background: rgba(0,0,0,.5); color: #fff; border: 0; border-radius: 999px; width: 2.75rem; height: 2.75rem; cursor: pointer; z-index: 1; }
.lb-actions .link-button { color: #b9c7d8; font-size: .95rem; }
.lightbox .report-panel { border-color: #2b3442; }
@media (prefers-reduced-motion: no-preference) { .card { transition: box-shadow .2s; } .card:hover { box-shadow: 0 8px 24px rgba(20,30,50,.08); } }

/* Words for Joseph + closing photo */
.words { background: #fff; }
.words-inner { display: grid; gap: var(--s6); }
@media (min-width: 56rem) { .words-inner { grid-template-columns: 1fr 1fr; align-items: start; } .notes { grid-column: 1 / -1; } }
.note-form { display: grid; gap: var(--s3); }
.note-form textarea { min-height: 6rem; }
.notes { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: var(--s4); }
@media (min-width: 40rem) { .notes { columns: 2; } }
@media (min-width: 64rem) { .notes { columns: 3; } }
.note { break-inside: avoid; margin: 0 0 var(--s3); padding: var(--s4); background: var(--mist); border-radius: var(--radius-card); }
.note-text { margin: 0 0 var(--s2); font-family: var(--display); font-size: 1.15rem; line-height: 1.5; white-space: pre-line; }
.note-meta { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: .95rem; color: var(--ink-soft); }
.note-meta .who { font-weight: 600; color: var(--ink); }
.closing { margin: 0 auto; max-width: 44rem; padding: var(--s7) var(--gutter) var(--s6); text-align: center; }
.closing img { width: 100%; height: auto; border-radius: 6px; display: block; }
.closing figcaption { margin-top: var(--s3); color: var(--ink-soft); font-size: 1rem; }
#hero-img { transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) { #hero-img { transition: none; } }
.hero-photo figcaption .link-button { font-size: inherit; }

/* Fixes: D's .story/.chip rules were bleeding into the wall */
.card .story { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.card.text-only .story { font-size: 1.3rem; }
.wall-controls .chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; box-shadow: none; }
.card-actions { justify-content: flex-end; }
.report-btn { font-size: 0.85rem; color: var(--ink-soft); text-decoration-color: rgba(74,82,99,.4); padding: 0; min-height: 0; }
.card-body { gap: var(--s2); padding-bottom: var(--s3); }

/* Un-missable announcement band (Rich, Oct 29) */
.announce { background: var(--pine-deep); color: #fff; border-bottom: 4px solid var(--gold); }
.announce-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); padding-block: var(--s5); }
.announce-text { margin: 0; flex: 1 1 28rem; min-width: 0; font-family: var(--display); font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem); line-height: 1.3; text-wrap: balance; }
.announce-text strong { color: #FFE08A; font-weight: 800; }
.announce-btn { flex: none; display: inline-block; background: #FFD24A; color: #1c2230; font-weight: 800; font-size: 1.15rem; text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 999px; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.announce-btn:hover, .announce-btn:focus-visible { background: #FFE08A; outline: 3px solid #fff; outline-offset: 2px; }

/* Hero: photo fills down to the buttons; caption and "Another photo" button sit on the photo in fixed spots (Rich) */
.hero-photo { position: relative; }
.ridge-frame { position: relative; }
.hero-next { position: absolute; top: 12px; right: 12px; z-index: 2; font: inherit; font-weight: 700; font-size: 1rem; min-height: 2.75rem; padding: 0.45rem 1rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.hero-next:hover { background: #fff; }
.hero-next:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 2.5rem 1rem 0.8rem; color: #fff !important; font-size: 0.95rem; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); border-radius: 0 0 4px 4px; pointer-events: none; }
@media (min-width: 64rem) {
  .hero-slim .hero-grid { align-items: stretch; }
  .hero-slim .hero-photo { display: flex; flex-direction: column; }
  .hero-slim .ridge-frame { flex: 1; aspect-ratio: auto; min-height: 26rem; }
}
.tonight-label { display: inline-flex; flex-direction: column; line-height: 1.2; }
.tonight-date { display: block; color: #fff; letter-spacing: .06em; font-size: .8rem; margin-top: 2px; }

/* after-upload photo notes */
.photo-notes { margin-top: var(--s5); display: grid; gap: var(--s3); border-top: 1px solid var(--hairline); padding-top: var(--s5); }
.photo-notes[hidden] { display: none; }
.pn-title { margin: 0; font-size: 1.4rem; }
.pn-hint { margin: 0; color: var(--ink-soft); }
.pn-msg:empty { display: none; }
.pm-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s3); border: 1px solid var(--hairline); border-radius: 10px; padding: var(--s3); margin: 0; min-width: 0; }
.pm-row legend { font-weight: 600; padding: 0 4px; }
.pm-thumb { width: 6rem; height: 6rem; object-fit: cover; border-radius: 6px; background: var(--mist); }
.pm-fields { display: grid; gap: var(--s2); min-width: 0; }
.pm-fields input, .pm-fields textarea, .pm-fields select { font: inherit; font-size: 1rem; width: 100%; padding: 0.55rem 0.7rem; border: 1.5px solid #8b94a5; border-radius: 8px; background: #fff; min-height: 0; }
.pm-when { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s2); }
@media (max-width: 30rem) { .pm-row { grid-template-columns: 1fr; } .pm-thumb { width: 100%; height: 10rem; } }
.ph-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.add-story { justify-self: start; font-weight: 600; color: var(--alpenglow-deep); }
.add-story-form { border-top: 1px solid var(--hairline); padding-top: var(--s3); }
.add-story-form[hidden] { display: none; }
.photo-notes { background: #eef5f0; border: 2px solid var(--pine); border-radius: var(--radius-card); padding: var(--s5); }
.pn-step { margin: 0; font-family: var(--label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: var(--pine-deep); }
.photo-notes .pm-row { background: #fff; }
.after-hint { margin: var(--s2) 0 0; padding: var(--s2) var(--s3); background: #eef5f0; border-radius: 8px; font-size: 1rem; color: var(--pine-deep); }
.mine-badge { justify-self: start; display: inline-block; font-family: var(--label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: #fff; background: var(--pine); border-radius: 999px; padding: 2px 10px; }
/* Another photo: lighter so it doesn't sit heavy on the photo (Rich) */
.hero-next { background: rgba(255,255,255,.55); box-shadow: 0 1px 6px rgba(0,0,0,.12); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.hero-next:hover, .hero-next:focus-visible { background: rgba(255,255,255,.85); }
/* Share page: two ways in, a story or a bunch of photos (Rich, Oct 29) */
.share-mode { border: 0; margin: 0 0 var(--s4); padding: 0; min-width: 0; }
.share-mode legend { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-bottom: var(--s3); padding: 0; }
.mode-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); }
.mode-option { position: relative; display: grid; gap: 4px; padding: var(--s3) var(--s4) var(--s3) calc(var(--s4) + 26px); background: #fff; border: 2px solid var(--hairline); border-radius: var(--radius-card); cursor: pointer; }
.mode-option input { position: absolute; left: var(--s3); top: calc(var(--s3) + 4px); width: 20px; height: 20px; accent-color: var(--pine); margin: 0; }
.mode-option:has(input:checked) { border-color: var(--pine); background: #eef5f0; }
.mode-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.mode-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.mode-desc { color: var(--ink-soft); font-size: 1rem; }
.field[hidden] { display: none; }
/* Front page: the bulk-photo path sits right beside "Leave a few words" (Rich, Oct 29) */
.bulk-cta { display: grid; gap: var(--s2); justify-items: start; margin-top: var(--s5); padding: var(--s4) var(--s5); background: #eef5f0; border: 2px solid var(--pine); border-radius: var(--radius-card); }
.bulk-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.bulk-text { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
/* Front page: sharing happens on /share; this section shows the words people left (Rich, Oct 29) */
.words-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
@media (min-width: 56rem) { .words-inner { grid-template-columns: 1fr; } }
/* Short notes sit in the wall as quote cards (Rich, Oct 29) */
.note-card { background: var(--sky-tint, #f3f6fa); }
.note-card .note-quote { font-family: var(--display); font-size: 1.35rem; line-height: 1.35; color: var(--ink); }
.note-card { background: #e3edf8; }
@media (min-width: 40rem) { .mode-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
