:root {
  color-scheme: dark;
  --bg: #151511;
  --ink: #f5f0e5;
  --muted: #bcb7a8;
  --gold: #e8b96b;
  --edge: #3b372c;
  --panel: #1d1c17;
  --title: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--title); font-weight: 500; line-height: 1.12; }
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
h3 { font-size: 1.5rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.shell { width: min(100% - 96px, 1200px); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 0; padding: .6rem 1rem; transform: translateY(-120%); background: var(--gold); color: #1a150d; z-index: 5; }
.skip:focus { transform: translateY(0); }
.topbar { position: relative; z-index: 2; border-bottom: 1px solid #383329; background: #151511; }
.nav { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.wordmark { display: inline-flex; gap: .65rem; align-items: center; width: max-content; font: 700 1rem/1 var(--title); letter-spacing: .13em; }
.crest { display: grid; place-items: center; height: 2.12rem; width: 2.12rem; border: 1px solid #b68a4a; color: var(--gold); border-radius: 5px 5px 11px 11px; letter-spacing: 0; font-size: 1.2rem; }
.nav nav { display: flex; gap: 1.8rem; align-items: center; }
.nav nav a { padding-block: .55rem; color: var(--muted); font-size: .96rem; }
.nav nav a:hover, .nav nav .active { color: var(--gold); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .6rem 1.15rem; border: 1px solid transparent; border-radius: 6px; font: 650 .94rem/1.25 var(--body); white-space: nowrap; cursor: pointer; }
.nav-download { justify-self: end; min-height: 39px; border-color: #665235; color: var(--gold); }
.primary { background: var(--gold); color: #1d160e; }
.primary:hover { background: #f4cf91; }
.outline { color: var(--ink); background: #171612b5; border-color: #82704f; }
.outline:hover, .nav-download:hover { border-color: var(--gold); }
.hero {
  background-color: #30271d;
  background-image: linear-gradient(90deg, #151511 1%, #171611ed 23%, #21190e61 58%, #1615111c 100%), linear-gradient(0deg, #151511a8, transparent 40%), url("kronmere-hero.jpg");
  background-position: center, center, center 55%;
  background-size: cover;
  min-height: 548px;
  display: grid;
  align-items: center;
}
.hero-content { padding-block: 4.7rem; }
.eyebrow { display: flex; gap: .62rem; align-items: center; color: var(--gold); font-size: .875rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 24px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.1rem); letter-spacing: -.045em; line-height: .98; margin: .65rem 0 1.25rem; color: #fff6e5; }
.hero-summary { color: #efe5d5; max-width: 48ch; font-size: 1.13rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.download-block { background: #1d1b15; border-block: 1px solid var(--edge); scroll-margin-top: 1rem; }
.download-layout { display: grid; grid-template-columns: 1fr 1.18fr; gap: 2rem; align-items: center; padding-block: 2rem; }
.download-layout h2 { margin: .18rem 0 .28rem; font-size: 2rem; }
.muted, .timestamp { color: var(--muted); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.platform { display: flex; align-items: center; gap: .8rem; min-width: 0; padding: .72rem; border: 1px solid var(--edge); border-radius: 7px; background: #232018; }
a.platform:hover, a.card:hover { border-color: #a78045; background: #28231a; }
.platform strong, .platform small { display: block; line-height: 1.35; }
.platform small { color: var(--muted); font-size: .875rem; margin-top: .15rem; }
.icon-box { flex: 0 0 auto; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; color: var(--gold); border: 1px solid #54462f; background: #302719; border-radius: 6px; }
.section { padding-block: 3.7rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.45rem; }
.section-heading h2 { margin-top: .25rem; }
.text-link, td a, th a, .result-list a { color: var(--gold); text-underline-offset: 4px; }
.text-link:hover, td a:hover, th a:hover, .result-list a:hover { text-decoration: underline; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { display: block; background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; padding: 1.25rem; }
.card h2, .card h3 { margin-block: .75rem .45rem; font-size: 1.6rem; }
.card p { color: var(--muted); margin-bottom: .8rem; }
.feature-card { padding: clamp(1.25rem, 2.8vw, 1.85rem); }
.feature-card .icon-box { width: 3.1rem; height: 3.1rem; }
.feature-card p { margin-bottom: 0; }
.footer { border-top: 1px solid var(--edge); background: #12120f; color: var(--muted); }
.footer-inner { padding-block: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.footer .wordmark { color: var(--ink); }
.footer-note { max-width: 58ch; line-height: 1.5; }
.footer a:hover { color: var(--gold); }
.page { min-height: 65vh; }
.page-heading { margin-block: 1rem 1.7rem; }
.page h1 { font-size: clamp(2.65rem, 7vw, 5rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); max-width: 58ch; margin-top: .6rem; }
.article { max-width: 860px; }
.prose :is(h2, p, ul, ol, table) { margin-block: 1rem; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: #e6e0d3; }
.prose table { overflow-wrap: break-word; }
.prose table th:first-child { white-space: nowrap; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.filters label { min-width: 145px; flex: 1 1 145px; max-width: 320px; }
label { display: grid; gap: .25rem; color: var(--muted); font-size: .9rem; }
input, select { min-width: 0; width: 100%; padding: .6rem .65rem; min-height: 46px; font: 1rem var(--body); color: var(--ink); background: #211f18; border: 1px solid #615641; border-radius: 5px; }
select { appearance: none; background: #211f18 url("chevron.svg") right .65rem center / 1.1rem no-repeat; padding-right: 2rem; }
.empty { background: var(--panel); border: 1px solid var(--edge); padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.timestamp { margin-bottom: .5rem; font-size: .9rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .62rem .75rem; border-bottom: 1px solid var(--edge); }
thead th { color: var(--gold); background: var(--panel); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: #1b1a15; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pagination { display: flex; gap: .75rem; margin-top: 1rem; }
.staff-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.staff-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; }
.staff-grid h2 { margin-bottom: .65rem; font-size: 1.75rem; }
.staff-grid h3 { font-size: 1.2rem; margin-block: .8rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: .5rem 0 1.5rem; }
.metrics > div { border: 1px solid var(--edge); padding: .6rem .8rem; border-radius: 5px; }
.metrics dt { color: var(--muted); }
.metrics dd { margin: 0; font-size: 1.3rem; font-weight: 600; }
.result-list { padding: 0; list-style: none; }
.result-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--edge); padding: .5rem 0; gap: 1rem; }
.login-form { display: grid; gap: .85rem; width: min(100%, 400px); }
.error { color: #ffb4a7 !important; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .hero { min-height: 480px; }
  .download-layout { grid-template-columns: 1fr; gap: 1.05rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 36px); }
  .nav { min-height: 60px; grid-template-columns: auto 1fr; gap: .6rem; }
  .nav nav { justify-self: end; gap: clamp(.55rem, 3vw, 1rem); }
  .nav nav a { font-size: .875rem; }
  .nav .wordmark { font-size: .8rem; gap: .35rem; }
  .nav .crest { height: 1.7rem; width: 1.7rem; font-size: .95rem; }
  .nav-download { display: none; }
  .hero { min-height: 470px; align-items: end; background-image: linear-gradient(0deg, #151511 0%, #191611e0 34%, #18140f22 100%), url("kronmere-hero.jpg"); background-position: center, 67% center; }
  .hero-content { padding-block: 2.25rem; }
  .hero h1 { font-size: clamp(2.35rem, 9.5vw, 3.6rem); }
  .hero-summary { font-size: 1rem; }
  .actions { margin-top: 1.2rem; }
  .section { padding-block: 2.4rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .45rem; }
  .card-grid, .staff-grid { grid-template-columns: 1fr; }
  .platform { gap: .42rem; padding: .55rem; }
  .platform .icon-box { height: 2rem; width: 2rem; }
  .platform .icon-box svg { width: 18px; height: 18px; }
  .platform small { font-size: .8rem; }
  .prose th, .prose td, th, td { padding: .45rem .4rem; }
  .metrics { gap: .35rem; }
  .metrics > div { padding: .35rem; }
  .metrics dt { font-size: .85rem; }
  .metrics dd { font-size: 1rem; }
}
@media (max-width: 350px) {
  .nav { width: calc(100% - 24px); }
  .nav nav { gap: .5rem; }
}
