:root { color-scheme: light; --paper: #f7f6f2; --ink: #242b29; --muted: #626a65; --line: #d8dcd5; --accent: #286450; }
* { box-sizing: border-box; }
h1, h2, h3, p, figcaption { overflow-wrap: anywhere; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.page { width: min(1040px, 100% - 96px); margin: auto; }
header { display: flex; flex-wrap: wrap; align-items: center; column-gap: 40px; min-height: 112px; border-bottom: 1px solid var(--line); }
.wordmark { font: 600 23px/1.4 ui-monospace, monospace; text-decoration: none; letter-spacing: -1.3px; margin-right: auto; }
.wordmark span { color: var(--muted); font-weight: 400; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
nav a { font-size: 14px; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.languages { display: flex; align-items: center; font-size: 12px; color: var(--muted); }
.languages button { font: inherit; background: none; border: none; color: inherit; min-width: 44px; min-height: 44px; cursor: pointer; }
.languages button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.intro { padding: 65px 0 64px; max-width: 760px; }
.eyebrow { font: 12px/1.5 ui-monospace, monospace; color: var(--accent); margin: 0 0 20px; }
h1 { font: 400 clamp(42px, 5.5vw, 66px)/1.12 Georgia, "Times New Roman", serif; letter-spacing: -2px; margin: 0 0 22px; }
.intro-copy { font-size: 21px; line-height: 1.6; max-width: 640px; margin: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 0 15px; color: var(--muted); }
.section-heading h2, .section-heading span { font: 12px/1.6 ui-monospace, monospace; margin: 0; }
.project { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 62px; padding: 36px 0 52px; align-items: center; }
.project-copy h3 { font: 400 33px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.8px; margin: 0 0 18px; }
.project-copy p { margin: 0 0 23px; }
.project-link { display: inline-flex; align-items: center; min-height: 44px; gap: 24px; color: var(--accent); font-size: 15px; }
.arrow { position: relative; display: inline-block; width: 10px; height: 10px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.arrow::after { content: ''; position: absolute; width: 12px; height: 1px; background: currentColor; right: -2px; top: 4px; transform: rotate(-45deg); }
figure { margin: 0; min-width: 0; }
.image-surface { background: #e6e9e2; padding: 26px; border: 1px solid #dce1d7; }
img { width: 100%; max-width: 460px; height: auto; display: block; margin: auto; box-shadow: 0 8px 20px #18221b16; }
figcaption { color: var(--muted); font-size: 12px; line-height: 1.6; padding-top: 13px; }
figcaption span { display: block; }
#about { border-top: 1px solid var(--line); padding: 31px 0 43px; display: grid; grid-template-columns: .85fr 1.25fr; gap: 62px; }
#about h2 { font-size: 14px; font-weight: 500; margin: 0; }
#about p { margin: 0; max-width: 480px; }
#notes { margin-bottom: 42px; }
.note { padding: 20px 0; border-bottom: 1px solid var(--line); }
.note p { margin: 5px 0 0; }
footer { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 23px 0 30px; color: var(--muted); font: 11px/1.6 ui-monospace, monospace; }
.skip { position: absolute; top: -80px; left: 20px; padding: 10px; background: var(--paper); z-index: 1; }
.skip:focus { top: 10px; }
.no-script { padding: 20px; }
.book-navigation { border-bottom: 1px solid var(--line); gap: 28px; padding-bottom: 12px; }
nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.library-page { min-height: calc(100vh - 194px); }
.library-page .intro { padding-bottom: 40px; }
.empty-state { color: var(--muted); padding: 42px 0; margin: 0; }
.back-home { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent); font-size: 14px; margin-bottom: 44px; }
.library-entry { max-width: 680px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.library-entry h2 { font: 400 28px/1.3 Georgia, serif; margin: 0 0 12px; }
.book-authors { color: var(--muted); font-size: 14px; }
#translation-slot { overflow: clip; }
.translations-block { border-top: 1px solid var(--line); padding: 30px 6px 35px; }
.translations-block h2 { font: 400 30px/1.25 Georgia, serif; margin: 0 0 20px; }
.translations-empty, #locale-notice { color: var(--muted); font-size: 15px; }
.translation-card { max-width: 680px; padding: 18px 0; }
.translation-card h3 { font: 400 27px/1.3 Georgia, serif; margin: 0 0 16px; }
.translation-card .eyebrow { margin-bottom: 14px; }
#locale-notice { border-left: 2px solid var(--accent); padding: 12px 18px; margin: 0 0 25px; }
.section-page { min-height: calc(100vh - 194px); }
.section-page .intro { padding-bottom: 40px; }
.section-list { border-top: 1px solid var(--line); margin-bottom: 40px; }
.section-entry { padding: 28px 0; border-bottom: 1px solid var(--line); max-width: 760px; }
.section-entry h2 { font: 400 30px/1.25 Georgia, serif; margin: 0 0 16px; }
.section-entry h2 a { text-decoration: none; }
.section-entry h2 a:hover { text-decoration: underline; }
.section-entry p { margin: 0 0 14px; max-width: 640px; }
.section-entry .project-link { margin-right: 24px; }
.section-empty { color: var(--muted); border-top: 1px solid var(--line); padding: 30px 0 40px; }
.about-copy, .note-body { max-width: 680px; margin-bottom: 45px; }
.about-copy p { font-size: 21px; line-height: 1.7; margin: 0 0 30px; }
.note-body { font-size: 19px; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 28px; }
.note-body p { margin: 0 0 26px; }
.section-demo-notice { color: var(--muted); border-left: 2px solid var(--accent); padding-left: 18px; font-size: 14px; margin: 0 0 32px; }
.section-return { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 35px; color: var(--accent); }
@media (max-width: 700px) {
  .page { width: calc(100% - 40px); }
  header { flex-wrap: wrap; gap: 0; min-height: 0; padding: 17px 0 10px; }
  nav { width: 100%; gap: 24px; padding-top: 5px; }
  .intro { padding: 40px 0; }
  .eyebrow { margin-bottom: 15px; }
  h1 { letter-spacing: -1.5px; font-size: 44px; }
  .intro-copy { font-size: 18px; line-height: 1.65; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 23px; padding: 27px 0 36px; }
  .project-copy h3 { font-size: 31px; margin-bottom: 13px; }
  .project-copy p { margin-bottom: 12px; }
  .image-surface { padding: 16px; }
  #about { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 27px 0 34px; }
  footer { flex-wrap: wrap; font-size: 10px; }
}

/* Generated pages: ordinary links work without JavaScript. */
.languages a { display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:12px; }
.languages [aria-current] { color:var(--ink);font-weight:700;text-decoration:underline; }
.book-navigation { border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:24px; }
.project h2 { font:400 34px/1.2 Georgia,serif;margin:0 0 18px; }
.project figure { margin:0; }
.project img { max-width:100%;height:auto; }
main > figure { max-width:420px;margin-inline:0; }
main > figure img { max-width:100%;height:auto; }
main > .rd { padding-top:40px; }
main > .rd .rd-article { margin-top:0; }
header .languages { width:auto;gap:0;padding:0; }
.translations-block { border-top:0;padding:12px 0 20px; }

/* Launch chrome from the pilot (PR #28): paper, serif, header, command palette.
   Scoped to body.launch so the private shelf keeps its own rules. */
body.launch { --paper: #f5f2e9; --ink: #243c32; --muted: #586252; --line: #d7dacd; --green: #315a42; background: var(--paper); color: var(--ink); font: 16px/1.6 Arial, Helvetica, sans-serif; }
body.launch .page { width: min(1160px, calc(100% - 70px)); }
body.launch header { gap: 25px; min-height: 0; padding: 30px 0; border-bottom: 1px solid var(--line); }
body.launch header nav#navigation { margin-right: auto; }
body.launch header nav { gap: 23px; margin-left: 0; }
body.launch header nav a { font-size: 14px; text-decoration: none; }
body.launch nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
body.launch .command-trigger { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; text-decoration: none; font: 12px ui-monospace, monospace; border: 1px solid var(--line); padding: 8px 12px; min-height: 42px; color: inherit; }
body.launch .command-trigger:hover { background: #e6eadc; }
body.launch .command-trigger kbd { font: 12px ui-monospace, monospace; color: var(--muted); }
body.launch .languages { border-left: 1px solid var(--line); padding-left: 16px; gap: 0; }
body.launch h1, body.launch h2, body.launch h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
body.launch h1 { font-size: clamp(44px, 5.5vw, 76px); margin: 0 0 28px; }
body.launch h2 { font-size: clamp(31px, 3.2vw, 43px); margin: 0 0 24px; }
body.launch .eyebrow { font: 11px/1.6 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
body.launch .page-heading { padding: 68px 0 28px; max-width: 850px; }
body.launch .lede, body.launch .intro-copy { font-size: 20px; line-height: 1.65; max-width: 650px; margin: 0; color: #536050; }
body.launch .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 50px; padding: 72px 0 48px; min-width: 0; }
body.launch .hero > * { min-width: 0; }
body.launch .story-column, body.launch .story { max-width: none; min-width: 0; }
body.launch .story p, body.launch .story h1 { font: 20px/1.65 Arial, Helvetica, sans-serif; letter-spacing: 0; max-width: 40rem; margin: 0 0 1.15em; color: var(--ink); }
body.launch .pending-ref { color: inherit; cursor: text; text-decoration: none; }
body.launch .pending-ref:hover { color: inherit; text-decoration: none; }
body.launch .field-figure { position: relative; align-self: start; margin-top: 0; background: #ecefe3; border: 1px solid #dde3d3; aspect-ratio: 1.4; min-width: 0; overflow: hidden; }
body.launch .field-figure canvas { position: absolute; inset: 0; width: 100%; max-width: 100%; height: 100%; display: block; }
body.launch .field-figure span { position: absolute; bottom: 18px; left: 22px; font: 10px ui-monospace, monospace; letter-spacing: .08em; color: #65795d; }
body.launch .slot { max-width: 40rem; border: 0; padding: 28px 0; }
body.launch .slot h2 { font: 11px/1.6 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
body.launch .slot p, body.launch .slot li { font-size: 16px; margin: 0; }
body.launch .slot ul { list-style: none; margin: 0; padding: 0; }
body.launch .slot a, body.launch .cv-link { display: inline-flex; align-items: center; min-height: 44px; }
body.launch .contribution-list { list-style: none; margin: 0; padding: 0; max-width: 100%; }
body.launch .contribution-list li { padding: 0 0 14px; border: 0; min-width: 0; }
body.launch .contribution-list li:last-child { padding-bottom: 0; }
body.launch .contribution-list a { display: inline; min-height: 0; overflow-wrap: anywhere; }
body.launch .contribution-meta { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.3; }
body.launch .contribution-star { display: block; width: 14px; height: 14px; flex: none; }
body.launch .cv-section { max-width: 42rem; border-top: 1px solid var(--line); padding: 22px 0 8px; min-width: 0; }
body.launch .cv-section h2 { font: 11px/1.6 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
body.launch .cv-section h3 { font: 22px/1.3 Georgia, "Times New Roman", serif; margin: 16px 0 4px; }
body.launch .cv-section p, body.launch .cv-section li { font-size: 16px; line-height: 1.55; margin: 0 0 8px; overflow-wrap: anywhere; }
body.launch .cv-section ul { list-style: none; margin: 0; padding: 0; }
body.launch .cv-section a { overflow-wrap: anywhere; }
body.launch .cv-skills li { display: inline; overflow-wrap: normal; margin: 0; }
body.launch .cv-skills li:not(:last-child)::after { content: " · "; }
body.launch .shelf-tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line); margin: 8px 0 8px; }
body.launch .shelf-tabs a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 15px; }
body.launch .shelf-tabs a[aria-current="true"],
body.launch .shelf:not(:has(.shelf-panels section:target)) .shelf-tabs a[href="#shelf-books"],
body.launch .shelf:has(#shelf-books:target) .shelf-tabs a[href="#shelf-books"],
body.launch .shelf:has(#shelf-games:target) .shelf-tabs a[href="#shelf-games"],
body.launch .shelf:has(#shelf-films:target) .shelf-tabs a[href="#shelf-films"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
body.launch .shelf-panels section { display: none; padding: 28px 0; border-bottom: 1px solid var(--line); max-width: 40rem; }
body.launch .shelf-panels section:target,
body.launch .shelf:not(:has(.shelf-panels section:target)) #shelf-books { display: block; }
body.launch .shelf-panels h2 { font-size: 30px; margin: 0 0 8px; }
body.launch .empty-state { color: var(--muted); padding: 8px 0 0; }
body.launch footer { align-items: center; gap: 30px; padding: 38px 0; margin-top: 15px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
body.launch footer p { margin: 0 auto 0 0; }
body.launch footer a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
body.launch footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
body.launch .search-index { list-style: none; margin: 12px 0 0; padding: 0; max-width: 700px; }
body.launch .search-index a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; min-height: 52px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
body.launch .search-index a:hover { background: #e9ecdf; }
body.launch .search-index span { color: var(--muted); font: 12px/1.4 ui-monospace, monospace; overflow-wrap: anywhere; }
body.launch .command-dialog { width: min(760px, calc(100% - 32px)); padding: 0; border: 1px solid #617966; border-radius: 4px; background: #243c32; color: #f5f2e9; max-height: 85dvh; box-shadow: 0 30px 120px #0005; }
body.launch .command-dialog::backdrop { background: #172b26aa; }
body.launch .command-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 25px; background: #304a3c; font: 12px ui-monospace, monospace; }
body.launch .command-close { font: 12px ui-monospace, monospace; padding: 9px 12px; min-height: 42px; border: 1px solid #819580; background: transparent; color: #f5f2e9; }
body.launch .command-close kbd { margin-left: 12px; }
body.launch .command-find { display: block; font: 15px/1.4 Arial, Helvetica, sans-serif; margin: 0; padding: 25px 25px 16px; }
body.launch .command-prompt { display: flex; align-items: center; gap: 12px; border: 1px solid #9aaf91; margin: 0 25px; padding: 4px 12px; background: #1d3128; }
body.launch .command-prompt > span { font: 13px ui-monospace, monospace; white-space: nowrap; color: #b9d0a3; }
body.launch .command-prompt input { border: 0; padding: 12px 0; background: none; color: #fffbe9; font: 16px/1.5 ui-monospace, monospace; min-width: 0; width: 100%; border-radius: 0; }
body.launch .command-prompt input::placeholder { color: #b7c4b3; }
body.launch .command-count { margin: 0; padding: 14px 25px 0; font: 12px ui-monospace, monospace; color: #b9d0a3; }
body.launch .command-results { list-style: none; margin: 8px 0 0; padding: 0 25px; max-height: 38dvh; overflow: auto; overscroll-behavior: contain; }
body.launch .command-results li { border-top: 1px solid #58705d; }
body.launch .command-results a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 8px; text-decoration: none; min-height: 52px; color: inherit; }
body.launch .command-results a:hover, body.launch .command-results a:focus-visible { background: #3c5945; }
body.launch .command-results strong { font-weight: 400; font-size: 17px; overflow-wrap: anywhere; }
body.launch .command-results span { font: 11px ui-monospace, monospace; color: #bfccb7; overflow-wrap: anywhere; max-width: 45%; text-align: right; }
body.launch .command-bottom { padding: 18px 25px 24px; border-top: 1px solid #58705d; margin-top: 20px; font-size: 12px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
body.launch .command-status { flex: 1 1 220px; margin: 0; color: #c9d6c1; }
body.launch .command-bottom a { color: #f5f2e9; min-height: 44px; display: inline-flex; align-items: center; }
body.launch .command-dialog :focus-visible { outline: 2px solid #d6c889; outline-offset: 3px; }
body.launch .command-dialog input:focus-visible { outline-offset: 0; }
@media (max-width: 1000px) {
  body.launch header nav#navigation { order: 0; flex: 1 1 220px; justify-content: flex-start; gap: 12px; margin-top: 0; }
}
@media (max-width: 700px) {
  body.launch { font-size: 15px; }
  body.launch .page { width: calc(100% - 44px); }
  body.launch header { gap: 12px; padding: 24px 0 16px; }
  body.launch .command-trigger { margin-left: auto; padding: 5px 9px; min-height: 38px; }
  body.launch .languages { margin-left: 0; padding-left: 12px; }
  body.launch header nav#navigation { gap: 8px; }
  body.launch header nav#navigation a { font-size: 12px; }
  body.launch .hero { display: block; padding: 40px 0 28px; }
  body.launch .field-figure { margin-top: 32px; }
  body.launch .story p, body.launch .story h1 { font-size: 18px; line-height: 1.65; }
  body.launch h1 { font-size: 44px; }
  body.launch .page-heading { padding: 48px 0 15px; }
  body.launch footer { flex-wrap: wrap; gap: 12px 20px; padding: 30px 0; }
  body.launch footer p { width: 100%; order: 3; margin: 0; }
  body.launch .command-dialog { width: calc(100% - 24px); }
  body.launch .command-top, body.launch .command-bottom { padding-inline: 17px; }
  body.launch .command-find { padding: 20px 17px 12px; }
  body.launch .command-prompt { margin-inline: 17px; padding: 8px 10px; }
  body.launch .command-results { padding-inline: 17px; }
  body.launch .command-results a { display: block; }
  body.launch .command-results span { display: block; max-width: 100%; text-align: left; margin-top: 7px; }
  body.launch .command-count { padding-inline: 17px; }
}
