@font-face {
  font-family: Outfit;
  src: url("./fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Outfit;
  src: url("./fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: Outfit, "Avenir Next", "Century Gothic", Arial, sans-serif;
  --blue: #5264d6;
  --blue-deep: #3f4fb0;
  --warm: #ffb478;
  --black: #222638;
  --white: #fff;
  --grey: #81879d;
  --bg: #f6f6fa;
  --surface: #fff;
  --ink: #222638;
  --muted: #545a71;
  --line: #d4d7e4;
  --soft: #eeeef7;
  --accent-soft: #e7e9fc;
  --accent: #3f4fb0;
  --focus: #3f4fb0;
  --edge: clamp(20px, 4.1vw, 64px);
  --width: 1320px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #191c28;
  --surface: #232738;
  --ink: #f2effb;
  --muted: #c6c8d9;
  --line: #464a60;
  --soft: #2a2e43;
  --accent-soft: #30385d;
  --accent: #b8c2ff;
  --focus: #b8c2ff;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191c28;
    --surface: #232738;
    --ink: #f2effb;
    --muted: #c6c8d9;
    --line: #464a60;
    --soft: #2a2e43;
    --accent-soft: #30385d;
    --accent: #b8c2ff;
    --focus: #b8c2ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--font); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { border: 0; background: transparent; }
button:disabled { opacity: .38; cursor: default; }
button, a, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.037em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.65rem); font-weight: 780; margin-bottom: .36em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); font-weight: 740; margin-bottom: .55em; }
h3 { font-size: 1.55rem; font-weight: 690; margin-bottom: .5em; }
p { margin-bottom: 1em; }
svg, img { display: block; max-width: 100%; }
img { height: auto; }
.eyebrow {
  display: block;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 10px 19px;
  color: var(--accent);
  font-size: .94rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--accent-soft); color: var(--accent); }
.button.dark { color: #fff; border-color: var(--blue-deep); background: var(--blue-deep); }
.button.dark:hover { background: #334298; border-color: #334298; color: #fff; }
.text-link { display: inline-block; color: var(--accent); font-weight: 600; font-size: .95rem; }
.nojs-note { padding: .85rem var(--edge); background: var(--soft); color: var(--muted); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px; background: var(--surface); }
.skip-link:focus { top: 10px; }

.site-header {
  min-height: 68px;
  padding: 12px var(--edge);
  display: flex;
  gap: 2rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.brand-wordmark { font-size: 1.04rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.03; }
.brand-wordmark strong { font-size: 1.18rem; font-weight: 790; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.main-nav { display: flex; gap: clamp(15px, 2.4vw, 38px); justify-content: center; flex: 1; }
.main-nav a { position: relative; font-weight: 550; font-size: .94rem; text-decoration: none; }
.main-nav a[aria-current] { color: var(--accent); }
.main-nav a[aria-current]::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--blue);
  left: calc(50% - 2px);
  bottom: -6px;
}
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-link, .header-tools button { min-height: 42px; padding: 6px 8px; }
.search-link { display: inline-flex; align-items: center; gap: .45em; font-size: .94rem; font-weight: 550; text-decoration: none; }
.icon { width: 20px; height: 20px; }
#theme-toggle, #menu-toggle { display: inline-grid; place-items: center; }
#menu-toggle { display: none; font-size: .94rem; font-weight: 600; }
.mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px var(--edge); background: var(--soft); }
.mobile-nav a { padding: 4px 0; }

.hero-band { background: var(--black); color: #fff; }
.home-hero {
  position: relative;
  width: min(var(--width), calc(100% - 2 * var(--edge)));
  margin-inline: auto;
  padding: clamp(32px, 3.7vw, 58px) 0 clamp(34px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(26px, 4.3vw, 70px);
  align-items: start;
  --focus: #b8c2ff;
}
.hero-copy { padding-top: clamp(14px, 3.25vw, 46px); }
.hero-copy::after {
  content: "";
  display: block;
  width: min(280px, 82%);
  height: 45px;
  margin-top: clamp(30px, 4vw, 56px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 45'%3E%3Cg fill='none' stroke-linecap='round' stroke-width='2'%3E%3Cpath stroke='%23676e98' d='M2 6h64m10 0h106m10 0h58M2 22h96m10 0h56m10 0h35M2 38h50m10 0h102'/%3E%3Cpath stroke='%23ffb478' d='M110 22h32'/%3E%3C/g%3E%3C/svg%3E") left center / contain no-repeat;
}
.hero-copy .eyebrow { color: #c8cefc; }
.hero-copy h1 { font-size: clamp(3.15rem, 4.82vw, 4.6rem); line-height: .99; letter-spacing: -.043em; font-weight: 755; text-wrap: initial; margin: 0 0 .36em; }
.hero-copy h1 span { color: #bac3ff; }
.hero-copy>p { max-width: 25rem; font-size: clamp(1.02rem, 1.35vw, 1.23rem); line-height: 1.52; color: #dcdeec; margin-bottom: 1.45rem; }
.hero-copy .button { color: #fff; }
.hero-example { color: var(--ink); --focus: var(--accent); }
.hero-example h2 { margin-bottom: .18em; }
.we-intro { color: var(--muted); margin-bottom: 1.05rem; }
.we-picker { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.we-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.we-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.we-options label {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  text-align: center;
  font-weight: 620;
  line-height: 1.25;
  cursor: pointer;
  touch-action: manipulation;
}
.we-options label:hover { border-color: var(--accent); }
#we-you:focus-visible ~ .we-options [for="we-you"],
#we-someone:focus-visible ~ .we-options [for="we-someone"] { outline: 3px solid var(--focus); outline-offset: 3px; }
#we-you:checked ~ .we-options [for="we-you"],
#we-someone:checked ~ .we-options [for="we-someone"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.we-result { display: none; margin-top: .7rem; padding: clamp(12px, 2vw, 21px); background: var(--soft); border-radius: 6px; }
#we-you:checked ~ [data-pair="you"], #we-someone:checked ~ [data-pair="someone"] { display: block; }
.we-word { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; margin-bottom: .85rem; }
.we-word strong { font-size: clamp(2.25rem, 4.3vw, 3.65rem); letter-spacing: -.048em; color: var(--accent); line-height: 1; }
.we-word span { color: var(--muted); font-size: .93rem; }
.we-participants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.we-participants li { display: grid; align-content: start; justify-items: center; text-align: center; gap: 3px; padding: 8px 5px; border: 1px solid var(--line); border-radius: 4px; line-height: 1.25; }
.we-participants .we-in { border-color: var(--blue); background: var(--accent-soft); }
.we-participants .we-out { border-style: dashed; color: var(--muted); }
.we-person-icon { width: 29px; height: 29px; margin-bottom: 2px; }
.we-participants strong { font-size: .92rem; }
.we-participants span { font-size: .8rem; color: var(--muted); }
.we-links { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; padding-top: 12px; color: var(--muted); font-size: .88rem; }
.we-links a { color: var(--accent); }
.section, .site-footer, .page-shell, .collection-stats { width: min(var(--width), calc(100% - 2 * var(--edge))); margin-inline: auto; }
.section { padding-block: clamp(44px, 6vw, 92px); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.3rem; margin-bottom: 1.65rem; }
.section-heading h2 { margin: 0; max-width: 22ch; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); }
.topic-card { display: flex; flex-direction: column; padding: clamp(18px, 2.3vw, 35px); min-height: 195px; background: var(--surface); text-decoration: none; }
.topic-card:hover { color: var(--ink); background: var(--accent-soft); }
.topic-card:last-child { grid-column: span 2; }
.topic-symbol { display: flex; align-items: flex-start; min-height: 75px; color: var(--ink); }
.topic-symbol svg { width: 78px; height: 58px; }
.topic-card h3 { margin-top: auto; margin-bottom: .42rem; }
.topic-card p { font-size: .94rem; color: var(--muted); margin-bottom: 0; }
.clusivity-figure { margin: 1.2rem 0; }
.clusivity-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clusivity-panel { background: var(--surface); }
.clusivity-figure figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; }

.journey-grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.journey-card, .editorial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 195px;
  padding: clamp(18px, 2.3vw, 30px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: var(--surface);
  text-decoration: none;
}
.journey-card:hover, .editorial-card:hover { background: var(--accent-soft); color: var(--ink); }
.journey-card :is(p, .eyebrow), .editorial-card p { color: var(--muted); }
.journey-card .text-link { margin-top: auto; }
.card-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; color: var(--accent); font-size: .78rem; font-weight: 650; margin-bottom: 1rem; }
.card-meta svg { width: 38px; height: 30px; }
.editorial-card h3 { overflow-wrap: anywhere; }
.editorial-card p { margin-bottom: 0; }
.real-example-section {
  width: auto;
  padding-inline: max(var(--edge), calc((100% - var(--width)) / 2));
  background: var(--black);
  color: #fff;
  --accent: #c6ceff;
  --ink: #fff;
  --muted: #ccd0e1;
  --focus: #b8c2ff;
}
.featured-example { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: stretch; }
.featured-art { margin: 0; position: relative; overflow: hidden; background: #26282a; }
.featured-art img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: 50% 46%; }
.featured-art figcaption { position: absolute; bottom: 0; left: 0; padding: 4px 10px; background: var(--black); color: #ededed; font-size: .75rem; }
.featured-record { padding: clamp(18px, 3vw, 37px); border: 1px solid #535a76; background: #2a2e42; }
.featured-record h3 { margin-bottom: .75rem; }
.featured-record .original-text { margin-bottom: 0; }
.featured-record .text-link { margin-top: 1rem; }
.collection-stats { padding-block: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.collection-stats strong { display: block; color: var(--accent); line-height: 1; font-size: clamp(2.1rem, 4vw, 3.7rem); font-weight: 790; }
.collection-stats span { color: var(--muted); font-size: .91rem; }
.site-footer { padding-block: 38px 24px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 1.5rem; align-items: start; }
.footer-top>p { color: var(--muted); font-size: .94rem; }
.footer-top>div { display: flex; flex-direction: column; gap: 8px; }
.footer-top>div a { font-size: .91rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 30px; color: var(--muted); font-size: .82rem; }

.page-shell { padding-block: 24px clamp(44px, 6vw, 82px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(25px, 4vw, 52px); color: var(--muted); font-size: .84rem; }
.page-intro { position: relative; max-width: 910px; margin-bottom: clamp(27px, 4vw, 48px); padding-left: clamp(12px, 2vw, 26px); border-left: 4px solid var(--blue); }
.page-intro h1 { overflow-wrap: anywhere; }
.page-intro>p { max-width: 43rem; margin-bottom: 0; font-size: clamp(1.04rem, 1.6vw, 1.28rem); color: var(--muted); }
.search-form { margin-bottom: 28px; }
.search-form>label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-input-wrap { display: flex; align-items: center; max-width: 720px; background: var(--surface); border: 1px solid var(--line); padding-left: 13px; }
.search-input-wrap>span { display: flex; align-items: center; color: var(--accent); }
.search-input-wrap input { background: transparent; border: 0; min-width: 0; flex: 1; min-height: 47px; padding: 6px 12px; }
.search-input-wrap button { padding: 8px 14px; color: var(--accent); font-weight: 600; min-height: 44px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.filter-chips button { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; font-size: .88rem; min-height: 36px; }
.filter-chips button:hover { background: var(--accent-soft); }
.filter-chips button[aria-pressed="true"] { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); }
.result-count { color: var(--muted); margin: 14px 0 0; font-size: .9rem; }
.empty-state, .scope-note { background: var(--soft); border-left: 3px solid var(--blue); padding: clamp(16px, 3vw, 36px); }
.scope-note { color: var(--muted); margin: 22px 0; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(200px, 275px); gap: clamp(30px, 6vw, 96px); }
.reading-layout .page-intro h1 { font-size: clamp(2.6rem, 4.7vw, 4.2rem); }
.article-body { max-width: 750px; font-size: 1.13rem; line-height: 1.72; }
.article-body h2 { font-size: clamp(1.62rem, 2.6vw, 2.13rem); line-height: 1.16; margin: 1.2em 0 .45em; }
.article-body p { margin-bottom: 1.15em; }
.article-body>h2:first-child, .article-body section:first-child h2 { margin-top: 0; }
.reading-aside { padding-top: 12px; }
.aside-box { border-top: 3px solid var(--blue); background: var(--surface); padding: 17px; margin-bottom: 16px; }
.aside-box p { color: var(--muted); font-size: .94rem; }
.aside-box a:not(.button), .aside-box>button { display: block; font-size: .93rem; margin-bottom: .55rem; text-decoration: underline; text-align: left; padding: 0; }
.takeaway { border-left: 4px solid var(--blue); background: var(--soft); padding: clamp(17px, 3vw, 30px); margin: 30px 0; }
.takeaway p { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 560; margin: 0; }
.takeaway ul { margin: 0; padding-left: 20px; }
.source-links { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 19px; font-size: .92rem; line-height: 1.55; }
.source-links>strong { color: var(--accent); }
.source-links ol { padding-left: 20px; }
.source-links li { margin-bottom: .9rem; }
.source-links li>span { display: block; color: var(--muted); font-size: .84rem; }
.register-link { display: inline-block; color: var(--accent); font-size: .84rem; margin-top: 3px; }
.related-section { border-top: 1px solid var(--line); margin-top: clamp(35px, 5vw, 65px); padding-top: clamp(24px, 4vw, 44px); }
.related-section h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; border-block: 1px solid var(--line); padding-block: 16px; margin: 20px 0 28px; }
.profile-facts span { color: var(--accent); display: block; font-size: .8rem; font-weight: 650; letter-spacing: .06em; }
.autonym { font-size: 2rem; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .93rem; margin: 16px 0; }
table caption { padding: 0 0 9px; color: var(--muted); text-align: left; font-size: .88rem; }
th, td { border-bottom: 1px solid var(--line); vertical-align: top; padding: .68rem .75rem; overflow-wrap: anywhere; }
th { font-weight: 660; }
thead th { background: var(--soft); }
td a { font-size: .84rem; }
.example-detail { max-width: 880px; padding: clamp(18px, 4vw, 42px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.example-label { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: 13px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.original-text { font-size: clamp(1.42rem, 2.6vw, 2.35rem); font-weight: 580; line-height: 1.45; overflow-wrap: anywhere; }
.interlinear { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; margin: 16px 0; }
.interlinear>div { display: flex; flex-direction: column; gap: 2px; padding: .4rem .55rem; background: var(--soft); font-size: .98rem; overflow-wrap: anywhere; min-width: 0; }
.interlinear>div>span+span { color: var(--muted); font-size: .82rem; font-variant: small-caps; }
.real-example-section .interlinear>div { background: #373c58; }
.translation { font-size: clamp(1.17rem, 2.2vw, 1.6rem); margin-bottom: 0; }
.editorial-note { color: var(--muted); margin-top: 1rem; }
.record-meta { border-top: 1px solid var(--line); padding-top: 12px; margin: 22px 0; }
.record-meta>div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 12px; margin: 9px 0; font-size: .94rem; }
.record-meta dt { color: var(--muted); }
.record-meta dd { margin: 0; overflow-wrap: anywhere; }

.experiment-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 58px); align-items: start; }
.experiment-page .page-intro { margin-bottom: clamp(18px, 3vw, 34px); }
.experiment-page .page-intro h1 { font-size: clamp(2.15rem, 4.6vw, 3.8rem); }
.experiment-notes { padding: 18px 0 0; }
.experiment-notes>h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.experiment-notes p { color: var(--muted); }
.experiment-notes summary { color: var(--accent); }
.lab-reading { margin-top: 40px; }
.laboratory { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 7px; padding: clamp(13px, 2vw, 25px); min-width: 0; }
.lab-prompt { margin: 0 0 .6rem; font-size: clamp(1.12rem, 2vw, 1.42rem); font-weight: 700; line-height: 1.25; }
.lab-choice-grid { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lab-choice-grid[data-choice-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lab-choice-grid[data-choice-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lab-choice-grid button {
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  font-weight: 620;
  font-size: .98rem;
  line-height: 1.25;
}
.lab-choice-grid button:hover { border-color: var(--accent); }
.lab-choice-grid button[aria-pressed="true"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.lab-hint, .lab-setting-hint { margin: .58rem 0 0; color: var(--muted); font-size: .91rem; }
.lab-core { margin-top: .8rem; max-width: 34rem; }
.lab-start { margin-bottom: .9rem; }
.lab-disclosure { margin-top: 12px; }
.lab-disclosure summary { min-height: 32px; color: var(--accent); }
.lab-disclosure>p { color: var(--muted); }
.lab-footer { padding-top: 9px; border-top: 1px solid var(--line); margin-top: 13px; }
.lab-next { margin-top: 10px; }
.lab-topline { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 8px; }
.model-tag { font-size: .73rem; font-weight: 650; line-height: 1.25; color: var(--muted); }
.model-tag::before { content: ""; display: inline-block; width: .46em; height: .46em; margin: 0 .48em .14em 0; background: var(--blue); }
.lab-actions { display: flex; gap: 2px; flex: none; }
.lab-actions button { min-height: 36px; font-size: .86rem; font-weight: 620; color: var(--accent); padding-inline: 6px; white-space: nowrap; }
.lab-actions button:hover { background: var(--accent-soft); }
.sentence-tiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0 0 .85rem; }
.tile { min-width: 0; color: var(--ink); background: var(--soft); border-top: 2px solid var(--line); border-radius: 4px; padding: 7px 8px 0; }
.sentence-order { margin: 10px 0 0; }
.sentence-order .tile { padding-bottom: 7px; text-align: center; }
.lab-setting-hint + .sentence-tiles { margin-top: 6px; }
.tile-mira { background: var(--accent-soft); border-top-color: var(--blue); }
.tile-sol { border-top-color: var(--grey); }
.tile-cups { border-top-color: var(--warm); }
.tile-role { display: block; color: var(--muted); font-size: .71rem; line-height: 1.2; }
.tile strong { font-size: clamp(.86rem, 1.4vw, 1.22rem); line-height: 1.2; font-weight: 650; overflow-wrap: anywhere; }
.tile-buttons { display: flex; justify-content: space-between; }
.tile-buttons button { min-width: 26px; min-height: 37px; padding: 0; font-size: .98rem; color: var(--accent); }
.tile-buttons button:hover:not(:disabled) { background: var(--surface); }
.lab-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: .85rem 0; }
.control { display: block; min-width: 0; }
.control>span { display: block; font-size: .85rem; font-weight: 580; margin-bottom: .28rem; }
select {
  appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' stroke='%237a868e' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 10px center / 11px auto no-repeat;
  border: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  min-height: 43px;
  padding: 7px 24px 7px 9px;
  font-size: .94rem;
}
.lab-result { border-left: 3px solid var(--blue); background: var(--soft); padding: 12px 14px; }
.lab-result>strong { display: block; font-size: clamp(1.2rem, 2.1vw, 1.68rem); line-height: 1.14; font-weight: 690; overflow-wrap: anywhere; }
.lab-result>p { color: var(--muted); font-size: .93rem; margin: 5px 0 0; }
.share-status { font-size: .86rem; color: var(--muted); margin: 8px 0 0; }
.share-status:empty { display: none; }
details { padding-top: 12px; border-top: 1px solid var(--line); }
summary { font-weight: 620; }
details p { margin-top: .7em; }
.check-control, .step-check { display: flex; gap: 8px; align-items: center; font-size: .94rem; min-height: 42px; }
input[type="checkbox"], input[type="radio"], progress { accent-color: var(--blue-deep); }
.check-control input, .step-check input { width: 19px; height: 19px; flex: none; }
.large-category { color: var(--accent); font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; font-weight: 680; }
.diagram-note { color: var(--muted); font-size: .87rem; text-align: center; }
.puzzle-options { min-width: 0; padding: 0; border: 0; margin: 0 0 12px; }
.puzzle-options legend { margin-bottom: 9px; font-size: 1.13rem; font-weight: 650; }
.puzzle-answers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.puzzle-options label { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.puzzle-options label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.journey-introduction { max-width: 920px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; color: var(--muted); font-size: 1.08rem; }
.journey-progress { background: var(--soft); padding: 19px 24px; max-width: 920px; }
.journey-progress label { display: flex; justify-content: space-between; font-weight: 620; }
.journey-progress progress { width: 100%; height: 10px; }
.journey-progress small { color: var(--muted); margin-left: 8px; }
.journey-progress button { padding: 7px 0; text-decoration: underline; color: var(--accent); font-size: .89rem; }
.journey-steps { list-style: none; padding: 0; max-width: 920px; }
.journey-steps li { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); border-top: 1px solid var(--line); padding: 20px 0; }
.journey-steps li>div { flex: 1; min-width: 0; }
.journey-steps .eyebrow { margin-bottom: 5px; }
.journey-steps h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.5vw, 1.85rem); }
.journey-steps h2 a { text-decoration: none; }
.journey-steps p { margin: 0; color: var(--muted); }
.step-number { color: var(--accent); font-size: 1.7rem; line-height: 1; font-weight: 790; }
.completed .step-number { color: var(--muted); }
.comparison-builder { margin-block: 24px 45px; }
.comparison-controls { display: flex; align-items: flex-end; gap: 10px; padding: 15px; background: var(--soft); }
.comparison-controls label { display: block; flex: 1; max-width: 410px; min-width: 0; font-size: .91rem; }
.comparison-controls select { display: block; margin-top: 6px; background-color: var(--surface); }
.comparison-controls>button { min-width: 35px; height: 43px; font-size: 1.4rem; color: var(--accent); }
.comparison-table { table-layout: fixed; }
.comparison-table th, .comparison-table td { padding: .7em .55em; }
.cell-sources, .unknown { font-size: .84rem; color: var(--muted); }
.cell-sources { display: block; margin-top: 6px; }
.glossary-list>div { display: grid; grid-template-columns: minmax(125px, 220px) minmax(0, 1fr); gap: 20px; border-top: 1px solid var(--line); padding: 19px 0; max-width: 970px; }
.glossary-list dt { font-weight: 680; font-size: 1.28rem; }
.glossary-list dd { margin: 0; }
.glossary-list dd p { margin-bottom: 8px; }
.glossary-list dd a, .glossary-source { font-size: .89rem; }
.glossary-source { margin-left: 10px; color: var(--muted); }
.original-assets { margin: 24px 0 29px; }
.source-register article, .search-result { max-width: 1000px; border-top: 1px solid var(--line); padding: 23px 0; overflow-wrap: anywhere; }
.source-register article h2, .search-result h2 { font-size: clamp(1.42rem, 2.5vw, 1.95rem); margin-bottom: .45em; }
.source-register article>p, .search-result p { color: var(--muted); }
.source-register dl>div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 12px; margin: 8px 0; font-size: .93rem; }
.source-register dt { color: var(--muted); }
.source-register dd { margin: 0; overflow-wrap: anywhere; }
.search-result { display: block; text-decoration: none; }
.search-result p { margin: 0; }
.context-term { position: relative; }
.term-button { display: inline; font: inherit; padding: 0; border-bottom: 1px dotted var(--accent); color: var(--accent); }
.term-definition { display: block; position: absolute; z-index: 2; top: 100%; left: 0; width: min(330px, 75vw); padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: 0 8px 25px #0002; font-size: .91rem; }
.term-definition strong, .term-definition a { display: block; }
.error-page { min-height: 62vh; padding-top: clamp(45px, 10vw, 125px); }
.error-page>.text-link { margin: 10px 0 10px 15px; }

@media (max-width: 960px) {
  .site-header { gap: 12px; }
  .main-nav { gap: 15px; }
  .search-link span { display: none; }
  .home-hero { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); }
  .hero-copy h1 { font-size: clamp(2.5rem, 4.7vw, 4.5rem); }
  .reading-layout { gap: 25px; grid-template-columns: minmax(0, 1fr) 218px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  #menu-toggle { display: inline-grid; }
  .site-header { min-height: 64px; padding-block: 8px; }
  .hero-copy { padding-top: 0; }
  .hero-copy::after { display: none; }
  .home-hero, .featured-example, .experiment-layout, .reading-layout { grid-template-columns: minmax(0, 1fr); }
  .home-hero { gap: 25px; }
  .clusivity-panels { gap: 7px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 8.35vw, 4.5rem); }
  .hero-copy .hero-title-break { display: none; }
  .hero-copy>p { margin-bottom: 1rem; }
  .topic-grid, .journey-grid, .card-grid, .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-card { min-height: 155px; }
  .topic-symbol { min-height: 58px; }
  .topic-symbol svg { width: 61px; height: 46px; }
  .reading-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .experiment-notes { padding-top: 0; }
  .experiment-page .breadcrumbs { margin-bottom: 16px; }
  .experiment-page .page-intro .eyebrow { margin-bottom: .56rem; }
  .term-definition { position: static; width: 100%; margin-block: 7px; }
  .featured-art img { min-height: 0; aspect-ratio: 1.8; }
}

@media (max-width: 465px) {
  .brand-mark { width: 32px; height: 32px; }
  .brand { gap: 7px; }
  .brand-wordmark { font-size: .91rem; }
  .brand-wordmark strong { font-size: 1.03rem; }
  .header-tools { gap: 0; }
  .home-hero { padding-block: 30px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 9.9vw, 3.13rem); }
  .hero-copy h1 span { white-space: nowrap; }
  .section-heading { display: block; }
  .clusivity-panels { grid-template-columns: minmax(0, 1fr); }
  .clusivity-panel { max-width: 330px; margin-inline: auto; }
  .section-heading>.text-link { margin-top: 8px; }
  .journey-grid, .card-grid, .reading-aside, .journey-introduction { grid-template-columns: minmax(0, 1fr); }
  .journey-card, .editorial-card { min-height: 0; }
  .collection-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .we-options label { font-size: .91rem; }
  .model-tag, .tile-role { font-size: .68rem; }
  .tile { padding-inline: 4px; }
  .tile-buttons button { min-height: 40px; }
  .lab-actions button { font-size: .77rem; }
  .lab-controls select { font-size: .85rem; padding-left: 6px; }
  .lab-choice-grid button { font-size: .9rem; }
  .lab-choice-grid[data-choice-count="4"], .puzzle-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control>span { font-size: .84rem; }
  .glossary-list>div, .record-meta>div, .source-register dl>div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .journey-steps li { flex-wrap: wrap; }
  .step-check { margin-left: auto; }
  .comparison-controls { padding: 9px; gap: 5px; }
  .comparison-table, table { font-size: .84rem; }
  .cell-sources, .cell-sources a { font-size: .75rem; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .reading-aside, .lab-actions, .search-form { display: none; }
  body { background: white; color: black; }
  .page-shell, .section { width: auto; }
  .reading-layout, .experiment-layout { display: block; }
  .editorial-card, .example-detail, .laboratory { break-inside: avoid; }
}
