:root {
  --night: #17101f;
  --plum: #3a2346;
  --card: #231830;
  --line: #5b3f52;
  --gold: #e0a93e;
  --goldl: #f6d488;
  --saffron: #e5762e;
  --verm: #c4432f;
  --peacock: #1f8a8a;
  --cream: #fbf1dd;
  --muted: #cdbbd0;
  --serif: Georgia, "Palatino Linotype", "Times New Roman", serif;
  --deva: "Nirmala UI", "Noto Sans Devanagari", Mangal, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--cream);
  font: 17px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  overflow-wrap: break-word;
  text-align: start;
}
a { color: var(--goldl); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--goldl); outline-offset: 2px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* Navigation */
nav.topnav {
  position: sticky;
  top: 0;
  z-index: 9;
  background: rgba(23, 16, 31, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
nav.topnav .wrap { display: flex; align-items: center; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand .mark { width: 56px; height: 56px; }
.brand .word-mark { height: 60px; width: auto; filter: brightness(1.18); }
.menu { display: flex; gap: 18px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--goldl); }
.soc { display: flex; gap: 12px; }
.soc a { color: var(--muted); display: grid; place-items: center; }
.soc svg { width: 20px; height: 20px; }
.lang {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px 13px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: var(--cream);
}
.lang:hover { border-color: var(--gold); color: var(--goldl); }

/* Header / Hero */
.page-head {
  background:
    radial-gradient(900px 520px at 80% 15%, #5a2f52 0, transparent 70%),
    radial-gradient(650px 460px at 10% 90%, #5a2c22 0, transparent 70%);
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--line);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--goldl); }
.crumbs span[aria-hidden="true"] { opacity: .6; }

.kicker {
  color: var(--saffron);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
h1 {
  font: 700 clamp(1.9rem, 1.3rem + 2.5vw, 3rem)/1.15 var(--serif);
  color: var(--cream);
  text-wrap: balance;
  margin-bottom: 14px;
}
h1 em { font-style: normal; color: var(--goldl); }
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

/* Devlog Index Grid */
.hub-main { padding: 42px 0 64px; }
.filter-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.badge {
  display: inline-block;
  background: var(--plum);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--goldl);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--goldl); }
.post-thumb {
  background: #120c18;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--saffron);
  font-weight: 800;
  margin-bottom: 8px;
}
.post-card h2 {
  font: 700 22px/1.25 var(--serif);
  color: var(--cream);
  margin-bottom: 10px;
  text-wrap: balance;
}
.post-card p {
  color: var(--muted);
  font-size: 15.5px;
  text-wrap: pretty;
  margin-bottom: 16px;
  flex: 1;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  text-decoration: none;
  color: var(--goldl);
}
.read-more:hover { text-decoration: underline; }

/* Roadmap Strip on Hub */
.roadmap {
  margin-top: 44px;
  background: linear-gradient(180deg, #1f1429, #2a1a33);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px;
}
.roadmap h2 {
  font: 700 26px/1.2 var(--serif);
  color: var(--goldl);
  margin-bottom: 10px;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.road-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.road-item small {
  display: block;
  color: var(--saffron);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.road-item h3 { font: 700 18px var(--serif); color: var(--cream); margin-bottom: 6px; }
.road-item p { font-size: 14.5px; color: var(--muted); }

/* Article Page Layout */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 18px 64px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--saffron);
  font-weight: 800;
}
.prose h2 {
  font: 700 clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem)/1.25 var(--serif);
  color: var(--goldl);
  margin: 34px 0 12px;
  text-wrap: balance;
}
.prose h3 {
  font: 700 20px/1.3 var(--serif);
  color: var(--cream);
  margin: 24px 0 8px;
}
.prose p {
  max-width: 65ch;
  margin-bottom: 16px;
  color: var(--cream);
  text-wrap: pretty;
}
.prose ul, .prose ol {
  max-width: 65ch;
  margin: 0 0 18px 22px;
  color: var(--muted);
}
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--cream); }
.prose code {
  background: var(--plum);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--goldl);
}
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 24px 0;
  max-width: 68ch;
}
.callout strong { color: var(--goldl); display: block; margin-bottom: 6px; }
.callout p { margin-bottom: 0; color: var(--muted); font-size: 15.5px; }

/* Figures & Screenshots */
figure.shot {
  margin: 26px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
}
figure.shot img {
  margin: 0 auto;
  border-radius: 16px;
  border: 2px solid var(--line);
  max-height: 540px;
  width: auto;
}
figure.shot.wide img {
  max-height: none;
  width: 100%;
}
figure.shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.shot-pair figure.shot { margin: 0; }
.art-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.art-grid-4 figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  text-align: center;
}
.art-grid-4 img {
  border-radius: 10px;
  border: 1px solid var(--gold);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.art-grid-4 figcaption {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Status Table (Done / In Progress / Next) */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.status-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.status-box h3 { margin-top: 0; color: var(--goldl); font-size: 18px; }
.status-box ul { margin: 10px 0 0 18px; }

/* Article Footer Navigation */
.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.btn {
  display: inline-block;
  border-radius: 99px;
  padding: 10px 22px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--gold);
}
.btn.p { background: linear-gradient(180deg, var(--goldl), var(--gold)); color: #2b1a14; }
.btn.s { color: var(--goldl); }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
footer a { margin: 0 8px; display: inline-block; }

@media (max-width: 900px) {
  .menu { display: none; }
  .soc { margin-left: auto; }
  .articles-grid, .roadmap-grid, .shot-pair, .status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .art-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav.topnav .wrap { gap: 9px; padding: 0 12px; }
  .brand .mark { width: 44px; height: 44px; }
  .brand .word-mark { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card { transition: none; }
}
