:root {
  color-scheme: only light;
  --olive: #444a30; --olive-deep: #343924; --sage: #b5bb9a; --cream: #f2efe2; --terra: #b8603e;
  --f-script: "Lobster", cursive; --f-display: "Italiana", serif; --f-serif: "Cormorant Garamond", serif;
  --f-label: "Cormorant Garamond", serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: clamp(22px, 6vw, 96px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--f-serif); font-size: 1.2rem; color: var(--cream); background: var(--olive);
  overflow: hidden; -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--terra); }

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background-image: linear-gradient(rgba(181, 187, 154, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(181, 187, 154, .09) 1px, transparent 1px);
  background-size: 104px 104px; }
.bg__stamp { position: absolute; width: min(120vmin, 900px); right: -18vmin; bottom: -22vmin; color: rgba(181, 187, 154, .22); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 20; background: rgba(0, 0, 0, .2); }
.progress i { display: block; height: 100%; width: 0; background: var(--terra); transition: width .7s var(--ease); }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); }
.top__logo { color: var(--cream); font-family: var(--f-script); font-size: 1.8rem; text-decoration: none; }
.top__logo span { color: var(--sage); }
.top__close { color: var(--cream); text-decoration: none; font-family: var(--f-label); letter-spacing: 0.20em; text-transform: uppercase; font-size: 0.90rem; opacity: .75; transition: opacity .3s; ; font-weight: 700; }
.top__close:hover { opacity: 1; }
.top__close b { font-weight: 400; margin-left: .5em; }

.stage { position: relative; z-index: 1; height: 100svh; }
#slides { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter) 110px; max-width: 1100px; margin-inline: auto;
  opacity: 0; visibility: hidden; transform: translateY(60px);
  transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s .7s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.slide.is-past { transform: translateY(-60px); }
.slide.is-back-from { transform: translateY(60px); }

.q__n { font-family: var(--f-label); letter-spacing: 0.20em; font-size: 0.97rem; color: var(--sage); display: flex; align-items: center; gap: .9em; margin-bottom: 1.4rem; ; font-weight: 700; }
.q__n::after { content: "→"; letter-spacing: 0; }
.q__t { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 1.2rem + 4.4vw, 5rem); line-height: 1.04; margin-bottom: .8rem; }
.q__t em { font-family: var(--f-script); font-style: normal; color: var(--sage); }
.q__h { font-style: italic; color: var(--sage); font-size: 1.25rem; margin-bottom: 2rem; max-width: 44ch; }
.req { color: var(--terra); }

.field {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(181, 187, 154, .5);
  font-family: var(--f-display); font-size: clamp(1.8rem, 1rem + 3.4vw, 3.6rem); padding: .2em 0; outline: none; border-radius: 0;
  caret-color: var(--terra); transition: border-color .3s;
}
.field:focus { border-color: var(--cream); }
.field::placeholder { color: rgba(242, 239, 226, .28); }
textarea.field { resize: none; min-height: 3.4em; line-height: 1.25; }

.ok { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.6em; border-radius: 999px;
  background: var(--terra); color: var(--cream); font-family: var(--f-label); letter-spacing: 0.20em; text-transform: uppercase; font-size: 0.98rem;
  transition: transform .3s var(--ease), background .3s;
; font-weight: 700; }
.btn:hover { transform: translateY(-2px); background: #c86d49; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn--sage { background: var(--sage); color: var(--olive-deep); }
.btn--sage:hover { background: #c6cbac; }
.hint { font-size: 1.07rem; opacity: .65; font-family: var(--f-label); letter-spacing: 0.10em; ; font-weight: 700; }
.hint kbd { font-family: inherit; border: 1px solid currentColor; border-radius: 6px; padding: 0 .45em; margin: 0 .2em; }
.err { color: #ffb394; font-style: italic; margin-top: 1rem; min-height: 1.5em; font-size: 1.05rem; }

/* choice cards */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.choice {
  position: relative; text-align: left; padding: 1.4rem 1.6rem; border-radius: 18px; border: 1.5px solid rgba(181, 187, 154, .5);
  font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.1; transition: background .3s, border-color .3s, transform .4s var(--ease), color .3s;
}
.choice small { display: block; font-family: var(--f-serif); font-style: italic; font-size: 1rem; opacity: .75; margin-top: .4rem; }
.choice kbd { position: absolute; top: 12px; right: 14px; font-family: var(--f-label); font-size: 0.92rem; border: 1px solid currentColor; border-radius: 6px; padding: 0 .5em; opacity: .55; ; font-weight: 700; }
.choice:hover { border-color: var(--cream); transform: translateY(-3px); }
.choice.is-on { background: var(--cream); color: var(--olive-deep); border-color: var(--cream); }

/* stepper */
.stepper { display: flex; align-items: center; gap: clamp(16px, 4vw, 40px); }
.stepper button {
  width: clamp(58px, 9vw, 84px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(181, 187, 154, .6); font-size: 2rem; line-height: 1;
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.stepper button:hover { background: var(--cream); color: var(--olive-deep); transform: scale(1.06); }
.stepper button:active { transform: scale(.94); }
.stepper output { font-family: var(--f-display); font-size: clamp(4.5rem, 3rem + 8vw, 10rem); line-height: 1; min-width: 1.4ch; text-align: center; font-variant-numeric: tabular-nums; }
.stepper output.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); color: var(--terra); } }
.tally { margin-top: 1.4rem; font-style: italic; color: var(--sage); }
.tally b { font-style: normal; font-family: var(--f-display); font-weight: 400; color: var(--cream); }
.tally.bad b { color: #ffb394; }

/* review */
.recap { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 1.6rem 0 .6rem; }
.recap li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 16px; background: rgba(242, 239, 226, .07); box-shadow: inset 0 0 0 1px rgba(181, 187, 154, .3); }
.recap li > div { display: grid; gap: .25rem; min-width: 0; }
.recap__k { font-family: var(--f-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .88rem; color: var(--sage); }
.recap__v { font-family: var(--f-display); font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); line-height: 1.15; word-break: break-word; }
.recap li.is-empty .recap__v { font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; opacity: .5; }
.recap .wide { grid-column: 1 / -1; }
.recap button { flex: none; padding: .5em 1.1em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(242, 239, 226, .5); font-family: var(--f-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; transition: background .3s, color .3s; }
.recap button:hover { background: var(--cream); color: var(--olive-deep); }
.recap + .ok { margin-top: 2.2rem; }

/* done */
.done h1 { font-family: var(--f-script); font-weight: 400; font-size: clamp(3.4rem, 2rem + 9vw, 9rem); line-height: .95; }
.done h1 span { color: var(--sage); }
.done p { font-style: italic; font-size: 1.4rem; margin: 1.4rem 0 2rem; max-width: 40ch; }
.done .no-wrap { display: flex; gap: 12px; flex-wrap: wrap; }

/* controls */
.controls { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); transition: opacity .4s; }
.controls.is-hidden { opacity: 0; pointer-events: none; }
.count { font-family: var(--f-label); letter-spacing: 0.20em; font-size: 0.97rem; color: var(--sage); ; font-weight: 700; }
.nav-arrows { display: flex; gap: 8px; }
.nav-arrows button { width: 48px; height: 48px; border-radius: 12px; background: var(--terra); font-size: 1.2rem; transition: transform .3s var(--ease), opacity .3s; }
.nav-arrows button:first-child { background: rgba(242, 239, 226, .12); }
.nav-arrows button:hover { transform: translateY(-2px); }
.nav-arrows button:disabled { opacity: .3; cursor: default; transform: none; }

#confetti { position: fixed; inset: 0; z-index: 30; pointer-events: none; width: 100%; height: 100%; }

@media (max-width: 640px) {
  .choices { grid-template-columns: 1fr; }
  .recap { grid-template-columns: 1fr; }
  .hint { display: none; }
  .slide { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }
a.btn { text-decoration: none; }

body { font-size: 1.3rem; }
.btn { font-size: 1.05rem; }
.choice small { font-size: 1.15rem; }
.q__h { font-size: 1.4rem; }
.hint, .count { font-size: 1.05rem; }
@media (max-height: 760px) { .recap { gap: 8px; } .recap li { padding: .7rem 1rem; } .slide { padding-block: 70px 90px; } }
.recap__v { font-family: var(--f-serif); font-weight: 500; font-variant-numeric: lining-nums; font-size: clamp(1.5rem, 1.2rem + .8vw, 1.9rem); }
