@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=swap');

:root {
  --paper: #f2efe5;
  --paper-deep: #e7e1d2;
  --ink: #14140f;
  --muted: #66645b;
  --cobalt: #1646d8;
  --cobalt-dark: #0f2c8f;
  --acid: #d9ff43;
  --coral: #ff6d4a;
  --line: rgba(20, 20, 15, .19);
  --shadow: 0 24px 70px rgba(24, 27, 21, .12);
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}
button, textarea { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 20px; line-height: 1; }
.nav-link { font-family: var(--mono); font-size: 12px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 70px;
  padding-block: 86px 76px;
}
.kicker { margin: 0 0 20px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 {
  margin: 0;
  font: 400 clamp(58px, 7.4vw, 104px)/.89 var(--serif);
  letter-spacing: -.056em;
  max-width: 900px;
}
h1 em { display: inline-block; color: var(--cobalt); font-weight: 400; padding-left: .08em; }
.lede { max-width: 690px; margin: 30px 0 28px; color: #4e4c45; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--ink);
  padding: 13px 19px;
  text-decoration: none;
  font: 600 13px/1 var(--sans);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--ink); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-acid { background: var(--acid); color: var(--ink); }
.button-outline { background: transparent; color: var(--ink); }
.privacy { margin: 16px 0 0; color: var(--muted); font: 400 11px/1.5 var(--mono); }

.hero-art { min-height: 470px; position: relative; }
.orbit { position: absolute; border: 1px solid rgba(22, 70, 216, .28); border-radius: 50%; }
.orbit-one { width: 480px; height: 480px; top: -10px; left: 5px; }
.orbit-two { width: 330px; height: 330px; top: 65px; left: 80px; border-color: rgba(255, 109, 74, .38); }
.note {
  position: absolute;
  width: min(370px, 82%);
  min-height: 220px;
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 20, 15, .12);
}
.note span { font: 500 10px/1 var(--mono); letter-spacing: .12em; }
.note p { margin: 32px 0 0; font: 400 25px/1.2 var(--serif); letter-spacing: -.02em; }
.note-back { right: -10px; top: 40px; background: #e0d9c9; transform: rotate(7deg); }
.note-back p { color: #666158; text-decoration: line-through; text-decoration-color: var(--coral); }
.note-front { left: 5px; bottom: 24px; background: #fffdf5; transform: rotate(-5deg); z-index: 2; }
.annotation { position: absolute; right: 5px; bottom: 26px; color: var(--cobalt); font: 500 11px/1 var(--mono); transform: rotate(-8deg); }
.annotation::before { content: "↖"; margin-right: 7px; font-size: 22px; }

.statement { padding-block: 120px; border-top: 1px solid var(--line); }
.statement p { margin: 0; font: 400 clamp(40px, 6.5vw, 84px)/.98 var(--serif); letter-spacing: -.04em; max-width: 1060px; }
.statement .statement-accent { color: var(--cobalt); margin-top: 8px; padding-left: 10%; font-style: italic; }

.experiment { padding-block: 105px 120px; }
.experiment-head { display: grid; grid-template-columns: 1fr .55fr; gap: 80px; align-items: end; margin-bottom: 42px; }
.experiment-head h2, .result-heading h2, .bridge h2 { margin: 0; font: 400 clamp(44px, 6vw, 76px)/.95 var(--serif); letter-spacing: -.045em; }
.experiment-head > p { color: var(--muted); margin: 0; font-size: 16px; max-width: 470px; }
.draft-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.draft-card { position: relative; padding: 38px; min-width: 0; }
.draft-card + .draft-card { border-left: 1px solid var(--ink); }
.private-card { background: #fffdf5; }
.public-card { background: var(--cobalt); color: #fffdf5; }
.draft-number { position: absolute; right: 30px; top: 24px; font: 500 11px/1 var(--mono); opacity: .65; }
.draft-card label { display: block; font: 400 34px/1.05 var(--serif); margin-right: 40px; }
.draft-card > p { min-height: 48px; color: var(--muted); margin: 14px 0 23px; font-size: 14px; max-width: 500px; }
.public-card > p { color: rgba(255, 253, 245, .72); }
textarea {
  width: 100%;
  min-height: 270px;
  resize: vertical;
  border: 1px solid rgba(20, 20, 15, .28);
  border-radius: 0;
  padding: 19px;
  color: var(--ink);
  background: rgba(242, 239, 229, .6);
  font: 400 19px/1.5 var(--serif);
}
textarea::placeholder { color: rgba(20, 20, 15, .52); }
.public-card textarea { color: #fffdf5; background: rgba(5, 19, 75, .28); border-color: rgba(255, 253, 245, .38); }
.public-card textarea::placeholder { color: rgba(255, 253, 245, .64); }
.field-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; font: 400 10px/1.3 var(--mono); opacity: .7; }
.analyze-row { display: flex; align-items: center; gap: 20px; margin-top: 25px; }
#formMessage { margin: 0; color: #a42b17; font: 500 11px/1.4 var(--mono); }

.results { padding-block: 110px 130px; border-top: 1px solid var(--line); }
.results[hidden] { display: none; }
.result-heading { max-width: 870px; margin-bottom: 44px; }
.result-heading > p:last-child { color: var(--muted); font-size: 18px; max-width: 760px; }
.result-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; border: 1px solid var(--ink); }
.result-card { padding: 30px; min-height: 330px; background: #fffdf5; }
.result-card + .result-card { border-left: 1px solid var(--ink); }
.result-primary { background: var(--acid); }
.result-label { margin: 0 0 27px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
blockquote { margin: 0; font: 400 clamp(28px, 3vw, 40px)/1.08 var(--serif); letter-spacing: -.025em; }
.result-card > p:not(.result-label):not(.small) { color: var(--muted); font-size: 13px; }
.text-button { border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; color: inherit; background: transparent; cursor: pointer; font: 600 11px/1.2 var(--mono); }
.token-list { display: flex; flex-wrap: wrap; gap: 8px; }
.token { padding: 7px 9px; border: 1px solid var(--line); font: 400 11px/1 var(--mono); }
.token-empty { color: var(--muted); font: 400 13px/1.5 var(--sans); }
.meters { display: grid; gap: 8px; }
.meter-row { display: flex; justify-content: space-between; gap: 10px; font: 400 11px/1.2 var(--mono); }
.meter-row strong { font-weight: 500; }
.meter-track { height: 5px; background: var(--paper-deep); margin: 0 0 17px; overflow: hidden; }
.meter-track i { display: block; width: 0; height: 100%; background: var(--cobalt); transition: width .55s ease .15s; }
.small { color: var(--muted); font-size: 11px; margin-top: 25px; }
.clean-draft { margin-top: 28px; padding: 38px; border: 1px solid var(--ink); background: var(--cobalt); color: #fffdf5; }
.clean-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.clean-head h3 { margin: 0; font: 400 36px/1 var(--serif); }
.clean-head .button-outline { color: #fffdf5; border-color: #fffdf5; }
#cleanDraftText { margin-top: 36px; white-space: pre-wrap; font: 400 clamp(25px, 3vw, 38px)/1.25 var(--serif); max-width: 940px; }
.clean-note { color: rgba(255, 253, 245, .64); font: 400 11px/1.5 var(--mono); margin: 28px 0 0; }
.share-row { display: flex; align-items: center; gap: 24px; margin-top: 25px; }
#copyMessage { color: var(--cobalt); font: 500 11px/1.4 var(--mono); }

.bridge { color: #fffdf5; background: var(--ink); padding-block: 120px; }
.bridge-inner { display: grid; grid-template-columns: 1fr .75fr; gap: 90px; align-items: start; }
.bridge h2 { color: #fffdf5; }
.bridge-copy p { color: rgba(255, 253, 245, .7); margin-top: 0; font-size: 17px; }
.bridge-copy .button { margin-top: 17px; }
.bridge-copy .bridge-micro { margin-top: 13px; font: 400 10px/1.4 var(--mono); }
.footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 400 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.footer a { text-underline-offset: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .hero-art { min-height: 430px; width: min(520px, 100%); margin-inline: auto; }
  .experiment-head, .bridge-inner { grid-template-columns: 1fr; gap: 28px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card + .result-card { border-left: 0; border-top: 1px solid var(--ink); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 26px, 1160px); }
  .nav-link { display: none; }
  .hero { gap: 45px; padding-bottom: 55px; }
  h1 { font-size: clamp(53px, 16vw, 78px); }
  .hero-art { min-height: 390px; }
  .orbit-one { width: 360px; height: 360px; left: -25px; }
  .orbit-two { width: 255px; height: 255px; left: 30px; }
  .note { width: 82%; min-height: 180px; padding: 20px; }
  .note p { font-size: 21px; margin-top: 24px; }
  .note-back { right: -3px; }
  .note-front { bottom: 30px; }
  .annotation { right: 0; bottom: 2px; }
  .statement { padding-block: 85px; }
  .statement .statement-accent { padding-left: 0; margin-top: 15px; }
  .experiment, .results { padding-block: 80px; }
  .draft-grid { grid-template-columns: 1fr; }
  .draft-card { padding: 27px 20px; }
  .draft-card + .draft-card { border-left: 0; border-top: 1px solid var(--ink); }
  textarea { min-height: 230px; }
  .analyze-row, .share-row, .clean-head { align-items: stretch; flex-direction: column; }
  .analyze-row .button, .share-row .button, .clean-head .button { width: 100%; }
  .result-card, .clean-draft { padding: 27px 21px; }
  .bridge { padding-block: 85px; }
  .bridge-inner { gap: 38px; }
  .bridge-copy p { font-size: 16px; line-height: 1.6; }
  .bridge-copy .button { width: 100%; text-align: center; line-height: 1.25; }
  .footer { flex-wrap: wrap; padding-block: 28px; }
}

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