
:root {
  --navy: #0b1f3a;
  --navy-2: #132a4a;
  --ink: #152033;
  --muted: #5b667a;
  --line: #e6ebf2;
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #e8a23a;
  --accent-soft: #fff4e0;
  --teal: #1f9a8a;
  --coral: #e07a5f;
  --sky: #3d7ea6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 16px 40px rgba(11, 31, 58, 0.14);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.top-nav, .cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-nav a {
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.92rem;
  font-weight: 500;
}
.top-nav a:hover, .top-nav a.active { color: #fff !important; }
.cat-bar {
  background: var(--navy-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cat-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  overflow-x: auto;
}
.cat-nav a {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.cat-nav a:hover, .cat-nav a.active {
  color: #fff !important;
  background: rgba(232, 162, 58, 0.22);
}
.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: var(--navy) center/cover no-repeat;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.25) 0%, rgba(11,31,58,0.78) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  width: 100%;
}
.hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.draft-banner {
  background: var(--accent-soft);
  border: 1px solid #f0d4a0;
  color: #6a4a12;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.page-title {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.page-sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.card.accent-teal::before { background: var(--teal); }
.card.accent-coral::before { background: var(--coral); }
.card.accent-sky::before { background: var(--sky); }
.card.accent-amber::before { background: var(--accent); }
.card-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
}
.card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.card h2 a { color: var(--navy); }
.card h2 a:hover { color: var(--accent); }
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  flex: 1;
}
.card .read-more {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--navy);
}
.card .cat-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--navy-2);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}
.sidebar .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}
.sidebar h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a {
  display: block;
  padding: 0.65rem 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.sidebar a:hover { color: var(--accent); }
.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.6rem 2rem;
}
.article h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.article .post-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.15rem; }
.entry-content h2 {
  margin: 1.8rem 0 0.7rem;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.entry-content ul, .entry-content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}
.entry-content li { margin-bottom: 0.45rem; }
.entry-content a { color: var(--sky); text-decoration: underline; text-underline-offset: 2px; }
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 2rem 1.25rem;
  margin-top: 1rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-inner a { color: rgba(255,255,255,0.85) !important; font-size: 0.9rem; }
.footer-inner a:hover { color: var(--accent) !important; }
.footer-note { font-size: 0.85rem; opacity: 0.75; }
