/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 */
/* Hallmark · genre: atmospheric · macrostructure: Index-First · theme: Terminal-Night · enrichment: real source screenshots · nav: N13 · footer: Ft1 · tone: dark player-reference · audience: download-guide players · use: download and article navigation */
@import url("tokens.css");

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; background: var(--color-paper); color: var(--color-ink); }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.65;
  background:
    radial-gradient(circle at 18% 4%, oklch(42% 0.070 294 / 0.48), transparent 31rem),
    radial-gradient(circle at 86% 12%, oklch(54% 0.090 145 / 0.26), transparent 27rem),
    linear-gradient(180deg, var(--color-paper), oklch(10% 0.014 292));
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.shell { width: min(1180px, calc(100vw - 2rem)); margin-inline: auto; }
.site-nav { position: sticky; top: var(--space-md); z-index: var(--z-sticky); margin: var(--space-md) auto 0; width: min(1040px, calc(100vw - 2rem)); display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; gap: var(--space-md); align-items: center; padding: var(--space-xs); background: oklch(18% 0.018 292 / 0.92); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-md); backdrop-filter: blur(18px) saturate(130%); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); min-width: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
.brand img { width: 44px; height: 28px; object-fit: contain; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pill { justify-self: center; width: min(100%, 360px); min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: 0 var(--space-sm); color: var(--color-muted); background: var(--color-paper-2); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-md); cursor: pointer; transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.search-pill:hover { border-color: var(--color-rule-2); transform: translateY(-1px); }
.search-pill kbd, .cmdk kbd { font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-ink); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-sm); padding: 0.05rem 0.3rem; background: var(--color-paper-3); }
.nav-links { display: flex; justify-content: flex-end; gap: var(--space-xs); align-items: center; }
.nav-links a, .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--space-md); border-radius: var(--radius-md); border: var(--rule-thin) solid transparent; font-weight: 700; white-space: nowrap; transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out); }
.nav-links a:hover, .btn:hover { transform: translateY(-1px); border-color: var(--color-rule-2); }
.btn-primary { color: oklch(12% 0.018 145); background: var(--color-accent); }
.btn-ghost { color: var(--color-ink); background: transparent; border-color: var(--color-rule); }
.intro { padding: var(--space-3xl) 0 var(--space-xl); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--space-2xl); align-items: end; }
.intro-copy { max-width: 58ch; }
.kicker { font-family: var(--font-outlier); color: var(--color-accent); font-size: var(--text-sm); margin: 0 0 var(--space-sm); }
body h1, body h2, body h3 { font-family: var(--font-display); font-style: normal; line-height: 1.12; letter-spacing: 0; overflow-wrap: anywhere; min-width: 0; }
body h1 { font-size: var(--text-display); margin: 0 0 var(--space-lg); font-weight: 700; }
body h2 { font-size: clamp(2rem, 3vw + 0.5rem, 3.1rem); margin: 0; font-weight: 700; }
body h3 { font-size: var(--text-lg); margin: 0 0 var(--space-xs); font-weight: 700; }
p { margin: 0; }
.lead { color: var(--color-muted); font-size: var(--text-md); }
.hero-art { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--color-paper-2); border: var(--rule-thin) solid var(--color-rule); aspect-ratio: 16 / 10; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { position: absolute; left: var(--space-md); bottom: var(--space-md); max-width: 30ch; color: var(--color-ink); background: oklch(13% 0.018 292 / 0.74); padding: var(--space-sm); border-radius: var(--radius-sm); }
.quick-index { padding: var(--space-xl) 0 var(--space-2xl); }
.index-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-xl); align-items: start; border-top: var(--rule-thin) solid var(--color-rule); border-bottom: var(--rule-thin) solid var(--color-rule); padding: var(--space-xl) 0; }
.index-side { position: sticky; top: 7rem; }
.index-side p { color: var(--color-muted); margin-top: var(--space-sm); }
.link-list { display: grid; gap: 0; }
.index-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md); align-items: center; min-height: 76px; padding: var(--space-md) 0; border-top: var(--rule-thin) solid var(--color-rule); }
.index-link:first-child { border-top: 0; }
.index-link strong { display: block; font-family: var(--font-display); font-size: var(--text-md); }
.index-link span { color: var(--color-muted); font-size: var(--text-sm); }
.index-link em { font-style: normal; color: var(--color-accent); font-family: var(--font-outlier); }
.section { padding: var(--space-2xl) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-xl); align-items: end; margin-bottom: var(--space-xl); }
.section-head p { color: var(--color-muted); max-width: 62ch; }
.info-table { width: 100%; border-collapse: collapse; background: var(--color-paper-2); border-radius: var(--radius-md); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: var(--space-md); border-bottom: var(--rule-thin) solid var(--color-rule); vertical-align: top; }
.info-table th { width: 28%; color: var(--color-accent); font-family: var(--font-outlier); font-weight: 500; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.shot-card { padding: 0; border: var(--rule-thin) solid var(--color-rule); background: var(--color-paper-2); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10; }
.shot-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease-out); }
.shot-card:hover img { transform: scale(1.03); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.tab { min-height: 44px; border: var(--rule-thin) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-muted); border-radius: var(--radius-md); padding: 0 var(--space-md); cursor: pointer; }
.tab.is-active { color: var(--color-paper); background: var(--color-accent); border-color: var(--color-accent); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.article-card, .guide-card, .download-card, .faq-item { background: var(--color-paper-2); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-md); padding: var(--space-lg); }
.article-card p, .guide-card p, .download-card p, .faq-answer { color: var(--color-muted); }
.article-card a { color: var(--color-accent); font-weight: 700; }
.guide-grid, .download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.steps { counter-reset: step; display: grid; gap: var(--space-sm); margin-top: var(--space-md); padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-sm); align-items: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-outlier); color: var(--color-accent); }
.faq-item { padding: 0; overflow: hidden; }
.faq-question { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); color: var(--color-ink); background: transparent; border: 0; cursor: pointer; text-align: left; }
.faq-answer { display: none; padding: 0 var(--space-lg) var(--space-lg); }
.faq-item.is-open .faq-answer { display: block; }
.site-footer { padding: var(--space-3xl) 0 var(--space-xl); border-top: var(--rule-thin) solid var(--color-rule); }
.foot-mast { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl); align-items: end; }
.foot-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 4rem); line-height: 1.08; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: flex-end; color: var(--color-muted); }
.footer-links a:hover { color: var(--color-accent); }
.legal { color: var(--color-soft); font-size: var(--text-sm); margin-top: var(--space-lg); }
.cmdk { position: fixed; inset: 0; z-index: var(--z-modal); opacity: 0; visibility: hidden; transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med) var(--ease-out); }
.cmdk.is-open { opacity: 1; visibility: visible; }
.cmdk-backdrop { position: absolute; inset: 0; background: oklch(8% 0.018 292 / 0.78); }
.cmdk-panel { position: absolute; top: 12vh; left: 50%; transform: translateX(-50%) translateY(-8px); width: min(620px, calc(100vw - 2rem)); background: var(--color-paper-2); border: var(--rule-thin) solid var(--color-rule-2); border-radius: var(--radius-md); padding: var(--space-md); transition: transform var(--dur-med) var(--ease-out); }
.cmdk.is-open .cmdk-panel { transform: translateX(-50%) translateY(0); }
.cmdk input { width: 100%; min-height: 48px; color: var(--color-ink); background: var(--color-paper); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-md); padding: 0 var(--space-md); }
.cmdk-list { margin-top: var(--space-sm); display: grid; gap: var(--space-xs); }
.cmdk-list button { min-height: 48px; color: var(--color-ink); background: transparent; border: var(--rule-thin) solid transparent; border-radius: var(--radius-sm); padding: 0 var(--space-md); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.cmdk-list button.is-active, .cmdk-list button:hover { background: var(--color-paper-3); border-color: var(--color-rule); }
.cmdk-list span { color: var(--color-muted); font-size: var(--text-sm); }
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: none; place-items: center; padding: var(--space-lg); background: oklch(8% 0.018 292 / 0.88); }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 82vh; border-radius: var(--radius-md); border: var(--rule-thin) solid var(--color-rule); }
.lightbox-close { position: fixed; top: var(--space-md); right: var(--space-md); }
.article-layout { display: grid; grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr); gap: var(--space-2xl); align-items: start; padding: var(--space-3xl) 0; }
.article-body { max-width: 76ch; }
body .article-body h1 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
body .article-body h2 { font-size: var(--text-xl); margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.article-body p, .article-body li { color: var(--color-muted); }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: var(--space-lg) 0; }
.article-body th, .article-body td { padding: var(--space-sm); border: var(--rule-thin) solid var(--color-rule); text-align: left; }
.article-nav { position: sticky; top: 7rem; display: grid; gap: var(--space-sm); }
@media (max-width: 920px) {
  .site-nav, .intro-grid, .index-panel, .section-head, .article-layout, .foot-mast { grid-template-columns: 1fr; }
  .index-side, .article-nav { position: static; }
  .nav-links { justify-content: flex-start; flex-wrap: wrap; }
  .gallery-strip, .guide-grid, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 1rem, 1180px); }
  .site-nav { grid-template-columns: auto 1fr; top: var(--space-xs); }
  .search-pill { justify-self: end; width: 48px; padding: 0; justify-content: center; }
  .search-pill span:not(:first-child), .search-pill kbd { display: none; }
  .nav-links { grid-column: 1 / -1; }
  .nav-links a { flex: 1 1 auto; padding-inline: var(--space-sm); }
  .intro { padding-top: var(--space-2xl); }
  .gallery-strip, .guide-grid, .download-grid { grid-template-columns: 1fr; }
  .index-link { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
