:root {
  --paper: #f6f1e7;
  --ink: #171717;
  --muted: #6d675f;
  --line: #c9c0b2;
  --accent: #ff4f2f;
  --accent-dark: #d93618;
  --blue: #2046d8;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(23, 23, 23, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.site-header, footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header { padding: 26px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 26px; line-height: 1; }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.text-button, .small-link { border: 0; background: transparent; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-button:hover, .small-link:hover { text-decoration-thickness: 2px; }
.count { display: inline-grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border: 1px solid var(--ink); border-radius: 999px; font-size: 12px; text-decoration: none; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 69vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 0 90px; }
.eyebrow, .micro { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: var(--muted); }
h1 { max-width: 1000px; margin: 0; font-size: clamp(58px, 9.5vw, 142px); line-height: .82; letter-spacing: -.075em; font-weight: 950; }
.lede { margin: 34px 0 38px; font-size: clamp(20px, 2.5vw, 34px); letter-spacing: -.035em; }
.surprise-button {
  width: min(520px, 100%);
  min-height: 98px;
  padding: 22px 28px 22px 34px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: clamp(27px, 4vw, 46px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.05em;
  box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-4px,-4px);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.surprise-button:not(:disabled):hover { background: #ff6549; transform: translate(0,0); box-shadow: 3px 3px 0 var(--ink); }
.surprise-button:disabled { cursor: progress; opacity: .6; }
.button-arrow { font-size: 1.1em; }
.promise { color: var(--muted); font-size: 14px; margin: 26px 0 0; }
.safety-line { max-width: 560px; color: var(--muted); font-size: 13px; line-height: 1.55; margin: 10px 0 0; }
.share-button {
  margin-top: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
  font-size: 14px;
  min-height: 44px;
}
.share-button:hover { background: var(--white); }
.weird-control { width: min(620px, 100%); margin-top: 46px; text-align: left; }
.weird-labels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; font-size: 12px; color: var(--muted); }
.weird-labels span:last-child { text-align: right; }
.weird-labels strong { color: var(--ink); font-size: 13px; }
input[type="range"] { width: 100%; accent-color: var(--ink); margin-top: 10px; }

.reaction-panel { max-width: 850px; margin: -35px auto 80px; padding: 42px; border: 3px solid var(--ink); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.reaction-panel h2 { margin: 0; font-size: clamp(34px, 6vw, 66px); line-height: .95; letter-spacing: -.055em; }
.reaction-panel > p:not(.micro) { max-width: 650px; margin: 18px auto; color: var(--muted); font-size: 18px; line-height: 1.5; }
.result-link { color: var(--blue); font-weight: 800; }
.reaction-buttons { margin: 30px 0 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.reaction { border: 2px solid var(--ink); border-radius: 999px; padding: 13px 20px; cursor: pointer; font-weight: 850; min-height: 44px; }
.reaction.secondary { background: transparent; }
.reaction.primary { background: var(--accent); }
.reaction.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); outline: 4px solid rgba(23,23,23,.18); }
.again-button { border: 0; background: transparent; color: var(--blue); font-weight: 900; cursor: pointer; font-size: 18px; min-height: 44px; }

.learning-card { margin: 0 0 100px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 34px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.learning-card h2 { margin: 0; max-width: 500px; font-size: clamp(30px, 4vw, 52px); line-height: .98; letter-spacing: -.05em; }
.taste-summary { font-size: 18px; line-height: 1.55; }
.taste-summary p { margin: 0 0 12px; }
.small-link { color: var(--muted); font-size: 13px; }

.manifesto { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding-bottom: 120px; }
.manifesto article { min-height: 260px; padding: 26px; border: 2px solid var(--ink); border-radius: 20px; }
.number { display: inline-block; font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.manifesto h2 { margin: 54px 0 12px; font-size: 34px; letter-spacing: -.045em; }
.manifesto p { color: var(--muted); line-height: 1.55; font-size: 17px; }

footer { border-top: 2px solid var(--ink); padding: 28px 0 42px; color: var(--muted); }
footer > div { display: flex; gap: 16px; }

.modal { width: min(650px, calc(100vw - 24px)); border: 0; padding: 0; border-radius: 24px; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(23,23,23,.64); backdrop-filter: blur(4px); }
.modal-inner { position: relative; margin: 0; padding: 42px; }
.modal h2 { margin: 0 0 22px; font-size: clamp(38px, 7vw, 68px); line-height: .92; letter-spacing: -.06em; }
.modal p { font-size: 17px; line-height: 1.6; }
.close { position: absolute; top: 18px; right: 20px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 26px; line-height: 1; }
.modal label { display: grid; gap: 8px; margin: 22px 0; font-weight: 850; }
.modal label span { font-weight: 500; color: var(--muted); }
.modal input[type="url"], .modal textarea { width: 100%; border: 2px solid var(--ink); border-radius: 12px; background: #fff; padding: 14px; outline: none; }
.modal input:focus, .modal textarea:focus { box-shadow: 0 0 0 4px rgba(32,70,216,.14); }
.submit-button { width: 100%; padding: 16px 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--accent); font-weight: 900; cursor: pointer; min-height: 44px; }
.form-status { min-height: 1.5em; color: var(--muted); }
.honeypot { position: absolute!important; left: -9999px!important; width: 1px!important; height: 1px!important; opacity: 0!important; }
.saved-list { display: grid; gap: 12px; max-height: 55vh; overflow: auto; }
.saved-item { border-top: 1px solid var(--line); padding: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.saved-item a { font-weight: 850; color: var(--blue); }
.saved-item small { display: block; margin-top: 5px; color: var(--muted); }
.saved-item button { border: 0; background: transparent; text-decoration: underline; cursor: pointer; color: var(--muted); }
.empty-saved { color: var(--muted); }

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav { justify-content: flex-start; gap: 10px 14px; font-size: 14px; max-width: 100%; }
  .hero { min-height: auto; padding: 64px 0 80px; }
  h1 { font-size: clamp(2.5rem, 12vw, 6rem); line-height: .9; }
  .lede { margin: 26px 0 30px; }
  .weird-labels { grid-template-columns: 1fr auto; }
  .weird-labels span:last-child { display: none; }
  .learning-card { grid-template-columns: 1fr; gap: 26px; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto article { min-height: auto; }
  footer { align-items: flex-start; flex-direction: column; }
  .modal-inner { padding: 34px 24px; }
  .reaction-panel { padding: 30px 22px; }
  .reaction-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .reaction-buttons .reaction.primary { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}

body.dock-open { padding-bottom: 150px; }

.rating-dock {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  width: min(1040px, calc(100vw - 24px));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 14px 16px 14px 20px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(23,23,23,.22);
}
.rating-dock[hidden] { display: none; }
.rating-dock.attention { animation: dock-pop .34s ease both; }
.rating-dock-copy { min-width: 0; display: grid; gap: 3px; }
.rating-dock-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 850; }
.rating-dock-copy a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 950; text-decoration: none; color: var(--blue); }
.rating-dock-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dock-action, .dock-again {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 9px 13px;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
  min-height: 44px;
}
.dock-action-primary { background: var(--accent); }
.dock-action.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); outline: 4px solid rgba(23,23,23,.18); }
.dock-again { border-color: transparent; color: var(--blue); }

.dock-quick {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dock-quick[hidden] { display: none; }
.dock-quick-label { font-size: 14px; color: var(--muted); min-width: 0; }
.dock-quick-label strong { color: var(--ink); }
.dock-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dock-quick-skip { border-color: transparent; color: var(--muted); }

@keyframes dock-pop {
  from { transform: translate(-50%, 12px); opacity: .55; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
@media (max-width: 760px) {
  body.dock-open { padding-bottom: 270px; }
  .rating-dock { align-items: stretch; flex-direction: column; gap: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 13px; }
  .rating-dock-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .dock-again { grid-column: 1 / -1; }
  .dock-quick { flex-direction: column; align-items: stretch; }
  .dock-quick-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; }
}

.catalogue-status {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.catalogue-status strong { color: var(--ink); }
.reaction-links { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.footer-origin { display: grid; gap: 4px; }
.footer-origin a, .footer-links a { color: inherit; text-underline-offset: 4px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.source-note { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px!important; }
.modal select {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  outline: none;
}
.modal select:focus { box-shadow: 0 0 0 4px rgba(32,70,216,.14); }
.dock-report { color: var(--muted); }

.legal-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.legal-shell h1 { font-size: clamp(52px, 9vw, 92px); line-height: .88; }
.legal-shell h2 { margin-top: 48px; font-size: 28px; letter-spacing: -.035em; }
.legal-shell p, .legal-shell li { font-size: 17px; line-height: 1.65; }
.legal-shell .lede { margin: 26px 0 40px; color: var(--muted); font-size: 20px; }
.legal-shell a { color: var(--blue); }
.legal-shell .legal-note { padding: 20px; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); }

@media (max-width: 760px) {
  .footer-links { justify-content: flex-start; }
  .legal-shell h1 { font-size: clamp(2.4rem, 11vw, 4.5rem); }
}
