:root {
  --ink: #182127;
  --muted: #5d6b73;
  --line: #d7ddd6;
  --paper: #f3f0e7;
  --card: #fffdf8;
  --navy: #163445;
  --accent: #c45c26;
  --accent-2: #2f6f4e;
  --ok-bg: #e7f3ea;
  --warn-bg: #f7ead7;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86em;
  background: #efe8d8;
  padding: 0.1em 0.35em;
  word-break: break-all;
}

.container { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-main { min-height: 60vh; }

.site-header {
  background: #000;
  color: #f4efe4;
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; color: inherit; }
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}
.brand-text { font-weight: 700; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: #d7e0e4; }
.nav-links a.is-active, .nav-links a:hover { color: #fff; }
.lang-switch { display: inline-flex; gap: 8px; margin-left: 6px; padding-left: 12px; border-left: 1px solid #3b4c57; font-size: 0.86rem; }
.lang-switch .is-active { color: #fff; font-weight: 700; }

.hero {
  background:
    linear-gradient(120deg, rgba(22, 52, 69, 0.92), rgba(22, 52, 69, 0.72)),
    radial-gradient(circle at 20% 20%, #3b6a7a, #163445 42%);
  color: #f6f1e6;
  padding: 72px 0 64px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 8px 0 16px; }
.lede { font-size: 1.12rem; max-width: 40rem; color: inherit; opacity: 0.92; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); color: #fff; }
.btn-ghost { border-color: #d9cbb6; color: inherit; background: transparent; }

.section { padding: 56px 0; }
.section-alt { background: #ebe6d8; }
.section-head, .page-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 24px; flex-wrap: wrap; }
.page-head { padding: 40px 0 8px; display: block; }
.page-head h1 { margin: 8px 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.device-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  color: inherit;
  min-height: 198px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.device-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.card-kicker { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.86rem; }
.spec-row, .spec-grid { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 8px 0 0; list-style: none; }
.spec-row li, .spec-grid li {
  background: var(--paper);
  padding: 4px 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.spec-grid { margin: 24px 0 36px; }
.spec-grid li { min-width: 140px; padding: 10px 12px; color: var(--ink); }
.spec-grid span { display: block; color: var(--muted); font-size: 0.78rem; }

.status {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  background: var(--ok-bg);
  color: var(--accent-2);
}
.status-preview { background: var(--warn-bg); color: var(--accent); }

.post-list { display: grid; gap: 14px; }
.post-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 18px;
}
.post-row h3 { margin: 0 0 6px; }
.post-row time, .post-page time { color: var(--muted); }

.device-page { padding: 36px 0 64px; }
.device-hero { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.crumb { color: var(--muted); }
.release-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  margin: 14px 0;
}
.release-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.release-head h3 { margin: 0; }
.channel { color: var(--accent); font-size: 0.8rem; }
.file-table { display: grid; gap: 10px; }
.file-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.file-name { color: var(--muted); font-size: 0.9rem; }
.file-meta { display: flex; align-items: center; gap: 12px; }
.empty, .notes { background: #efe8d8; padding: 16px 18px; }

.prose { max-width: 72ch; }
.prose h1, .prose h2, .prose h3 { line-height: 1.25; }
.post-page { padding: 40px 0 72px; }
.page-body { padding: 40px 0 72px; }

.search {
  width: min(420px, 100%);
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.site-footer {
  background: #000;
  color: #c9d2d6;
  padding: 40px 0 24px;
  margin-top: 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-logo { display: block; height: 32px; width: auto; margin-bottom: 10px; }
.site-footer a, .site-footer h4 { color: #f3eee4; display: block; }
.site-footer p { color: #9aa7ad; }
.footer-meta { margin-top: 28px; color: #7e8b91; font-size: 0.86rem; }

@media (max-width: 720px) {
  .nav-links { gap: 12px; font-size: 0.92rem; }
  .post-row, .file-row, .footer-grid, .device-hero { grid-template-columns: 1fr; display: grid; }
  .hero { padding: 48px 0; }
}
