/* the readable pages: the same dark, calm look as the walk, built to read well and load fast */
@font-face { font-family: 'Quint'; src: url('/assets/fonts/Quint-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Quint'; src: url('/assets/fonts/Quint-Normal.ttf') format('truetype'); font-weight: 400; font-display: swap; }
/* one palette with the walk-through (css/style.css, :root[data-theme]); the page takes the visitor's saved choice or their device's (Nikita, 14 Nov 2026: "a continuum across all the pages") */
:root, :root[data-theme="dark"] { --bg: #0D090F; --card: #1A1226; --ink: #F0EBF7; --muted: #A99CC4; --line: rgba(197,187,222,.3); --accent: #DBDE5B; --sky: #83B9E5; color-scheme: dark; }
:root[data-theme="light"] { --bg: #F5F0FC; --card: #F1EEF2; --ink: #1B1030; --muted: #5B4C7A; --line: rgba(63,76,120,.32); --accent: #7E8418; --sky: #3784D0; color-scheme: light; }
/* light pages for visitors whose phone or computer is set to light (Nikita, 18 Oct 2026); the same light palette as the walk-through */
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --bg: #F5F0FC; --card: #F1EEF2; --ink: #1B1030; --muted: #5B4C7A; --line: rgba(63,76,120,.32); --accent: #7E8418; --sky: #3784D0; color-scheme: light; } }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); transition: background .4s, color .4s; font-family: 'Barlow', system-ui, sans-serif; font-size: 19px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 920px; margin: 0 auto; padding: 22px 20px 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: 'Quint', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; }
.brand img { border-radius: 10px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-family: 'Quint', sans-serif; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
main { max-width: 760px; margin: 0 auto; padding: 18px 20px 60px; }
.crumbs { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.crumbs a { color: var(--muted); }
h1 { font-family: 'Quint', sans-serif; font-weight: 700; font-size: clamp(30px, 5.4vw, 46px); line-height: 1.12; letter-spacing: .03em; margin: 22px 0 14px; text-transform: uppercase; }
h2 { font-family: 'Quint', sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 38px 0 10px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 16px; }
.lead { font-size: 22px; line-height: 1.5; }
ul, ol { padding-left: 1.2em; margin: 0 0 16px; }
li { margin: 0 0 8px; }
.essays, .areas { list-style: none; padding: 0; }
.essays li, .areas li { padding: 14px 0; border-top: 1px solid var(--line); }
.essays a, .areas a { font-size: 21px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; padding: 3px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--muted); }
details { border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 500; }
.hero { width: 100%; height: auto; border-radius: 14px; margin: 6px 0 18px; display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; display: block; }
.gallery figcaption { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 6px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.cta { margin: 34px 0 0; }
.btn { display: inline-block; padding: 13px 24px; border: 2px solid var(--accent); border-radius: 999px; color: var(--accent); text-decoration: none; font-family: 'Quint', sans-serif; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.btn:hover { background: var(--accent); color: var(--bg); }
footer { max-width: 760px; margin: 0 auto; padding: 24px 20px 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
h3 { font-family: 'Quint', sans-serif; font-weight: 400; font-size: 18px; letter-spacing: .06em; margin: 26px 0 6px; }
h3 a { color: var(--ink); }
.steps { padding-left: 1.3em; }
.projects { list-style: none; padding: 0; margin: 0 0 16px; }
.projects li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); margin: 0; }
.projects img { width: 240px; height: 160px; object-fit: cover; border-radius: 10px; flex: none; display: block; }
.projects .pt { font-size: 21px; }
.eps { padding-left: 1.4em; }
.eps li { padding: 8px 0; }
.eps ul { margin: 6px 0 0; }
.eps ul li { padding: 0; margin: 0 0 4px; font-size: 16px; color: var(--muted); }
dl.board { margin: 0 0 14px; display: grid; grid-template-columns: 9.5em 1fr; gap: 6px 16px; font-size: 17px; }
dl.board dt { color: var(--muted); font-family: 'Quint', sans-serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding-top: 4px; }
dl.board dd { margin: 0; }
@media (max-width: 560px) { .projects li { flex-direction: column; gap: 10px; } .projects img { width: 100%; height: auto; aspect-ratio: 3 / 2; } dl.board { grid-template-columns: 1fr; gap: 0; } dl.board dd { margin-bottom: 10px; } }
.video { position: relative; aspect-ratio: 16 / 9; margin: 16px 0 10px; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { body { font-size: 18px; } .lead { font-size: 20px; } }
.faq-index .chips li { padding: 0; }
.faq-index .chips a { display: block; padding: 4px 14px; color: var(--ink); text-decoration: none; }
.faq-index .chips li:hover { border-color: var(--accent); }
.faq-group { scroll-margin-top: 14px; }
.faq-group h3 { margin: 24px 0 4px; scroll-margin-top: 14px; }

/* a picture of an episode that leads to its own page (each video plays on exactly one page) */
.vthumb { display: block; position: relative; max-width: 480px; margin: 12px 0 18px; border-radius: 10px; overflow: hidden; text-decoration: none; }
.vthumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.vthumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(to top, rgba(13,9,15,.85), rgba(13,9,15,0)); color: #F1EEF2; font-size: 14px; }
.vthumb:hover img, .vthumb:focus-visible img { filter: brightness(1.08); }
.epnav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.aud { border-left: 3px solid #B49BE0; padding: 2px 0 2px 16px; margin: 18px 0 22px; }
.aud h3 { margin-top: 4px; }
.aud .asks { margin: 8px 0; }
/* moodboards on the students page (Nikita, 18 Oct 2026): the board, then its notes, palette and save buttons */
.mboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; margin: 8px 0 30px; }
.mboard img { width: 100%; height: auto; border-radius: 14px; display: block; }
.mb-side { min-width: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.swatches span { display: inline-flex; align-items: center; gap: 6px; }
.swatches i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); border: 1px solid var(--line); }
.mb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.ghost { border-color: var(--line); color: var(--ink); }
@media (max-width: 640px) { .mboard { grid-template-columns: 1fr; } }
.mb-side .board { grid-template-columns: 1fr; gap: 2px 0; }
.mb-side .board dt { margin-top: 10px; }
.mb-side .board dd { margin: 0; }
/* Justified text (Nikita, 29 Oct 2026): paragraphs, list items, captions and answers flush on both sides */
p, li, dd, blockquote, figcaption { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }

/* Musings (Nov 2026): the numbered sources read left-aligned, with long links allowed to wrap */
ol.sources { padding-left: 22px; font-size: .92em; }
ol.sources li { text-align: left; -webkit-hyphens: none; hyphens: none; margin-bottom: 8px; overflow-wrap: anywhere; }

/* buttons and the line under them never stretch word by word (the justified-text rule above would) */
p.cta, p.cta + p.muted { text-align: left; -webkit-hyphens: none; hyphens: none; }
p.cta .btn { text-align: center; }
p.left { text-align: left; -webkit-hyphens: none; hyphens: none; }

/* ---- Musings and essays: an inclusive reading page (Nikita, 14 Nov 2026: "the fonts are not inclusive") ----
   Atkinson Hyperlegible Next (Braille Institute, SIL OFL), made so similar letters (I l 1, O 0, b d p q) cannot be confused;
   sentence-case headings, text set ragged-right with no hyphens, a comfortable line length, links underlined,
   and reading settings a visitor can change (text size, wider spacing), remembered in their browser. */
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/AtkinsonNext-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/AtkinsonNext-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/AtkinsonNext-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/AtkinsonNext-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/AtkinsonNext-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/AtkinsonNext-latin-ext-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
.reading { font-family: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: calc(20px * var(--rs, 1)); line-height: 1.65; }
.reading p, .reading li { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; max-width: 68ch; }
.reading h1, .reading h2, .reading h3 { font-family: inherit; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
.reading h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.2; }
.reading h2 { font-size: 1.4em; line-height: 1.3; margin: 2em 0 .5em; scroll-margin-top: 16px; }
.reading h3 { font-size: 1.12em; line-height: 1.35; margin: 1.6em 0 .4em; }
.reading .muted { font-size: .85em; }
.reading a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.reading a:hover { text-decoration-thickness: 3px; }
.reading a:focus-visible, .rtools button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.reading.wide { line-height: 1.95; letter-spacing: .035em; word-spacing: .12em; }
.reading.wide p, .reading.wide li { margin-bottom: 1.3em; }
.reading .aud .btn { color: var(--accent); text-decoration: none; }
.rtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 22px; font-size: 16px; color: var(--muted); }
.rtools button { font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; min-width: 44px; min-height: 44px; padding: 0 16px; cursor: pointer; }
.rtools button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.toc { border-left: 3px solid var(--line); padding: 4px 0 4px 16px; margin: 0 0 28px; }
.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 0 0 4px; }

/* the light / dark switch on the readable pages, the same pill as the walk-through's */
.top .theme { font-family: 'Quint', sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.top .theme:hover { border-color: var(--accent); }
.top .theme:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.reading ol.sources li, .reading .toc li { text-align: left; -webkit-hyphens: none; hyphens: none; }

/* the corridor skies of the walk-through behind the readable pages: dark, light, and light when the device asks and nothing is saved */
body { background: linear-gradient(180deg, var(--sa, var(--bg)) 0%, var(--sb, var(--bg)) 100%) fixed, var(--bg); min-height: 100vh; }
body[data-sky="night"] { --sa: #0A070D; --sb: #1D1432; }
:root[data-theme="light"] body[data-sky="night"] { --sa: #F0EAFC; --sb: #D2C4F4; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) body[data-sky="night"] { --sa: #F0EAFC; --sb: #D2C4F4; } }
body[data-sky="dusk"] { --sa: #140919; --sb: #43183A; }
:root[data-theme="light"] body[data-sky="dusk"] { --sa: #FBEBF4; --sb: #F8C5DD; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) body[data-sky="dusk"] { --sa: #FBEBF4; --sb: #F8C5DD; } }
body[data-sky="dawn"] { --sa: #0C0E1F; --sb: #2E2A57; }
:root[data-theme="light"] body[data-sky="dawn"] { --sa: #F1F0FE; --sb: #FEDFCA; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) body[data-sky="dawn"] { --sa: #F1F0FE; --sb: #FEDFCA; } }
body[data-sky="lagoon"] { --sa: #061219; --sb: #0F3A4C; }
:root[data-theme="light"] body[data-sky="lagoon"] { --sa: #E5F4FC; --sb: #B9E1F3; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) body[data-sky="lagoon"] { --sa: #E5F4FC; --sb: #B9E1F3; } }
body[data-sky="ember"] { --sa: #170A0C; --sb: #4A1D22; }
:root[data-theme="light"] body[data-sky="ember"] { --sa: #FDECE6; --sb: #FACAB9; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) body[data-sky="ember"] { --sa: #FDECE6; --sb: #FACAB9; } }
body[data-sky="hearth"] { --sa: #150D08; --sb: #4B2D16; }
:root[data-theme="light"] body[data-sky="hearth"] { --sa: #FDF2E1; --sb: #F9D6AF; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) body[data-sky="hearth"] { --sa: #FDF2E1; --sb: #F9D6AF; } }
/* phones: the light / dark switch sits on the first line beside the logo, the sections below */
@media (max-width: 760px) { .top .brand { order: 0; } .top .theme { order: 1; margin-left: auto; } .top nav { order: 2; flex-basis: 100%; } }
@media (min-width: 761px) { .top { max-width: 1100px; } }
.muted.fine { font-size: 13px; line-height: 1.5; margin-top: 1.4em; }

/* the basics on every readable page (Nikita, 1 Dec 2026: "when I scroll up, I should still see the header... take me to the top, take me to the bottom"):
   the header stays at the top of the window; it slides away while you read down and comes back as soon as you scroll up. Two round buttons in the corner take you to the top or the bottom, each shown only when it is useful */
header.top { position: sticky; top: 0; z-index: 40; transition: transform .3s ease, box-shadow .3s; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 10px; }
header.top::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: color-mix(in srgb, var(--sa, var(--bg)) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s; border-bottom: 1px solid var(--line); }
header.top.stuck::before { opacity: 1; }
header.top.away { transform: translateY(-105%); }
.jump { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 41; display: flex; flex-direction: column; gap: 10px; }
.jump button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 4px 16px rgba(13, 9, 15, .18); transition: opacity .25s, transform .25s, border-color .2s; }
.jump button:hover { border-color: var(--accent); }
.jump button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.jump button[hidden] { display: block; opacity: 0; transform: scale(.7); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { header.top, .jump button { transition: none; } }
/* titles are justified like the text (Nikita, 1 Dec 2026): a title that runs onto two lines fills the measure; a single line, or the last line, stays flush left. No hyphens in titles */
main h1, main h2, main h3 { text-align: justify; text-justify: inter-word; -webkit-hyphens: none; hyphens: none; }
html, body { overflow-x: clip; }
