@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  color-scheme: light;
  --paper: #f1ecdf;
  --paper-light: #f8f5ec;
  --ink: #202b28;
  --muted: #65716a;
  --forest: #203d37;
  --forest-solid: #203d37;
  --on-accent: #f8f5ec;
  --forest-deep: #192f2b;
  --moss: #71816d;
  --rust: #a74c34;
  --muted-strong: #4c5a53;
  --paper-mid: #e7e1d3;
  --paper-deep: #e4dece;
  --surface-reference: #e9e3d5;
  --surface-explorer: #f5f1e7;
  --line: rgba(32, 43, 40, .18);
  --highlight: #d9b783;
  --on-dark-muted: #c5c8b8;
  --on-dark-copy: #e2e3d5;
  --stone-start: #3d5548;
  --stone-mid: #253f37;
  --stone-end: #20372f;
  --stone-wash: rgba(97,111,90,.28);
  --stone-speckle: #e0d5b1;
  --stone-caption: #c5c4a7;
  --stone-mark: #e5dcc4;
  --ornament: #b58a62;
  --forest-ghost: rgba(32,61,55,.035);
  --forest-glyph-ghost: rgba(32,61,55,.18);
  --rust-glyph-ghost: rgba(167,76,52,.26);
  --rust-soft: rgba(167,76,52,.13);
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

html[data-theme="ember"] {
  --paper: #f4e6d8; --paper-light: #fff7ef; --ink: #37251f; --muted: #786056;
  --forest: #743d2b; --forest-solid: #743d2b; --on-accent: #fff7ef; --forest-deep: #4a2922; --moss: #a56a49; --rust: #bd542f;
  --muted-strong: #594238; --paper-mid: #edd8c8; --paper-deep: #ead4c1;
  --surface-reference: #f0dfd1; --surface-explorer: #faefe5; --line: rgba(55,37,31,.18);
  --highlight: #e0a36b; --on-dark-muted: #e3c8b2; --on-dark-copy: #f3e3d7;
  --stone-start: #7a4532; --stone-mid: #603729; --stone-end: #4a2c25; --stone-wash: rgba(178,99,62,.28);
  --stone-speckle: #f0d3b3; --stone-caption: #e0c3a7; --stone-mark: #fae8d5; --ornament: #e0a36b;
  --forest-ghost: rgba(116,61,43,.045); --forest-glyph-ghost: rgba(116,61,43,.18);
  --rust-glyph-ghost: rgba(189,84,47,.24); --rust-soft: rgba(189,84,47,.14);
}

html[data-theme="ocean"] {
  --paper: #e6edf0; --paper-light: #f5f9fa; --ink: #1d2e38; --muted: #5b6d78;
  --forest: #21465a; --forest-solid: #21465a; --on-accent: #f5f9fa; --forest-deep: #173241; --moss: #5d8295; --rust: #b85e4b;
  --muted-strong: #3d535f; --paper-mid: #d8e3e8; --paper-deep: #d4e0e5;
  --surface-reference: #e0e9ed; --surface-explorer: #f0f5f7; --line: rgba(29,46,56,.18);
  --highlight: #c7a17a; --on-dark-muted: #bfd0d8; --on-dark-copy: #e0ebef;
  --stone-start: #33586a; --stone-mid: #244352; --stone-end: #193746; --stone-wash: rgba(91,130,149,.3);
  --stone-speckle: #d4e0e0; --stone-caption: #b9cbd2; --stone-mark: #e3edf0; --ornament: #c7a17a;
  --forest-ghost: rgba(33,70,90,.045); --forest-glyph-ghost: rgba(33,70,90,.18);
  --rust-glyph-ghost: rgba(184,94,75,.24); --rust-soft: rgba(184,94,75,.14);
}

html[data-theme="heather"] {
  --paper: #eee8f0; --paper-light: #faf6fb; --ink: #34293b; --muted: #716679;
  --forest: #4b3b56; --forest-solid: #4b3b56; --on-accent: #faf6fb; --forest-deep: #33273d; --moss: #87718d; --rust: #9b526b;
  --muted-strong: #51475a; --paper-mid: #e3dbe7; --paper-deep: #e1d9e4;
  --surface-reference: #e9e1eb; --surface-explorer: #f5f0f7; --line: rgba(52,41,59,.18);
  --highlight: #c9a17b; --on-dark-muted: #cfc2d1; --on-dark-copy: #eee5f0;
  --stone-start: #654e6d; --stone-mid: #4b3a53; --stone-end: #382b40; --stone-wash: rgba(135,113,141,.3);
  --stone-speckle: #e5d5e0; --stone-caption: #d0c2d0; --stone-mark: #f0e7ef; --ornament: #c9a17b;
  --forest-ghost: rgba(75,59,86,.045); --forest-glyph-ghost: rgba(75,59,86,.18);
  --rust-glyph-ghost: rgba(155,82,107,.24); --rust-soft: rgba(155,82,107,.14);
}

/* Dark mode keeps each palette's identity while remapping surface and text roles. */
html[data-mode="dark"] { color-scheme: dark; }
html[data-mode="dark"][data-theme="forest"], html[data-mode="dark"]:not([data-theme]) {
  --paper: #18211e; --paper-light: #222d29; --ink: #e8e5d9; --muted: #aab5ab;
  --forest: #90aa98; --forest-solid: #30483d; --on-accent: #f0eee4; --forest-deep: #101815; --moss: #a2b596; --rust: #e18a6b;
  --muted-strong: #c5cec4; --paper-mid: #202b26; --paper-deep: #293631; --surface-reference: #202b27; --surface-explorer: #1d2823;
  --line: rgba(232,229,217,.16); --highlight: #e7c58f; --on-dark-muted: #c5c8b8; --on-dark-copy: #e2e3d5;
  --forest-ghost: rgba(144,170,152,.08); --forest-glyph-ghost: rgba(144,170,152,.2); --rust-glyph-ghost: rgba(225,138,107,.23); --rust-soft: rgba(225,138,107,.2);
}
html[data-mode="dark"][data-theme="ember"] {
  --paper: #241b18; --paper-light: #322520; --ink: #f0e4da; --muted: #c0a89a;
  --forest: #e0a078; --forest-solid: #59362b; --on-accent: #fff2e8; --forest-deep: #1b1210; --moss: #d49a72; --rust: #ef936e;
  --muted-strong: #d8c2b5; --paper-mid: #30231e; --paper-deep: #392922; --surface-reference: #30231e; --surface-explorer: #2a201b;
  --line: rgba(240,228,218,.17); --highlight: #e7b77e; --on-dark-muted: #e3c8b2; --on-dark-copy: #f3e3d7;
  --forest-ghost: rgba(224,160,120,.09); --forest-glyph-ghost: rgba(224,160,120,.2); --rust-glyph-ghost: rgba(239,147,110,.23); --rust-soft: rgba(239,147,110,.2);
}
html[data-mode="dark"][data-theme="ocean"] {
  --paper: #172229; --paper-light: #202e36; --ink: #e4edf1; --muted: #a9bec8;
  --forest: #8cb8ce; --forest-solid: #2c4f60; --on-accent: #eff8fb; --forest-deep: #0e1b22; --moss: #90b3c3; --rust: #e18b77;
  --muted-strong: #c1d2d9; --paper-mid: #1e2d35; --paper-deep: #263740; --surface-reference: #1e2d35; --surface-explorer: #1a2931;
  --line: rgba(228,237,241,.17); --highlight: #d7b58c; --on-dark-muted: #bfd0d8; --on-dark-copy: #e0ebef;
  --forest-ghost: rgba(140,184,206,.09); --forest-glyph-ghost: rgba(140,184,206,.2); --rust-glyph-ghost: rgba(225,139,119,.23); --rust-soft: rgba(225,139,119,.2);
}
html[data-mode="dark"][data-theme="heather"] {
  --paper: #211c25; --paper-light: #2d2532; --ink: #eee7f0; --muted: #c0b2c7;
  --forest: #b99bc4; --forest-solid: #4b3a55; --on-accent: #fbf4fc; --forest-deep: #18131b; --moss: #b49abd; --rust: #dc91a7;
  --muted-strong: #d2c5d7; --paper-mid: #2b2430; --paper-deep: #342b39; --surface-reference: #2b2430; --surface-explorer: #27212c;
  --line: rgba(238,231,240,.17); --highlight: #ddbd98; --on-dark-muted: #cfc2d1; --on-dark-copy: #eee5f0;
  --forest-ghost: rgba(185,155,196,.09); --forest-glyph-ghost: rgba(185,155,196,.2); --rust-glyph-ghost: rgba(220,145,167,.23); --rust-soft: rgba(220,145,167,.2);
}
html[data-mode="dark"] .elder-story-section,
html[data-mode="dark"] .rune-toolbar,
html[data-mode="dark"] .note-card { background: var(--paper-light); }
html[data-mode="dark"] .supplied-chart { border-color: var(--line); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--highlight); color: var(--forest-deep); }
a { color: inherit; }
button { font: inherit; }
.page-wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: .55rem .8rem; background: var(--forest-solid); color: var(--on-accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { height: 78px; padding: 0 max(32px, calc((100vw - 1220px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { color: var(--rust); font-size: 23px; letter-spacing: -.16em; line-height: 1; padding-right: 4px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-size: 13px; letter-spacing: .19em; font-weight: 700; }
.brand-name small { margin-top: 5px; color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--muted-strong); font-size: 12px; font-weight: 600; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--rust); }
.language-toggle { border: 1px solid var(--ink); border-radius: 0; padding: 7px 12px; min-width: 76px; background: transparent; color: var(--ink); font: 11px var(--mono); letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s; }
.language-toggle:hover, .language-toggle:focus-visible { background: var(--ink); color: var(--paper-light); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-mode-toggle { min-height: 34px; padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 10px var(--mono); cursor: pointer; transition: background .2s, color .2s; }
.theme-mode-toggle:hover, .theme-mode-toggle:focus-visible { background: var(--ink); color: var(--paper); }
.theme-mode-icon { color: var(--rust); font-size: 14px; line-height: 1; }
.theme-picker { position: relative; z-index: 20; color: var(--ink); }
.theme-picker > summary { min-height: 34px; padding: 6px 9px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); color: var(--ink); font: 10px var(--mono); list-style: none; cursor: pointer; user-select: none; }
.theme-picker > summary::-webkit-details-marker { display: none; }
.theme-picker > summary::after { content: '▾'; margin-left: 1px; color: var(--rust); font-size: 10px; }
.theme-picker[open] > summary { background: var(--paper-light); }
.theme-picker > summary:focus-visible, .theme-option:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.theme-picker-mark { color: var(--rust); font-size: 15px; line-height: 1; }
.theme-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 21; width: 190px; padding: 7px; border: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 12px 30px rgba(20,28,25,.14); }
.theme-option { width: 100%; min-height: 37px; padding: 7px 9px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--ink); font: 11px var(--sans); text-align: left; cursor: pointer; }
.theme-option:hover, .theme-option[aria-pressed="true"] { background: var(--paper); }
.theme-option[aria-pressed="true"] { font-weight: 700; }
.theme-option[aria-pressed="true"]::after { content: '✓'; color: var(--rust); font-size: 12px; }
.theme-swatch { width: 16px; height: 16px; border: 1px solid var(--line); }
.swatch-forest { background: linear-gradient(135deg, #203d37 0 50%, #f1ecdf 50%); }
.swatch-ember { background: linear-gradient(135deg, #743d2b 0 50%, #f4e6d8 50%); }
.swatch-ocean { background: linear-gradient(135deg, #21465a 0 50%, #e6edf0 50%); }
.swatch-heather { background: linear-gradient(135deg, #4b3b56 0 50%, #eee8f0 50%); }

.hero { min-height: 0; padding-block: 78px 62px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-copy { max-width: 650px; padding-bottom: 15px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--rust); font: 10px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 27px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { max-width: 670px; margin-bottom: 20px; font-size: clamp(3.5rem, 6.1vw, 6.1rem); line-height: .99; letter-spacing: -.055em; }
h1 em, h2 em, h3 em { color: var(--rust); font-weight: 500; }
.hero-intro { max-width: 540px; margin-bottom: 28px; color: var(--muted-strong); font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
.button { display: inline-flex; align-items: center; gap: 26px; text-decoration: none; font-size: 12px; font-weight: 600; }
.button-dark { padding: 13px 16px; background: var(--forest-solid); color: var(--on-accent); transition: background .2s, transform .2s; }
.button-dark:hover { background: var(--rust); transform: translateY(-2px); }
.button-dark span:last-child { font-size: 17px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.text-link span:last-child { color: var(--rust); font-size: 15px; transition: transform .2s; }
.text-link:hover span:last-child { transform: translate(2px, -2px); }
.hero-note { display: flex; align-items: center; gap: 9px; margin: 33px 0 0; color: var(--muted); font: 10px var(--mono); }
.note-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rust); }
.hero-art { position: relative; width: 100%; max-width: 470px; justify-self: end; padding: 17px 20px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.13); }
.art-topline, .art-footline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 9px var(--mono); letter-spacing: .11em; }
.art-topline { padding: 0 3px 12px; }
.art-topline span:last-child { color: var(--rust); font-size: 12px; letter-spacing: .22em; }
.rune-stone { position: relative; min-height: 340px; overflow: hidden; padding: 26px 25px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(140deg, var(--stone-wash), transparent 28%), linear-gradient(28deg, var(--stone-start), var(--stone-mid) 52%, var(--stone-end)); color: var(--paper-light); box-shadow: inset 0 0 70px rgba(0,0,0,.2); }
.rune-stone::before, .rune-stone::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.rune-stone::before { opacity: .15; background-image: radial-gradient(circle at 17% 28%, var(--stone-speckle) 0 1px, transparent 1.5px), radial-gradient(circle at 73% 73%, var(--stone-speckle) 0 1px, transparent 1.5px); background-size: 37px 43px, 51px 57px; }
.rune-stone::after { inset: 10px; border: 1px solid rgba(236,229,205,.12); }
.stone-caption { position: absolute; top: 25px; left: 29px; z-index: 1; color: var(--stone-caption); font: 9px var(--mono); letter-spacing: .15em; }
.hero-rune { z-index: 1; margin-top: 2px; color: var(--stone-mark); font-family: 'Noto Sans Runic', 'Segoe UI Symbol', serif; font-size: clamp(7rem, 13vw, 10rem); line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 22px rgba(219,202,158,.16); }
.stone-rule { z-index: 1; width: 62px; height: 1px; margin: 18px 0 14px; background: var(--ornament); }
.stone-copy { z-index: 1; max-width: 220px; display: flex; flex-direction: column; text-align: center; }
.stone-copy span:first-child { font-family: var(--serif); font-size: 17px; }
.stone-copy span:last-child { margin-top: 5px; color: var(--on-dark-muted); font-size: 10px; line-height: 1.6; }
.stone-index { position: absolute; right: 27px; bottom: 24px; z-index: 1; color: var(--stone-caption); font: 9px var(--mono); }
.art-footline { padding: 11px 3px 0; }
.art-foot-runes { color: var(--rust); font-size: 16px; letter-spacing: .24em; }

.fact-ribbon { background: var(--forest-solid); color: var(--on-accent); }
.fact-inner { min-height: 104px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.fact-item { min-height: 48px; padding-inline: 26px; display: flex; align-items: center; gap: 15px; border-right: 1px solid rgba(245,240,221,.22); }
.fact-item:first-child { padding-left: 0; }
.fact-item:last-child { border: 0; }
.fact-number { color: var(--highlight); font-family: var(--serif); font-size: 27px; line-height: 1; white-space: nowrap; }
.fact-item span:last-child { max-width: 150px; color: var(--on-dark-copy); font-size: 10px; line-height: 1.45; }

.section-pad { padding-block: 112px; }
.primer { display: grid; grid-template-columns: 29% 1fr; gap: 8%; }
.section-aside { position: relative; min-height: 260px; padding-top: 3px; }
.aside-glyph { position: absolute; top: 62px; left: 5px; color: rgba(167,76,52,.16); font-family: 'Segoe UI Symbol', serif; font-size: 155px; line-height: 1; }
.aside-caption { position: absolute; z-index: 1; left: 0; bottom: 8px; max-width: 160px; color: var(--muted); font: 10px var(--mono); line-height: 1.6; }
.section-main h2, .section-heading h2, .inscription-intro h2, .reading-title h2, .sources h2 { margin-bottom: 25px; font-size: clamp(2.5rem, 4.2vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.section-main .lead { max-width: 740px; margin-bottom: 21px; color: var(--muted-strong); font-family: var(--serif); font-size: 22px; line-height: 1.5; }
.primer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.primer-columns p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.callout-line { display: flex; align-items: flex-start; gap: 13px; margin-top: 29px; padding-top: 18px; border-top: 1px solid var(--line); }
.callout-mark { color: var(--rust); font-size: 16px; }
.callout-line p { max-width: 610px; margin: 0; color: var(--forest); font-family: var(--serif); font-size: 16px; font-style: italic; }
.rune-key { margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); }
.rune-key-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 11px; }
.rune-key-heading h3 { margin: 0; color: var(--forest); font-size: 17px; }
.rune-key-heading p { max-width: 300px; margin: 0; color: var(--muted); font: 8px/1.6 var(--mono); text-align: right; }
.rune-key-list { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: rgba(255,255,255,.16); }
.rune-key-item { min-height: 67px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; border-right: 1px solid var(--line); }
.rune-key-item:last-child { border-right: 0; }
.key-glyph { color: var(--rust); font: 23px/1.2 'Segoe UI Symbol', serif; }
.key-value { color: var(--muted); font: 9px var(--mono); letter-spacing: .03em; }

.alphabet-section { position: relative; overflow: hidden; background: var(--paper-mid); }
.alphabet-section::before { content: 'ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ'; position: absolute; right: -4px; top: 80px; color: var(--forest-ghost); font-size: clamp(3rem, 9vw, 8rem); letter-spacing: .12em; white-space: nowrap; pointer-events: none; }
.section-heading { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 0; }
.heading-note { max-width: 275px; margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.alphabet-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.alphabet-card { position: relative; min-height: 340px; overflow: hidden; padding: 22px 23px 24px; border-top: 2px solid var(--forest); background: var(--paper-light); }
.younger-card { border-top-color: var(--rust); }
.futhorc-card { border-top-color: var(--moss); }
.alphabet-meta { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.card-number { color: var(--rust); }
.alphabet-name { margin-top: 24px; }
.alphabet-name h3 { margin: 0; font-size: 32px; line-height: .98; letter-spacing: -.04em; }
.alphabet-name h3 em { font-style: italic; }
.alphabet-name p { margin: 10px 0 0; color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; }
.alphabet-glyphs { position: absolute; top: 78px; right: 21px; color: var(--forest-glyph-ghost); font-family: 'Segoe UI Symbol', serif; font-size: 22px; line-height: 1.55; letter-spacing: .12em; text-align: right; }
.younger-card .alphabet-glyphs { color: var(--rust-glyph-ghost); }
.alphabet-detail { position: relative; z-index: 1; max-width: 265px; margin-top: 30px; }
.alphabet-detail strong { color: var(--forest); font-family: var(--serif); font-size: 16px; font-weight: 500; }
.alphabet-detail p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.futhorc-card .alphabet-detail { max-width: 300px; }
.card-explore { display: inline-flex; align-items: center; gap: 9px; margin-top: 11px; color: var(--forest); font-size: 10px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.card-explore span:last-child { color: var(--rust); transition: transform .18s ease; }
.card-explore:hover span:last-child { transform: translateX(3px); }
.card-edge { position: absolute; right: 22px; bottom: 18px; color: rgba(167,76,52,.5); font-size: 11px; letter-spacing: .15em; }
.alphabet-footnote { display: flex; gap: 8px; align-items: center; margin: 17px 0 0; color: var(--muted); font: 9px var(--mono); }
.alphabet-footnote span:first-child { color: var(--rust); }

.inscriptions { display: grid; grid-template-columns: .75fr 1.35fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.inscription-intro { max-width: 370px; }
.inscription-intro h2 { margin-bottom: 18px; }
.inscription-intro > p:not(.eyebrow) { margin-bottom: 23px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.inscription-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.inscription-note { position: relative; min-height: 210px; padding: 18px 19px 20px; border: 1px solid var(--line); background: rgba(255,255,255,.15); }
.note-stone { background: var(--paper-deep); }
.note-material { grid-column: 1 / -1; min-height: 166px; background: var(--forest-solid); color: var(--on-accent); }
.note-index { color: var(--rust); font: 8px var(--mono); letter-spacing: .13em; }
.note-material .note-index { color: var(--highlight); }
.mini-mark { margin: 12px 0 2px; color: var(--moss); font: 28px 'Segoe UI Symbol', serif; }
.note-material .mini-mark { float: right; margin-top: 11px; color: var(--highlight); font-size: 34px; }
.inscription-note h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.inscription-note p { max-width: 310px; margin: 0; color: var(--muted-strong); font-size: 10px; line-height: 1.75; }
.note-material p { max-width: 460px; color: var(--on-dark-copy); }
.note-material h3 { color: var(--on-accent); }

.reading-section { position: relative; overflow: hidden; background: var(--forest-deep); color: var(--paper-light); }
.reading-layout { position: relative; min-height: 460px; padding-block: 96px; display: grid; grid-template-columns: 1fr .85fr; gap: 12%; align-items: center; }
.eyebrow-light { color: var(--highlight); }
.reading-title { position: relative; z-index: 1; }
.reading-title h2 { max-width: 560px; margin-bottom: 20px; }
.reading-title h2 em { color: var(--highlight); }
.reading-title > p:last-child { max-width: 440px; margin-bottom: 0; color: var(--on-dark-muted); font-size: 12px; line-height: 1.85; }
.reading-points { position: relative; z-index: 1; }
.reading-point { display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: start; padding: 15px 0; border-bottom: 1px solid rgba(241,236,223,.17); }
.point-number { color: var(--highlight); font: 9px var(--mono); padding-top: 4px; }
.reading-point p { margin: 0; color: var(--on-dark-copy); font-size: 11px; line-height: 1.8; }
.reading-source { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; color: var(--on-dark-muted); font: 9px var(--mono); }
.reading-source strong { color: var(--paper-light); font-family: var(--serif); font-size: 17px; font-weight: 500; }
.reading-watermark { position: absolute; right: 36%; bottom: -110px; color: rgba(236,229,205,.035); font-family: 'Segoe UI Symbol', serif; font-size: 400px; line-height: 1; }

.sources { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8%; align-items: start; }
.sources h2 { margin-bottom: 0; font-size: clamp(2.25rem, 3.6vw, 3.5rem); }
.source-links { border-top: 1px solid var(--line); }
.source-links a { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 13px; min-height: 69px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.source-index { color: var(--rust); font: 9px var(--mono); }
.source-name { display: flex; flex-direction: column; gap: 1px; }
.source-name strong { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.source-name small { color: var(--muted); font: 9px var(--mono); }
.source-arrow { color: var(--rust); transition: transform .2s; }
.source-links a:hover .source-arrow { transform: translate(2px, -2px); }

.site-footer { background: var(--paper-deep); border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.footer-brand span { color: var(--rust); font-size: 14px; letter-spacing: .06em; }
.footer-brand strong { font-size: 10px; letter-spacing: .15em; }
.footer-inner > p { margin: 0; color: var(--muted); font: 9px var(--mono); }
.back-top { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 9px var(--mono); text-decoration: none; }
.back-top span:last-child { color: var(--rust); font-size: 15px; }

@media (max-width: 900px) {
  .page-wrap { width: min(100% - 44px, 700px); }
  .site-header { height: 72px; padding-inline: 22px; gap: 1rem; }
  .main-nav { gap: 10px; }
  .main-nav a { font-size: 9px; }
  .hero { min-height: auto; grid-template-columns: 1fr .76fr; column-gap: 2.5rem; padding-block: 68px 58px; }
  h1 { font-size: clamp(3.3rem, 7.3vw, 5.5rem); }
  .hero-art { max-width: 350px; padding-inline: 12px; }
  .rune-stone { min-height: 300px; }
  .fact-item { padding-inline: 15px; gap: 9px; }
  .fact-number { font-size: 23px; }
  .primer { grid-template-columns: 22% 1fr; gap: 6%; }
  .alphabet-list { gap: 9px; }
  .alphabet-card { padding-inline: 17px; }
  .alphabet-name h3 { font-size: 27px; }
  .alphabet-glyphs { right: 12px; font-size: 18px; }
  .inscriptions { grid-template-columns: .75fr 1.2fr; gap: 3rem; }
  .reading-layout { gap: 8%; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 4.5rem; }
  .page-wrap { width: calc(100% - 36px); }
  .site-header { height: auto; min-height: 70px; padding: 12px 18px; gap: 1rem; flex-wrap: wrap; }
  .brand { gap: 8px; }
  .brand-mark { font-size: 19px; }
  .brand-name strong { font-size: 11px; }
  .brand-name small { font-size: 8px; }
  .main-nav { order: 3; width: 100%; margin: 0; padding-top: 8px; border-top: 1px solid var(--line); justify-content: space-between; gap: 7px; }
  .main-nav a { font-size: 9px; }
  .header-tools { margin-left: auto; gap: 6px; }
  .language-toggle { min-width: 70px; padding: 6px 8px; font-size: 10px; }
  .theme-mode-toggle { padding: 6px 7px; font-size: 9px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 55px 43px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 18px; font-size: 9px; }
  h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .hero-intro { font-size: 13px; }
  .hero-actions { gap: 16px; }
  .hero-note { margin-top: 25px; font-size: 9px; }
  .hero-art { width: min(100%, 440px); justify-self: center; }
  .rune-stone { min-height: 280px; }
  .hero-rune { font-size: 112px; }
  .fact-inner { grid-template-columns: 1fr 1fr; padding-block: 14px; }
  .fact-item { min-height: 54px; padding: 9px 10px; border-right: 0; }
  .fact-item:nth-child(odd) { padding-left: 0; border-right: 1px solid rgba(245,240,221,.22); }
  .fact-item:nth-child(even) { padding-left: 17px; }
  .fact-item:nth-child(-n+2) { border-bottom: 1px solid rgba(245,240,221,.22); }
  .fact-item span:last-child { font-size: 9px; }
  .section-pad { padding-block: 73px; }
  .primer { grid-template-columns: 1fr; gap: 22px; }
  .section-aside { min-height: 0; }
  .aside-glyph, .aside-caption { display: none; }
  .section-main h2, .section-heading h2, .inscription-intro h2, .reading-title h2, .sources h2 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .section-main .lead { font-size: 19px; }
  .primer-columns { grid-template-columns: 1fr; gap: 13px; }
  .primer-columns p { font-size: 11px; }
  .rune-key-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .rune-key-heading p { text-align: left; }
  .rune-key-item { min-height: 60px; }
  .key-glyph { font-size: 20px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2 { margin-bottom: 17px; }
  .heading-note { max-width: 360px; font-size: 11px; }
  .alphabet-list { grid-template-columns: 1fr; gap: 11px; }
  .alphabet-card { min-height: 294px; padding-inline: 20px; }
  .alphabet-name { margin-top: 20px; }
  .alphabet-name h3 { font-size: 30px; }
  .alphabet-glyphs { top: 70px; right: 21px; font-size: 22px; }
  .alphabet-detail { max-width: 300px; margin-top: 25px; }
  .alphabet-detail p { font-size: 10px; }
  .inscriptions { grid-template-columns: 1fr; gap: 34px; }
  .inscription-intro { max-width: 410px; }
  .inscription-grid { gap: 9px; }
  .inscription-note { min-height: 190px; padding: 15px; }
  .note-material { min-height: 145px; }
  .inscription-note h3 { font-size: 18px; }
  .inscription-note p { font-size: 9px; }
  .reading-layout { min-height: 0; padding-block: 73px; grid-template-columns: 1fr; gap: 31px; }
  .reading-watermark { right: -5%; bottom: 25%; font-size: 250px; }
  .reading-title > p:last-child { font-size: 11px; }
  .reading-point p { font-size: 10px; }
  .sources { grid-template-columns: 1fr; gap: 27px; }
  .source-links a { min-height: 63px; }
  .source-name strong { font-size: 14px; }
  .footer-inner { min-height: 100px; flex-wrap: wrap; justify-content: space-between; padding-block: 18px; }
  .footer-inner > p { order: 3; width: 100%; font-size: 8px; }
}

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


/* Content additions: bilingual copy, inscription case studies and comparison tool. */
.copy-zh { display: none; }
html[lang^="zh"] .copy-en { display: none !important; }
html[lang^="zh"] .copy-zh { display: unset !important; }
.main-nav { gap: clamp(.8rem, 2vw, 1.8rem); }
.nav-pages { position: relative; color: var(--muted-strong); font-size: 12px; font-weight: 600; }
.nav-pages > summary { list-style: none; cursor: pointer; }
.nav-pages > summary::-webkit-details-marker { display: none; }
.nav-pages > summary::after { content: ' ▾'; color: var(--rust); }
.nav-pages-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: 230px; padding: 7px; border: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 12px 30px rgba(20,28,25,.14); }
.nav-pages-menu a { display: block; padding: 9px 10px; font-size: 11px; }
.alphabet-card { min-height: 380px; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.case-card { padding: 21px 22px 23px; border: 1px solid var(--line); background: rgba(255,255,255,.2); }
.case-card:nth-child(2), .case-card:nth-child(3) { background: var(--paper-deep); }
.case-meta { color: var(--rust); font: 9px var(--mono); letter-spacing: .08em; }
.case-card h3 { margin: 14px 0 10px; font-size: 25px; }
.case-runes { min-height: 48px; margin-bottom: 9px; color: var(--forest); font: 29px/1.5 'Segoe UI Symbol', 'Noto Sans Runic', serif; overflow-wrap: anywhere; }
.case-line { margin-bottom: 9px !important; color: var(--forest) !important; font: 11px var(--mono); }
.case-card p { margin: 0 0 10px; color: var(--muted-strong); font-size: 11px; line-height: 1.75; }
.case-card > a { display: inline-block; margin: 6px 14px 0 0; color: var(--forest); font: 9px var(--mono); text-underline-offset: 3px; }
.transliterator { background: var(--surface-reference); }
.translator-panel { padding: clamp(18px, 4vw, 36px); border: 1px solid var(--line); background: var(--paper-light); }
.translator-panel > label { display: block; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.translator-panel input { display: block; width: 100%; min-height: 50px; margin-top: 8px; padding: 11px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 14px var(--sans); text-transform: none; }
.translator-panel input:focus { outline: 2px solid var(--rust-soft); border-color: var(--rust); }
.translator-caveat { margin: 12px 0 19px; color: var(--muted); font-size: 10px; }
.translation-outputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.translation-outputs section { min-height: 142px; padding: 16px; border-top: 2px solid var(--forest); background: var(--paper); }
.translation-outputs section + section { border-top-color: var(--rust); }
.translation-outputs h3 { margin: 0 0 15px; font-size: 19px; }
.translation-outputs output { display: block; min-height: 47px; color: var(--forest); font: clamp(25px, 5vw, 40px)/1.35 'Segoe UI Symbol', 'Noto Sans Runic', serif; overflow-wrap: anywhere; }
.translation-speak { min-height: 34px; margin-top: 9px; padding: 0 10px; border: 1px solid var(--line); background: transparent; color: var(--forest); cursor: pointer; font: 9px var(--mono); }
.translation-speak::before { content: '◉'; margin-right: 7px; }
.translation-speak:hover, .translation-speak:focus-visible { border-color: var(--rust); color: var(--rust); }
.translation-speak:disabled { cursor: not-allowed; opacity: .45; }
.translator-status { min-height: 20px; margin: 12px 0 0; color: var(--muted); font: 9px var(--mono); }
.about-project { margin-left: auto; color: var(--muted); font: 9px var(--mono); }
.about-project summary { cursor: pointer; color: var(--forest); }
.about-project div { position: absolute; right: max(32px, calc((100vw - 1220px) / 2)); bottom: 70px; z-index: 10; width: min(420px, calc(100vw - 36px)); padding: 16px; border: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 12px 30px rgba(20,28,25,.14); }
.about-project p { margin: 0; color: var(--muted-strong); font: 11px/1.75 var(--sans); }
.privacy-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--ink); color: var(--ink); font: 9px var(--mono); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.privacy-link span:last-child { color: var(--rust); font-size: 13px; transition: transform .2s; }
.privacy-link:hover, .privacy-link:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--paper-light); }
.privacy-link:hover span:last-child, .privacy-link:focus-visible span:last-child { color: var(--highlight); transform: translateX(2px); }
.privacy-page { min-height: 100vh; display: flex; flex-direction: column; }
.privacy-page main { flex: 1; }
.privacy-shell { max-width: 920px; padding-block: 92px 112px; }
.privacy-shell h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(3.6rem, 7vw, 6.2rem); }
.privacy-shell h1 em { color: var(--rust); }
.privacy-intro { max-width: 650px; margin-bottom: 52px; color: var(--muted-strong); font-family: var(--serif); font-size: 21px; line-height: 1.55; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.privacy-card { min-height: 190px; padding: 22px; border-top: 2px solid var(--forest); background: var(--paper-light); }
.privacy-card:nth-child(2) { border-top-color: var(--rust); }
.privacy-card:nth-child(3) { border-top-color: var(--moss); }
.privacy-card:nth-child(4) { border-top-color: var(--highlight); }
.privacy-card h2 { margin: 0 0 10px; color: var(--forest); font-size: 23px; line-height: 1.15; }
.privacy-card p { margin: 0; color: var(--muted-strong); font-size: 12px; line-height: 1.85; }
.privacy-note { margin: 32px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font: 10px/1.7 var(--mono); }
.privacy-footer { margin-top: auto; }
@media (max-width: 900px) {
  .main-nav { gap: 9px; }
  .main-nav a, .nav-pages { font-size: 9px; }
  .alphabet-card { min-height: 370px; }
  .about-project div { right: 22px; }
}
@media (max-width: 650px) {
  .site-header { gap: .55rem; }
  .main-nav { order: 3; width: 100%; margin: 0; padding-top: 7px; border-top: 1px solid var(--line); justify-content: space-between; gap: 5px; }
  .main-nav a, .nav-pages { font-size: 9px; white-space: nowrap; }
  .nav-pages-menu { left: 0; right: auto; width: 205px; }
  .alphabet-card { min-height: 335px; }
  .case-grid, .translation-outputs { grid-template-columns: 1fr; }
  .case-card { padding: 17px; }
  .case-runes { font-size: 25px; }
  .translator-panel { padding: 15px; }
  .about-project { order: 4; margin: 0; }
  .about-project div { left: 18px; right: 18px; bottom: 65px; width: auto; }
  .privacy-link { order: 4; }
  .about-project { order: 5; }
  .privacy-shell { padding-block: 65px 80px; }
  .privacy-shell h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .privacy-intro { margin-bottom: 34px; font-size: 18px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 9px; }
  .privacy-card { min-height: 0; padding: 18px; }
}
