/* Love Story questionnaire (/story/) — same tokens as the studio and the policy pages. Mobile first. */
:root { --bg: #f4efe7; --card: #fffdf9; --ink: #2b2426; --muted: #6e645d; --line: #e3d9cc; --gold: #b08a4c; --gold-soft: #f3ead9; --wine: #8c2b40; --wine-hover: #7a2437; --wine-press: #6b1d32; --no: #a23b32; }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15.5px/1.6 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
a { color: var(--wine); text-underline-offset: 3px; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; }

.masthead { border-bottom: 1px solid var(--line); padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 22px 'Cormorant Garamond', Georgia, serif; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; filter: drop-shadow(0 2px 3px rgba(140, 43, 64, .25)); }

.intro { padding: 30px 0 20px; }
.kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
h1 { font: 500 clamp(36px, 10vw, 52px)/1.04 'Cormorant Garamond', Georgia, serif; margin: 8px 0 10px; text-wrap: balance; }
h2 { font: 500 32px/1.1 'Cormorant Garamond', Georgia, serif; margin: 6px 0 10px; text-wrap: balance; }
.lead { color: var(--muted); text-wrap: pretty; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 8px; margin-top: 18px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: #3d3437; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 500 16px 'Cormorant Garamond', serif; }
.steps b { font-weight: 500; }

form { display: grid; gap: 14px; padding-bottom: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px 20px; min-width: 0; display: grid; gap: 12px; }
h2.lg { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font: 500 25px/1.15 'Cormorant Garamond', Georgia, serif; margin: 0 0 2px; }
h2.lg em, label em { font: italic 400 13px 'Inter', sans-serif; color: var(--muted); }
h2.lg .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font: 500 13px 'Inter', sans-serif; }
.two { display: grid; gap: 12px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } .card { padding: 22px 22px 24px; } }

.f { display: grid; gap: 6px; min-width: 0; }
.f > span { font-size: 13.5px; font-weight: 500; color: #3d3437; }
.f i { color: var(--wine); font-style: normal; }
input[type=text], input[type=email], input[type=date], input[type=time], textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: 400 16px/1.45 'Inter', sans-serif; background: #fff; color: var(--ink); -webkit-appearance: none; appearance: none; }
input[type=date], input[type=time] { display: block; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 76, .18); }
.bad input, .bad textarea, input.bad, textarea.bad { border-color: var(--no); }
.hint { font-size: 13px; color: var(--muted); margin-top: -4px; text-wrap: pretty; }
.hint.lead-in { margin-top: 0; }
.hint.count { text-align: right; margin-top: -6px; }
.hint.center { text-align: center; margin-top: 2px; }
.muted { color: var(--muted); font-size: 14px; }

/* moments: a tap row each; ticking it opens a short note field */
.moments { display: grid; gap: 8px; }
.mo { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mo.on { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine) inset; }
.mo label.mh { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px; cursor: pointer; font-size: 15px; }
.mo input[type=checkbox], .check input { flex: none; width: 22px; height: 22px; accent-color: var(--wine); margin: 0; }
.mo .mn { padding: 0 12px 12px; }
.mo .mn input { min-height: 44px; font-size: 16px; }

/* scenes */
.scene { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; background: #fff; }
.scene + .scene { margin-top: 10px; }
.scene .sh { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 19px 'Cormorant Garamond', serif; }
.scene .rm { font-family: 'Inter', sans-serif; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 4px; cursor: pointer; }
.scene textarea { min-height: 76px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; background: var(--bg); }
.seg button { border: 0; background: none; border-radius: 999px; min-height: 42px; padding: 6px 8px; font-size: 13.5px; cursor: pointer; line-height: 1.2; }
.seg button[aria-pressed=true] { background: var(--wine); color: #fff; }
.ghost { justify-self: start; border: 1px dashed var(--gold); background: none; color: var(--wine); border-radius: 999px; min-height: 46px; padding: 10px 18px; font-size: 14px; cursor: pointer; }
.ghost[hidden] { display: none; }

/* photos */
.tips { list-style: none; display: grid; gap: 4px; font-size: 14px; color: #3d3437; }
.tips li { padding-left: 18px; position: relative; }
.tips li::before { content: '♡'; position: absolute; left: 0; color: var(--gold); }
.drop { position: relative; display: grid; place-items: center; gap: 2px; min-height: 92px; border: 1.5px dashed var(--gold); border-radius: 16px; background: var(--gold-soft); text-align: center; padding: 14px; cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.drop .dt { font: 500 22px 'Cormorant Garamond', serif; color: var(--wine); }
.drop .dd { font-size: 13px; color: var(--muted); }
.drop.full { opacity: .55; }
.drop.busy { pointer-events: none; opacity: .7; }
.prog { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.prog i { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prog b { display: block; height: 100%; width: 0; background: var(--wine); transition: width .3s; }
.note { font-size: 13px; color: var(--no); }
.note:empty { display: none; }
.photos { list-style: none; display: grid; gap: 8px; }
.photos li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.photos img { width: 60px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: #eee; }
.photos input { min-height: 44px; font-size: 16px; padding: 9px 12px; }
.photos .x { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }

/* send */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; cursor: pointer; padding: 4px 0; }
.check input { margin-top: 1px; }
.check.bad span { color: var(--no); }
.err { color: var(--no); font-size: 14px; background: #fbefed; border: 1px solid #ecc9c4; border-radius: 12px; padding: 10px 12px; }
.btn { border: 1px solid var(--wine); background: var(--wine); color: #fff; border-radius: 999px; min-height: 52px; padding: 14px 24px; font-size: 14px; font-weight: 500; letter-spacing: .06em; cursor: pointer; transition: background .2s; width: 100%; }
.btn:hover { background: var(--wine-hover); border-color: var(--wine-hover); }
.btn:active { background: var(--wine-press); }
.btn:disabled { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { margin: 30px 0; text-align: center; padding: 34px 20px; }
.thanks:focus { outline: none; }
.thanks p { text-wrap: pretty; }

footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 16px 0 30px; font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); display: inline-block; padding: 11px 0; }

/* paid on our site (/story/?pay=…): a quiet confirmation instead of the Etsy order field */
.paidok { margin: 0 auto 18px; max-width: 520px; padding: 12px 16px; border-radius: 14px; background: #eef3e8; color: #3d5a2c; font-size: 14.5px; line-height: 1.5; text-align: center; }
.paidok.bad { background: #fbeaea; color: #8a1f1f; }

/* focus: our wine ring for keyboard users, never the browser blue one (2026-11-03) */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #8c2b40; outline-offset: 3px; }
