@import url("edition-scenery.css");

/* A short contents page between the cover and the instruments. */
body[data-study-edition] .learning-guide {
  width:100%; max-width:none; margin:0; box-sizing:border-box;
  padding:clamp(30px,4.6vw,76px) clamp(18px,6vw,110px);
  scroll-margin-top:6rem; color:#f5efdf; text-align:left;
}
.learning-guide .guide-layout {
  display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr);
  align-items:start; gap:clamp(24px,6vw,96px); max-width:1270px; margin:auto;
}
.learning-guide .guide-kicker {
  margin:0 0 12px; color:var(--study-a); font:650 .78rem/1.4 ui-monospace,monospace;
  letter-spacing:.09em; text-transform:uppercase;
}
.learning-guide #guide-title {
  margin:0; color:#fff2df; font:normal clamp(34px,3.8vw,64px)/1.04 Georgia,serif;
  text-wrap:balance; letter-spacing:-.045em; text-transform:none;
}
.learning-guide .guide-deck {
  max-width:42ch; margin:14px 0 18px; color:#eee5d5; font:400 1.02rem/1.55 system-ui,sans-serif;
}
.learning-guide .guide-intro {text-shadow:0 1px 5px #060806;}
body[data-study-edition] .learning-guide .guide-lab {
  display:inline-grid; width:fit-content; min-height:44px; max-width:100%; box-sizing:border-box;
  gap:4px; margin:0; padding:8px 12px; color:#f7ecda; border:0; border-inline-start:2px solid var(--study-a);
  background:#0b1111af; text-decoration:none;
}
.learning-guide .guide-lab strong {text-decoration:underline;text-underline-offset:.2em;}
.learning-guide .guide-lessons {
  padding:0 clamp(14px,2vw,30px); border:1px solid color-mix(in srgb,var(--study-a) 30%,transparent);
  border-radius:8px; background:linear-gradient(125deg,color-mix(in srgb,var(--study-dark) 94%,transparent),#101213ef);
}
.learning-guide details.guide-note {
  color:#f9f0df; margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none;
}
.learning-guide details.guide-note + details {border-top:1px solid #eadac132;}
.learning-guide .guide-note > summary {
  display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none;
  min-height:48px; padding:12px 0; box-sizing:border-box; color:inherit; background:none;
  font:500 clamp(18px,1.55vw,24px)/1.35 Georgia,serif; text-transform:none; letter-spacing:0;
}
.learning-guide summary::-webkit-details-marker {display:none;}
.learning-guide .guide-note > summary::after {
  content:''; flex:0 0 7px; width:7px; height:7px; margin-inline-end:5px; border:solid var(--study-a);
  border-width:0 1.5px 1.5px 0; transform:rotate(45deg);
}
.learning-guide .guide-note[open] > summary::after {transform:rotate(225deg);}
.learning-guide .guide-body {padding:0 0 16px;}
.learning-guide .guide-body p {
  margin:0 0 12px; max-width:63ch; color:#e8e2d8; font:400 1rem/1.6 system-ui,sans-serif; letter-spacing:0;
}
.learning-guide .guide-body .guide-example {padding-inline-start:12px;border-inline-start:2px solid var(--study-b);}
.learning-guide .guide-source {
  display:inline-block; max-width:100%; padding:6px 0; color:var(--study-a); font:600 .85rem/1.5 system-ui,sans-serif;
  text-decoration:underline; text-underline-offset:.2em; overflow-wrap:anywhere;
}
.learning-guide :is(summary,a):focus-visible {outline:2px solid var(--study-a);outline-offset:2px;}
@media (max-width:760px) {
  .learning-guide .guide-layout {grid-template-columns:minmax(0,1fr);gap:18px;}
  body[data-study-edition] .learning-guide {padding:28px max(16px,4vw);}
}
@media (max-width:440px) {
  body[data-study-edition="civic"] > header.top.wrap {
    display:flex;flex-wrap:wrap;gap:0 16px;
  }
  body[data-study-edition="civic"] > header.top.wrap nav {
    display:flex;flex-wrap:wrap;gap:0 16px;min-width:0;
  }
}

[data-study-edition="valence"], #theater[data-project="valence"] {
  --study-dark:#101b1b; --study-a:#e9b675; --study-b:#78b4ba;
  --study-grain:url("editions/surfaces/gunmetal.webp");
  --study-art:url("editions/valence/optic-dipped.webp");
}
[data-study-edition="vesper"], #theater[data-project="vesper"] {
  --study-dark:#1d2024; --study-a:#ebb68c; --study-b:#90b8bd;
  --study-grain:url("editions/surfaces/basalt.webp");
  --study-art:url("editions/vesper/modelmakers-table.webp");
}
[data-study-edition="meridian"], #theater[data-project="meridian"] {
  --study-dark:#101010; --study-a:#e1c89f; --study-b:#cecac3;
  --study-grain:url("editions/surfaces/basalt.webp");
  --study-art:url("editions/meridian/mount-still-life.webp");
}
[data-study-edition="ember"], #theater[data-project="ember"] {
  --study-dark:#2c1514; --study-a:#ffa979; --study-b:#edc464;
  --study-grain:url("editions/surfaces/walnut.webp");
  --study-art:url("editions/ember/bench.webp");
}
[data-study-edition="northline"], #theater[data-project="northline"] {
  --study-dark:#0b2524; --study-a:#abc998; --study-b:#f0c685;
  --study-grain:url("editions/surfaces/canvas.webp");
  --study-art:url("editions/northline/field-desk.webp");
}
[data-study-edition="signal"], #theater[data-project="signal"] {
  --study-dark:#211727; --study-a:#f5b681; --study-b:#b6a0df;
  --study-grain:url("editions/surfaces/walnut.webp");
  --study-art:url("editions/signal/mastering-desk.webp");
}
[data-study-edition="civic"], #theater[data-project="civic"] {
  --study-dark:#0a242b; --study-a:#f5c77d; --study-b:#82d6ca;
  --study-grain:url("editions/surfaces/gunmetal.webp");
  --study-art:url("editions/civic/terminal-hall.webp");
}
[data-study-edition="food"], #theater[data-project="food"] {
  --study-dark:#262318; --study-a:#f2bf60; --study-b:#b3cb8f;
  --study-grain:url("editions/surfaces/canvas.webp");
  --study-art:url("editions/food/label-proof.webp");
}

/* The cover and reading station establish local stacking contexts. */
.study-front, .study-interior {position:relative;isolation:isolate}
[data-study-edition] .study-front h1 em,[data-study-edition] .study-front h1 i{color:var(--study-a)}
#theater[data-project]:not([data-project="aletheia"]) .project-base {
  background:linear-gradient(90deg,color-mix(in srgb,var(--study-dark) 78%,transparent),color-mix(in srgb,var(--study-dark) 94%,transparent) 42%,color-mix(in srgb,var(--study-dark) 82%,transparent)),var(--study-art) center 59%/cover;
  box-shadow:inset 0 1px color-mix(in srgb,var(--study-a) 54%,transparent);
}
#theater[data-project]:not([data-project="aletheia"]) .project-controls {background:transparent}
#theater[data-project]:not([data-project="aletheia"]) .step-heading {color:var(--study-a)}
#theater[data-project]:not([data-project="aletheia"]) #project-window {box-shadow:inset 0 -1px var(--study-dark),0 2px 8px #0005}

body[data-study-edition] .edition-lesson {position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;width:100%;max-width:none;margin:0;padding:clamp(36px,5vw,84px) clamp(18px,6vw,110px);text-align:left;color:#fff2df;background:
 linear-gradient(90deg,color-mix(in srgb,var(--study-dark) 77%,transparent),color-mix(in srgb,var(--study-dark) 97%,transparent) 66%),
 var(--study-art) 20% 48%/cover,var(--study-dark);}
.edition-lesson::before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:linear-gradient(0deg,var(--study-dark),transparent 18%,transparent 85%,var(--study-dark));}
.edition-lesson .study-spread {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);align-items:center;gap:clamp(28px,7vw,118px);max-width:1320px;margin:auto}
.edition-lesson h2,.edition-lesson h3,.edition-lesson p,.edition-lesson figure {margin:0;max-width:none;color:inherit;text-transform:none}
.edition-lesson h2 {font:normal clamp(38px,4.5vw,74px)/1.02 Georgia,serif;letter-spacing:-.045em;text-wrap:balance}
.edition-lesson .study-observation>p,.edition-lesson .study-answer,.edition-lesson details p {font:400 1rem/1.55 system-ui,sans-serif;letter-spacing:normal;color:#eadfce;max-width:60ch;margin:14px 0}
.edition-lesson figure {width:min(100%,490px);box-sizing:border-box;margin-top:22px;padding:15px 18px 12px;border-block:1px solid color-mix(in srgb,var(--study-a) 48%,transparent);background:
 repeating-linear-gradient(90deg,transparent 0 23px,#ece5d20a 23px 24px),linear-gradient(100deg,color-mix(in srgb,var(--study-dark) 90%,transparent),#070b0bbe)}
.edition-lesson figure svg {display:block;position:static;width:100%;height:auto;overflow:visible;fill:none;stroke:#ede5d3;stroke-width:2;filter:drop-shadow(.7px 0 #a54b4160) drop-shadow(-.7px 0 #53afb566)}
.edition-lesson .fill-a {fill:color-mix(in srgb,var(--study-a) 48%,transparent);stroke:var(--study-a)}
.edition-lesson .fill-b {fill:color-mix(in srgb,var(--study-b) 45%,transparent);stroke:var(--study-b)}
.edition-lesson .ink-a {stroke:var(--study-a)} .edition-lesson .ink-b {stroke:var(--study-b)} .edition-lesson .stars {fill:var(--study-a)}
.edition-lesson .study-keys {display:flex;justify-content:space-around;gap:10px;font:600 .81rem/1.4 system-ui,sans-serif}
.edition-lesson figcaption {display:block;position:static;background:transparent;margin:10px 0 0;padding:0;color:#ddcfbc;font:normal .73rem/1.4 ui-monospace,monospace}
.edition-lesson .study-question {padding:clamp(20px,3vw,38px);border-radius:7px 16px 12px 5px;border:1px solid color-mix(in srgb,var(--study-a) 42%,var(--study-dark));border-left:3px solid var(--study-a);
 background:linear-gradient(135deg,color-mix(in srgb,var(--study-dark) 83%,transparent),#0c1010eb),var(--study-grain) center/550px;box-shadow:3px 10px 20px #0004;}
.edition-lesson h3 {font:500 clamp(21px,2.1vw,31px)/1.22 Georgia,serif;letter-spacing:-.018em}
.edition-lesson .study-choices {display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 14px}
.edition-lesson .study-choices button {appearance:none;position:static;width:auto;height:auto;display:inline-flex;align-items:center;min-height:44px;padding:9px 14px;border:1px solid color-mix(in srgb,var(--study-a) 60%,var(--study-dark));border-radius:5px;background:var(--study-dark);color:#fff2df;font:600 .93rem/1.3 system-ui,sans-serif;text-transform:none;letter-spacing:0;cursor:pointer}
.edition-lesson .study-choices button:hover {border-color:var(--study-a)} .edition-lesson .study-choices button[aria-pressed="true"] {background:var(--study-a);color:#181a19}
.edition-lesson :focus-visible {outline:2px solid var(--study-b);outline-offset:3px}
.edition-lesson .study-answer:empty {display:none}
.edition-lesson a {display:inline;color:var(--study-b);font:500 .85rem/1.5 system-ui,sans-serif;text-decoration:underline;text-underline-offset:.2em}
.edition-lesson .study-scripture {margin-top:18px;border-top:1px solid #ffffff25;padding-top:14px;color:#f1e3c9}
.edition-lesson .study-scripture summary {cursor:pointer;font:italic 1.04rem/1.5 Georgia,serif}
@media(max-width:720px){.edition-lesson .study-spread {grid-template-columns:1fr;gap:24px}.edition-lesson figure{margin-top:16px}.edition-lesson .study-question{padding:19px}}


/* Finishes belong to each instrument. The photographs, maps and readings keep their own colors. */
body[data-study-edition="valence"] #coachworks,
#theater #stage[data-scene="valence"] .vb-head {
  background:linear-gradient(104deg,#102428f5,#192827d9 55%,#563c28a6),url("editions/valence/folio-gears.webp") right 46%/cover;
  border-bottom:1px solid #b98a565e;
}
body[data-study-edition="vesper"] .va-drawing-index {
  background:linear-gradient(100deg,#102023ed,#25323993 48%,#4a2e204d),url("editions/vesper/showcase.webp") center 55%/cover;
}
body[data-study-edition="vesper"] .va-drawing-leaves button {border-top:3px solid #ad7551;box-shadow:2px 7px 15px #0d151a77}
#theater[data-project="vesper"] #project-window #vesper-study .light-instrument {
  background:linear-gradient(100deg,#132227f7,#22322bee 60%,#372720ed),url("editions/vesper/modelmakers-table.webp") center/cover;color:#fbecd3;
}
#theater[data-project="vesper"] .atelier-credit,#theater[data-project="vesper"] .light-caption :is(span,small){color:#f5dfc0}
html[data-ver-cursor="meridian"] body[data-study-edition="meridian"]:not(.red-light) {
  --bg:#040404;--panel:#171717;--line:#515151;--mc-face:#202020;--mc-hover:#333333;--mc-border:#646464;--mc-focus:#ebd4ad;
}
html[data-ver-cursor="meridian"] body[data-study-edition="meridian"]:not(.red-light) #top.hero:has(.md-hero-viewer) {
  background:radial-gradient(ellipse at 80% 26%,#2d2d2d77,transparent 58%),linear-gradient(98deg,#080808ef,#101010e0),url("editions/meridian/mount-still-life.webp") 68% 48%/cover;
}
#theater #stage[data-scene="meridian"] .mde-room .mde-switch {
  background:#101010;
}
#theater #stage[data-scene="meridian"] .mde-room .mde-switch::before {
  content:"";
  background:linear-gradient(98deg,#101010f5,#161616c9),url("editions/meridian/mount-still-life.webp") 68% 48%/cover;
  filter:grayscale(1);
}
body[data-study-edition="ember"] .ea-flight {
  background:linear-gradient(100deg,#25100eed,#5020199c 47%,#45231370),url("editions/ember/showcase.webp") center 53%/cover;
}
body[data-study-edition="ember"] .ea-scales i {background:linear-gradient(90deg,#993b27 var(--rating),#c2a478 var(--rating))}
#theater #stage[data-scene="ember"] .ea-specimen .wk-coffee-inline {background:linear-gradient(110deg,#35160f,#512a1be6);border-color:#ae714b}
body[data-study-edition="northline"] #atlas.atlas-wrap {
  background:linear-gradient(106deg,#0a2228df,#13382fc2 42%,#273b2680),url("editions/northline/showcase.webp") center/cover;
}
#theater #stage[data-scene="northline"] .nl-routehead {background:linear-gradient(105deg,#1a3028ec,#0d2428de),url("editions/surfaces/canvas.webp") center/350px;color:#f8edcc}
body[data-study-edition="signal"] #listen.wrap,
#theater #stage[data-scene="signal"] .score-current {
  background:radial-gradient(ellipse at 85% 0%,#84516566,transparent 54%),linear-gradient(104deg,#18151deb,#2a2022d6),url("editions/signal/mastering-desk.webp") 60% 48%/cover;
}
html.cf-edition body[data-study-edition="civic"] .tt-atlas .fde-stations,
#theater #stage[data-scene="civic"] .fde-stations {
  background:linear-gradient(103deg,#0a252cef,#193b37da),url("editions/civic/terminal-hall.webp") center 43%/cover;
  border-color:#8c7958;color:#f9ebd2;
}
body[data-study-edition="food"] .sm-prep {
  background:linear-gradient(105deg,#17231af2,#29351a99 50%,#593c1e5c),url("editions/food/showcase.webp") center 54%/cover;
}
#theater #project-window #stage[data-scene="food"] .sm-cover .sm-cover-banner {
  background:linear-gradient(98deg,#1c2c20ef,#2a301bdc),url("editions/food/label-proof.webp") center 40%/cover;
  color:#f3e7c9;border-color:#c69b62;padding:12px clamp(12px,2vw,26px);border-radius:4px 14px 4px 4px;
}
#theater #project-window #stage[data-scene="food"] .sm-cover .sm-cover-banner>span {color:#f3e7c9}
@media(forced-colors:active){.edition-lesson figure svg{stroke:CanvasText;filter:none}.edition-lesson .study-choices button[aria-pressed=true]{outline:2px solid Highlight}}

body[data-study-edition="meridian"].red-light {--study-dark:#130705;--study-a:#e69b83;--study-b:#cb826c}
body[data-study-edition="meridian"].red-light .edition-lesson {color:#e8ab92;background:#170a08}
body[data-study-edition="meridian"].red-light .edition-lesson :is(p,figcaption,summary,svg) {color:#d49b89}
body[data-study-edition="meridian"].red-light .edition-lesson figure svg {stroke:currentColor;filter:none}

/* Full-edition inspection prints and their corresponding instrument controls. */
body[data-study-edition] figure.study-print-mount {position:relative}
body[data-study-edition] .study-open-print,.study-print-view button {
  appearance:none;border:1px solid #ac9980;border-radius:5px;color:#fff1da;background:#22251fee;
  font:600 13px/1.25 system-ui,sans-serif;letter-spacing:0;text-transform:none;
  min-height:40px;padding:7px 13px;cursor:pointer;box-shadow:0 2px 6px #0005;
}
body[data-study-edition] .study-open-print {position:absolute;inset:9px 9px auto auto;width:auto;height:auto;z-index:2}
body[data-study-edition] .study-open-print:hover,.study-print-view button:hover {background:#434135}
body[data-study-edition] .study-open-print:focus-visible,.study-print-view :focus-visible {outline:2px solid #f7c885;outline-offset:2px}
dialog.study-print-view[open] {box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1120px,96vw);height:min(86dvh,900px);max-width:100%;max-height:100%;padding:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:#111412;color:#efe8d9;border:1px solid #93846e;border-radius:10px;box-shadow:0 20px 70px #0009}
.study-print-view::backdrop {background:#060908de}
html:has(.study-print-view[open]) {overflow:hidden}
.study-print-bar,.study-print-tools {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;background:linear-gradient(112deg,#282922,#171815);color:#eee6d3}
.study-print-bar {border-bottom:1px solid #716555}
.study-print-bar strong {font:500 clamp(18px,2vw,29px)/1.15 Georgia,serif}
.study-print-tools {border-top:1px solid #49463a}
.study-print-tools p {font:15px/1.45 Georgia,serif;color:#ded8ca;margin:0;max-width:75ch}
.study-print-view button {flex:none}
.study-print-image {display:grid;place-items:center;overflow:auto;overscroll-behavior:contain;min-height:0;min-width:0;background:#0d0f0e}
.study-print-image img {display:block;position:static;width:100%;height:100%;min-height:0;object-fit:contain;border:0;border-radius:0;max-width:none;max-height:none}
.study-print-image[data-zoomed] {display:block}
.study-print-image[data-zoomed] img {width:auto;height:auto;margin:auto}
body[data-study-edition="ember"] .ea-comparison {grid-column:1/-1;justify-self:stretch;margin:0;padding:12px 16px;border-inline-start:3px solid #de9f60;color:#f6ead6;background:#302018ec;font:italic clamp(16px,1.4vw,20px)/1.4 Georgia,serif}
body[data-study-edition="vesper"] .va-drawing-leaves button[aria-pressed=true] {outline:2px solid #a55a39;outline-offset:-3px;box-shadow:inset 0 -5px #a55a39}
body[data-study-edition="northline"] #atlas .nl-print-note {margin:10px 0 0;border-top:1px solid #afa182;padding:9px 0 0;font:italic 16px/1.45 Georgia,serif;color:#314637}
@media(min-width:960px){body[data-study-edition="northline"] .nl-print-note {display:none}}
body[data-study-edition="civic"] .network-map .tt-map-stop {cursor:pointer;pointer-events:all}
body[data-study-edition="civic"] .tt-map-stop[aria-pressed=true] circle:not(.cp-map-hit) {stroke:#362e24;fill:#ffce76;stroke-width:3.5;r:8}
body[data-study-edition="civic"] .tt-map-stop:is(:focus-visible,:hover) .cp-map-hit {stroke:#5c3923;stroke-width:2;stroke-dasharray:4 3}
body[data-study-edition] .edition-lesson :is(.study-reference,.study-scripture a,.study-scripture summary) {display:inline-flex;align-items:center;min-height:40px}
body[data-study-edition] .edition-lesson .study-scripture summary {display:list-item;align-content:center}
@media(max-width:600px){
  dialog.study-print-view[open] {width:100vw;height:100dvh;border-radius:0}
  body[data-study-edition] .study-open-print,.study-print-view button {min-height:44px}
  .study-print-tools,.study-print-bar {padding-inline:12px}
}
@media(max-width:600px) and (orientation:portrait) {
  dialog.study-print-view[open] {width:calc(100% - 16px);height:auto;max-height:94dvh;border-radius:8px;grid-template-rows:auto minmax(0,auto) auto}
  .study-print-image {height:clamp(170px,calc((100vw - 18px) * var(--print-ratio,.58)),58dvh)}
  .study-print-view:has(.study-print-image[data-zoomed]) .study-print-image {height:60dvh}
}
body[data-study-edition] .edition-lesson .study-spread {align-items:start}
.edition-lesson .study-beam-prints {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.edition-lesson .study-beam-prints img {display:block;width:100%;height:auto;aspect-ratio:1.58;object-fit:cover;border-radius:3px}
.edition-lesson .study-beam-prints+.study-keys {margin-top:7px}
.edition-lesson figure svg text {fill:#f3e6ca;stroke:none;font:14px/1.2 system-ui,sans-serif}


body[data-study-edition] .edition-reading-link {
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;width:100%;box-sizing:border-box;
  padding:12px clamp(18px,6vw,110px);min-height:50px;background:var(--study-dark);color:#f5ead8;
  text-decoration:none;border-block:1px solid color-mix(in srgb,var(--study-a) 35%,transparent);
}
.edition-reading-link span {color:var(--study-a);font:600 .72rem/1.4 ui-monospace,monospace;text-transform:uppercase;letter-spacing:.08em}
.edition-reading-link strong {font:normal 1.17rem/1.25 Georgia,serif}
.edition-reading-link em {margin-inline-start:auto;color:var(--study-b);font:600 .84rem/1.4 system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px}
body[data-study-edition] .edition-reading-link:is(:focus-visible,:hover) {outline:2px solid var(--study-a);outline-offset:-3px}
#field-reading {scroll-margin-top:84px}
@media(max-width:600px){
 body[data-study-edition] .edition-reading-link {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px}
 .edition-reading-link span {grid-column:1}.edition-reading-link strong {grid-column:1}
 .edition-reading-link em {grid-column:2;grid-row:1/3}
}
/* The reading and its experiment form one spread in each full edition. */

/* Base inks for each full edition. */
body[data-study-edition="ember"] {--scene-ink:#1c0e0c}
body[data-study-edition="valence"] {--scene-ink:#111512}
body[data-study-edition="vesper"] {--scene-ink:#1a211e}
body[data-study-edition="meridian"] {--scene-ink:#040404}
body[data-study-edition="meridian"].red-light {--scene-ink:#140a09}
body[data-study-edition="northline"] {--scene-ink:#0d201c}
body[data-study-edition="signal"] {--scene-ink:#161016}
body[data-study-edition="civic"] {--scene-ink:#0a2529}
body[data-study-edition="food"] {--scene-ink:#222116}
body[data-study-edition] main > .edition-reading-link {
  border:0;background:var(--scene-ink);box-shadow:none;
}
body[data-study-edition] #field-reading::before {background:none}
body[data-study-edition] #field-reading {border:0}

/* Espresso, roasted cherry and patinated copper. */
html.cf-edition body[data-study-edition="ember"] > header {background:#20100e!important}
html.cf-edition body[data-study-edition="ember"] main {
  background:linear-gradient(95deg,#1d0c0bec,#31130fce 55%,#1a0c0be8),url("editions/surfaces/walnut.webp") center top/980px;
}
html.cf-edition body[data-study-edition="ember"] main .hero.cf-front {
  background:radial-gradient(ellipse at 66% 49%,#53271b,transparent 62%),linear-gradient(135deg,#1c1010,#361813 65%,#200e0c)!important;
}
html.cf-edition body[data-study-edition="ember"] main .hero.cf-front > img.cf-print {
  border:0;box-shadow:none;filter:brightness(.76) saturate(1.28);
  mask-image:linear-gradient(0deg,transparent,#000 14%,#000 84%,transparent),linear-gradient(90deg,transparent,#000 11%,#000 92%,transparent)!important;
  mask-composite:intersect;
}
html.cf-edition body[data-study-edition="ember"] main .hero.cf-front::before {
  background:radial-gradient(ellipse at 18% 48%,#10080760,transparent 65%); 
}
html.cf-edition body[data-study-edition="ember"] main .ea-flight {
  border-block:0;background:linear-gradient(100deg,#210b0be8,#3c1612bd 48%,#1f0e0ca6),url("editions/ember/showcase.webp") center 53%/cover;
}
html.cf-edition body[data-study-edition="ember"] .ea-flight article {
  background:linear-gradient(128deg,#533024,#39201b 64%,#321916);border-color:#8d6047;border-radius:7px;color:#ffe7c8;
}
html.cf-edition body[data-study-edition="ember"] .ea-flight select {color:#ffe3bc;color-scheme:dark}
html.cf-edition body[data-study-edition="ember"] .ea-flight select option {background:#38211c;color:#ffe5c8}
html.cf-edition body[data-study-edition="ember"] .ea-flight .ea-scales i {background:linear-gradient(90deg,#ecaa70 var(--rating),#765748 var(--rating))}
html.cf-edition body[data-study-edition="ember"] #main #cupping-ledger {
  background:linear-gradient(105deg,#26100de6,#30120cb0 55%,#1d0b08c9),url("editions/ember/bench.webp") center 56%/cover!important;
}
html.cf-edition body[data-study-edition="ember"] #main #tasting::after {
  background:linear-gradient(to bottom,var(--scene-ink),transparent 16%,transparent 83%,var(--scene-ink))!important;
}
html.cf-edition body[data-study-edition="ember"] #main #tasting .match-panel {
  background:linear-gradient(118deg,#45231f,#351b18 63%,#281511)!important;
  border:1px solid #86563b;border-radius:7px;box-shadow:0 7px 22px #14080766;color:#f7dfbf;
}
html.cf-edition body[data-study-edition="ember"] #tasting .match-panel :is(form,legend,label,span,p,strong,h3,.profile-link) {color:#f6dcc0}
html.cf-edition body[data-study-edition="ember"] #tasting #match-result .profile-link {color:#ffc294}
html.cf-edition body[data-study-edition="ember"] #match-form input {accent-color:#efa86c;color-scheme:dark}
html.cf-edition body[data-study-edition="ember"] main #brew.brew.shell {
  width:100%;max-width:none;box-sizing:border-box;margin-inline:0;padding-inline:max(5%,calc((100% - 1380px)/2));
  background:linear-gradient(115deg,#29100dd9,#24110dc9),url("editions/surfaces/walnut.webp") center/940px!important;
}
html.cf-edition body[data-study-edition="ember"] #main #brew .brew-etching {
  display:grid;grid-template-columns:minmax(65px,.68fr) minmax(0,1fr);align-items:center;gap:clamp(12px,1.4vw,22px);
  width:min(100%,355px);max-width:100%;box-sizing:border-box;min-width:0;padding:12px 16px;margin:16px 0 0;
  border:1px solid #9a6f49;border-radius:5px;background:linear-gradient(125deg,#c8a477,#b59469);
  box-shadow:0 4px 9px #170b0847;
}
html.cf-edition body[data-study-edition="ember"] #main #brew .brew-etching img {width:100%;height:72px;min-width:0;object-fit:contain}
html.cf-edition body[data-study-edition="ember"] #main #brew .brew-etching figcaption {
  position:static;inset:auto;margin:0;max-width:none;min-width:0;padding:0;color:#302013;text-align:left;font:italic clamp(15px,1.2vw,19px)/1.35 Georgia,serif;
}
html.cf-edition body[data-study-edition="ember"] #main #brew .calculator {
  background:linear-gradient(120deg,#4b2b21,#352019 64%,#2c1914)!important;
  color:#fee2ba;border:1px solid #916546;border-radius:7px;box-shadow:0 8px 22px #180a0755;
}
html.cf-edition body[data-study-edition="ember"] #main #brew .calculator :is(h3,label,p,output,.recipe,.recipe strong,small,dt,dd,figcaption,strong,span,b) {color:#fae2c3}
html.cf-edition body[data-study-edition="ember"] #main #brew .calculator :is(select,input) {
  background:#291712!important;color:#ffe5bf!important;color-scheme:dark;border-color:#a47b58;
}
html.cf-edition body[data-study-edition="ember"] #main #brew .calculator .scale-dial b {color:#3a2519}
html.cf-edition body[data-study-edition="ember"] #main #brew .calculator :is(.dose-presets button,.dose-presets button *) {color:inherit}
html.cf-edition body[data-study-edition="ember"] #main #brew .calculator button.cf-dose small {color:inherit}
html.cf-edition body[data-study-edition="ember"] #main #coffee .products>.product {background:#c6a782;color:#2c1b15;border-color:#926d4c}
html.cf-edition body[data-study-edition="ember"] #main #coffee .product-copy :is(p,small,.eyebrow) {color:#41291c}
@media(max-width:650px){
 html.cf-edition body[data-study-edition="ember"] main #brew.brew.shell {padding-inline:16px}
 html.cf-edition body[data-study-edition="ember"] #main #brew .brew-etching {padding:9px 13px}
}

/* Paper remains lighter than its setting, with separate stocks for each edition. */

html.cf-edition body[data-study-edition="ember"] #main #brew {align-items:stretch}
html.cf-edition body[data-study-edition="ember"] #main #brew > div:first-child {
  justify-content:flex-end;border-radius:6px;border-color:#7c513a;
  background:linear-gradient(90deg,#210e09ed,#23100a94 68%,#23100a35),linear-gradient(0deg,#21110bef 8%,#23100a78 51%,transparent 80%),url("editions/ember/bench.webp") center/cover;
}
html.cf-edition body[data-study-edition="ember"] #main #match-form label:has(input[name="match-method"]:checked) span {color:#342016}
html.cf-edition body[data-study-edition="ember"] #main #match-form label:has(input:focus-visible) {outline:2px solid #f9bd84;outline-offset:3px}
html.cf-edition body[data-study-edition="ember"] #match-form .choice-set input[type="radio"] {accent-color:#e5a273}
html.cf-edition body[data-study-edition="ember"] #main #roastery .roast-process article {background:#c6a681}
html.cf-edition body[data-study-edition="ember"] #main #roastery .roast-process article p {color:#39261c!important}
html.cf-edition body[data-study-edition="northline"] main {
  background:linear-gradient(105deg,#0b251fee,#132c22d6 52%,#0e201be8),url("editions/surfaces/canvas.webp") center/900px!important;
}
html.cf-edition body[data-study-edition="northline"] main #field {
  width:100%;max-width:none;box-sizing:border-box;padding-inline:max(5%,calc((100% - 1360px)/2));box-shadow:none;
}
html.cf-edition body[data-study-edition="northline"] #routes .route {background:#c5c3a5;color:#20362b}
body[data-study-edition="food"] #nutrition {--paper:#cec2a4}
body[data-study-edition="food"] #nutrition .nut-recipe {background:linear-gradient(115deg,#d6c6a6,#beb18e)}
html body[data-study-edition="vesper"] main #materials .sample-controls,
html body[data-study-edition="vesper"] main #inquiry form,
html body[data-study-edition="vesper"] main #work .project {background:linear-gradient(118deg,#c6baa1,#b2aa93);color:#242b24}
html.cf-edition body[data-study-edition="northline"] main #atlas .atlas-detail,
html.cf-edition body[data-study-edition="northline"] main #atlas .nl-contact-register button {background:#c3c5a8;color:#213327}
html.cf-edition body[data-study-edition="northline"] main #atlas .nl-contact-register button[aria-pressed="true"] {background:#dfc48c}
.edition-lesson .study-observation > .reading-series {
  margin: 0 0 .75rem; color: var(--study-a); font: 650 .75rem/1.4 ui-monospace,monospace;
  letter-spacing: .12em; text-transform: uppercase;
}
.edition-lesson .study-observation > p:not(.reading-series) {
  max-width: 59ch; font-size:clamp(1rem,1.18vw,1.15rem); line-height:1.63;
}
.edition-lesson .reading-print {width:100%;max-width:560px;border:0;padding:0;background:transparent}
.edition-lesson .reading-print img {display:block;position:static;width:100%;height:clamp(140px,17vw,220px);object-fit:cover;border-radius:5px}
body[data-study-edition="vesper"] .reading-print img {height:auto}
.edition-lesson .reading-print figcaption {margin:0;padding:8px 0 0}
.edition-lesson .reading-direction,.edition-lesson .reading-take {font:normal .98rem/1.55 system-ui,sans-serif;color:#ece1d1;margin:10px 0 16px}
.edition-lesson .reading-stage {box-sizing:border-box;isolation:isolate;overflow:hidden;border-radius:7px;border:1px solid color-mix(in srgb,var(--study-a) 32%,transparent);background:linear-gradient(135deg,#ffffff06,transparent 65%),#0c1010;}
.edition-lesson .reading-stage svg {display:block;width:100%;height:auto;position:static}
.edition-lesson .reading-stage text {fill:#f5e9d5;stroke:none;font:14px/1 system-ui,sans-serif;letter-spacing:0}
.reading-stage .rd-guide {stroke:#b6c8c164;fill:none;stroke-dasharray:4 5}
.reading-stage .rd-material {fill:#95704d;stroke:#e5c198}.reading-stage .rd-glass {stroke:#bad6de;stroke-width:3}
.reading-stage .rd-shade {fill:#6d9298}.reading-stage .rd-ray {stroke:#f9d487;stroke-width:2;fill:none}
.reading-stage .rd-ground,.reading-stage .rd-line {stroke:var(--study-a);stroke-width:3;fill:none}
.reading-stage .rd-connection {stroke:var(--study-b);stroke-width:3;fill:none}
.reading-stage .rd-dot,.reading-stage .rd-near,.reading-stage .rd-coffee {fill:var(--study-a)}
.reading-stage .rd-far,.reading-stage .rd-water {fill:var(--study-b)}.reading-stage .rd-track {fill:#ffffff16}
.reading-stage .rd-wave,.reading-stage .rd-hill {fill:color-mix(in srgb,var(--study-a) 36%,transparent);stroke:var(--study-a);stroke-width:2}
.edition-lesson .reading-lane {position:relative;aspect-ratio:2.39}
.edition-lesson .reading-lane img {display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.edition-lesson .reading-lane img:nth-child(2){clip-path:inset(0 calc(100% - var(--wipe)) 0 0)}
.edition-lesson .reading-lane i {position:absolute;inset:0 auto 0 var(--wipe);width:2px;background:#ffe2a5;box-shadow:0 0 4px #19160f}
.edition-lesson .reading-controls {display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:.8rem}
.edition-lesson .reading-slider {display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;width:100%;margin:0;color:#f5e8d5;font:600 .91rem/1.4 system-ui,sans-serif}
.edition-lesson .reading-slider b {color:var(--study-a);font-variant-numeric:tabular-nums}
.edition-lesson .reading-slider input[type=range] {display:block;grid-column:1/-1;width:100%;height:36px;min-height:36px;position:static;margin:0;padding:0;appearance:auto;accent-color:var(--study-a);cursor:pointer}
.edition-lesson .reading-controls button {appearance:none;position:static;display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-height:44px;border:1px solid var(--study-a);border-radius:5px;color:#f5e8d5;background:var(--study-dark);font:600 .88rem/1.3 system-ui,sans-serif;letter-spacing:0;text-transform:none;padding:8px 12px;cursor:pointer}
.edition-lesson .reading-controls button[aria-pressed=true] {color:#161915;background:var(--study-a)}
.edition-lesson .reading-result {min-height:2.7em;margin:8px 0 18px;color:var(--study-a);font:500 .92rem/1.4 ui-monospace,monospace}
.edition-lesson .study-question h4 {margin:0;padding-top:1.1rem;border-top:1px solid #fff3;color:inherit;font:500 clamp(19px,1.6vw,24px)/1.25 Georgia,serif;letter-spacing:0;text-transform:none}
.edition-lesson .reading-take {margin-top:18px;padding-inline-start:13px;border-inline-start:2px solid var(--study-b);color:#eee1cd;font:italic 1.06rem/1.5 Georgia,serif}
body[data-study-edition="meridian"].red-light .reading-print img {filter:grayscale(1) sepia(1) saturate(5) hue-rotate(320deg) brightness(.55)}
@media(max-width:720px){
  body[data-study-edition] .edition-lesson {padding:34px clamp(14px,4vw,28px)}
  .edition-lesson .study-spread {gap:18px}
  .edition-lesson .study-observation h2 {font-size:clamp(32px,7.6vw,48px)}
  .edition-lesson .reading-print img {height:clamp(120px,32vw,190px)}
}

