/* ==========================================================
   hum n play — shared styles for the new pages
   (home, /discover/, and the category pages)
   Light by default; dark when <html data-theme="dark">.
   Text is always navy in light mode. Category colours only
   appear on dots, icons, picture squares and category titles.
   ========================================================== */

:root {
  --bg: #ffffff;
  --band: #e9eef2;          /* Cloud */
  --card: #ffffff;
  --line: #e3e2ea;          /* Rule */
  --ink: #07084f;           /* Navy */
  --soft: rgba(7, 8, 79, 0.62);
  --btn-bg: #07084f;
  --btn-ink: #ffffff;
  --focus: #159bc3;
  --discover: #95d8eb;      /* Light (New View Advice) */
  color-scheme: light;
}
/* DARK MODE IS SWITCHED OFF for now (see DARK_MODE_ENABLED in hnp-ui.js).
   To turn it back on, also put this back at the top of each new page's
   <head>, so the right theme shows before the page paints:
   <script>(function(){var t=null;try{t=localStorage.getItem('hnp_theme')}catch(e){}
   if(!t)t=(window.matchMedia&&matchMedia('(prefers-color-scheme: dark)').matches)?'dark':'light';
   document.documentElement.setAttribute('data-theme',t);})();</script>
   The styles below are kept ready. */
/* Dark mode: near-black with a hint of navy (not the full brand navy),
   surfaces one step lighter, softer off-white text. */
html[data-theme="dark"] {
  --bg: #101223;
  --band: #171a2e;
  --card: #1a1c30;
  --line: #2b2e47;
  --ink: #eceef4;
  --soft: #a9adc4;
  --btn-bg: #eceef4;
  --btn-ink: #101223;
  --focus: #95d8eb;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
img, video, svg { display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- small type ---------- */
.eyebrow {
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--soft);
}
.serif { font-family: 'Gloock', Georgia, serif; font-weight: 400; }

/* ---------- theme switch ---------- */
.theme-toggle {
  flex: none;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- category chips + dots ---------- */
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--c, currentColor); }
html[data-theme="dark"] .dot { background: var(--cd, var(--c, currentColor)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tag .dot { width: 8px; height: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-new {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  margin-left: 6px;
  vertical-align: 2px;
}

/* ---------- compact game card ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card {
  display: flex; align-items: center; gap: 14px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-1px); }
/* Game cards wear a soft wash of their category colour (Oct 2026), with the
   icon on a white tile. --tl is the tint mixed halfway to white (see vars()). */
.card.tinted { background: var(--tl, var(--card)); border-color: transparent; }
.card.tinted:hover { border-color: var(--ink); }
.card.tinted .art { background: var(--card); }
html[data-theme="dark"] .card.tinted { background: var(--td); }
html[data-theme="dark"] .card.tinted .art { background: var(--card); }
.art {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.art { background: var(--t); color: var(--c); }
html[data-theme="dark"] .art { background: var(--td); color: var(--cd); }
.art svg { width: 34px; height: 34px; }
.card-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.card-line { font-size: 14px; line-height: 1.35; color: var(--soft); margin-top: 2px; }

/* ---------- section heading row ---------- */
.row-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  margin: 0 0 14px;
}
.row-head h2, .row-head h3 { margin: 2px 0 0; font-family: 'Gloock', Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.1; }
.row-head .eyebrow { display: flex; align-items: center; gap: 8px; }
.see-all {
  flex: none;
  font-size: 15px; font-weight: 600;
  padding: 10px 0;
  color: var(--ink);
}

/* ---------- discover box (always light blue + navy text) ---------- */
.discover-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--discover);
  color: #07084f;
  text-decoration: none;
}
.discover-box .db-title { font-family: 'Gloock', Georgia, serif; font-size: 26px; line-height: 1.15; }
.discover-box .db-line { font-size: 15px; color: rgba(7, 8, 79, 0.75); margin-top: 4px; }
html[data-theme="dark"] .discover-box { background: #1d4656; color: #eceef4; }
html[data-theme="dark"] .discover-box .db-line { color: rgba(236, 238, 244, 0.78); }
.discover-box .db-btn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px;
  background: #ffffff; color: #07084f;
  font-weight: 600; font-size: 15px;
}

/* ---------- footer (shared footer script fills it in) ---------- */
footer.hnp-footer {
  padding: 28px 20px 36px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--soft);
  border-top: 1px solid var(--line);
  max-width: none !important;
}
footer.hnp-footer a { color: var(--soft); text-decoration: none; }
footer.hnp-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-wrap { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-wrap footer.hnp-footer { border-top: 0; max-width: 1100px !important; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .row-head h2, .row-head h3 { font-size: 24px; }
  .discover-box { padding: 18px; }
  .discover-box .db-title { font-size: 22px; }
  .discover-box .db-btn { width: 46px; padding: 0; font-size: 0; }
  .discover-box .db-btn::after { content: '→'; font-size: 18px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
