/* Talisa Monet brand tokens, mirrored from talisamonet.com:
   paper #fff, ink #111, stone #6f6b63, line #e6e4df,
   Instrument Sans (display + body) and DM Mono (labels, buttons). */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/_tm/fonts/instrument-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/_tm/fonts/instrument-sans-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/_tm/fonts/dm-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/_tm/fonts/dm-mono-500-latin.woff2") format("woff2");
}

:root {
  --paper: #fff;
  --ink: #111;
  --black: #000;
  --graphite: #3b3a37;
  --stone: #6f6b63;
  --line: #e6e4df;
  --fog: #f4f3f0;
  --error: #9b1c1c;
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: lowercase;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 2px;
  font-family: var(--font-mono); font-size: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: transparent; }
.progress-bar { height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease); }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
body.in-form .topbar { border-bottom-color: var(--line); }
.wordmark {
  font-family: var(--font-sans); font-weight: 700; text-transform: uppercase;
  font-size: 18px; line-height: 1; letter-spacing: -.04em; text-decoration: none;
}
.wm-short { display: none; font-size: 22px; letter-spacing: -.09em; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-link { color: var(--stone); text-decoration: none; transition: color .3s; }
.topbar-link:hover { color: var(--ink); }
.step-count { color: var(--stone); }

/* stage */
.stage {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 110px) var(--gutter) 56px;
}

.eyebrow { color: var(--stone); margin: 0 0 22px; }
.intro-title {
  font-weight: 600;
  font-size: clamp(48px, 9.4vw, 116px);
  line-height: .95;
  letter-spacing: -.045em;
  margin: 0 0 28px;
}
.intro-lede { max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--graphite); margin: 0 0 36px; }
.intro-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tagline {
  margin: clamp(56px, 10vh, 110px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 34em;
}
.tagline p { margin: 0; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; font-style: italic; }
.noscript { margin-top: 28px; color: var(--graphite); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .02em; text-transform: lowercase;
  border-radius: 2px; border: 1px solid var(--ink);
  cursor: pointer; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--black); border-color: var(--black); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.hint { color: var(--stone); }
kbd {
  font-family: var(--font-mono); font-size: 11px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px;
  padding: 1px 5px; background: var(--paper);
}

/* questions */
.q { animation: rise .45s var(--ease) both; }
.q.back { animation-name: drop; }
.q.still { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .q, .q.back { animation: none; }
  .progress-bar { transition: none; }
}
.q-kicker { display: flex; gap: 6px; color: var(--stone); margin: 0 0 14px; }
.q-kicker .num { color: var(--ink); }
.q-title {
  font-weight: 600; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -.035em;
  margin: 0 0 12px; outline: none;
}
.q-help { color: var(--stone); margin: 0 0 28px; max-width: 36em; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts { display: grid; gap: 10px; }
.opts.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card {
  display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.opt:hover .opt-card { border-color: var(--stone); }
.opt input:focus-visible + .opt-card { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt input:checked + .opt-card { border-color: var(--ink); background: var(--fog); }
.key {
  flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--stone);
  border: 1px solid var(--line); border-radius: 2px;
}
.opt input:checked + .opt-card .key { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opt-title { font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.opt-desc { color: var(--stone); font-size: 14px; line-height: 1.45; }
.check { flex: none; opacity: 0; font-size: 14px; transition: opacity .2s; }
.opt input:checked + .opt-card .check { opacity: 1; }
.opt.flash .opt-card { animation: flash .4s var(--ease); }
@keyframes flash { 50% { background: var(--line); } }

.fields { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label-text {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; text-transform: lowercase; color: var(--graphite);
}
.opt-in { color: var(--stone); }
.input {
  width: 100%;
  font: inherit; font-size: 20px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0;
  transition: border-color .25s var(--ease);
}
.input::placeholder { color: #b4b0a8; }
.input:focus { outline: none; border-bottom-color: var(--ink); }
.input[aria-invalid="true"] { border-bottom-color: var(--error); }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.5; }

.error { min-height: 1.4em; margin: 16px 0 0; color: var(--error); font-size: 15px; }
.fail {
  margin-top: 8px; padding: 16px 18px;
  border: 1px solid var(--ink); border-radius: 2px; background: var(--fog);
}
.fail p { margin: 0; }
.fail p + p { margin-top: 6px; }

.q-nav {
  display: flex; align-items: center; gap: 14px;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
}
.q-nav .spacer { flex: 1; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--stone);
}
.footer-links { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
body.in-form .footer { display: none; }

/* private / not-found pages */
.private { max-width: 720px; }
.private .intro-title { font-size: clamp(40px, 7vw, 84px); }

@media (max-width: 720px) {
  .wm-long { display: none; }
  .wm-short { display: inline; }
  .topbar { height: 60px; }
  .opts.cols { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hint { display: none; }
  .topbar-right .topbar-link { display: none; }
  body.in-form .topbar-right .topbar-link { display: none; }
}
