/* Chakra Online — the landing host's CONTENT pages (devlog, press). Same brand language as style.css (dark navy, cyan
   accents, the orange Play button) without the landing's heavy hero machinery: these pages are mostly reading. */

:root {
  --bg-0: #070a14;
  --bg-1: #0b1020;
  --ink: #e8f1ff;
  --ink-2: #c9d6ee;
  --ink-dim: #9fb4d8;
  --cyan: #58c8ff;
  --cyan-soft: rgba(88, 200, 255, 0.22);
  --line: rgba(120, 180, 255, 0.16);
  --card: linear-gradient(170deg, rgba(20, 30, 52, 0.92), rgba(10, 14, 26, 0.94));
  --card-border: rgba(120, 180, 255, 0.22);
  --orange-grad: linear-gradient(160deg, #ff9d2e, #e0640f);
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 60% at 50% -10%, #12203a 0%, var(--bg-0) 60%) fixed, var(--bg-0);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ── nav ── */
.pg-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) 12px max(var(--gutter), env(safe-area-inset-left));
  background: rgba(7, 10, 20, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.pg-brand img { height: 26px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(88, 200, 255, 0.35)); }
.pg-links { display: flex; gap: 20px; margin-left: auto; }
.pg-links a { color: var(--ink-dim); text-decoration: none; font-weight: 650; font-size: 15px; }
.pg-links a:hover, .pg-links a[aria-current="page"] { color: var(--ink); }
.pg-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--cyan); }
.pg-play {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 9px 18px; border-radius: 11px; font-weight: 800; font-size: 15px; text-decoration: none;
  background: var(--orange-grad); color: #1c1206; box-shadow: 0 6px 22px rgba(255, 157, 46, 0.35);
  transition: transform 0.08s ease, filter 0.15s ease;
}
.pg-play:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pg-play-big { padding: 14px 30px; font-size: 17px; border-radius: 13px; }
@media (max-width: 560px) {
  .pg-nav { gap: 14px; }
  .pg-brand img { height: 22px; }
  .pg-links { gap: 14px; }
  .pg-hide-narrow { display: none; }
  .pg-play { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 380px) { .pg-brand { display: none; } .pg-links { margin-left: 0; } .pg-play { margin-left: auto; } }

/* ── page frame ── */
.pg-main {
  max-width: 780px; margin: 0 auto;
  padding: 40px max(var(--gutter), env(safe-area-inset-right)) 64px max(var(--gutter), env(safe-area-inset-left));
}
.pg-main.pg-wide { max-width: 1040px; }
.pg-head { margin-bottom: 30px; }
.pg-eyebrow {
  margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
}
.pg-eyebrow a { color: inherit; text-decoration: none; }
.pg-eyebrow a:hover { text-decoration: underline; }
h1 { margin: 0 0 12px; font-size: clamp(30px, 6vw, 42px); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.pg-lede { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 64ch; }

/* ── devlog list ── */
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dl-card a {
  display: block; padding: 18px 20px; border-radius: 14px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--card-border);
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.dl-card a:hover { border-color: var(--cyan); box-shadow: 0 8px 28px var(--cyan-soft); transform: translateY(-1px); }
.dl-card time, .dl-entry time { font-size: 13px; font-weight: 650; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.dl-card h2 { margin: 4px 0 6px; font-size: 20px; line-height: 1.3; color: var(--ink); }
.dl-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ── an entry ── */
.dl-renamed { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-dim); font-style: italic; }
.prose { margin-top: 22px; color: var(--ink-2); font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose h2 { margin: 34px 0 10px; font-size: 22px; line-height: 1.3; color: var(--ink); }
.prose h3 { margin: 24px 0 8px; font-size: 18px; color: var(--ink); }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--ink); font-weight: 700; }
.dl-cta {
  margin-top: 40px; padding: 22px; border-radius: 16px; text-align: center;
  background: var(--card); border: 1px solid var(--card-border);
}
.dl-cta p { margin: 0 0 14px; color: var(--ink-2); }
.dl-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.dl-pager a {
  display: block; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); font-weight: 650; font-size: 15px; line-height: 1.35;
}
.dl-pager a:hover { border-color: var(--cyan); }
.dl-pager a span { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 3px; }
.dl-newer { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .dl-pager { grid-template-columns: 1fr; } .dl-newer { grid-column: 1; text-align: left; } }

/* ── press ── */
.pr-section { margin-top: 44px; }
.pr-section > h2 { margin: 0 0 14px; font-size: 24px; }
.pr-section > p { color: var(--ink-2); max-width: 70ch; }
.pr-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0;
  margin: 0; border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; background: var(--card);
}
.pr-facts div { padding: 14px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.pr-facts dt { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.pr-facts dd { margin: 3px 0 0; color: var(--ink); }
.pr-copy {
  position: relative; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.7); color: var(--ink-2); margin: 0 0 14px;
}
.pr-copy h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.pr-copy p { margin: 0; }
.pr-features { margin: 0; padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; }
.pr-features li::marker { color: var(--cyan); }
.pr-art { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 14px; }
.pr-art figure {
  margin: 0; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-border);
  display: grid; gap: 10px; align-content: start;
}
.pr-art .pr-thumb { display: grid; place-items: center; background: #050812; border-radius: 9px; aspect-ratio: 16 / 10; overflow: hidden; }
.pr-art .pr-thumb img { max-height: 100%; width: auto; object-fit: contain; }
.pr-art figcaption { font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pr-art figcaption a { font-weight: 700; white-space: nowrap; }
.pr-note { font-size: 14.5px; color: var(--ink-dim); }
.pr-latest { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pr-latest a { color: var(--ink); text-decoration: none; font-weight: 650; }
.pr-latest a:hover { color: var(--cyan); }
.pr-latest time { display: inline-block; min-width: 9.5em; color: var(--ink-dim); font-weight: 600; font-size: 14px; }

/* ── footer ── */
.pg-foot {
  text-align: center; color: var(--ink-dim); font-size: 13px;
  padding: 44px max(var(--gutter), env(safe-area-inset-right)) calc(36px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid rgba(120, 180, 255, 0.1);
  background: linear-gradient(180deg, transparent, rgba(11, 16, 32, 0.8));
}
.pg-foot img { height: 24px; width: auto; opacity: 0.8; }
.pg-foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin: 14px 0 16px; }
.pg-foot-links a { color: var(--ink-dim); text-decoration: none; font-weight: 600; }
.pg-foot-links a:hover { color: var(--cyan); }
.pg-foot p { max-width: 70ch; margin: 0 auto 8px; }
.pg-tiny { opacity: 0.55; font-size: 11.5px; }

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