:root {
  color-scheme: dark;
  --bg: #08110e; --panel: #101e17; --line: #24372b; --fg: #f1f6f0;
  --muted: #b2c0b6; --accent: #acf47d; --ink: #112418;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; left: 1rem; top: -4rem; padding: .6rem; background: var(--accent); color: var(--ink); }
.skip:focus { top: 1rem; }
.masthead { border-bottom: 1px solid var(--line); background: #0a1611; }
.masthead-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.23rem; font-weight: 900; letter-spacing: -.06em; }
.brand-number { margin-left: .08em; color: var(--accent); }
.masthead nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 46px); color: var(--muted); font-size: .94rem; font-weight: 680; }
.masthead nav a { padding: 14px 0; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--accent); }
.masthead-note, .eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .15em; color: var(--accent); }
.masthead-note { white-space: nowrap; }
.eyebrow i, .masthead-note i { display: inline-block; width: 7px; height: 7px; margin-right: .35em; border-radius: 50%; background: var(--accent); }
.hero { min-height: 472px; margin-top: 28px; display: grid; align-items: center; border: 1px solid #365040; border-radius: 24px; overflow: hidden;
  background: linear-gradient(90deg, #081611f5 0%, #081611dc 31%, #08161165 65%, #08161120 100%), url("/assets/hero.webp") center 55% / cover no-repeat, #14291e; }
.hero-copy { max-width: 720px; padding: clamp(28px, 5.8vw, 76px); }
.hero h1, .page-intro h1, .article h1 { font-size: clamp(2.5rem, 6.5vw, 5.4rem); line-height: .98; letter-spacing: -.065em; text-wrap: balance; margin: 0 0 20px; }
.hero-description { max-width: 510px; color: #d4e2d6; line-height: 1.62; font-size: clamp(1rem, 1.7vw, 1.17rem); margin-bottom: 28px; }
.hero-actions, .pager { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .admin button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 17px; min-height: 45px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.button:hover, .admin button:hover { background: #c9ffa6; }
.button.ghost, .admin button.ghost { color: var(--fg); border-color: #6e8878; background: #0b1b15a0; }
.button.ghost:hover, .admin button.ghost:hover { border-color: var(--accent); color: var(--accent); }
.block { margin-top: clamp(35px, 6vw, 66px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head .eyebrow { margin-bottom: 7px; }
h2 { margin-bottom: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.045em; line-height: 1.08; }
.section-head .text-link { margin-bottom: 3px; }
.text-link { color: var(--accent); font-size: .88rem; font-weight: 740; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.feature-grid, .news-grid { display: grid; gap: 16px; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .news-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.feature-card:hover, .news-card:hover { border-color: #51765b; }
.feature-link { display: flex; flex-direction: column; height: 100%; }
.feature-link img { aspect-ratio: 2.35; width: 100%; height: auto; object-fit: cover; }
.feature-content { padding: clamp(16px, 2.5vw, 27px); display: flex; flex-direction: column; align-items: start; flex: 1; }
.feature-content h3 { font-size: clamp(1.3rem, 3vw, 1.85rem); line-height: 1.15; letter-spacing: -.035em; margin: 11px 0 8px; }
.feature-content p, .news-card p { color: var(--muted); line-height: 1.55; }
.feature-action { margin-top: auto; color: var(--accent); font-size: .86rem; font-weight: 800; }
.badge { display: inline-block; background: #223b2b; color: #cbf2bc; border-radius: 5px; padding: 3px 8px; font-size: .69rem; font-weight: 770; }
.badge.analysis { background: #163d36; color: #a3edd6; }
.badge.predictions { background: #373023; color: #f0d9a7; }
.news-card { display: flex; flex-direction: column; padding: 19px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 11px; }
time, .publisher { color: var(--muted); font-size: .8rem; }
.news-card h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 10px; overflow-wrap: anywhere; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: .9rem; margin-bottom: 15px; overflow-wrap: anywhere; }
.card-source { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.card-source span { color: var(--accent); }
.page-intro { margin-top: 52px; }
.page-intro h1 { margin-bottom: 0; }
.page-intro + .block { margin-top: 24px; }
.block > h2 { margin-bottom: 18px; }
.pager { margin-top: 24px; }
.empty { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.article { max-width: 800px; margin: 44px auto 0; }
.article h1 { font-size: clamp(2rem, 5.5vw, 3.9rem); overflow-wrap: anywhere; line-height: 1.05; }
.article .lede { color: #d2e0d3; font-size: 1.18rem; line-height: 1.6; overflow-wrap: anywhere; }
.article figure { margin: 26px 0; }
.article figure img { border-radius: 16px; width: 100%; aspect-ratio: 2.1; object-fit: cover; }
.article figcaption, .editorial-note { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.publisher { margin-left: .5rem; }
.footer { margin-top: 65px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 16px; }
.footer p { margin: 0; font-size: .79rem; color: var(--muted); }
.admin { width: min(880px, calc(100% - 32px)); margin: 36px auto; }
.admin h1 { margin: 20px 0 10px; }
.admin label { display: block; margin-bottom: 14px; font-weight: 650; }
.admin input { display: block; width: min(100%, 360px); padding: 10px; border-radius: 8px; border: 1px solid #51765b; background: #13211a; color: var(--fg); font: inherit; }
.admin .message { color: var(--accent); }
.admin .error { color: #ffb7af; }
.admin .admin-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.admin .admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel); padding: 10px 13px; border-radius: 10px; }
.admin .admin-list small { display: block; color: var(--muted); }
.admin .admin-list button { font-size: .78rem; min-height: 34px; padding: 6px 10px; }
@media (max-width: 850px) {
  .masthead-note { display: none; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 28px); }
  .masthead-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; padding-block: 13px 0; }
  .masthead .brand { grid-area: 1 / 1; }
  .masthead .apk-download { grid-area: 1 / 2; }
  .masthead nav { grid-column: 1 / -1; justify-content: space-between; gap: 8px; }
  .hero { margin-top: 14px; min-height: 410px; background-position: 63% center; border-radius: 16px; }
  .hero-copy { padding: 22px; }
  .hero h1 { font-size: clamp(2.35rem, 10.4vw, 3.2rem); }
  .feature-grid, .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .section-head { align-items: start; flex-direction: column; gap: 7px; }
  .article { margin-top: 27px; }
}
