/* Soft champagne accents: the dark lab is the foundation, paper is a small detail. */
:root { --accent-paper:#d9c7a4; --accent-ink:#302315; --accent-muted:#59452b; }
.reactor-hero {
  background:linear-gradient(90deg,#0f0c08 0%,#0f0c08b3 35%,transparent 67%),radial-gradient(ellipse at 78% 42%,#3e3020 0%,#211a12 36%,#0f0c08 74%);
}
/* The original two light chapters stay warm and muted. */
.problem-section { background:linear-gradient(115deg,#ceb27b,#e4d1a3 56%,#cdb17b); }
.twin-section { background:#e0d0b1; }
.twin-section .eyebrow { color:#60451f; }
.twin-lab { box-shadow:10px 10px 0 #ad9363; }
.specimen-card:nth-child(2) .specimen-caption { background:linear-gradient(125deg,#dfcda8,#cdb78e); }
.specimen-card:nth-child(2) .specimen-caption h3 { color:#302315; }
.specimen-card:nth-child(2) .specimen-caption :is(.eyebrow,p:not(.eyebrow),.icon-link) { color:#59452b; }
.specimen-card:nth-child(2) .specimen-caption>span { color:#78531f; }
.shelf-item:first-child .product-info { background:#d9c7a4; }
.shelf-item:first-child .product-info h3 { color:#302315; }
.shelf-item:first-child .product-info :is(p,.shelf-bottom,.text-link) { color:#59452b; }
.shelf-item:first-child .product-info a:hover { color:#302315; }
.membership-pass { background:linear-gradient(125deg,#e1c992,#c6a461 60%,#d7bc7f); }
.membership-pass:before,.membership-pass:after { background:#0d0b07; }

/* Small islands of parchment, not a light mode. */
.membership-card:not(.researcher-panel),.story-lead .quote,.booking-card.featured {
  --ivory:#302315; --gold:#79531f; --light-gold:#79531f; --green:#79531f;
  --muted:#59452b; --line:#77572e45;
  background:var(--accent-paper); color:var(--accent-ink); color-scheme:light;
}
.membership-card:not(.researcher-panel) :is(.badge,.badge.free) { color:#60451f; border-color:#79531f77; }
.membership-card:not(.researcher-panel) .fine { color:#59452b; }
.membership-card:not(.researcher-panel) .lab-object-hint { color:#694b23; }
.membership-card:not(.researcher-panel) .lab-object-control:focus-visible { outline-color:#79531f; }
.membership-card:not(.researcher-panel) ::selection,.story-lead .quote ::selection,.booking-card.featured ::selection { background:#79531f; color:#fff1d4; }
.researcher-panel { background:radial-gradient(ellipse at 90% 10%,#3c301c,#1d180f 72%); border-color:#987638; }
.story-lead .quote { padding:32px; border:1px solid #a68a554d; border-left:3px solid #ac8747; }
.story-lead .quote p { color:#302315; }
.story-lead .quote footer { color:#59452b; }
.booking-card { background:#1b160f; }
.booking-card.featured { background:linear-gradient(135deg,#decca8,#cbb58a); border-color:#b2965b; }
.booking-card.featured .button.secondary { color:#302315; border-color:#79531f99; }
.booking-card.featured .button.secondary:hover { background:#79531f18; color:#302315; }
.booking-card.featured :focus-visible { outline-color:#79531f; }
.booking-fit { border-top:1px solid var(--line); padding-top:18px; }

/* Research cards retain the darker bench, with numbered paper tabs. */
.course-directory { display:grid; gap:24px; }
.course-card { padding:42px 34px; background:#1a160f; border:1px solid #a58b5740; transition:border-color .25s,box-shadow .25s; }
.course-card:hover { border-color:#b2955a99; box-shadow:0 18px 40px #0003; }
.course-card .course-index { display:grid; place-items:center; align-self:start; width:44px; height:48px; background:#d9c7a4; color:#4d391e; font:600 22px/1 Inter,Arial,sans-serif; letter-spacing:-.05em; border-radius:1px; box-shadow:3px 3px 0 #755b3233; }
.story-chapter { padding:32px; background:#1b160f; border:1px solid #a58b5740; }
.story-chapter .course-index { color:#dbc69c; font:600 48px/1 Inter,Arial,sans-serif; letter-spacing:-.07em; }
.research-notes-section { background:radial-gradient(ellipse at 85% 20%,#43331c55,transparent 60%),#17130d!important; }
.research-notes-section .section-heading-with-object { border-bottom:1px solid #bda37140; padding-bottom:30px; }
.directory-link { transition:padding .25s,background .25s; }
.directory-link:hover { padding-inline:14px; background:#d8bd7e0d; }
.equipment-card .product-scene { border-color:#a58b5750; box-shadow:8px 8px 0 #8a6a3025; }

/* The sample is a small physical print on a dark desk. */
.experiment-hero { overflow:visible; }
.experiment-hero:before { inset:0; }
.experiment-sample { min-width:0; margin:12px 12px 12px 0; transform:rotate(1.5deg); background:#d9c7a4; color:#302315; }
.experiment-sample>.eyebrow { margin:0; padding:14px 18px; color:#59452b; border-bottom:1px solid #79531f40; }
.experiment-sample .twin-stage-images { height:460px; }
.experiment-sample .twin-stage-images img { object-fit:contain; }
.experiment-sample .twin-controls { background:#d9c7a4; }
.experiment-sample .stage-labels,.experiment-sample .twin-controls p { color:#59452b; }
.experiment-sample ::selection { background:#79531f; color:#fff1d4; }
.experiment-sample :focus-visible { outline-color:#79531f; }
.experiment-sample .twin-video-stage .button { color:#fff1d4; }

/* Carry the same restraint into the borrowed chapter guide. */
.lab-journey { background:#1b160ff5; color:#e5d1aa; border-color:#c6a66a30; }
.lab-journey-label { color:#bdab8a; }
.lab-journey a { color:#ccb996; }
.lab-journey a:hover { background:#d9c7a40a; color:#f2dfb8; }
.lab-journey a[aria-current="location"] { background:#d9c7a4; color:#302315; border-bottom-color:#b99a5e; }
.lab-journey a:focus-visible { outline-color:#e5ce99; }
.lab-reading-progress span { background:#ccb17c; }
@media(max-width:900px) {
  .course-card { padding:32px 26px; }
  .story-chapter { padding:25px; }
  .experiment-sample .twin-stage-images { height:370px; }
}
@media(max-width:650px) {
  .course-card { padding:28px 20px; grid-template-columns:24px minmax(0,1fr); gap:20px 15px; }
  .course-card .course-index { font-size:15px; width:26px; height:32px; }
  .course-lessons { padding:0; }
  .story-chapter { grid-template-columns:27px minmax(0,1fr); gap:18px; padding:24px 20px; }
  .story-chapter .course-index { font-size:28px; }
  .story-lead .quote { padding:25px; }
}
@media(prefers-reduced-motion:reduce) { .directory-link,.course-card { transition:none; } }
