/*
Theme Name: Hello-Monolith
Theme URI: https://hello-monolith.tech
Author: Hello-Monolith
Description: A calm, flexible games, information, and services theme for Hello-Monolith, powered by Hello Monolith Core.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: hello-monolith
*/

@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 700; font-display: swap; }
:root {
  color-scheme: dark;
  --hm-bg: #101411;
  --hm-bg-soft: #171c18;
  --hm-panel: #1c231e;
  --hm-line: rgba(231, 239, 231, .13);
  --hm-ink: #eff3ee;
  --hm-muted: #a4afa5;
  --hm-text-soft: #c0c9c0;
  --hm-acid: #bad2b5;
  --hm-lilac: #b6c9bd;
  --hm-orange: #d7bda0;
  --hm-red: #d99d9c;
  --hm-on-accent: #152018;
  --hm-header: rgba(16,20,17,.88);
  --hm-nav-ink: #d0d9d1;
  --hm-input: #1a211c;
  --hm-width: 1240px;
  --hm-radius: 20px;
  --hm-ease: cubic-bezier(.2, .72, .2, 1);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  background: var(--hm-bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--hm-bg); color: var(--hm-ink); font-size: 16px; line-height: 1.65; }
h1, h2, h3, h4, h5, h6, .brand-name { font-family: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif; }
body::before { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; background: radial-gradient(ellipse at 12% 2%, rgba(87, 94, 126, .12), transparent 32%), radial-gradient(ellipse at 92% 28%, rgba(157, 90, 125, .08), transparent 29%); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hm-acid); }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--hm-acid); color: #111; }
:focus-visible { outline: 2px solid var(--hm-acid); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 50; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; color: #111; background: var(--hm-acid); }
.skip-link:focus { transform: translateY(0); }
.site-shell { width: min(calc(100% - 56px), var(--hm-width)); margin-inline: auto; }
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--hm-line); background: var(--hm-header); backdrop-filter: blur(18px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { position: relative; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(209,251,104,.6); border-radius: 11px 11px 11px 3px; color: var(--hm-acid); font-size: 12px; font-weight: 900; letter-spacing: -.12em; transform: rotate(-7deg); }
.brand-mark::after { position: absolute; right: -5px; bottom: -5px; width: 9px; height: 9px; border: 1px solid var(--hm-lilac); border-radius: 50%; content: ""; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.brand-kicker { margin-top: 5px; color: var(--hm-muted); font-size: 9px; letter-spacing: .21em; text-transform: uppercase; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 38px); margin: 0; padding: 0; list-style: none; }
.primary-navigation a { color: #c4c7cc; font-size: 12px; font-weight: 650; letter-spacing: .05em; transition: color .2s ease; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--hm-acid); }
.header-index { color: var(--hm-muted); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 10px; letter-spacing: .12em; }
.menu-toggle { display: none; padding: 8px 11px; border: 1px solid var(--hm-line); border-radius: 999px; color: var(--hm-ink); background: transparent; }
.mode-toggle { display: inline-grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--hm-line); border-radius: 50%; color: var(--hm-ink); background: var(--hm-panel); font-size: 17px; line-height: 1; transition: border-color .2s ease, transform .2s ease; }
.mode-toggle:hover { border-color: var(--hm-acid); transform: rotate(-10deg); }
main { min-height: 60vh; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr); gap: 32px; align-items: center; min-height: 620px; padding: 70px 0 76px; overflow: hidden; }
.hero::before { position: absolute; top: 13%; left: 3%; width: 420px; height: 420px; border: 1px solid rgba(209,251,104,.07); border-radius: 50%; box-shadow: 0 0 0 45px rgba(209,251,104,.018), 0 0 0 90px rgba(209,251,104,.012); content: ""; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.eyebrow, .micro-label { display: inline-flex; align-items: center; gap: 9px; color: var(--hm-acid); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 1px; background: currentColor; content: ""; }
.hero h1 { max-width: 680px; margin: 24px 0 21px; font-size: clamp(48px, 7.2vw, 94px); font-weight: 760; letter-spacing: -.075em; line-height: .96; }
.hero h1 em { color: var(--hm-acid); font-style: normal; }
.hero-intro { max-width: 510px; margin: 0 0 30px; color: var(--hm-text-soft); font-size: clamp(15px, 1.5vw, 18px); }
.hero-search { display: flex; max-width: 570px; align-items: center; padding: 6px; border: 1px solid rgba(241,244,237,.17); border-radius: 999px; background: rgba(20,23,28,.78); box-shadow: 0 14px 50px rgba(0,0,0,.2); }
.hero-search input[type="search"] { min-width: 0; flex: 1; padding: 12px 17px; border: 0; outline: 0; color: var(--hm-ink); background: transparent; font-size: 13px; }
.hero-search input::placeholder { color: #757b84; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 19px; border: 1px solid transparent; border-radius: 999px; color: var(--hm-on-accent); background: var(--hm-acid); font-size: 11px; font-weight: 800; letter-spacing: .045em; transition: transform .22s var(--hm-ease), box-shadow .22s ease, background .22s ease; }
.button:hover { color: var(--hm-on-accent); background: color-mix(in srgb, var(--hm-acid) 88%, white); box-shadow: 0 10px 34px color-mix(in srgb, var(--hm-acid) 20%, transparent); transform: translateY(-2px); }
.button-secondary { border-color: var(--hm-line); color: var(--hm-ink); background: var(--hm-panel); }
.button-secondary:hover { color: var(--hm-ink); background: var(--hm-bg-soft); }
.button-small { min-height: 38px; padding-inline: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 15px; }
.hero-art { position: relative; min-height: 440px; perspective: 950px; }
.art-halo { position: absolute; inset: 7% 6% 8% 2%; border: 1px solid rgba(185,162,255,.16); border-radius: 49% 51% 47% 53%; background: radial-gradient(circle at 54% 44%, rgba(185,162,255,.14), transparent 58%); transform: rotate(-15deg); }
.art-orbit { position: absolute; inset: 1% 0 4% 0; border: 1px solid rgba(209,251,104,.2); border-radius: 50%; transform: rotate(31deg) scaleY(.55); }
.art-orbit::before, .art-orbit::after { position: absolute; top: 12%; left: 20%; width: 8px; height: 8px; border-radius: 50%; background: var(--hm-acid); box-shadow: 0 0 24px var(--hm-acid); content: ""; }
.art-orbit::after { top: auto; right: 13%; bottom: 7%; left: auto; width: 5px; height: 5px; background: var(--hm-orange); box-shadow: 0 0 20px var(--hm-orange); }
.art-window { position: absolute; top: 18%; left: 11%; width: 78%; min-height: 285px; overflow: hidden; border: 1px solid rgba(245,245,239,.21); border-radius: 18px; background: linear-gradient(145deg, rgba(42,45,53,.97), rgba(15,17,22,.97)); box-shadow: 18px 24px 70px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.08); transform: rotateY(-11deg) rotateX(5deg) rotateZ(-3deg); }
.art-window-bar { display: flex; height: 39px; align-items: center; gap: 7px; padding: 0 13px; border-bottom: 1px solid var(--hm-line); }
.art-window-bar span { width: 6px; height: 6px; border-radius: 50%; background: #656a71; }
.art-window-bar span:first-child { background: var(--hm-red); }
.art-window-bar span:nth-child(2) { background: var(--hm-orange); }
.art-window-bar span:nth-child(3) { background: var(--hm-acid); }
.art-window-bar b { width: 42%; height: 13px; margin: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 99px; background: rgba(0,0,0,.16); }
.art-screen { position: relative; display: grid; min-height: 244px; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 75%, rgba(255,141,89,.36), transparent 32%), radial-gradient(ellipse at 53% 36%, rgba(185,162,255,.48), transparent 38%), linear-gradient(155deg, #242436, #12151d 70%); }
.art-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.art-monolith { position: relative; width: 91px; height: 168px; border: 1px solid rgba(240,239,255,.74); border-radius: 45% 45% 5px 5px; background: linear-gradient(130deg, rgba(232,223,255,.9), rgba(185,162,255,.17) 28%, rgba(16,18,30,.97) 70%); box-shadow: 0 0 75px rgba(185,162,255,.45), inset 9px 0 19px rgba(255,255,255,.15); transform: skewY(-8deg); }
.art-monolith::before { position: absolute; top: 18px; left: 25px; width: 27px; height: 1px; background: var(--hm-acid); box-shadow: 0 0 17px var(--hm-acid); content: ""; }
.art-monolith::after { position: absolute; right: 12px; bottom: 19px; left: 12px; height: 2px; background: linear-gradient(90deg, transparent, var(--hm-orange), transparent); content: ""; }
.art-caption { position: absolute; right: 13%; bottom: 5%; color: rgba(244,245,241,.5); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.art-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid rgba(245,245,239,.15); border-radius: 12px; background: rgba(22,24,30,.86); box-shadow: 0 15px 45px rgba(0,0,0,.25); backdrop-filter: blur(12px); }
.art-float strong { display: block; font-size: 10px; line-height: 1.3; }
.art-float small { color: var(--hm-muted); font-size: 9px; }
.float-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hm-acid); box-shadow: 0 0 15px rgba(209,251,104,.8); }
.art-float-one { top: 16%; right: 0; }
.art-float-two { bottom: 12%; left: 0; }
.float-index { color: var(--hm-lilac); font-family: ui-monospace, monospace; font-size: 11px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 31px; margin-top: 43px; }
.hero-stat { display: grid; gap: 2px; }
.hero-stat strong { font-size: 18px; font-weight: 720; letter-spacing: -.04em; }
.hero-stat span { color: var(--hm-muted); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.section { padding: 76px 0; border-top: 1px solid var(--hm-line); }
.section-tight { padding-block: 46px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2, .page-heading h1 { margin: 9px 0 0; font-size: clamp(30px, 4.1vw, 48px); font-weight: 720; letter-spacing: -.065em; line-height: 1.05; }
.section-heading p { max-width: 470px; margin: 7px 0 0; color: var(--hm-muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--hm-acid); font-size: 11px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.text-link::after { content: "↗"; font-size: 15px; transition: transform .2s ease; }
.text-link:hover::after { transform: translate(3px, -2px); }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.game-grid-featured { grid-template-columns: 1.45fr 1fr 1fr; align-items: stretch; }
.game-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: var(--hm-panel); transition: border-color .25s ease, transform .25s var(--hm-ease), box-shadow .25s ease; }
.game-card:hover { border-color: rgba(209,251,104,.38); box-shadow: 0 22px 60px rgba(0,0,0,.23); transform: translateY(-5px); }
.game-card-art { position: relative; min-height: 188px; overflow: hidden; background: radial-gradient(ellipse at 72% 72%, rgba(255,141,89,.3), transparent 38%), radial-gradient(ellipse at 30% 24%, rgba(185,162,255,.4), transparent 45%), linear-gradient(138deg, #24242f, #11141a 69%); }
.game-card-art::before { position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(45deg, transparent 45%, rgba(255,255,255,.12) 45.5%, transparent 46%), linear-gradient(-45deg, transparent 57%, rgba(255,255,255,.08) 57.5%, transparent 58%); background-size: 58px 58px; content: ""; }
.game-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--hm-ease); }
.game-card:hover .game-card-art img { transform: scale(1.04); }
.game-card:nth-child(3n+2) .game-card-art { background: radial-gradient(ellipse at 65% 34%, rgba(209,251,104,.24), transparent 38%), linear-gradient(145deg, #26302a, #15171b 68%); }
.game-card:nth-child(3n) .game-card-art { background: radial-gradient(ellipse at 35% 34%, rgba(252,85,116,.3), transparent 42%), linear-gradient(145deg, #30232c, #15151c 68%); }
.game-card-featured .game-card-art { min-height: 304px; }
.card-art-index { position: absolute; right: 15px; bottom: 12px; color: rgba(255,255,255,.38); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .17em; }
.card-tag { position: absolute; top: 13px; left: 13px; z-index: 1; padding: 5px 8px; border: 1px solid rgba(245,245,239,.19); border-radius: 999px; color: #e9ebeb; background: rgba(9,10,13,.5); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); }
.game-card-copy { display: flex; flex: 1; flex-direction: column; padding: 16px 17px 18px; }
.game-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--hm-muted); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.game-card h3 { margin: 10px 0 7px; font-size: 18px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.game-card p { margin: 0 0 17px; color: #a4a8af; font-size: 12px; line-height: 1.55; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 5px; }
.card-details { color: #b9bdc3; font-size: 10px; font-weight: 700; }
.card-play { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid rgba(209,251,104,.28); border-radius: 999px; color: var(--hm-acid); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; transition: color .2s ease, background .2s ease; }
.card-play:hover { color: #11140b; background: var(--hm-acid); }
.card-play::after { content: "↗"; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a, .tag-list span { padding: 4px 8px; border: 1px solid var(--hm-line); border-radius: 999px; color: #b5bac1; font-size: 9px; }
.genre-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 9px; }
.genre-link { position: relative; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; padding: 15px; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 14px; background: linear-gradient(145deg, rgba(22,25,31,.94), rgba(15,17,21,.94)); transition: border-color .2s ease, transform .2s ease; }
.genre-link:hover { border-color: rgba(185,162,255,.52); transform: translateY(-3px); }
.genre-symbol { color: var(--hm-lilac); font-family: ui-monospace, monospace; font-size: 18px; }
.genre-link strong { font-size: 12px; font-weight: 680; }
.genre-link small { color: var(--hm-muted); font-family: ui-monospace, monospace; font-size: 9px; }
.alphabet { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 20px; }
.alphabet a { display: grid; min-width: 34px; height: 35px; place-items: center; border: 1px solid var(--hm-line); border-radius: 8px; color: #b9bdc3; font-family: ui-monospace, monospace; font-size: 10px; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.alphabet a:hover, .alphabet a.is-active { border-color: rgba(209,251,104,.53); color: var(--hm-acid); background: rgba(209,251,104,.05); }
.directory-panel { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 28px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: linear-gradient(115deg, rgba(185,162,255,.08), rgba(21,24,30,.83) 38%, rgba(209,251,104,.045)); }
.directory-index { color: var(--hm-lilac); font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; writing-mode: vertical-rl; transform: rotate(180deg); }
.directory-panel h2 { margin: 0; font-size: clamp(24px,3vw,35px); letter-spacing: -.055em; }
.directory-panel p { margin: 6px 0 0; color: var(--hm-muted); font-size: 12px; }
.project-grid, .article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.project-card, .article-card { overflow: hidden; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: var(--hm-panel); transition: transform .25s var(--hm-ease), border-color .25s ease; }
.project-card:hover, .article-card:hover { border-color: rgba(185,162,255,.42); transform: translateY(-4px); }
.project-art, .article-art { min-height: 195px; overflow: hidden; background: radial-gradient(ellipse at 72% 30%, rgba(185,162,255,.29), transparent 38%), linear-gradient(140deg, #282630, #11141a 75%); }
.project-art img, .article-art img { width: 100%; height: 195px; object-fit: cover; }
.project-copy, .article-copy { padding: 19px; }
.project-copy h3, .article-copy h3 { margin: 7px 0 9px; font-size: 20px; line-height: 1.2; letter-spacing: -.045em; }
.project-copy p, .article-copy p { margin: 0 0 17px; color: var(--hm-muted); font-size: 12px; }
.article-meta { color: var(--hm-muted); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.empty-state { padding: 28px; border: 1px dashed rgba(245,245,239,.2); border-radius: var(--hm-radius); color: var(--hm-muted); text-align: center; }
.site-footer { margin-top: 50px; border-top: 1px solid var(--hm-line); background: #08090b; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 45px; padding: 56px 0 34px; }
.footer-brand p { max-width: 390px; margin: 18px 0 0; color: var(--hm-muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; align-content: start; gap: 11px 24px; }
.footer-links a { color: #aeb2b8; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0 23px; border-top: 1px solid var(--hm-line); color: #737880; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .06em; }
.page-hero { padding: 69px 0 36px; }
.page-heading { max-width: 820px; }
.page-heading p { max-width: 650px; color: var(--hm-muted); font-size: 14px; }
.page-kicker { color: var(--hm-acid); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.filter-panel { display: grid; grid-template-columns: minmax(190px,2fr) repeat(4,minmax(120px,1fr)) auto; gap: 8px; align-items: end; margin: 8px 0 22px; padding: 14px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-bg-soft); }
.field-label { display: grid; gap: 5px; color: var(--hm-muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 41px; padding: 0 11px; border: 1px solid rgba(245,245,239,.12); border-radius: 8px; color: var(--hm-ink); background: #15181e; font-size: 11px; }
.filter-panel select option { background: #15181e; }
.filter-panel .button { min-height: 41px; padding-inline: 14px; }
.filter-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; align-items: center; margin: 22px 0 12px; color: var(--hm-muted); font-family: ui-monospace, monospace; font-size: 10px; }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 32px 0 8px; }
.pagination .page-numbers { display: grid; min-width: 37px; height: 37px; place-items: center; border: 1px solid var(--hm-line); border-radius: 9px; color: #bec2c8; font-size: 11px; }
.pagination .current { border-color: var(--hm-acid); color: #111; background: var(--hm-acid); }
.game-detail { padding: 50px 0 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; color: var(--hm-muted); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .07em; }
.breadcrumb span::before { margin-right: 8px; color: #59606a; content: "/"; }
.game-detail-top { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: clamp(28px,5vw,66px); align-items: center; }
.detail-art { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 24px; background: radial-gradient(ellipse at 60% 44%, rgba(185,162,255,.35), transparent 40%), radial-gradient(ellipse at 40% 78%, rgba(255,141,89,.2), transparent 38%), #14161c; }
.detail-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-art::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.04); border-radius: inherit; content: ""; pointer-events: none; }
.detail-copy h1 { margin: 11px 0 12px; font-size: clamp(42px, 6vw, 74px); line-height: .96; letter-spacing: -.075em; }
.detail-copy .lead { color: #b7bbc0; font-size: 15px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.external-note { color: #898f98; font-size: 10px; }
.status-note { margin: 20px 0 0; padding: 13px 15px; border-left: 2px solid var(--hm-orange); color: #d4c2b7; background: rgba(255,141,89,.07); font-size: 12px; }
.detail-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 22px; }
.detail-meta > div { min-height: 77px; padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 12px; background: rgba(19,21,26,.8); }
.detail-meta dt { color: var(--hm-muted); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.detail-meta dd { margin: 5px 0 0; color: var(--hm-ink); font-size: 12px; }
.prose { max-width: 780px; color: #c3c6ca; font-size: 15px; }
.prose h2, .prose h3 { margin-top: 1.9em; color: var(--hm-ink); letter-spacing: -.035em; }
.prose a { color: var(--hm-acid); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin-inline: 0; padding: 5px 20px; border-left: 2px solid var(--hm-lilac); color: #d6d2e3; }
.prose :where(img, figure) { border-radius: 14px; }
.source-attribution { padding: 17px 20px; border: 1px solid var(--hm-line); border-radius: 13px; color: var(--hm-muted); background: var(--hm-bg-soft); font-size: 11px; }
.source-attribution a { color: var(--hm-acid); }
.project-detail-hero { display: grid; grid-template-columns: 1fr .9fr; gap: 38px; align-items: center; padding: 54px 0 28px; }
.project-detail-hero .project-cover { min-height: 330px; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 22px; background: linear-gradient(145deg, #232331, #11141a); }
.project-cover img { width: 100%; height: 330px; object-fit: cover; }
.project-detail-hero h1 { margin: 10px 0; font-size: clamp(42px,6vw,72px); line-height: .96; letter-spacing: -.075em; }
.project-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.project-gallery img { width: 100%; border: 1px solid var(--hm-line); border-radius: 12px; }
.post-layout { display: grid; grid-template-columns: minmax(0,760px) 1fr; gap: 60px; padding: 56px 0; }
.post-header h1 { margin: 12px 0; font-size: clamp(38px,6vw,68px); letter-spacing: -.07em; line-height: 1; }
.post-header .article-meta { display: flex; flex-wrap: wrap; gap: 14px; }
.post-featured { margin: 25px 0 32px; overflow: hidden; border-radius: 18px; }
.post-featured img { width: 100%; max-height: 520px; object-fit: cover; }
.post-sidebar { padding-top: 25px; }
.post-sidebar h2 { color: var(--hm-lilac); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.post-sidebar a { display: block; padding: 12px 0; border-bottom: 1px solid var(--hm-line); color: #b9bdc3; font-size: 12px; }
.post-categories { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.post-categories a { padding: 5px 9px; border: 1px solid var(--hm-line); border-radius: 99px; color: #abb0b7; font-size: 9px; }
.site-search { display: flex; max-width: 500px; gap: 8px; margin-top: 22px; }
.site-search input[type="search"] { flex: 1; min-width: 0; min-height: 44px; padding: 0 13px; border: 1px solid var(--hm-line); border-radius: 9px; color: var(--hm-ink); background: var(--hm-bg-soft); }
.reveal { animation: hm-rise .65s var(--hm-ease) both; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .header-index { display: none; }
  .hero { min-height: auto; grid-template-columns: minmax(0,1fr) minmax(280px,.82fr); padding-block: 66px; }
  .hero-art { min-height: 360px; }
  .art-window { min-height: 255px; }
  .art-screen { min-height: 216px; }
  .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .genre-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .filter-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .filter-panel .search-field { grid-column: span 2; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .site-shell { width: min(calc(100% - 34px), var(--hm-width)); }
  .header-inner { min-height: 70px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .primary-navigation { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; padding: 12px 17px 18px; border-bottom: 1px solid var(--hm-line); background: var(--hm-bg); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-navigation li a { display: block; padding: 13px 3px; border-bottom: 1px solid var(--hm-line); font-size: 13px; }
  .hero { display: block; padding: 58px 0 50px; }
  .hero h1 { max-width: 560px; font-size: clamp(47px,14vw,74px); }
  .hero-art { min-height: 340px; max-width: 500px; margin: 28px auto 0; }
  .art-window { left: 12%; width: 76%; }
  .hero-stats { gap: 20px; margin-top: 30px; }
  .section { padding: 57px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .game-grid, .game-grid-featured { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-card-featured .game-card-art { min-height: 188px; }
  .genre-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .genre-link { min-height: 94px; padding: 12px; }
  .directory-panel { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .directory-index { writing-mode: initial; transform: none; }
  .project-grid, .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-art, .article-art, .project-art img, .article-art img { min-height: 155px; height: 155px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; padding-top: 42px; }
  .footer-links { justify-content: start; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .page-hero { padding-top: 48px; }
  .filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-panel .search-field { grid-column: 1 / -1; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-detail-top, .project-detail-hero { grid-template-columns: 1fr; }
  .detail-art { min-height: 280px; order: 2; }
  .game-detail-top .detail-copy { order: 1; }
  .detail-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-detail-hero { gap: 18px; padding-top: 42px; }
  .project-detail-hero .project-cover, .project-cover img { min-height: 245px; height: 245px; }
  .post-layout { grid-template-columns: 1fr; gap: 15px; padding-top: 42px; }
  .post-sidebar { padding-top: 0; }
}
@media (max-width: 430px) {
  .brand-kicker { font-size: 8px; }
  .hero-search { border-radius: 14px; }
  .hero-search input[type="search"] { padding-inline: 10px; font-size: 11px; }
  .hero-search .button { min-height: 40px; padding-inline: 12px; font-size: 9px; }
  .game-grid, .game-grid-featured, .archive-grid, .project-grid, .article-grid { grid-template-columns: 1fr; }
  .game-card-art, .game-card-featured .game-card-art { min-height: 210px; }
  .genre-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-panel .search-field { grid-column: auto; }
  .filter-panel .button { width: 100%; }
  .alphabet { gap: 4px; }
  .alphabet a { min-width: 30px; height: 31px; }
  .detail-meta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Palette presets use gentle, high-contrast accents in both colour modes. */
:root { --hm-accent-dark: #bad2b5; --hm-accent-light: #527b59; --hm-lilac-light: #746b91; --hm-acid: var(--hm-accent-dark); }
html[data-hm-palette="ocean"] { --hm-accent-dark: #a7cbd5; --hm-accent-light: #397082; --hm-lilac: #adc5db; --hm-lilac-light: #536f91; --hm-orange: #d6b795; }
html[data-hm-palette="lavender"] { --hm-accent-dark: #c7b9df; --hm-accent-light: #715b91; --hm-lilac: #bdb8dc; --hm-lilac-light: #675f8c; --hm-orange: #d6b5a5; }
html[data-hm-palette="sand"] { --hm-accent-dark: #dfc79d; --hm-accent-light: #795f3c; --hm-lilac: #c7b5a7; --hm-lilac-light: #786352; --hm-orange: #d3ad88; }
html[data-hm-palette="sage"] { --hm-lilac-light: #637d6a; }

html[data-hm-mode="light"] {
  color-scheme: light;
  --hm-bg: #f5f7f3;
  --hm-bg-soft: #edf1ec;
  --hm-panel: #ffffff;
  --hm-line: rgba(42, 57, 45, .14);
  --hm-ink: #253027;
  --hm-muted: #667368;
  --hm-text-soft: #536257;
  --hm-acid: var(--hm-accent-light);
  --hm-lilac: var(--hm-lilac-light);
  --hm-on-accent: #ffffff;
  --hm-header: rgba(245,247,243,.94);
  --hm-nav-ink: #445247;
  --hm-input: #ffffff;
}
@media (prefers-color-scheme: light) {
  html[data-hm-mode="system"] {
    color-scheme: light;
    --hm-bg: #f5f7f3;
    --hm-bg-soft: #edf1ec;
    --hm-panel: #ffffff;
    --hm-line: rgba(42, 57, 45, .14);
    --hm-ink: #253027;
    --hm-muted: #667368;
    --hm-text-soft: #536257;
    --hm-acid: var(--hm-accent-light);
    --hm-lilac: var(--hm-lilac-light);
    --hm-on-accent: #ffffff;
    --hm-header: rgba(245,247,243,.94);
    --hm-nav-ink: #445247;
    --hm-input: #ffffff;
  }
}

html[data-hm-mode="light"] body::before { opacity: .35; }
html[data-hm-mode="light"] .primary-navigation a { color: var(--hm-nav-ink); }
html[data-hm-mode="light"] .primary-navigation,
html[data-hm-mode="light"] .site-footer { background: var(--hm-bg-soft); }
html[data-hm-mode="light"] .hero-search,
html[data-hm-mode="light"] .filter-panel,
html[data-hm-mode="light"] .detail-meta > div,
html[data-hm-mode="light"] .source-attribution { background: var(--hm-panel); }
html[data-hm-mode="light"] .hero-search input[type="search"],
html[data-hm-mode="light"] .filter-panel input,
html[data-hm-mode="light"] .filter-panel select,
html[data-hm-mode="light"] .site-search input[type="search"] { color: var(--hm-ink); background: var(--hm-input); }
html[data-hm-mode="light"] .hero-search input::placeholder { color: #78847a; }
html[data-hm-mode="light"] .game-card,
html[data-hm-mode="light"] .project-card,
html[data-hm-mode="light"] .article-card { background: var(--hm-panel); }
html[data-hm-mode="light"] .game-card p,
html[data-hm-mode="light"] .detail-copy .lead,
html[data-hm-mode="light"] .prose,
html[data-hm-mode="light"] .prose blockquote,
html[data-hm-mode="light"] .card-details,
html[data-hm-mode="light"] .tag-list a,
html[data-hm-mode="light"] .tag-list span,
html[data-hm-mode="light"] .footer-links a,
html[data-hm-mode="light"] .post-sidebar a,
html[data-hm-mode="light"] .alphabet a,
html[data-hm-mode="light"] .pagination .page-numbers { color: var(--hm-text-soft); }
html[data-hm-mode="light"] .genre-link { background: linear-gradient(145deg, #fff, #edf2ec); }
html[data-hm-mode="light"] .directory-panel { background: linear-gradient(115deg, color-mix(in srgb, var(--hm-acid) 10%, white), white 48%, color-mix(in srgb, var(--hm-lilac) 8%, white)); }
html[data-hm-mode="light"] .status-note { color: #594a3d; background: #f6eee5; }
html[data-hm-mode="light"] .footer-bottom { color: #69766b; }
html[data-hm-mode="light"] .button-secondary { color: var(--hm-ink); background: var(--hm-panel); }
html[data-hm-mode="light"] .button-secondary:hover { color: var(--hm-ink); background: var(--hm-bg-soft); }
html[data-hm-mode="light"] .primary-navigation.is-open { background: var(--hm-bg); }
html[data-hm-mode="light"] .site-header .primary-navigation a:hover,
html[data-hm-mode="light"] .site-header .primary-navigation .current-menu-item > a { color: var(--hm-acid); }
@media (prefers-color-scheme: light) {
  html[data-hm-mode="system"] .primary-navigation a { color: var(--hm-nav-ink); }
  html[data-hm-mode="system"] .primary-navigation,
  html[data-hm-mode="system"] .site-footer { background: var(--hm-bg-soft); }
  html[data-hm-mode="system"] .hero-search,
  html[data-hm-mode="system"] .filter-panel,
  html[data-hm-mode="system"] .detail-meta > div,
  html[data-hm-mode="system"] .source-attribution,
  html[data-hm-mode="system"] .game-card,
  html[data-hm-mode="system"] .project-card,
  html[data-hm-mode="system"] .article-card { background: var(--hm-panel); }
  html[data-hm-mode="system"] .hero-search input[type="search"],
  html[data-hm-mode="system"] .filter-panel input,
  html[data-hm-mode="system"] .filter-panel select,
  html[data-hm-mode="system"] .site-search input[type="search"] { color: var(--hm-ink); background: var(--hm-input); }
  html[data-hm-mode="system"] .hero-search input::placeholder { color: #78847a; }
  html[data-hm-mode="system"] .game-card p,
  html[data-hm-mode="system"] .detail-copy .lead,
  html[data-hm-mode="system"] .prose,
  html[data-hm-mode="system"] .prose blockquote,
  html[data-hm-mode="system"] .card-details,
  html[data-hm-mode="system"] .tag-list a,
  html[data-hm-mode="system"] .tag-list span,
  html[data-hm-mode="system"] .footer-links a,
  html[data-hm-mode="system"] .post-sidebar a,
  html[data-hm-mode="system"] .alphabet a,
  html[data-hm-mode="system"] .pagination .page-numbers { color: var(--hm-text-soft); }
  html[data-hm-mode="system"] .genre-link { background: linear-gradient(145deg, #fff, #edf2ec); }
  html[data-hm-mode="system"] .directory-panel { background: linear-gradient(115deg, color-mix(in srgb, var(--hm-acid) 10%, white), white 48%, color-mix(in srgb, var(--hm-lilac) 8%, white)); }
  html[data-hm-mode="system"] .status-note { color: #594a3d; background: #f6eee5; }
  html[data-hm-mode="system"] .footer-bottom { color: #69766b; }
  html[data-hm-mode="system"] .button-secondary { color: var(--hm-ink); background: var(--hm-panel); }
  html[data-hm-mode="system"] .button-secondary:hover { color: var(--hm-ink); background: var(--hm-bg-soft); }
  html[data-hm-mode="system"] .primary-navigation.is-open { background: var(--hm-bg); }
  html[data-hm-mode="system"] body::before { opacity: .35; }
}

.game-card-art img.is-image-missing,
.detail-art img.is-image-missing,
.project-art img.is-image-missing,
.article-art img.is-image-missing,
.project-cover img.is-image-missing,
.post-featured img.is-image-missing { display: none; }
