:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --ink: #282d29;
  --muted: #5d635b;
  --line: #d3d4c6;
  --accent: #d5f26c;
  --purple: #5a3b88;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.page-shell { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-bottom: 1px solid var(--ink); }
.wordmark { font-weight: 850; font-size: 26px; letter-spacing: -1.4px; text-decoration: none; }
.wordmark span { color: var(--purple); }
.edition, .eyebrow, .step, .results-stamp, .character-count, .model-note, .footer-note { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.edition { font-size: 11px; text-align: right; }
.intro { display: grid; grid-template-columns: 1fr 190px; align-items: center; gap: 36px; padding: 66px 0 48px; }
.eyebrow { margin: 0 0 20px; text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: 1.7px; }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -3.2px; font-weight: 650; margin: 0 0 24px; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--purple); }
.lede { max-width: 620px; margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.thought-mark { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; width: 174px; height: 174px; border: 1px solid var(--ink); border-radius: 50%; transform: rotate(8deg); font-family: Georgia, "Times New Roman", serif; font-size: 44px; background: var(--accent); }
.thought-mark::before { content: ""; position: absolute; inset: 7px -7px -7px 7px; border: 1px solid var(--ink); border-radius: 50%; z-index: -1; }
.thought-mark > span:first-child { padding-right: 14px; }
.thought-mark > span:nth-child(3) { padding-left: 14px; }
.thought-mark .mark-arrow { position: absolute; font-family: ui-sans-serif, sans-serif; font-size: 30px; }
.thought-mark small { position: absolute; bottom: 27px; font-family: ui-monospace, monospace; font-size: 9px; }
.workbench { border: 1px solid var(--ink); background: #fffef8; box-shadow: 6px 6px 0 #e1e3d6; padding: 28px 30px 22px; }
.bench-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.5px; margin: 0; font-weight: 650; }
.step { font-size: 13px; color: var(--muted); margin-right: 9px; font-weight: 400; letter-spacing: 0; }
.text-button { color: var(--purple); background: none; border: 0; padding: 8px 0 8px 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; flex-shrink: 0; min-height: 44px; }
.text-button:disabled { color: var(--muted); opacity: .7; }
textarea { display: block; resize: vertical; width: 100%; min-height: 156px; max-height: 620px; padding: 19px; color: var(--ink); border: 1px solid #929887; border-radius: 0; background: #f8f9f1; font-size: 20px; line-height: 1.5; }
textarea::placeholder { color: #6b7065; opacity: 1; }
textarea[aria-invalid="true"] { border-color: #9d3025; }
textarea:read-only { opacity: .7; }
.input-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 9px; }
.input-meta p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.input-meta .character-count { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.input-meta .over-limit { color: #9d3025; font-weight: 700; }
.review-note { font-size: 13px; line-height: 1.65; margin-top: 22px; border-left: 3px solid var(--purple); padding-left: 13px; color: var(--muted); }
.review-note strong { color: var(--ink); }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.limits { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.limits strong { color: var(--ink); font-weight: 550; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-width: 206px; min-height: 58px; border: 1px solid var(--ink); background: var(--accent); color: var(--ink); padding: 14px 20px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); transition: transform 120ms, box-shadow 120ms; }
.primary-button:not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.primary-button:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.primary-button:disabled { background: #e5e7dc; color: #646a5d; box-shadow: none; border-color: #a7ad9e; }
.submit-arrow { font-size: 24px; line-height: 1; }
.privacy-note { border-top: 1px solid var(--line); padding-top: 16px; margin: 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.status { font-size: 14px; color: var(--purple); line-height: 1.6; margin: 22px 0; min-height: 1.6em; }
.error-message { margin-block: 20px; border: 1px solid #9d3025; border-left-width: 4px; padding: 18px 20px; background: #fff3e9; color: #7b241c; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.results { padding: 16px 0 24px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.results-heading .eyebrow { margin-bottom: 9px; }
.results-heading h2 { font-size: clamp(23px, 3.5vw, 34px); }
.results-stamp { color: var(--purple); border: 1px solid var(--purple); padding: 9px 13px; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; text-align: center; transform: rotate(-6deg); flex-shrink: 0; }
.results-warning { max-width: 760px; font-size: 13px; line-height: 1.75; color: var(--muted); margin-block: 20px 28px; }
.results-warning strong { color: var(--ink); }
.variants { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; counter-reset: rewrite; }
.variant { counter-increment: rewrite; padding: 22px; border: 1px solid var(--line); background: #fffef8; min-width: 0; display: flex; flex-direction: column; }
.variant::before { content: counter(rewrite, decimal-leading-zero); font: 12px ui-monospace, monospace; color: var(--purple); }
.variant-text { font-size: 19px; line-height: 1.55; letter-spacing: -.2px; margin: 19px 0 26px; overflow-wrap: anywhere; white-space: pre-wrap; }
.variant-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.variant-count { font: 11px ui-monospace, monospace; color: var(--muted); }
.copy-button { min-height: 44px; min-width: 80px; padding: 9px 14px; color: var(--ink); border: 1px solid #929887; background: transparent; font-size: 12px; font-weight: 650; }
.copy-button:hover { background: var(--accent); }
.copy-button:disabled { color: var(--muted); }
.copy-help { font-size: 12px; color: #7b241c; line-height: 1.6; margin: 14px 0 0; }
.model-note { font-size: 10px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; margin-top: 24px; }
.footer { display: flex; align-items: baseline; gap: 20px; padding: 28px 0 34px; border-top: 1px solid var(--ink); font-size: 12px; }
.footer > span:first-child { font-weight: 750; letter-spacing: -.5px; }
.footer p { color: var(--muted); margin: 0; flex: 1; }
.footer-note { color: var(--muted); font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: 12px; transform: translateY(-200%); background: var(--accent); color: var(--ink); padding: 12px; z-index: 2; }
.skip-link:focus { transform: none; }
@media (max-width: 720px) {
  .page-shell { width: calc(100% - 36px); }
  .masthead { padding-block: 20px; }
  .edition { max-width: 130px; line-height: 1.6; font-size: 10px; }
  .intro { grid-template-columns: 1fr; padding: 42px 0 32px; }
  .thought-mark { display: none; }
  h1 { letter-spacing: -2px; }
  .lede { font-size: 15px; }
  .workbench { padding: 18px; box-shadow: 4px 4px 0 #e1e3d6; }
  .bench-heading { align-items: flex-start; gap: 8px; }
  .bench-heading h2 { font-size: 16px; }
  .bench-heading .step { display: block; margin-bottom: 2px; font-size: 11px; }
  .text-button { font-size: 12px; padding-left: 0; }
  textarea { font-size: 18px; padding: 14px; }
  .input-meta p { font-size: 11px; }
  .form-bottom { flex-direction: column-reverse; align-items: stretch; gap: 20px; }
  .primary-button { width: 100%; }
  .results-stamp { font-size: 9px; padding: 8px; }
  .variants { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .variant { padding: 20px; }
  .footer { flex-wrap: wrap; gap: 10px 16px; }
  .footer-note { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
