
@font-face {
  font-family: Inter;
  src: url("./inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #121218;
  --panel: #1c1c25;
  --line: #34343f;
  --ink: #f9f7f2;
  --muted: #b8b5c2;
  --accent: #e1fa80;
  font: 100% Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
p { line-height: 1.65; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a, button, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 10px; background: var(--accent); color: #171a0f; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-row { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .32em; color: var(--ink); font-size: 1.15rem; font-weight: 780; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand > span:last-child { color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; margin-right: .28em; border-radius: 7px; background: var(--accent); }
.brand-mark::before { width: 13px; height: 13px; border: 3px solid #292c1a; border-radius: 4px; transform: rotate(-13deg); content: ""; }
.header-row nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.header-row nav a, .footer-link { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.header-row nav a:hover, .footer-link:hover { color: var(--accent); }
.home { padding-block: 54px 64px; }
.intro { margin-bottom: 30px; }
.intro h1, .text-page h1 { font-size: clamp(2.5rem, 6vw, 5.1rem); line-height: 1.02; letter-spacing: -.075em; font-weight: 790; }
.intro em { color: var(--accent); font-style: normal; }
.intro p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.feature { position: relative; min-height: 360px; isolation: isolate; overflow: hidden; border: 1px solid #414253; border-radius: 24px; background: #242237; display: flex; align-items: center; }
.feature-art { position: absolute; inset: 0 0 0 38%; z-index: -1; }
.feature-art img { height: 100%; width: 100%; object-fit: cover; object-position: center; }
.feature-art::after { position: absolute; inset: 0; background: linear-gradient(90deg, #242237 0%, #242237d0 14%, #24223728 52%, transparent 74%); content: ""; }
.feature-copy { width: min(100%, 540px); padding: clamp(28px, 5vw, 58px); }
.label { color: var(--accent); font-size: .875rem; letter-spacing: .07em; font-weight: 700; }
.feature h2 { margin-block: 9px 13px; font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1; letter-spacing: -.07em; text-wrap: initial; }
.feature-copy > p:not(.label) { max-width: 36ch; color: #e0dce8; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: 9px; padding: 9px 17px; text-decoration: none; font-size: .92rem; font-weight: 730; }
.primary { background: var(--accent); color: #1d240c; }
.primary:hover { background: #f0ffb9; }
.feature .button { margin-top: 24px; }
.secondary { border-color: #565663; color: var(--ink); }
.secondary:hover { border-color: var(--accent); color: var(--accent); }
.catalog, .related { margin-top: 54px; scroll-margin-top: 24px; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; }
.catalog h2, .related h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.045em; }
.search { display: flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.search input { width: min(40vw, 230px); min-height: 36px; padding: 5px 10px; border: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search button { min-height: 36px; border: 0; border-radius: 7px; padding-inline: 12px; background: #343440; color: var(--ink); font-size: .875rem; font-weight: 650; cursor: pointer; }
.search button:hover { background: #494953; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 17px 22px; }
.filters a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 650; }
.filters a:hover { border-color: var(--accent); color: var(--ink); }
.filters a[aria-current] { border-color: var(--accent); background: var(--accent); color: #1d240c; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.card:hover { border-color: #777585; }
.card-link { display: flex; flex-direction: column; width: 100%; border-radius: inherit; overflow: hidden; text-decoration: none; }
.card-cover { display: grid; place-items: center; aspect-ratio: 1.89; background: #292638; font-size: 1.4rem; font-weight: 750; text-align: center; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.card h3 { font-size: 1.35rem; letter-spacing: -.035em; }
.card-body > p:not(.meta) { color: var(--muted); }
.card-action { align-self: flex-start; margin-top: auto; padding-top: 3px; color: var(--accent); font-size: .9rem; font-weight: 700; }
.card-link:hover .card-action { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; gap: 3px 13px; color: var(--muted); font-size: .875rem; }
.meta span + span::before { display: inline-block; width: 4px; height: 4px; margin: 0 9px 3px 0; border-radius: 50%; background: currentColor; content: ""; }
.empty { padding: 26px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.empty a, .source a { color: var(--accent); }
.glossary-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 38px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 15px; }
.glossary-callout h2 { margin-bottom: 4px; font-size: 1.25rem; }
.glossary-callout p, .site-footer p { color: var(--muted); }
.glossary-callout .button { flex: none; }
.site-footer { padding-block: 26px; border-top: 1px solid var(--line); }
.site-footer p { font-size: .875rem; }
.detail, .text-page { padding-block: 34px 66px; }
.breadcrumbs { display: flex; gap: 10px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a:hover { color: var(--accent); }
.article-header { display: grid; grid-template-columns: 1.22fr 1fr; align-items: center; gap: clamp(24px, 5vw, 58px); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin-top: 9px; font-size: clamp(2.15rem, 4.7vw, 4.3rem); line-height: 1.04; letter-spacing: -.065em; }
.article-deck { margin-block: 14px; color: var(--muted); font-size: 1.1rem; }
.article-cover { width: 100%; aspect-ratio: 1.82; object-fit: cover; border-radius: 16px; background: var(--panel); }
.article-layout { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 700px); align-items: start; gap: 44px; padding-top: 35px; }
.contents { padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.contents h2 { font-size: 1rem; }
.contents ol { display: grid; gap: 8px; margin: 12px 0 2px; padding-left: 20px; }
.contents a { color: var(--muted); line-height: 1.45; font-size: .9rem; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.contents a:hover { color: var(--accent); }
.article-body section { margin-bottom: 28px; scroll-margin: 22px; }
.article-body h2, .source h2 { margin-bottom: 8px; font-size: 1.5rem; letter-spacing: -.03em; }
.article-body p { white-space: pre-line; color: #dedce4; }
.source { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--panel); }
.source h2 { font-size: 1.05rem; }
.related > h2 { margin-bottom: 18px; }
.text-page { min-height: 68vh; }
.definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 28px; }
.definitions div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.definitions dt { margin-bottom: 7px; color: var(--accent); font-weight: 750; }
.definitions dd { margin: 0; color: var(--muted); line-height: 1.65; }
.error-page { padding-top: 68px; }
@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { gap: 24px; }
  .feature-art { left: 33%; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { min-height: 63px; gap: 10px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 23px; height: 23px; }
  .header-row nav { gap: 13px; }
  .home { padding-top: 31px; }
  .intro { margin-bottom: 22px; }
  .intro p { margin-top: 12px; font-size: 1rem; }
  .feature { min-height: 0; flex-direction: column; align-items: stretch; border-radius: 16px; }
  .feature-art { position: relative; inset: auto; aspect-ratio: 1.95; }
  .feature-art::after { background: linear-gradient(0deg, #242237 0%, transparent 34%); }
  .feature-copy { padding: 8px 19px 23px; }
  .feature-copy:first-child { padding-top: 23px; }
  .feature h2 { font-size: 2.6rem; }
  .catalog, .related { margin-top: 36px; }
  .search { width: 100%; }
  .search input { width: 100%; min-width: 0; }
  .grid, .article-header, .article-layout, .definitions { grid-template-columns: minmax(0, 1fr); }
  .glossary-callout, .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-row { gap: 12px; }
  .article-header { gap: 18px; padding-bottom: 22px; }
  .article-layout { padding-top: 20px; }
}
