:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #fffefa;
  --surface-2: #f0efe9;
  --ink: #1e2929;
  --ink-soft: #455552;
  --muted: #727f7a;
  --line: #dedfd7;
  --line-strong: #c5cbc2;
  --accent: #bb5739;
  --accent-deep: #99432d;
  --accent-pale: #f4e8df;
  --sage: #dce6dc;
  --shadow: 0 16px 44px rgba(34, 45, 39, .06);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121919;
  --surface: #1a2221;
  --surface-2: #202a28;
  --ink: #eef2e9;
  --ink-soft: #c3cdc5;
  --muted: #9aa9a0;
  --line: #34403b;
  --line-strong: #52615a;
  --accent: #e08a65;
  --accent-deep: #f0a183;
  --accent-pale: #362820;
  --sage: #26352e;
  --shadow: 0 18px 46px rgba(0, 0, 0, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; transition: background-color .2s, color .2s; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }
.page-width { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: var(--accent); color: #fff; font-family: Georgia, serif; font-size: 23px; font-weight: 700; }
.brand-copy { display: grid; line-height: 1.15; gap: 4px; letter-spacing: .09em; }
.brand-copy strong { font-size: 11px; letter-spacing: .16em; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-link { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .15s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.theme-toggle { min-height: 39px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 600; transition: border-color .15s, background .15s; }
.theme-toggle:hover { border-color: var(--line-strong); background: var(--surface-2); }
.theme-icon { display: grid; place-items: center; width: 19px; height: 19px; font-size: 17px; }
.hero { position: relative; min-height: 405px; padding-block: 72px 70px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: center; gap: 64px; overflow: hidden; }
.hero-copy, .hero-note { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; margin: 0 0 18px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-pale); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 670px; margin-bottom: 17px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5.5vw, 72px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
h1 em { color: var(--accent); font-weight: 500; }
.hero-description { max-width: 520px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; margin-bottom: 25px; }
.primary-link { display: inline-flex; align-items: center; gap: 19px; padding: 12px 16px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s; }
.primary-link:hover { transform: translateY(-2px); background: var(--accent-deep); color: white; }
.primary-link span { font-size: 16px; }
.hero-note { justify-self: end; width: min(100%, 300px); padding: 23px 24px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); transform: rotate(1.4deg); }
.note-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.live-dot, .summary-dot { width: 7px; height: 7px; border-radius: 50%; background: #76a27b; box-shadow: 0 0 0 4px color-mix(in srgb, #76a27b 17%, transparent); }
.note-line { height: 1px; flex: 1; background: var(--line); }
.note-number { margin-top: 23px; font-family: Georgia, serif; font-size: 71px; line-height: 1; letter-spacing: -.07em; }
.hero-note > p { margin: 4px 0 19px; color: var(--muted); font-size: 12px; }
.note-divider { height: 1px; background: var(--line); }
.note-foot { display: flex; gap: 10px; align-items: flex-start; padding-top: 15px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.note-icon { color: var(--accent); font-size: 15px; font-weight: 700; }
.hero-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 560px; height: 560px; right: -280px; top: -160px; }
.orbit-two { width: 410px; height: 410px; right: -205px; top: -84px; }
.archive-section { padding-block: 45px 92px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-eyebrow { margin-bottom: 8px; font-size: 9px; }
h2 { margin-bottom: 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.section-subtitle { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.result-summary { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.result-summary .summary-dot { width: 6px; height: 6px; box-shadow: none; }
.filter-panel { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 18px rgba(34,45,39,.025); }
.search-row { display: flex; gap: 10px; }
.search-box { min-width: 0; flex: 1; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); transition: border-color .15s; }
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; padding-block: 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-box input::placeholder { color: var(--muted); opacity: .85; }
kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); font-size: 9px; white-space: nowrap; }
.search-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-width: 135px; padding: 10px 15px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; transition: background .15s, transform .15s; }
.search-button:hover { background: var(--accent-deep); transform: translateY(-1px); }
.search-button span { font-size: 16px; }
.filter-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.date-filters, .filter-actions, .page-size-control { display: flex; align-items: center; }
.date-filters { gap: 9px; flex-wrap: wrap; }
.filter-label { margin-right: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.date-field { display: flex; align-items: center; gap: 7px; min-height: 33px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; }
.date-field:focus-within { border-color: var(--accent); }
.date-field input { max-width: 125px; border: 0; outline: 0; background: transparent; color: var(--ink-soft); font-size: 10px; }
.date-separator { color: var(--muted); font-size: 12px; }
.quick-ranges { display: flex; gap: 5px; }
.range-chip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 10px; transition: .15s; }
.range-chip:hover, .range-chip:focus-visible { border-color: var(--accent); color: var(--accent-deep); }
.filter-actions { gap: 15px; }
.text-button { padding: 6px 0; border: 0; background: transparent; color: var(--accent-deep); font-size: 11px; font-weight: 700; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.page-size-control { gap: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.page-size-control select, .archive-meta select { padding: 6px 22px 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 11px; }
.archive-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 2px 13px; color: var(--muted); font-size: 10px; }
.meta-left { display: flex; align-items: center; gap: 11px; }
.archive-label { color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.meta-divider { width: 1px; height: 14px; background: var(--line-strong); }
.archive-meta select { min-width: 92px; padding-block: 4px; color: var(--ink-soft); }
.results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.research-card { display: flex; flex-direction: column; min-height: 210px; padding: 21px 22px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: border-color .18s, transform .18s, box-shadow .18s; }
.research-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-category { padding: 5px 8px; border-radius: 5px; background: var(--accent-pale); color: var(--accent-deep); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.card-date { color: var(--muted); font-size: 10px; }
.research-card h3 { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.25; }
.card-summary { margin-bottom: 17px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.card-analysis { margin: -5px 0 14px; color: var(--ink-soft); font-size: 11px; }
.card-analysis summary { width: fit-content; color: var(--accent-deep); font-weight: 750; cursor: pointer; }
.card-analysis p { margin: 8px 0 0; line-height: 1.75; white-space: pre-wrap; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.card-source { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-link { flex: 0 0 auto; color: var(--accent-deep); font-size: 10px; font-weight: 750; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.empty-state { padding: 38px 22px 43px; border: 1px dashed var(--line-strong); border-radius: 13px; background: var(--surface); text-align: center; }
.empty-state[hidden], .error-state[hidden], .pagination[hidden] { display: none; }
.empty-art { position: relative; width: 104px; height: 70px; margin: 0 auto 19px; overflow: hidden; }
.empty-sun { position: absolute; top: 8px; left: 39px; width: 29px; height: 29px; border-radius: 50%; background: #e6b281; }
.empty-hill { position: absolute; bottom: -21px; width: 120px; height: 58px; border-radius: 50% 50% 0 0; transform: rotate(-10deg); }
.hill-back { left: -26px; background: var(--sage); }
.hill-front { left: 20px; bottom: -31px; background: color-mix(in srgb, var(--accent) 40%, var(--surface-2)); transform: rotate(11deg); }
.empty-spark { position: absolute; right: 7px; top: 3px; color: var(--accent); font-size: 15px; }
.empty-kicker { margin-bottom: 7px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.empty-state h3 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; letter-spacing: -.02em; }
.empty-description { max-width: 440px; margin: 0 auto 18px; color: var(--muted); font-size: 12px; }
.secondary-button { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.secondary-button:hover { border-color: var(--accent); color: var(--accent-deep); }
.error-state { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 30px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--muted); font-size: 12px; text-align: center; }
.error-state strong { color: var(--ink); font-size: 15px; }
.error-state .secondary-button { margin-top: 7px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 17px; }
.pagination-info { color: var(--muted); font-size: 11px; }
.pagination-controls { display: flex; align-items: center; gap: 5px; }
.page-button, .page-number { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-soft); font-size: 11px; }
.page-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-deep); }
.page-button:disabled { cursor: not-allowed; opacity: .45; }
.page-number { border-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 800; }
.about-section { border-block: 1px solid var(--line); background: var(--surface-2); }
.about-inner { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 26px; padding-block: 47px; }
.about-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--accent); font-size: 26px; }
.about-copy .eyebrow { margin-bottom: 7px; font-size: 9px; }
.about-copy h2 { margin-bottom: 9px; font-size: 27px; }
.about-copy > p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.about-stamp { display: flex; align-items: center; gap: 9px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.about-stamp span:nth-child(even) { color: var(--accent); font-size: 12px; }
.site-footer { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand .brand-mark { width: 31px; height: 31px; border-radius: 10px; font-size: 19px; }
.footer-brand .brand-copy strong { font-size: 9px; }
.footer-brand .brand-copy small { font-size: 8px; }
.site-footer > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.back-top { color: var(--ink-soft); font-size: 10px; text-decoration: none; white-space: nowrap; }
.back-top:hover { color: var(--accent-deep); }
@media (max-width: 820px) {
  .page-width { width: min(100% - 38px, 680px); }
  .hero { grid-template-columns: 1fr 240px; gap: 28px; min-height: 380px; padding-block: 60px; }
  h1 { font-size: clamp(43px, 7vw, 60px); }
  .hero-note { padding: 19px; }
  .filter-bottom { align-items: flex-start; flex-direction: column; }
  .filter-actions { width: 100%; justify-content: space-between; }
  .date-filters { width: 100%; }
  .about-inner { grid-template-columns: 48px minmax(0,1fr); gap: 19px; }
  .about-icon { width: 45px; height: 45px; font-size: 22px; }
  .about-stamp { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 74px; }
  .page-width { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 10px; font-size: 21px; }
  .brand-copy strong { font-size: 9px; }
  .brand-copy small { font-size: 8px; }
  .main-nav { gap: 13px; }
  .nav-link { font-size: 11px; }
  .theme-toggle { min-height: 34px; gap: 5px; padding: 6px 9px; font-size: 10px; }
  .theme-icon { width: 15px; font-size: 14px; }
  .hero { min-height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 25px; padding-block: 49px 43px; }
  .eyebrow { font-size: 8px; letter-spacing: .12em; }
  h1 { max-width: 490px; font-size: clamp(43px, 12vw, 57px); }
  .hero-description { margin-bottom: 20px; font-size: 13px; }
  .hero-note { justify-self: auto; width: 100%; max-width: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; transform: none; padding: 14px 16px; }
  .note-top { grid-column: 1 / -1; }
  .note-number { grid-row: 2 / span 2; margin-top: 4px; font-size: 47px; }
  .hero-note > p { align-self: end; margin: 6px 0 0; }
  .note-divider { display: none; }
  .note-foot { grid-column: 2; grid-row: 2 / span 2; max-width: 160px; padding: 0; font-size: 10px; }
  .hero-orbit { opacity: .6; }
  .archive-section { padding-block: 32px 58px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  h2 { font-size: 32px; }
  .section-subtitle { font-size: 11px; }
  .result-summary { padding-bottom: 0; }
  .filter-panel { padding: 11px; border-radius: 13px; }
  .search-row { flex-direction: column; }
  .search-box { min-height: 44px; }
  .search-box input { font-size: 12px; }
  kbd { display: none; }
  .search-button { min-height: 41px; width: 100%; }
  .filter-bottom { gap: 11px; margin-top: 10px; padding-top: 10px; }
  .date-filters { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 7px; }
  .filter-label { grid-column: 1 / -1; }
  .date-field { justify-content: space-between; padding-inline: 7px; }
  .date-field input { width: 99px; font-size: 9px; }
  .quick-ranges { grid-column: 1 / -1; }
  .filter-actions { align-items: center; }
  .text-button { font-size: 10px; }
  .page-size-control { font-size: 9px; }
  .archive-meta { padding-top: 16px; font-size: 9px; }
  .archive-label { font-size: 8px; }
  .meta-left { gap: 7px; }
  .archive-meta select { min-width: 80px; font-size: 10px; }
  .results { grid-template-columns: 1fr; gap: 10px; }
  .research-card { min-height: 190px; padding: 17px; }
  .research-card h3 { font-size: 20px; }
  .card-summary { font-size: 11px; }
  .empty-state { padding: 30px 14px; }
  .empty-state h3 { font-size: 24px; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .pagination-controls { width: 100%; justify-content: space-between; }
  .page-button { min-width: 29px; padding-inline: 7px; }
  .about-inner { grid-template-columns: 1fr; gap: 13px; padding-block: 33px; }
  .about-icon { width: 42px; height: 42px; }
  .about-copy h2 { font-size: 25px; }
  .about-copy > p:last-child { font-size: 11px; }
  .about-stamp { grid-column: 1; font-size: 7px; gap: 7px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding-block: 20px; }
  .site-footer > p { text-align: left; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
