:root {
  color-scheme: dark;
  --ink: #f7f4ec;
  --muted: #a8aaae;
  --panel: #17191d;
  --line: #30343a;
  --accent: #ff6b45;
  --lime: #c8ff73;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 107, 69, .14), transparent 28rem),
    #0d0f12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(980px, calc(100% - 36px)); margin: 0 auto; padding: 72px 0 64px; }
.hero { max-width: 750px; }
.eyebrow, .step { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 12px 0 18px; max-width: 700px; font-family: Georgia, serif; font-size: clamp(3.3rem, 9vw, 6.9rem); font-weight: 500; letter-spacing: -.065em; line-height: .85; }
.lede { max-width: 660px; color: #c6c7ca; font-size: 1.14rem; line-height: 1.65; }

.status-row { display: flex; align-items: center; gap: 10px; margin: 42px 0 22px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(23, 25, 29, .72); }
.status-row p { margin: 0; color: var(--muted); font-size: .88rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #777; box-shadow: 0 0 0 4px rgba(119,119,119,.12); }
.status-dot[data-kind="ready"] { background: var(--lime); box-shadow: 0 0 0 4px rgba(200,255,115,.12); }
.status-dot[data-kind="error"] { background: #ff4545; }
.status-dot[data-kind="unsupported"] { background: #ffbf45; }

.workspace { display: grid; grid-template-columns: 1.08fr .92fr; border: 1px solid var(--line); }
.composer, .note-card { min-height: 330px; padding: 30px; }
.composer { background: var(--panel); }
.note-card { position: relative; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #f1ecdf; color: #151515; overflow: hidden; }
.note-card::after { content: ''; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -80px; border-radius: 50%; background: var(--accent); opacity: .9; }
.note-card .step { color: #8b422d; }
h2 { margin: 9px 0 23px; font-size: 1.55rem; }
label { display: block; margin-bottom: 9px; color: #d1d2d4; font-size: .9rem; }
textarea { width: 100%; resize: vertical; padding: 14px; border: 1px solid #444950; border-radius: 0; outline: none; background: #101216; color: var(--ink); font: inherit; line-height: 1.5; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,69,.12); }
.form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
#char-count { color: var(--muted); font-size: .78rem; }
button { border: 0; padding: 11px 17px; background: var(--accent); color: #120a07; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { filter: brightness(1.08); }
.source { margin: 16px 0 10px; color: #6c675f; font-size: .82rem; }
.note { position: relative; z-index: 1; margin: 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.65rem); line-height: 1.04; overflow-wrap: anywhere; }
time { position: relative; z-index: 1; margin-top: auto; color: #6c675f; font-size: .78rem; }
.changed { animation: pulse 700ms ease-out; }
@keyframes pulse { 0% { box-shadow: inset 0 0 0 6px var(--accent); } 100% { box-shadow: inset 0 0 0 0 transparent; } }

.proof { margin-top: 22px; padding: 30px; border: 1px solid var(--line); background: rgba(23,25,29,.55); }
.proof h2 { margin-bottom: 10px; }
.proof > p:not(.step) { max-width: 720px; color: #bbbcc0; line-height: 1.6; }
code { color: var(--lime); }
#event-log { margin: 24px 0 0; padding-left: 22px; color: #ddd; }
#event-log li { padding: 7px 0; border-bottom: 1px solid #292c31; }

@media (max-width: 720px) {
  .shell { padding-top: 42px; }
  .workspace { grid-template-columns: 1fr; }
  .note-card { border-left: 0; border-top: 1px solid var(--line); }
}

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