:root {
  color-scheme: light dark;
  --paper: #f8f5ee;
  --surface: #fffdf8;
  --ink: #202a2d;
  --muted: #667173;
  --line: #d8d2c6;
  --accent: #0a6b6e;
  --accent-contrast: #ffffff;
  --danger: #a9362a;
  --critical: #8f241c;
  --high: #ae4b20;
  --medium: #87630b;
  --low: #33716f;
}

* { box-sizing: border-box; }
html { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); color: var(--ink); }
body { margin: 0; line-height: 1.6; }
a { color: inherit; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.brand { font-family: Georgia, serif; color: var(--ink); font-size: 1.35rem; text-decoration: none; }
.intro { max-width: 830px; padding: clamp(64px, 9vw, 120px) 0 56px; }
.eyebrow, .step { margin: 0 0 10px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.12; margin: 0; }
h1 { max-width: 760px; font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.035em; }
.lede { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 28px 0; }
.privacy-proof { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 0; list-style: none; font-size: .9rem; font-weight: 600; }
.privacy-proof li::before { content: "✓"; color: var(--accent); margin-right: 8px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); border-block: 1px solid var(--line); }
.input-column, .result-column { min-width: 0; padding: clamp(28px, 5vw, 56px) 0; }
.input-column { padding-right: clamp(28px, 5vw, 64px); border-right: 1px solid var(--line); }
.result-column { padding-left: clamp(28px, 5vw, 64px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; color: var(--muted); font-size: .8rem; }
.section-heading h2 { color: var(--ink); font-size: clamp(1.65rem, 3vw, 2.25rem); }
label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 8px; }
textarea { display: block; width: 100%; min-height: 390px; resize: vertical; border: 1px solid var(--line); border-radius: 2px; padding: 18px; background: var(--surface); color: var(--ink); font: .87rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 3px; }
.field-help, .status { color: var(--muted); font-size: .83rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
button { min-height: 46px; border: 1px solid var(--ink); border-radius: 2px; padding: 0 20px; background: var(--ink); color: var(--accent-contrast); font: inherit; font-weight: 700; cursor: pointer; }
button.secondary { background: transparent; color: var(--ink); }
button:disabled { cursor: wait; opacity: .55; }
.over-limit, .error { color: var(--danger); }
.error { border-left: 3px solid var(--danger); padding: 12px 16px; background: color-mix(in srgb, var(--danger) 8%, transparent); }
.empty-state { color: var(--muted); border-top: 1px solid var(--line); padding: 28px 0; }
.findings { list-style: none; padding: 0; margin: 0; }
.findings > li { border-top: 1px solid var(--line); padding: 24px 0; }
.finding-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.finding-heading h3 { font-size: 1.3rem; text-transform: capitalize; }
.severity { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.severity-critical { color: var(--critical); } .severity-high { color: var(--high); } .severity-medium { color: var(--medium); } .severity-low, .severity-info { color: var(--low); }
code { overflow-wrap: anywhere; font-size: .82em; }
.evidence { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; overflow-wrap: anywhere; }
.limits { max-width: 850px; padding: clamp(56px, 8vw, 100px) 0; }
.limits h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.limits p:last-child { color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: .82rem; }

@media (max-width: 760px) {
  .site-header span { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .input-column { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .result-column { padding-left: 0; }
  textarea { min-height: 320px; }
}

@media (prefers-color-scheme: dark) {
  :root { --paper: #151817; --surface: #1c201f; --ink: #ece9e1; --muted: #abb2af; --line: #39403d; --accent: #66c4c2; --accent-contrast: #151817; --danger: #ff8c81; --critical: #ff8c81; --high: #ffad7a; --medium: #e2c66f; --low: #83d0cc; }
}
