:root {
  color-scheme: dark;
  --bg: #100b0b;
  --panel: #1a1211;
  --panel-soft: #241816;
  --text: #fff8ef;
  --muted: #c9b8aa;
  --line: rgba(255, 255, 255, 0.12);
  --fire: #ff6b35;
  --gold: #ffbf47;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 107, 53, 0.2), transparent 34rem),
    radial-gradient(circle at 90% 14%, rgba(255, 191, 71, 0.09), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

a { color: inherit; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 11, 11, 0.86);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand span { color: var(--fire); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.button,
.article-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fire), #f04421);
  color: white !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(240, 68, 33, 0.26);
}

.button { min-height: 44px; padding: 0 20px; }
.button:hover, .article-cta:hover { transform: translateY(-1px); }

.blog-hero,
.article-hero {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.blog-hero { padding: 92px 0 54px; }
.article-hero { padding: 74px 0 48px; max-width: 860px; }

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }
h1 { margin: 14px 0 18px; font-size: clamp(2.6rem, 7vw, 5.7rem); max-width: 980px; }
.article-hero h1 { font-size: clamp(2.45rem, 6vw, 4.7rem); }
.lede { max-width: 760px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.meta { color: var(--muted); font-size: 0.9rem; }

.post-grid {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  min-height: 380px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(36, 24, 22, 0.94), rgba(26, 18, 17, 0.9));
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.post-card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 53, 0.6); }
.post-card h2 { margin: 18px 0 14px; font-size: 1.75rem; }
.post-card p { color: var(--muted); }
.post-card .read-more { margin-top: auto; color: var(--gold); font-weight: 800; }

.article-wrap {
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
  padding-bottom: 80px;
}

.article-body h2 { margin: 2.5em 0 0.65em; font-size: clamp(1.7rem, 4vw, 2.35rem); }
.article-body p, .article-body li { color: #eadfd5; }
.article-body li + li { margin-top: 0.45em; }
.article-body strong { color: var(--text); }
.article-body em { color: #ffd99a; }

.callout {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--fire);
  border-radius: 0 16px 16px 0;
  background: var(--panel-soft);
  color: #f5e8dc;
}

.article-action {
  margin: 60px 0 28px;
  padding: 32px;
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(255, 191, 71, 0.06));
  text-align: center;
}

.article-action h2 { margin: 0 0 10px; }
.article-action p { color: var(--muted); }
.article-cta { min-height: 50px; padding: 0 26px; }

.related { border-top: 1px solid var(--line); padding-top: 34px; }
.related h2 { font-size: 1.5rem; }
.related a { display: block; margin: 12px 0; color: var(--gold); font-weight: 700; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a { color: var(--muted); margin: 0 8px; }

@media (max-width: 820px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 0; }
  .nav-links > a:not(.button) { display: none; }
  .blog-hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
