/* Hallmark · v2.0.0 · editorial reference library · custom material-first direction. */
/* Critique · guides are long by design; navigation, sources and local context make each reading path useful. */
:root {
  --ink: #2c1f2a;
  --paper: #f5efe5;
  --accent: #9b6845;
  --accent-strong: #75432c;
  --focus: #b55f37;
  --surface: #fffaf4;
  --muted: #655a55;
  --line: #d8cbbb;
  --soft: #eee3d7;
  --footer: #30222d;
  --footer-ink: #f5efe5;
  --footer-muted: #d7c9bb;
  --selection: #e5d0be;
  --shadow: #ded0c0;
  --heading: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --label: ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { background: var(--paper); color: var(--ink); font: 17px/1.72 var(--body); }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a:active, button:active { color: var(--ink); }
button:disabled, input:disabled { cursor: not-allowed; opacity: .65; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .prose, .jewel-cover-copy { min-width: 0; overflow-wrap: break-word; }
h1, h2 { text-wrap: balance; }
h1, h2 { font-family: var(--heading); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
h1 { max-width: 18ch; font-size: clamp(2.6rem, 5.8vw, 5.1rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.1rem); }
h3 { line-height: 1.25; }
img, svg { max-width: 100%; height: auto; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 20; top: -6rem; left: 1rem; padding: .7rem 1rem; background: var(--ink); color: var(--paper); }
.skip:focus-visible { top: 1rem; }
.topline { padding: .55rem 0; background: var(--ink); color: var(--paper); font-size: .75rem; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font: 500 1.35rem var(--heading); text-decoration: none; }
.brand-icon { width: 2.7rem; flex: none; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; font-size: .88rem; }
.masthead nav a { color: var(--ink); text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.page-kicker { margin: 0 0 .7rem; color: var(--accent); font-size: .82rem; }
.breadcrumb { padding: 1.25rem 0; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: inherit; }
.page-head { max-width: 62rem; padding: 1rem 0 2.4rem; }
.page-head h1 { max-width: 21ch; margin-bottom: 1rem; }
.lede { max-width: 66ch; color: var(--muted); font-size: 1.12rem; }
.notice { margin: 0 0 2rem; padding: 1rem 1.3rem; border: 1px solid var(--line); background: var(--soft); font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }
.button, .jewel-button { display: inline-flex; align-items: center; gap: .7rem; padding: .8rem 1.1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.button:hover, .jewel-button:hover { background: var(--accent-strong); color: var(--paper); }
.button.secondary { background: transparent; color: var(--ink); }
.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.section-title, .jewel-section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.library-heading { max-width: 64rem; margin: 1rem auto; padding-inline: 0; font: 1.8rem var(--heading); }
.section-title p, .jewel-section-head > p { max-width: 48ch; margin: 0; color: var(--muted); font-size: .9rem; }
.article-layout { display: grid; grid-template-columns: 13rem minmax(0, 48rem); align-items: start; gap: 2.5rem; padding-bottom: 4rem; }
.toc { position: sticky; top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--accent); font-size: .85rem; }
.toc strong { display: block; margin-bottom: 1rem; font-weight: 700; }
.toc a { display: block; margin-bottom: .75rem; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { min-width: 0; font-size: 1.05rem; }
.prose h2 { margin: 0 0 1.2rem; padding-top: .5rem; font-size: 2rem; }
.prose section { margin-bottom: 2.4rem; }
.prose p { max-width: 72ch; }
.prose li { margin-bottom: .6rem; }
.prose a { overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow: auto; margin: 1.5rem 0; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { min-width: 9rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); }
.sources { padding: 1.4rem; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.sources h2, .related h2 { font-size: 1.8rem; }
.sources li { overflow-wrap: anywhere; }
.related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related ul { padding-left: 1.3rem; }
.reading-navigation { display: flex; justify-content: space-between; gap: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.reading-navigation a { max-width: 46%; }
.searchbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.searchbar input { min-width: 13rem; flex: 1; padding: .7rem .9rem; border: 1px solid var(--muted); background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filters button { padding: .4rem .8rem; border: 1px solid var(--line); background: transparent; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.resultcount, .small { color: var(--muted); font-size: .86rem; }
.article-row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 6rem; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.article-row .n { color: var(--accent); font: 1.3rem var(--heading); }
.article-row h3 { margin-bottom: .5rem; font: 500 1.35rem var(--heading); }
.article-row h3 a { color: var(--ink); text-decoration: none; }
.article-row .category, .article-row .meta { color: var(--muted); font-size: .8rem; }
.article-row .meta, .jewel-report-num { font-variant-numeric: tabular-nums; }
.article-row .meta { text-align: right; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.glossary div { padding: 1.2rem 0; border-top: 1px solid var(--line); }
dt { margin-bottom: .5rem; font: 1.35rem var(--heading); }
dd { margin: 0; color: var(--muted); }
.source-list { padding: 0; list-style: none; }
.source-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.source-list a { font-weight: 700; overflow-wrap: anywhere; }
.source-list small { display: block; color: var(--muted); }
.reading-width { max-width: 52rem; padding-bottom: 4rem; }
.credits-list { display: grid; gap: 1.5rem; padding-bottom: 3rem; }
.credits-list article { padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.credits-list img { width: min(100%, 36rem); max-height: 24rem; object-fit: cover; }
.foot { margin-top: 2rem; padding: 2.8rem 0 1.5rem; background: var(--footer); color: var(--footer-ink); }
.foot a { color: var(--footer-ink); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.foot h2 { font: 1.6rem var(--heading); }
.foot p, .foot li { color: var(--footer-muted); font-size: .86rem; }
.foot ul { padding: 0; list-style: none; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--muted); color: var(--footer-muted); font-size: .8rem; }
::selection { background: var(--selection); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { display: block; }
  .masthead nav { margin-top: 1rem; gap: .6rem 1rem; }
  .article-layout { display: block; }
  .toc { position: static; margin-bottom: 1.5rem; }
  .section-title, .jewel-section-head { display: block; }
  .section-title p, .jewel-section-head > p { margin-top: .8rem; }
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .footer-top { display: block; }
  .footer-top > div { margin-bottom: 1.5rem; }
  .footer-base { display: block; }
  .article-row { grid-template-columns: 2rem minmax(0, 1fr); }
  .article-row .meta { grid-column: 2; text-align: left; }
  .reading-navigation { display: grid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .topline, .masthead, .toc, .foot, .actions, .filters, .searchbar, .print { display: none !important; }
  .wrap { width: 100%; }
  .article-layout { display: block; }
  body { background: var(--surface); font-size: 11pt; }
}
