/* Layout: one left-aligned reading column (~68ch) inside a wider frame; work and notebook
   lists run as quiet two-column grids; the only "object" on the page is the agent network. */
:root {
  --paper: #f6f7f5;      /* cool paper, faint green-grey bias */
  --ink: #17202a;        /* body text, slate ink */
  --muted: #5b6670;      /* secondary text */
  --rule: #d9ded9;       /* hairlines */
  --accent: #2f5d8a;     /* oxide blue: links, marks */
  --ok: #3b7a57;         /* "verified" and result marks */
  --panel: #eceeea;      /* card and form surfaces */

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.3rem, 5vw + 1rem, 3.6rem);
  --measure: 68ch;
  --frame: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12171c; --ink: #e3e7e4; --muted: #9aa5ad; --rule: #2a333b;
    --accent: #8db7e0; --ok: #7fc79e; --panel: #1a2128; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12171c; --ink: #e3e7e4; --muted: #9aa5ad; --rule: #2a333b;
  --accent: #8db7e0; --ok: #7fc79e; --panel: #1a2128; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.frame { max-width: var(--frame); margin: 0 auto; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* header */
.site-head { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; padding-block: 28px 18px; border-bottom: 1px solid var(--rule); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--display); font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.cta { color: var(--accent); }

/* home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 64px 56px; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; font-family: var(--display); }

/* sections */
.section { padding-block: 48px; border-top: 1px solid var(--rule); display: grid; gap: 26px; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.proof div { display: grid; gap: 8px; align-content: start; }
.proof p { color: var(--muted); font-size: 0.98rem; }
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.item { display: grid; gap: 8px; padding-block: 20px; border-top: 1px solid var(--rule); align-content: start; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { color: var(--accent); }
.item p { color: var(--muted); font-size: 0.98rem; }

/* reading pages */
.page { padding-block: 56px 72px; display: grid; gap: 28px; }
.page-head { display: grid; gap: 14px; max-width: var(--measure); }
.page-head h1 { font-size: var(--step-3); }
.page-head .lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.prose { max-width: var(--measure); display: grid; gap: 1.1em; }
.prose h2 { margin-top: 0.8em; font-size: var(--step-1); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.4em; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--panel); padding: 0.1em 0.35em; border-radius: 3px; }
.prose blockquote { margin: 0; padding-left: 18px; border-left: 2px solid var(--rule); color: var(--muted); }
.note { max-width: var(--measure); background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; font-size: 0.98rem; }
.meta { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

/* request form */
.form { max-width: 560px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; padding: 10px 12px; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 96px; resize: vertical; }
.button { justify-self: start; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--paper); background: var(--accent); border: 0; border-radius: 5px; padding: 11px 20px; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.status { min-height: 1.4em; font-size: 0.95rem; }
.status.error { color: #b54a3c; }
.status.ok { color: var(--ok); }

.site-foot { border-top: 1px solid var(--rule); padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px; }
  .proof, .list { grid-template-columns: minmax(0, 1fr); }
  .proof { gap: 22px; }
}

/* Option D, "Stage lights, blue": option C's layout and glass panels with deep blues in place of the
   coral and gold. Midnight navy, cobalt and indigo spotlights that drift slowly. */

:root:root:root {
  --paper: #070d24; --ink: #eef3ff; --muted: #a9b6d6; --rule: rgba(255, 255, 255, 0.13);
  --accent: #8fc1ff; --ok: #7fe3d0; --panel: rgba(255, 255, 255, 0.06); color-scheme: dark;
  --heat: linear-gradient(95deg, #4d8dff, #86bdff 60%, #cfe6ff);
  --deep: linear-gradient(95deg, #1a3fc4, #2868dc);
  --step-4: clamp(2.8rem, 5.6vw + 1rem, 4.9rem);
  --frame: 1160px;
}
body { position: relative; overflow-x: hidden; }
body::before, body::after { content: ""; position: fixed; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); pointer-events: none; }
body::before { top: -38vmax; left: -22vmax; background: radial-gradient(closest-side, rgba(38, 84, 255, 0.5), transparent); }
body::after { top: -30vmax; right: -24vmax; background: radial-gradient(closest-side, rgba(40, 30, 190, 0.5), transparent); }
html { background: var(--paper); }
body { background: transparent; }

h1 { background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; line-height: 1.04; padding-bottom: 0.06em; }

.site-head { align-items: center; border-bottom-color: transparent; }
.nav { align-items: center; padding: 6px 8px 6px 18px; background: var(--panel); border: 1px solid var(--rule); border-radius: 999px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav a.cta { color: #fff; background: var(--deep); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.nav a.cta:hover, .nav a.cta[aria-current="page"] { color: #fff; filter: brightness(1.1); }

.label { color: var(--accent); }
.hero { padding-block: 76px 72px; align-items: center; }
.hero-actions a { padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); border: 1px solid var(--rule); background: var(--panel); transition: transform 0.2s, box-shadow 0.2s; }
.hero-actions a:first-child { color: #fff; background: var(--deep); border-color: transparent; }
.hero-actions a:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(45, 100, 255, 0.45); }


.section { border-top-color: var(--rule); }
.proof, .list { gap: 16px; }
.proof > div, .item { padding: 24px; background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.item:hover { transform: translateY(-4px); border-color: rgba(143, 193, 255, 0.65); box-shadow: 0 18px 50px rgba(45, 100, 255, 0.28); }
.proof > div h3, .section-head h2, .section > h2 { color: #fff; }
.note { border-radius: 18px; background: linear-gradient(95deg, rgba(38, 84, 255, 0.26), rgba(60, 40, 200, 0.2)); border-color: rgba(143, 193, 255, 0.45); }
.button { color: #fff; background: var(--deep); border-radius: 999px; }
.field input, .field textarea { background: var(--panel); border-radius: 12px; }
.prose code { background: var(--panel); }

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: drift 16s ease-in-out infinite alternate; }
  body::after { animation: drift 20s ease-in-out infinite alternate-reverse; }
}
@keyframes drift { to { transform: translate(9vw, 7vh) scale(1.12); } }
@media (max-width: 640px) {
  .nav { border-radius: 18px; }
}

/* The base error red is unreadable on navy. */
.status.error { color: #ff9c8f; }

/* .field's display: grid was overriding the hidden attribute on the form's spam trap. */
.field[hidden] { display: none; }

/* Home page: an agent network handling one request. Messages travel by SVG animation in the markup;
   with reduced motion they're hidden and the network stands still. */
.network { margin: 0; width: 100%; max-width: 520px; justify-self: center; }
.network-title { display: block; text-align: center; margin-bottom: 14px; }
.network svg { display: block; width: 100%; height: auto; overflow: visible; }
.network text { font-family: var(--display); fill: var(--ink); }
.network .sub { font-family: var(--body); fill: var(--muted); }
.network .ring { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .network .ring { animation: none; }
  .network .msg, .network .glow { display: none; }
}
