:root {
  --paper: #f4f0e5;
  --ink: #11100d;
  --blue: #3154d9;
  --blue-dark: #263eaa;
  --acid: #e7f24b;
  --coral: #ff5a48;
  --pink: #ff94b7;
  --cream: #fff8df;
  --muted: #6f6b62;
  --line: rgba(17, 16, 13, .22);
  --grid: rgba(49, 84, 217, .12);
  --shadow: 7px 8px 0 #11100d;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis-weight: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .28;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.9), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(231,242,75,.35), transparent 22%);
}

[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font: 700 .67rem/2.15rem var(--mono);
  letter-spacing: .1em;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: crawl 28s linear infinite;
}

.ticker-copy {
  flex: none;
  padding-right: 3rem;
}

@keyframes crawl {
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) rotate(-.5deg); }
  to { opacity: 1; transform: none; }
}

@keyframes receipt-in {
  from { opacity: 0; transform: translateY(-8px) rotate(-1deg); }
  to { opacity: 1; transform: rotate(-.35deg); }
}

#sky { display: none; }

#app {
  width: min(100%, 76rem);
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem) 5rem;
  overflow-x: clip;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), 76rem);
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  border-top: 2px solid var(--ink);
  font: 500 1rem/1.4 var(--mono);
  letter-spacing: .04em;
}

.site-footer a {
  color: var(--blue);
  text-underline-offset: .2em;
}

.site-footer a:hover { color: var(--coral); }

.screen { animation: pop-in .45s ease-out both; }

.wordmark {
  width: max-content;
  padding: .42rem .65rem .52rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font: 700 .78rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
}

.mono {
  font: 600 .67rem/1.45 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dim { color: var(--muted); }
.kicker { margin-top: 1.35rem; }

h1 {
  margin: .75rem 0 0;
  max-width: 11ch;
  font: 600 clamp(3rem, 7.5vw, 6.9rem)/.84 var(--serif);
  letter-spacing: -.065em;
  text-transform: uppercase;
}

h1 span {
  position: relative;
  z-index: 0;
  color: var(--blue);
  font-style: italic;
  font-weight: 500;
}

h1 span::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -.03em;
  right: -.03em;
  bottom: .03em;
  height: .15em;
  background: var(--acid);
  transform: rotate(-1deg);
}

.lede {
  max-width: 35rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* onboarding */

#screen-birth {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(19rem, .84fr);
  gap: clamp(2rem, 7vw, 6.5rem);
  align-items: center;
  min-height: calc(100vh - 7rem);
}

.birth-copy {
  position: relative;
  min-height: 42rem;
}

.birth-copy .brand { position: relative; z-index: 2; }

.note-sticker {
  position: absolute;
  top: -1.1rem;
  left: min(25rem, 72%);
  width: max-content;
  padding: .65rem .8rem;
  border: 2px solid var(--ink);
  background: var(--pink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 .62rem/1.25 var(--mono);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(5deg);
}

.hero-collage {
  display: block;
  width: min(39rem, 93%);
  margin: -1.8rem 0 0 clamp(0rem, 8vw, 4rem);
  filter: drop-shadow(3px 4px 0 rgba(17,16,13,.16));
  transform: rotate(-2deg);
}

.stamp {
  position: absolute;
  right: 2%;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: 8.5rem;
  aspect-ratio: 1;
  border: 4px double var(--coral);
  border-radius: 50%;
  color: var(--coral);
  font: 800 .8rem/1.15 var(--mono);
  letter-spacing: .08em;
  text-align: center;
  transform: rotate(11deg);
}

.birth-form {
  position: relative;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(.5deg);
}

.birth-form::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 12%;
  width: 5.5rem;
  height: 1.5rem;
  background: rgba(255, 148, 183, .75);
  transform: rotate(-3deg);
}

.form-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
  font: 700 .65rem/1.25 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field { margin-top: 1.35rem; }

label:not(.check) {
  display: block;
  margin-bottom: .5rem;
  color: var(--muted);
  font: 600 .66rem/1.3 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

input[type='date'],
input[type='time'],
.combo > input {
  width: 100%;
  min-height: 3.3rem;
  padding: 0 .9rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  transition: box-shadow .15s, transform .15s;
}

input:hover { box-shadow: 3px 3px 0 var(--blue); }

.check {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.3rem;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 650;
}

.check input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--blue);
}

.hint {
  max-width: 29rem;
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.privacy-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font: 500 .66rem/1.5 var(--mono);
  text-align: center;
}

.error {
  margin: .8rem 0 0;
  color: #a02218;
  font-size: .8rem;
  font-weight: 700;
}

/* search */

.combo { position: relative; }

.suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + .35rem);
  right: 0;
  left: 0;
  max-height: 17rem;
  margin: 0;
  padding: .25rem;
  overflow-y: auto;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--ink);
  list-style: none;
}

.suggest li {
  padding: .7rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  line-height: 1.35;
}

.suggest li:hover,
.suggest li[aria-selected='true'] {
  background: var(--acid);
}

.suggest .nm { font-size: .88rem; }
.suggest .dt {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .7rem;
}
.suggest .empty { color: var(--muted); cursor: default; }
.suggest .empty:hover { background: transparent; }
#city-state { min-height: 1.2em; }
#city-state.ok { color: var(--blue-dark); }
#city-state.warn { color: #a02218; }

/* buttons */

.primary {
  position: relative;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 1.45rem;
  padding: .7rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--ink);
  color: white;
  font: 750 .72rem/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .12s, box-shadow .12s, background .12s;
}

.primary:hover {
  background: var(--blue-dark);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.primary:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary.small {
  width: auto;
  min-height: 2.9rem;
  margin: 0;
  padding-inline: 1rem;
}

.primary:disabled { opacity: .45; cursor: wait; }

.ghost {
  min-height: 2.9rem;
  padding: .65rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font: 650 .67rem/1.2 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ghost:hover { background: var(--acid); }

/* main */

header.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.3rem;
  border-bottom: 2px solid var(--ink);
}

header.top .mono { display: block; margin-top: .55rem; }

.sigil {
  display: grid;
  place-items: center;
  width: 3.3rem;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 1.3rem;
  transition: transform .15s;
}

.sigil:hover { transform: rotate(-10deg) scale(1.03); }

.main-intro {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(2rem, 6vw, 4.5rem);
}

.ask { font-size: clamp(3.4rem, 8vw, 7rem); }

.doodle-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(8rem, 18vw, 13rem);
  aspect-ratio: 1;
  flex: none;
  border: 3px solid var(--ink);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(8deg);
}

.doodle-orbit::before,
.doodle-orbit::after {
  content: '';
  position: absolute;
  inset: 15%;
  border: 2px dashed var(--blue);
  border-radius: 50%;
  transform: rotate(40deg) scaleX(1.55);
}

.doodle-orbit::after {
  inset: 7%;
  border-color: var(--coral);
  transform: rotate(-28deg) scaleX(1.35);
}

.doodle-orbit b {
  z-index: 1;
  font: 500 clamp(3rem, 7vw, 5rem)/1 var(--serif);
}

.doodle-orbit span {
  position: absolute;
  top: -1rem;
  right: -1rem;
  z-index: 2;
  padding: .4rem;
  background: var(--acid);
  font: 700 .62rem/1 var(--mono);
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.composer {
  position: relative;
  margin-top: 2.2rem;
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--coral);
}

.composer::before {
  content: 'ПРИЙНЯТО';
  position: absolute;
  top: -1.1rem;
  right: 1rem;
  padding: .38rem .55rem;
  border: 2px solid var(--coral);
  color: var(--coral);
  font: 800 .58rem/1 var(--mono);
  letter-spacing: .08em;
  transform: rotate(4deg);
}

.composer input {
  width: 100%;
  padding: .35rem 0 1rem;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.1rem, 2.7vw, 1.6rem);
  line-height: 1.3;
}

.composer input::placeholder { color: #98938a; }

.composer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.composer-row .mono {
  min-width: 0;
  line-height: 1.45;
}

/* receipt + reading */

#result {
  margin-top: 2.5rem;
}

.receipt {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 2px solid var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(17,16,13,.11) .6px, transparent .6px);
  background-size: 5px 5px;
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--ink);
  animation: receipt-in .45s ease-out both;
  transform: rotate(-.35deg);
}

.receipt::after {
  content: 'КОПІЯ';
  position: absolute;
  top: 3.2rem;
  right: -1.35rem;
  padding: .45rem 1.8rem;
  background: var(--pink);
  color: var(--ink);
  font: 800 .58rem/1 var(--mono);
  letter-spacing: .1em;
  transform: rotate(38deg);
}

.receipt h2 {
  margin: 0;
  color: var(--blue);
  font: 600 clamp(2rem, 4vw, 3rem)/.95 var(--serif);
  letter-spacing: -.035em;
  text-align: left;
  text-transform: uppercase;
}

.rule {
  margin: 1.25rem 0;
  border-top: 1.5px dashed var(--ink);
}

.rule.solid { border-top-style: solid; border-top-width: 3px; }

.rlabel {
  color: var(--muted);
  font: 700 .62rem/1.3 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.incident {
  margin-top: .55rem;
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.lines-gap { height: .8rem; }

.line {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-bottom: .85rem;
}

.line .g {
  width: 1.25rem;
  flex: none;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}

.line .body { min-width: 0; flex: 1; }
.line .top { display: flex; align-items: baseline; gap: .5rem; }
.line .name { font-weight: 750; white-space: nowrap; }
.line .dots {
  min-width: 1rem;
  flex: 1;
  border-bottom: 1px dotted var(--ink);
  transform: translateY(-.25em);
}
.line .pct {
  color: var(--coral);
  font: 700 .82rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.line .gov {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}

.line.you { margin: 1rem 0 0; align-items: baseline; }
.line.you .name { font: 600 1.35rem/1 var(--serif); }
.line.you .pct { color: var(--ink); font-size: 1.1rem; }

.verdict {
  font: 500 clamp(1.2rem, 2.5vw, 1.55rem)/1.4 var(--serif);
  text-wrap: pretty;
}

.precedent {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.precedent span:last-child {
  color: var(--muted);
  font-size: .72rem;
  text-align: right;
}

.valid {
  margin-top: 1.2rem;
  padding: .65rem;
  background: var(--acid);
  font: 700 .64rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.details { min-width: 0; }
.block {
  margin-top: 1.7rem;
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--ink);
}

.label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
  color: var(--blue);
}

.label::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--ink);
}

.sky-fact,
p.when {
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.sky-fact { font-family: var(--mono); font-size: .78rem; }

.advice {
  margin: 0;
  padding: 0;
  list-style: none;
}

.advice li {
  display: flex;
  gap: .7rem;
  padding: .65rem 0;
  border-top: 1px solid var(--line);
  font-size: .94rem;
  line-height: 1.5;
}

.advice li:first-child { border-top: 0; padding-top: 0; }
.advice li::before {
  content: '✕';
  color: var(--coral);
  font: 800 .75rem/1.8 var(--mono);
}

.advice.do-list li::before {
  content: '→';
  color: var(--blue);
}

.guardrail {
  display: flex;
  gap: .7rem;
  margin: 1rem 0 0;
  padding: .9rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: .92rem;
  line-height: 1.45;
}

.guardrail::before {
  content: '✕';
  color: var(--coral);
  font: 800 .75rem/1.7 var(--mono);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.4rem;
}

.actions > * { flex: 1; }
#card-canvas { display: none; }

/* sensitive paths */

.support {
  max-width: 48rem;
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--ink);
}

.support::before {
  content: 'ВАЖЛИВЕ';
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: .35rem .55rem;
  background: var(--ink);
  color: white;
  font: 700 .61rem/1 var(--mono);
  letter-spacing: .1em;
}

.support p {
  margin: 0 0 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.support p:last-child { margin-bottom: 0; }
.support .sky-fact { margin: 1rem 0; }

.lines { margin: 1.3rem 0; padding: 0; list-style: none; }
.lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.lines strong { font-weight: 700; }
.lines .note {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .72rem;
}
.lines .num {
  color: var(--blue);
  font: 700 1rem/1 var(--mono);
  white-space: nowrap;
}

/* stats + history */

.bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.stats div {
  min-width: 0;
  padding: 1rem;
  border: 2px solid var(--ink);
  background: var(--cream);
}
.stats div:nth-child(2) { background: var(--pink); transform: rotate(1deg); }
.stats div:nth-child(3) { background: var(--acid); transform: rotate(-1deg); }
.stats b {
  display: block;
  font: 600 2rem/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.stats span {
  display: block;
  margin-top: .45rem;
  color: var(--muted);
  font: 650 .56rem/1.35 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.stats-note {
  max-width: 39rem;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.history { margin-top: 2.5rem; }
.hrow {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
}
.hrow .g { width: 1.2rem; flex: none; color: var(--blue); text-align: center; }
.hrow .what {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #3d3a35;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hrow .when {
  flex: none;
  color: var(--muted);
  font: 500 .62rem/1 var(--mono);
}

@media (min-width: 900px) {
  #result {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  #result > .receipt {
    position: sticky;
    top: 1.5rem;
  }

  #result > .details > .block:first-child { margin-top: 0; }
  #result > .support { grid-column: 1 / -1; }

  .bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }

  .history { margin-top: 0; }
}

@media (max-width: 899px) {
  #screen-birth {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .birth-copy { min-height: auto; }
  .hero-collage { width: min(35rem, 100%); margin-top: -1rem; }
  .stamp { bottom: 2%; }
}

@media (max-width: 620px) {
  .ticker { line-height: 1.8rem; }

  #app {
    padding: 1.1rem .8rem 3rem;
  }

  #screen-birth {
    gap: .7rem;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 3.65rem);
    line-height: .82;
  }

  .kicker { margin-top: 1rem; }

  .lede {
    margin-top: .85rem;
    font-size: .92rem;
    line-height: 1.43;
  }

  .note-sticker {
    top: .2rem;
    left: auto;
    right: 0;
  }

  .hero-collage {
    width: 100%;
    height: 11.5rem;
    margin: -.3rem auto -.25rem;
    object-fit: contain;
    transform: rotate(-2deg) scale(1.08);
  }

  .stamp {
    right: .5rem;
    bottom: 3%;
    width: 5rem;
    border-width: 3px;
    font-size: .57rem;
  }

  .birth-form {
    padding: 1rem;
    box-shadow: 4px 5px 0 var(--ink);
  }

  .birth-form::before {
    top: -9px;
    height: 1.1rem;
  }

  .form-topline {
    padding-bottom: .7rem;
    font-size: .58rem;
  }

  .field { margin-top: .9rem; }

  input[type='date'],
  input[type='time'],
  .combo > input {
    min-height: 3rem;
  }

  .check {
    margin-top: .85rem;
    font-size: .84rem;
  }

  .hint {
    margin-top: .3rem;
    font-size: .7rem;
  }

  .birth-form .primary { margin-top: .9rem; }

  .privacy-note {
    margin-top: .65rem;
    font-size: .57rem;
  }

  .main-intro { align-items: flex-end; }
  .doodle-orbit { width: 7.2rem; }

  .composer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-row .primary.small { width: 100%; }
  .actions { flex-direction: column; }
  .stats { gap: .4rem; }
  .stats div { padding: .75rem .55rem; }
  .stats b { font-size: 1.55rem; }
}

@media (max-width: 410px) {
  .note-sticker { display: none; }
  .stamp { display: none; }
  .doodle-orbit { display: none; }
  .main-intro { display: block; }
  header.top .mono { max-width: 14rem; }
}

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

/* Readability pass: the original micro-type sat around 9–12px. It now uses an
 * 18px floor, with the rest of the scale lifted to preserve hierarchy. */
.ticker,
.wordmark,
.mono,
.note-sticker,
.form-topline,
label:not(.check),
.privacy-note,
.suggest .dt,
.primary,
.ghost,
.doodle-orbit span,
.composer::before,
.receipt::after,
.rlabel,
.valid,
.support::before,
.stats span,
.hrow .when {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: .055em;
}

.ticker { line-height: 2.85rem; }

.hint,
.suggest .empty,
.line .gov,
.precedent span:last-child,
.sky-fact,
.lines .note,
.stats-note,
.hrow .what {
  font-size: 1rem;
  line-height: 1.5;
}

.check,
.suggest .nm,
.incident,
.line .name,
.sky-fact + p,
.advice li,
.guardrail,
.support p {
  font-size: 1.12rem;
}

.lede,
p.when {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
}

.line .pct { font-size: 1.05rem; }
.line.you .name { font-size: 1.65rem; }
.line.you .pct { font-size: 1.35rem; }
.verdict { font-size: clamp(1.45rem, 3vw, 1.85rem); }

.stats b { font-size: 2.3rem; }

@media (max-width: 620px) {
  #app {
    width: 100%;
    padding-top: .85rem;
  }

  .screen,
  .birth-copy,
  .birth-form,
  .main-intro,
  .composer,
  #result,
  .receipt,
  .details,
  .bottom,
  .history {
    min-width: 0;
    max-width: 100%;
  }

  .main-intro { display: block; }
  .doodle-orbit,
  .note-sticker,
  .stamp { display: none; }

  .ask {
    width: 100%;
    max-width: 100%;
  }

  .composer {
    width: 100%;
    box-shadow: 4px 5px 0 var(--coral);
  }

  .composer::before {
    right: .55rem;
    max-width: calc(100% - 1.1rem);
  }

  .receipt {
    width: 100%;
    animation: none;
    transform: none;
    box-shadow: 4px 5px 0 var(--ink);
  }

  .hero-collage { height: 9rem; }
  .birth-form {
    padding: 1.1rem;
    transform: none;
  }

  .form-topline { font-size: .95rem; }
  .privacy-note { font-size: .9rem; }

  .stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
  }

  .stats div,
  .stats div:nth-child(2),
  .stats div:nth-child(3) {
    min-width: 0;
    padding: .7rem .5rem;
    overflow: hidden;
    transform: none;
  }

  .stats b { font-size: 1.7rem; }

  .stats span {
    font-size: .88rem;
    line-height: 1.28;
    letter-spacing: .015em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hrow .what {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 1.6rem);
  }
}
