/* Warm editorial theme: paper, charcoal, and a quiet sage accent.
   Circuit signal colors are preserved for scientific readability. */
:root {
  color-scheme: light;
  --bg: #fafaf6;
  --panel: #f0f1e9;
  --ink: #292b25;
  --muted: #62665b;
  --accent: #53664b;
  --green: #53664b;
  --line: #d9dcd1;
  --paper: #fffefa;
  --dark: #292b25;
}
body { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.8; }
::selection { background: #dce4d3; color: var(--ink); }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.035em; }
h2 { font-size: clamp(31px, 3.5vw, 44px); line-height: 1.16; }
h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
.wrap { max-width: 1120px; }
.topbar { max-width: 1216px; margin: auto; padding: 24px 48px; background: transparent; }
.brand-logos { gap: 25px; }
.brand-logos img { filter: brightness(0); opacity: .79; }
.eth-logo { width: 110px; }
.srl-logo { width: 138px; }
.topbar nav { font-size: 12px; gap: 22px; }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover, .text-link:hover, footer a:hover { color: var(--ink); text-decoration: underline; }
.hero { max-width: 1216px; padding: 68px 48px 44px; }
.hero-lead { grid-template-columns: 1.25fr .85fr; gap: 44px; margin-bottom: 56px; }
.hero-lead h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 3.3vw, 48px); font-weight: 400; line-height: 1.13; letter-spacing: -.035em; text-wrap: pretty; margin-bottom: 25px; }
.eyebrow, .hero-lead .eyebrow { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .13em; line-height: 1.8; margin-bottom: 18px; }
.hero-publication .authors { color: #464b40; font-size: 13px; }
.hero-publication { font-size: 11px; line-height: 1.8; }
.hero-lead .intro { font-size: 16px; line-height: 1.7; max-width: 500px; margin: 23px 0; }
.hero-hand img { background: transparent; border: 0; border-radius: 0; filter: drop-shadow(0 0 1px rgb(0 0 0 / 85%)) drop-shadow(0 0 3px rgb(0 0 0 / 40%)) drop-shadow(0 5px 8px rgb(0 0 0 / 16%)); }
.hero-hand figcaption { text-align: center; font-size: 11px; }
.hero-lead .actions { gap: 10px 15px; }
.button, button { border: 1px solid #c3c9b9; border-radius: 4px; font-weight: 400; color: var(--ink); background: transparent; }
.button:hover, button:hover { background: #e9edde; border-color: #a3af96; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fffefa; }
.button.primary:hover { background: #43553c; border-color: #43553c; }
.text-link { color: var(--accent); text-decoration: underline; text-decoration-color: #bbc5af; }
.benefit-grid { gap: 36px; margin: 0 0 46px; padding: 30px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit-grid article { background: none; border: 0; border-radius: 0; padding: 0; }
.benefit-grid h3 { font-size: 22px; line-height: 1.3; font-weight: 700; min-height: 0; margin-bottom: 10px; }
.benefit-grid article > p { font-size: 14px; margin-bottom: 19px; }
.benefit-proof { border: 0; padding: 0; min-height: 0; }
.benefit-proof .proof-label { font-size: 10px; text-transform: none; letter-spacing: 0; margin-bottom: 7px; }
.benefit-proof strong { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 39px; color: var(--accent); margin-bottom: 7px; letter-spacing: -.035em; }
.benefit-proof small { font-family: Arial, Helvetica, sans-serif; font-size: 17px; letter-spacing: -.02em; }
.benefit-proof span { font-size: 11px; }
.opening-demos { gap: 26px; }
.demo-card { background: transparent; border: 0; border-radius: 0; }
.demo-video, .film-section video { border: 0; border-radius: 3px; background: #20221e; }
.demo-card .demo-video { border-radius: 3px; }
.demo-card figcaption { padding: 15px 0 0; }
.demo-card strong { font-size: 18px; }
.demo-card figcaption div > span { font-size: 12px; }
.cycle-feature { margin-top: 35px; padding-top: 36px; }
.cycle-feature h2 { font-size: clamp(30px, 3vw, 39px); }
.section { padding-top: 64px; padding-bottom: 64px; }
#overview { padding-top: 32px; padding-bottom: 40px; }
.overview { gap: 65px; }
.overview .lead { font-size: 22px; line-height: 1.5; }
.overview p:not(.eyebrow) { color: var(--muted); }
#principle { padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.section-heading { gap: 45px; margin-bottom: 32px; }
.heading-note { font-size: 15px; line-height: 1.8; }
.hardware-section { background: #f1f2eb; border: 0; }
.hardware-section .eyebrow { color: var(--muted); }
.hardware-photo img, .hardware-configuration img, .paper-figure img { border-radius: 3px; }
.hardware-configuration > div { gap: 35px; }
.hardware-configuration figure > a { display: block; width: 85%; max-width: 900px; margin-inline: auto; }
.module-grid h3 { font-size: 21px; }
.result-grid { gap: 35px; margin-top: 36px; }
.result-grid article { border: 0; padding: 0; }
.result-value { font-family: Georgia, 'Times New Roman', serif; color: var(--accent); font-size: clamp(28px, 3vw, 38px); margin-bottom: 20px; }
.result-grid h3 { font-size: 19px; line-height: 1.4; }
.result-grid article > p:last-child { line-height: 1.8; }
.scope { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
.film-section { padding: 56px 0; background: #f1f2eb; border: 0; }
.film-section .muted { font-size: 14px; }
.resources { background: var(--bg); }
.resources p { color: var(--muted); }
pre { background: #f0f1e9; border: 0; border-radius: 3px; color: #3f4838; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
/* The interactive diagrams are workspaces, with quieter framing. */
.principle-lab, .branch-lab { background: #edf0e5; border: 1px solid #d2dac8; border-radius: 8px; color: var(--ink); padding: 30px; margin: 36px 0; }
.lab-header { margin-bottom: 22px; }
.lab-header h3 { font-size: 24px; line-height: 1.3; }
.lab-header .eyebrow { color: var(--muted); }
.lab-tag { color: var(--muted); background: #eef0e7; border: 0; padding: 5px 10px; }
.circuit-panel, .timing-panel, .branch-circuit-scroll, .branch-wave-scroll { border-color: #d9dcd1; border-radius: 3px; background: #fffefa; }
.branch-settings, .branch-guide, .switch-readout { border-color: var(--line); }
.branch-intro, .branch-metrics span, .branch-live, .sampling-legend, .guide-heading > span, .guide-body, .lab-note, .branch-guide p { color: var(--muted); }
.principle-lab button, .branch-lab button { background: #fffefa; border-color: #c3c9b9; color: var(--ink); }
.principle-lab button:hover, .branch-lab button:hover { background: #edf0e5; }
.principle-lab #principle-play, .branch-lab #branch-play { background: var(--accent); border-color: var(--accent); color: white; }
.speed-control select, .branch-settings select { background: #fffefa; border-color: #c3c9b9; color: var(--ink); }
.timeline-control input { accent-color: var(--accent); }
.principle-lab .guide-step { border: 1px solid var(--line); border-radius: 3px; background: transparent; padding: 15px; box-shadow: none; }
.principle-lab .guide-step.is-current { background: #e8eddf; border-color: #879779; box-shadow: none; }
.guide-step strong { font-size: 14px; font-weight: 500; }
.branch-voltage { border-color: var(--line); background: #fffefa; }
@media (min-width: 1600px) { .hero { padding-top: 76px; padding-bottom: 44px; } }
@media (max-width: 1100px) {
  .topbar { gap: 20px; }
  .topbar nav { gap: 15px; }
  .eth-logo { width: 96px; }
  .srl-logo { width: 123px; }
  .hero-lead { gap: 28px; }
  .hero-lead h1 { font-size: 35px; }
  .benefit-grid { gap: 25px; }
  .benefit-grid h3 { font-size: 21px; min-height: 0; }
  .benefit-proof strong { font-size: 37px; }
}
@media (max-width: 1000px) {
  .topbar { padding: 22px 32px; }
  .hero { padding: 46px 32px 32px; }
  .overview { gap: 35px; }
}
@media (max-width: 760px) {
  .topbar { padding: 20px; gap: 18px; }
  .brand-logos { gap: 24px; }
  .eth-logo { width: 105px; }
  .srl-logo { width: 134px; }
  .topbar nav { gap: 10px 18px; }
  .hero { padding: 36px 20px 30px; }
  .hero-lead { grid-template-columns: 1fr; gap: 26px; margin-bottom: 32px; }
  .hero-lead h1 { font-size: clamp(32px, 7.4vw, 42px); line-height: 1.14; }
  .hero-lead .eyebrow { font-size: 9px; }
  .hero-hand { max-width: 410px; }
  .hardware-configuration figure > a { width: 100%; }
  .benefit-grid { gap: 26px; padding: 26px 0; margin-bottom: 32px; }
  .benefit-grid article { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 20px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
  .benefit-grid article:last-child { padding-bottom: 0; border-bottom: 0; }
  .benefit-grid h3 { min-height: 0; font-size: 21px; margin-bottom: 10px; }
  .benefit-grid article > p { grid-column: 1; margin: 0; font-size: 13px; }
  .benefit-proof { grid-column: 2; grid-row: 1 / 3; align-self: center; margin-top: 0; padding: 0; }
  .benefit-proof strong { font-size: 34px; }
  .benefit-proof small { font-size: 15px; }
  .section { padding-top: 46px; padding-bottom: 46px; }
  .section-heading { gap: 25px; }
  .section-heading .heading-note { margin-top: 18px; }
  .principle-lab, .branch-lab { padding: 20px 16px; margin: 28px 0; }
  .lab-header h3 { font-size: 22px; }
  .result-grid { gap: 26px; }
  .result-value { margin-bottom: 12px; }
  .film-section { padding: 44px 0; }
}
@media (max-width: 380px) {
  .benefit-grid article { display: flex; }
  .benefit-grid article > p { margin-bottom: 18px; }
  .benefit-proof { align-self: stretch; }
}
