:root {
  --bg: #0b0d12;
  --bg-elev: #12151c;
  --card: #161a23;
  --line: #2a3040;
  --text: #eceef3;
  --muted: #9aa3b5;
  --faint: #6b7386;
  --accent: #e8b84a;
  --accent-2: #f3d07a;
  --link: #f0c35e;
  --danger: #d45d5d;
  --radius: 14px;
  --max: 1120px;
  --header: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--text); }
.mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8b84a, #b8862a);
  color: #1a1406;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
}
.brand-name { font-size: 0.95rem; }
.brand-name span { color: var(--accent); }
nav.main { display: flex; align-items: center; gap: 18px; }
nav.main a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
nav.main a:hover, nav.main a.active { color: var(--text); text-decoration: none; }
.tg {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem !important;
}
.tg:hover { background: var(--accent-2); color: var(--bg) !important; text-decoration: none; }

.hero {
  padding: 28px 0 10px;
}
.kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
h1.page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 18px; max-width: 46rem; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 8px 0 32px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid .card.featured { grid-column: 1 / span 2; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card a.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card a.card-link:hover { color: inherit; text-decoration: none; }
.thumb { aspect-ratio: 16/9; background: var(--bg-elev); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  color: var(--faint); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill {
  color: #1a1406;
  background: var(--accent);
  padding: 1px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.card h2 { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.card.featured h2 { font-size: 1.45rem; }
.card a.card-link:hover h2 { color: var(--accent-2); }
.excerpt { color: var(--muted); font-size: 0.92rem; margin: 0; }

.article { padding: 28px 0 48px; max-width: 760px; }
.article h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; margin: 8px 0 14px; }
.hero-img {
  margin: 18px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.hero-img img { width: 100%; max-height: 480px; object-fit: cover; }
.summary { font-size: 1.08rem; color: var(--text); }
.attr { color: var(--muted); font-size: 0.92rem; }
.original {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: #1a1406 !important;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none !important;
}
.original:hover { background: var(--accent-2); color: #1a1406 !important; }

.legal { padding: 28px 0 56px; max-width: 760px; }
.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 1.6em; font-size: 1.2rem; }
.legal p, .legal li { color: #d5d9e3; }

.pager { display: flex; gap: 12px; align-items: center; padding: 0 0 48px; }
.pager a, .pager span { color: var(--muted); font-weight: 600; }
.pager a { border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.pager a:hover { color: var(--text); border-color: var(--accent); }

.search-box {
  display: flex; gap: 8px; margin: 8px 0 22px;
}
.search-box input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 1rem;
}
.search-box button {
  background: var(--accent);
  color: #1a1406;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

footer.site {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #090b0f;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent-2); }
.foot-brand { color: var(--text); font-weight: 700; margin-bottom: 8px; }
.disclaimer-mini { color: var(--faint); font-size: 0.8rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.4rem; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0; right: 0;
    background: #0e1118;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  nav.main.open { display: flex; }
}
