@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --ink: #171717;
  --paper: #f7f1e7;
  --muted: #9e988d;
  --coral: #ff684f;
  --yellow: #ffd366;
  --blue: #96c8c2;
  --line: rgba(247, 241, 231, 0.18);
  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.app-shell { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--ink); }
.app-shell.is-locked .topbar, .app-shell.is-locked .screen { visibility: hidden; }
.access-gate { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1.25rem; background: rgba(23,23,23,.72); backdrop-filter: blur(10px); }
.app-shell:not(.is-locked) .access-gate { display: none; }
.access-gate__card { position: relative; width: min(100%, 30rem); max-width: 30rem; padding: clamp(1.6rem, 6vw, 3.4rem); border: 1px solid rgba(247,241,231,.25); border-radius: 1.8rem; background: linear-gradient(145deg, rgba(255,104,79,.97), rgba(204,65,60,.96)); color: var(--ink); box-shadow: 1rem 1rem 0 var(--yellow); transform: rotate(-1deg); animation: enter .7s both cubic-bezier(.22,1,.36,1); }
.access-gate__card .eyebrow { color: rgba(23,23,23,.62); }
.access-gate__card .eyebrow span { color: var(--yellow); }
.access-gate__seal { display: grid; width: 3rem; height: 3rem; place-items: center; margin: 1.8rem 0 1.2rem; border: 1px solid rgba(23,23,23,.4); border-radius: 50%; font-size: 1.2rem; }
.access-gate h1 { margin-bottom: 1rem; color: var(--ink); font-size: clamp(3rem, 11vw, 5.6rem); }
.access-gate h1 em { color: var(--yellow); }
.access-gate__intro { max-width: 20rem; color: rgba(23,23,23,.75); line-height: 1.45; }
.access-form { margin-top: 2rem; }
.access-form label { display: block; margin-bottom: .55rem; color: rgba(23,23,23,.68); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.access-form__row { display: flex; gap: .6rem; }
.access-form input { min-width: 0; flex: 1; border: 1px solid rgba(23,23,23,.3); border-radius: 999px; padding: .9rem 1rem; background: rgba(247,241,231,.18); color: var(--ink); }
.access-form input::placeholder { color: rgba(23,23,23,.5); }
.access-form .button { flex-shrink: 0; min-height: 3rem; padding-left: 1.15rem; }
.access-form__feedback { min-height: 1.2rem; margin: .7rem 0 0; color: var(--yellow); font-size: .75rem; font-weight: 700; }
.grain { position: fixed; inset: 0; z-index: -1; opacity: .13; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"); }
.orb { position: fixed; z-index: -2; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.orb--one { width: 25rem; height: 25rem; top: -13rem; right: -7rem; background: var(--coral); opacity: .75; }
.orb--two { width: 16rem; height: 16rem; bottom: -10rem; left: -8rem; background: var(--blue); opacity: .45; }

.topbar { position: absolute; z-index: 4; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1.35rem clamp(1.25rem, 5vw, 5rem); color: var(--paper); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-weight: 700; }
.brand__mark { display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border-radius: 50%; background: var(--coral); color: var(--ink); font-size: .7rem; }
.topbar__status { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); }
.topbar__status i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 .2rem rgba(255,211,102,.15); }

.screen { position: relative; display: flex; flex-direction: column; width: min(100%, 78rem); min-height: 100svh; margin: auto; padding: 7rem clamp(1.25rem, 5vw, 5rem) 2.5rem; animation: enter .7s both cubic-bezier(.22,1,.36,1); }
.screen[hidden] { display: none; }
.eyebrow { margin: 0 0 1.5rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.eyebrow span { color: var(--yellow); margin-right: .35rem; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.055em; line-height: .94; }
h1 { max-width: 48rem; margin-bottom: 1.6rem; color: var(--paper); font-size: clamp(3.5rem, 10vw, 8.6rem); }
h2 { font-size: clamp(2.7rem, 6vw, 5.4rem); }
h1 em, h2 em { color: var(--coral); font-style: normal; }

.screen--intro { justify-content: center; padding-top: 5rem; }
.intro__content { max-width: 49rem; }
.intro__lead { max-width: 25rem; color: #d0c9bc; font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.5; }
.microcopy { color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 3.5rem; border: 0; border-radius: 999px; padding: .9rem 1.2rem .9rem 1.45rem; font-size: .85rem; font-weight: 700; transition: transform .25s, box-shadow .25s, background .25s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 1rem 2rem rgba(0,0,0,.24); }
.button--wide { width: min(100%, 18rem); margin-top: 1.2rem; }
.button--primary { background: var(--yellow); color: var(--ink); }
.button__arrow { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 1rem; }
.intro__aside { position: absolute; top: 29%; right: 12%; display: flex; flex-direction: column; color: var(--yellow); font-family: var(--display); font-size: 1.1rem; transform: rotate(8deg); }
.intro__aside .arrow { align-self: flex-end; font-family: var(--body); font-size: 2.5rem; line-height: 1; }
.intro__stamp { position: absolute; right: clamp(1rem, 8vw, 8rem); bottom: 14%; display: flex; width: 9rem; height: 9rem; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--coral); border-radius: 50%; color: var(--coral); font-size: .58rem; letter-spacing: .1em; text-align: center; text-transform: uppercase; transform: rotate(-14deg); }
.intro__stamp strong { margin: .3rem 0; font-family: var(--display); font-size: 1.45rem; line-height: .8; text-transform: lowercase; }
.scroll-note { position: absolute; bottom: 2rem; left: clamp(1.25rem, 5vw, 5rem); display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.scroll-note span { display: block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--coral); animation: pulse 1.6s infinite; }

.screen__header { display: flex; align-items: flex-start; justify-content: space-between; }
.progress { display: grid; grid-template-columns: repeat(10, 1fr); gap: .3rem; width: min(22rem, 60vw); }
.progress span { height: .18rem; border-radius: 4px; background: rgba(247,241,231,.18); transition: background .3s; }
.progress span.is-filled { background: var(--coral); }
.icon-button { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.15rem; }
.icon-button:hover { border-color: var(--yellow); color: var(--yellow); }
.reason-card { display: flex; flex: 1; min-height: 30rem; flex-direction: column; justify-content: space-between; margin: 3rem auto 1rem; width: min(100%, 47rem); padding: clamp(1.4rem, 4vw, 3.5rem); border: 1px solid rgba(247,241,231,.24); border-radius: 1.8rem; background: linear-gradient(135deg, rgba(255,104,79,.97), rgba(204,65,60,.96)); box-shadow: 1.5rem 1.5rem 0 rgba(255,211,102,.85); transform: rotate(-1.5deg); transition: transform .35s, opacity .35s; }
.reason-card.is-leaving { opacity: 0; transform: translateX(-2rem) rotate(-5deg); }
.reason-card__topline, .reason-card__footer { display: flex; justify-content: space-between; align-items: center; }
.card-tag { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.card-dot { color: var(--yellow); font-size: .9rem; }
.reason-card__content { max-width: 33rem; padding: 3rem 0; }
.reason-card__kicker { color: rgba(23,23,23,.6); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reason-card h2 { margin-bottom: 1rem; color: var(--ink); font-size: clamp(2.7rem, 7vw, 5.7rem); }
.reason-card__body { max-width: 28rem; color: rgba(23,23,23,.78); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.45; }
.reason-card__prompt { margin: 0; color: rgba(23,23,23,.65); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vote-actions { display: flex; gap: .55rem; }
.vote-button { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.9rem; border: 1px solid rgba(23,23,23,.25); border-radius: 999px; padding: .65rem 1rem; background: rgba(247,241,231,.16); color: var(--ink); font-size: .76rem; font-weight: 700; transition: transform .2s, background .2s; }
.vote-button:hover, .vote-button.is-selected { background: var(--paper); transform: translateY(-2px); }
.vote-button span { font-size: 1.15rem; line-height: .8; }
.vote-button--yes span { color: var(--coral); }
.swipe-hint { margin: auto; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.swipe-hint span { color: var(--yellow); font-size: 1rem; }

.screen--result, .screen--slider { justify-content: center; align-items: center; text-align: center; }
.screen--result h2, .screen--slider h2 { max-width: 42rem; margin-bottom: 1.3rem; }
.result__confetti { margin-bottom: 1.4rem; color: var(--yellow); letter-spacing: .4rem; animation: float 2.5s ease-in-out infinite; }
.score-ring { display: flex; width: 9.5rem; height: 9.5rem; flex-direction: column; align-items: center; justify-content: center; margin: 1rem 0 2.4rem; border: 1px solid var(--coral); border-radius: 50%; transform: rotate(-8deg); }
.score-ring strong { font-family: var(--display); font-size: 4.1rem; line-height: .8; }
.score-ring span { margin-top: .75rem; color: var(--muted); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.result__message { max-width: 28rem; color: #d0c9bc; font-size: 1rem; line-height: 1.5; }
.slider-intro { max-width: 25rem; color: #d0c9bc; line-height: 1.5; }
.swipe-deck { position: relative; width: min(100%, 25rem); margin: 2.2rem 0 1rem; perspective: 1000px; touch-action: pan-y; }
.swipe-deck::before, .swipe-deck::after { position: absolute; inset: .7rem -.5rem -.7rem .5rem; z-index: -1; border: 1px solid rgba(247,241,231,.12); border-radius: 1.4rem; content: ''; transform: rotate(5deg); }
.swipe-deck::after { inset: .35rem .4rem -.35rem -.4rem; z-index: -2; border-color: rgba(255,104,79,.28); transform: rotate(-3deg); }
.swipe-card { position: relative; display: flex; min-height: 24rem; flex-direction: column; justify-content: space-between; padding: clamp(1.4rem, 5vw, 2.4rem); overflow: hidden; border-radius: 1.4rem; background: var(--yellow); color: var(--ink); text-align: left; box-shadow: .9rem .9rem 0 rgba(255,104,79,.75); transform: rotate(-2deg); user-select: none; }
.swipe-card::before { position: absolute; top: -4rem; right: -4rem; width: 12rem; height: 12rem; border-radius: 50%; background: var(--coral); opacity: .7; content: ''; }
.swipe-card__number, .swipe-card__kicker, .swipe-card__hint { position: relative; z-index: 1; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.swipe-card__number { align-self: flex-end; opacity: .55; }
.swipe-card__kicker { max-width: 16rem; margin-bottom: 1.1rem; color: rgba(23,23,23,.65); }
.swipe-card h3 { position: relative; z-index: 1; max-width: 19rem; margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 7vw, 4rem); letter-spacing: -.055em; line-height: .95; }
.swipe-card__text { position: relative; z-index: 1; max-width: 18rem; margin: 1rem 0 0; color: rgba(23,23,23,.72); font-size: .9rem; line-height: 1.45; }
.swipe-card__hint { align-self: flex-end; margin-top: 1.5rem; color: var(--coral); }
.swipe-card__hint b { margin-left: .3rem; font-size: 1.1rem; }
.swipe-deck.is-final .swipe-card { background: var(--coral); box-shadow: .9rem .9rem 0 var(--blue); }
.swipe-deck.is-final .swipe-card::before { background: var(--yellow); }
.swipe-deck.is-final .swipe-card__kicker { color: var(--ink); }
.swipe-deck.is-final .swipe-card__hint { color: var(--ink); }
.slide-in-left { animation: slideInLeft .42s both cubic-bezier(.22,1,.36,1); }
.slide-in-right { animation: slideInRight .42s both cubic-bezier(.22,1,.36,1); }
.swipe-controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.swipe-controls .icon-button { background: rgba(247,241,231,.06); }
.swipe-dots { display: flex; gap: .4rem; }
.swipe-dots span { width: .35rem; height: .35rem; border-radius: 50%; background: rgba(247,241,231,.25); transition: transform .25s, background .25s; }
.swipe-dots span.is-active { background: var(--yellow); transform: scale(1.45); }
.auto-redirect-note { min-height: 1.1rem; margin: .9rem 0 0; color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-align: center; }

.screen--dates { padding-top: 8rem; }
.dates__heading { max-width: 41rem; }
.dates__heading h2 { margin-bottom: 1rem; }
.dates__heading > p:last-child { max-width: 26rem; color: #d0c9bc; line-height: 1.5; }
.date-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.date-card { min-height: 12rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(247,241,231,.06); text-align: left; transition: transform .25s, border-color .25s, background .25s; }
.date-card:nth-child(2) { transform: translateY(1.4rem); }
.date-card:hover, .date-card.is-selected { border-color: var(--yellow); background: rgba(255,211,102,.12); transform: translateY(-.35rem) rotate(-1deg); }
.date-card:nth-child(2):hover, .date-card:nth-child(2).is-selected { transform: translateY(1rem) rotate(1deg); }
.date-card__number { color: var(--coral); font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.date-card h3 { margin: 2.4rem 0 .5rem; font-family: var(--display); font-size: 1.45rem; letter-spacing: -.03em; }
.date-card p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.date-picker-panel { display: flex; width: min(100%, 28rem); align-items: center; gap: 1rem; margin: 3.2rem auto 0; padding: 1rem 1.1rem; border: 1px solid var(--yellow); border-radius: 1rem; background: rgba(255,211,102,.1); }
.date-picker-panel label { flex: 1; color: var(--paper); font-size: .78rem; font-weight: 700; line-height: 1.3; }
.date-picker-panel input { min-height: 2.8rem; border: 1px solid var(--line); border-radius: .65rem; padding: .45rem .6rem; background: var(--ink); color: var(--paper); color-scheme: dark; }
.date-picker-panel p { display: none; }
.decision-panel { margin-top: 3.5rem; text-align: center; }
.decision-panel > p:first-child { color: var(--yellow); font-size: .8rem; font-weight: 700; letter-spacing: .05em; }
.decision-actions { position: relative; display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 5rem; margin-top: 1rem; }
.decision-button { min-height: 3rem; border-radius: 999px; padding: .8rem 1.4rem; font-weight: 700; transition: transform .3s cubic-bezier(.22,1,.36,1), background .25s; }
.decision-button--no { position: relative; z-index: 10; border: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.decision-button--no:hover { border-color: var(--paper); }
.decision-button--yes { position: relative; z-index: 2; border: 0; background: var(--coral); color: var(--ink); transform: scale(var(--yes-scale, 1)); transform-origin: center; will-change: transform; }
.decision-button--yes span { margin-left: .35rem; }
.decision-feedback { min-height: 1.3rem; margin: 1rem 0 0; color: var(--muted); font-size: .78rem; }

.screen--done { align-items: center; justify-content: center; text-align: center; }
.done__icon { display: grid; width: 5rem; height: 5rem; place-items: center; margin-bottom: 2rem; border-radius: 50%; background: var(--coral); color: var(--ink); font-size: 2rem; animation: pop .55s both cubic-bezier(.22,1,.36,1); }
.screen--done h2 { margin-bottom: 1rem; }
.screen--done p { max-width: 27rem; color: #d0c9bc; line-height: 1.5; }
.copy-box { display: flex; align-items: center; gap: .8rem; width: min(100%, 32rem); margin: 1.5rem 0 .4rem; padding: .55rem .6rem .55rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(247,241,231,.06); text-align: left; }
.copy-box span { flex: 1; color: var(--paper); font-size: .78rem; line-height: 1.4; }
.copy-box button { border: 0; border-radius: .65rem; padding: .7rem .8rem; background: var(--yellow); color: var(--ink); font-size: .7rem; font-weight: 700; }
.text-button { margin-top: 2rem; border: 0; border-bottom: 1px solid var(--muted); padding: 0 0 .2rem; background: transparent; color: var(--muted); font-size: .75rem; }
.text-button:hover { color: var(--paper); border-color: var(--paper); }

@keyframes enter { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .4; } }
@keyframes float { 50% { transform: translateY(-.35rem) rotate(2deg); } }
@keyframes pop { from { transform: scale(.6) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(4rem) rotate(6deg); } to { opacity: 1; transform: translateX(0) rotate(-2deg); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(-4rem) rotate(-6deg); } to { opacity: 1; transform: translateX(0) rotate(-2deg); } }

@media (max-width: 680px) {
  .topbar { padding-top: 1rem; }
  .topbar__status { display: none; }
  .screen { padding-top: 6rem; padding-bottom: 2rem; }
  .intro__aside { top: 18%; right: 8%; font-size: .9rem; }
  .intro__stamp { right: 1rem; bottom: 17%; width: 7.6rem; height: 7.6rem; }
  .intro__stamp strong { font-size: 1.2rem; }
  .scroll-note { bottom: 1.2rem; }
  .reason-card { min-height: 35rem; margin-top: 2rem; box-shadow: .7rem .7rem 0 rgba(255,211,102,.85); }
  .reason-card__content { padding: 2rem 0; }
  .reason-card__footer { display: block; }
  .reason-card__prompt { margin-bottom: .8rem; }
  .vote-actions { justify-content: space-between; }
  .vote-button { flex: 1; justify-content: center; }
  .date-list { grid-template-columns: 1fr; gap: .75rem; }
  .date-card, .date-card:nth-child(2) { min-height: auto; transform: none; }
  .date-card h3 { margin-top: 1rem; }
  .date-card:hover, .date-card.is-selected, .date-card:nth-child(2):hover, .date-card:nth-child(2).is-selected { transform: translateX(.25rem); }
  .date-picker-panel { align-items: stretch; flex-direction: column; margin-top: 1.8rem; }
  .date-picker-panel input { width: 100%; }
  .decision-panel { margin-top: 2.5rem; }
  .copy-box { align-items: stretch; flex-direction: column; }
  .copy-box button { width: 100%; }
  .access-gate__card { box-shadow: .7rem .7rem 0 var(--yellow); }
  .access-form__row { align-items: stretch; flex-direction: column; }
  .access-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
