:root {
  color-scheme: light;
  --ink: #111820;
  --paper: #f0eee7;
  --signal: #d85732;
  --acid: #c8da62;
  --muted: #697077;
  --line: rgba(17, 24, 32, 0.18);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, textarea { font: inherit; }
.masthead { min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; border-bottom: 1px solid var(--ink); }
.wordmark { color: inherit; text-decoration: none; font-weight: 900; letter-spacing: -0.05em; font-size: 1.45rem; }
.wordmark span { color: var(--signal); }
.system-state { font: 700 0.68rem/1 monospace; letter-spacing: 0.12em; }
.system-state i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(200, 218, 98, 0.22); }
main { padding: 0 4vw 5rem; }
.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 5vw; padding: 7vh 0 6vh; align-items: end; }
.eyebrow, .panel-index { font: 700 0.72rem/1 monospace; letter-spacing: 0.16em; color: var(--signal); }
h1 { margin: 0.7rem 0 1.4rem; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(3rem, 7vw, 7.5rem); line-height: 0.91; letter-spacing: -0.065em; font-weight: 500; }
h1 em { color: var(--signal); font-weight: 400; }
.lede { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.7; font-size: clamp(1rem, 1.35vw, 1.3rem); }
.boundary-note { border-left: 3px solid var(--acid); padding: 0.25rem 0 0.25rem 1.5rem; }
.boundary-note span, .brief span, .result-heading span { font: 700 0.68rem/1 monospace; letter-spacing: 0.12em; color: var(--muted); }
.boundary-note strong { display: block; margin: 0.65rem 0; font: 500 2rem/1 Georgia, serif; }
.boundary-note ul { list-style: none; padding: 0; margin: 0; font-size: 0.82rem; line-height: 1.8; }
.boundary-note li::before { content: "— "; color: var(--signal); }
.workspace { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border: 1px solid var(--ink); background: #f8f6ef; box-shadow: 14px 14px 0 var(--ink); }
.goal-panel, .result-panel { min-height: 510px; padding: clamp(1.5rem, 3vw, 3rem); }
.goal-panel { display: flex; flex-direction: column; border-right: 1px solid var(--ink); }
.goal-panel label { margin: 4rem 0 1rem; font-family: Georgia, "Noto Serif SC", serif; font-size: 1.55rem; }
textarea { flex: 1; min-height: 180px; resize: vertical; border: 0; border-block: 1px solid var(--line); background: transparent; padding: 1.5rem 0; color: var(--ink); font: 400 1.15rem/1.7 Georgia, "Noto Serif SC", serif; outline: none; }
textarea:focus { border-color: var(--signal); }
.form-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-top: 1.5rem; }
.form-footer p { max-width: 310px; margin: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
button { display: flex; gap: 2rem; align-items: center; border: 1px solid var(--ink); background: var(--ink); color: white; padding: 1rem 1.25rem; cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
button:hover { transform: translate(-3px, -3px); background: var(--signal); }
button:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.error { margin: 1rem 0 0; color: #9d2e1c; font-weight: 700; }
.result-panel { position: relative; overflow: hidden; background: var(--ink); color: white; }
.empty-state { height: 100%; display: grid; place-content: center; text-align: center; }
.empty-state p { margin: 1.5rem 0 0.4rem; font: 400 1.7rem/1 Georgia, serif; }
.empty-state small { color: #9ba1a7; }
.pulse-mark { width: 56px; height: 56px; margin: auto; border: 1px solid var(--acid); transform: rotate(45deg); animation: pulse 2.3s ease-in-out infinite; }
.result-heading { display: flex; justify-content: space-between; gap: 1rem; margin: 3.5rem 0 2rem; }
.result-heading h2 { margin: 0.45rem 0 0; font: 400 clamp(1.7rem, 3vw, 2.8rem)/1 Georgia, serif; color: var(--acid); }
.result-heading code { color: #a9afb4; font-size: 0.66rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #41474d; border-left: 1px solid #41474d; }
.timeline li { min-height: 118px; padding: 1rem; border-right: 1px solid #41474d; border-bottom: 1px solid #41474d; }
.timeline strong { display: block; color: white; font-size: 0.78rem; }
.timeline span { display: block; margin-top: 0.4rem; color: var(--acid); font: 600 0.6rem/1.2 monospace; text-transform: uppercase; }
.timeline p { margin: 1rem 0 0; color: #a9afb4; font-size: 0.7rem; line-height: 1.45; }
.brief { margin-top: 1.8rem; padding-left: 1rem; border-left: 3px solid var(--signal); }
.brief p { margin: 0.6rem 0 0; line-height: 1.55; font-family: Georgia, "Noto Serif SC", serif; }
.proof-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.7rem; }
.proof-strip span { border: 1px solid #4d545b; padding: 0.45rem 0.6rem; color: #a9afb4; font: 600 0.56rem/1 monospace; }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding: 1.2rem 4vw; font: 600 0.64rem/1 monospace; letter-spacing: 0.08em; }
@keyframes pulse { 50% { transform: rotate(135deg) scale(0.72); opacity: 0.45; } }
@media (max-width: 800px) {
  .hero, .workspace { grid-template-columns: 1fr; }
  .boundary-note { margin-top: 1rem; }
  .goal-panel { border-right: 0; border-bottom: 1px solid var(--ink); }
  .workspace { box-shadow: 7px 7px 0 var(--ink); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .form-footer { align-items: stretch; flex-direction: column; }
  button { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
