/*
Theme Name: Gameutopia (Blocksy Child)
Theme URI: https://game-utopia.de
Description: Gameutopia child theme for Blocksy. Dark editorial gaming/AI design with per-category colour coding and a custom homepage. Keeps Blocksy as the foundation for all inner pages.
Author: Moe
Template: blocksy
Version: 1.0.0
Text Domain: gameutopia
*/

/* =====================================================================
   0. FONTS  — self-hosted, no external CDN (DSGVO-clean).
              Variable woff2 files live in /fonts. OFL-licensed:
              see fonts/LICENSE-*.txt. latin-ext is only fetched when a
              page actually uses those glyphs (e.g. romaji macrons).
   ===================================================================== */
@font-face{
  font-family:'Bricolage Grotesque';font-style:normal;font-display:swap;font-weight:200 800;
  src:url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Bricolage Grotesque';font-style:normal;font-display:swap;font-weight:200 800;
  src:url('fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 800;
  src:url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 800;
  src:url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* =====================================================================
   1. TOKENS  — edit hexes here to recolour the whole site
   ===================================================================== */
:root{
  --gu-bg:#0C0E14;          /* page background        */
  --gu-surface:#141826;     /* cards                  */
  --gu-surface-2:#1B2032;   /* raised / hover         */
  --gu-line:#262C40;        /* hairlines / borders    */
  --gu-text:#ECEEF5;        /* primary text           */
  --gu-muted:#9AA3B8;       /* secondary text         */

  /* signature: one accent per content domain (must match functions.php) */
  --gu-ai:#4CC2FF;
  --gu-gaming:#FF4D7D;
  --gu-sd:#B98BFF;
  --gu-media:#34E2B0;
  --gu-trends:#FFB23E;
  --gu-trouble:#FF6B5C;

  --gu-display:"Bricolage Grotesque",system-ui,sans-serif;
  --gu-body:"Inter",system-ui,sans-serif;
  --gu-mono:"JetBrains Mono",ui-monospace,monospace;

  --gu-r:14px;
  --gu-maxw:1240px;
}

/* category -> hue (also set inline from PHP, this is the fallback) */
.gu-cat-ai{--cat:var(--gu-ai)}
.gu-cat-gaming{--cat:var(--gu-gaming)}
.gu-cat-stable-diffusion{--cat:var(--gu-sd)}
.gu-cat-media{--cat:var(--gu-media)}
.gu-cat-trends{--cat:var(--gu-trends)}
.gu-cat-troubleshooting{--cat:var(--gu-trouble)}

/* =====================================================================
   2. GLOBAL FOUNDATION  — applies site-wide (home + posts + archives)
   ===================================================================== */
body{font-family:var(--gu-body)}
h1,h2,h3,h4,h5,h6{font-family:var(--gu-display)}

/* homepage canvas (front-page.php adds the gu-home body class) */
body.gu-home{background:var(--gu-bg) !important;color:var(--gu-text)}

::selection{background:var(--gu-ai);color:#06121a}

/* article links on single posts / pages */
.entry-content a{color:var(--gu-ai);text-underline-offset:3px}
.entry-content a:hover{color:#8fd6ff}

/* =====================================================================
   3. SCOPED RESETS  — only inside my homepage blocks, never site-wide
   ===================================================================== */
.gu-site-header,.gu-site-header *,
.gu-wrap,.gu-wrap *,
.gu-site-footer,.gu-site-footer *{box-sizing:border-box}

.gu-site-header,.gu-wrap,.gu-site-footer{line-height:1.5}

.gu-site-header a,.gu-wrap a,.gu-site-footer a{color:inherit;text-decoration:none}

.gu-nav,.gu-trending ol,.gu-foot-nav{list-style:none;margin:0;padding:0}

.gu-ph img,.gu-thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* gradient stand-in shown behind every image (and if an image is missing) */
.gu-ph{background:linear-gradient(135deg,
  color-mix(in srgb,var(--cat,var(--gu-ai)) 30%,#0b0d12),
  color-mix(in srgb,var(--cat,var(--gu-ai)) 8%,#0b0d12));}

/* =====================================================================
   4. HEADER
   ===================================================================== */
.gu-site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(12,14,20,.72);backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;transition:border-color .25s,background .25s;
}
.gu-site-header.gu-scrolled{border-bottom-color:var(--gu-line);background:rgba(12,14,20,.92)}
.gu-bar{display:flex;align-items:center;gap:28px;height:64px}
.gu-brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.gu-brand img{width:auto;height:26px;filter:brightness(0) invert(1)}
.gu-brand .gu-fallback{font-family:var(--gu-display);font-weight:800;font-size:21px;letter-spacing:-.02em;color:var(--gu-text)}

.gu-nav{display:flex;gap:4px;margin-left:8px}
.gu-nav li{margin:0}
.gu-nav a{
  font-family:var(--gu-mono);font-size:12.5px;font-weight:500;text-transform:lowercase;
  letter-spacing:.02em;color:var(--gu-muted);padding:8px 12px;border-radius:8px;
  transition:color .15s,background .15s;
}
.gu-nav a:hover,.gu-nav a.active{color:var(--gu-text)}
.gu-nav a:hover{background:var(--gu-surface)}

.gu-bar-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.gu-icon{
  width:36px;height:36px;border-radius:9px;border:1px solid var(--gu-line);background:var(--gu-surface);
  color:var(--gu-muted);display:grid;place-items:center;cursor:pointer;
  transition:color .15s,border-color .15s;
}
.gu-icon:hover{color:var(--gu-text);border-color:#36405c}
.gu-icon svg{width:17px;height:17px}

/* search: icon that expands on focus / when typed (no JS needed) */
.gu-search{display:flex;align-items:center}
.gu-search input{
  width:0;opacity:0;padding:0;border:1px solid transparent;border-radius:9px;margin-left:0;
  background:var(--gu-surface);color:var(--gu-text);font-family:var(--gu-body);font-size:13px;
  transition:width .25s,opacity .2s,padding .25s,margin .25s,border-color .2s;
}
.gu-search:focus-within input,
.gu-search input:not(:placeholder-shown){
  width:170px;opacity:1;padding:8px 11px;margin-left:8px;border-color:var(--gu-line);
}

/* =====================================================================
   5. HERO
   ===================================================================== */
.gu-wrap{max-width:var(--gu-maxw);margin:0 auto;padding:0 24px}
.gu-hero{position:relative;padding:40px 0 8px}
.gu-hero::before{
  content:"";position:absolute;left:-10%;top:-40px;width:60%;height:420px;z-index:0;pointer-events:none;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--gu-ai) 22%,transparent),transparent);
  filter:blur(30px);
}
.gu-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.7fr 1fr;gap:20px}

.gu-lead{
  position:relative;border-radius:var(--gu-r);overflow:hidden;border:1px solid var(--gu-line);
  min-height:440px;display:flex;align-items:flex-end;isolation:isolate;
}
.gu-lead .gu-ph{position:absolute;inset:0;z-index:-2}
.gu-lead::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(8,9,13,.05) 0%,rgba(8,9,13,.55) 55%,rgba(8,9,13,.95) 100%);
}
.gu-lead-body{padding:32px}
.gu-lead h1{
  font-weight:800;font-size:clamp(28px,3.4vw,46px);line-height:1.04;letter-spacing:-.02em;
  margin:14px 0 12px;max-width:18ch;color:var(--gu-text);
}
.gu-dek{color:#cfd4e1;font-size:15.5px;max-width:54ch;margin:0 0 18px}

.gu-secondary{display:flex;flex-direction:column;gap:20px}
.gu-scard{
  position:relative;border-radius:var(--gu-r);overflow:hidden;border:1px solid var(--gu-line);
  flex:1;min-height:210px;display:flex;align-items:flex-end;isolation:isolate;
  transition:transform .25s,border-color .25s;
}
.gu-scard .gu-ph{position:absolute;inset:0;z-index:-2;transition:transform .4s ease}
.gu-scard::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(8,9,13,0) 30%,rgba(8,9,13,.9) 100%);
}
.gu-scard-body{padding:18px}
.gu-scard h3{font-weight:700;font-size:18px;line-height:1.15;letter-spacing:-.01em;margin:9px 0;color:var(--gu-text)}
.gu-scard:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--cat) 40%,var(--gu-line))}
.gu-scard:hover .gu-ph{transform:scale(1.06)}

/* pills + meta */
.gu-pill{
  display:inline-flex;align-items:center;gap:6px;font-family:var(--gu-mono);font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.06em;padding:5px 9px;border-radius:6px;
  color:var(--cat,#fff);background:color-mix(in srgb,var(--cat,#fff) 16%,transparent);
  border:1px solid color-mix(in srgb,var(--cat,#fff) 30%,transparent);
}
.gu-meta{font-family:var(--gu-mono);font-size:12px;color:var(--gu-muted);display:flex;align-items:center;gap:8px}
.gu-dot{width:5px;height:5px;border-radius:50%;background:var(--cat,var(--gu-muted))}

/* trending rail */
.gu-trending{
  margin-top:18px;border-top:1px solid var(--gu-line);border-bottom:1px solid var(--gu-line);
  padding:16px 0;display:flex;align-items:center;gap:24px;overflow-x:auto;
}
.gu-trending .gu-label{
  font-family:var(--gu-mono);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--gu-text);white-space:nowrap;flex-shrink:0;display:flex;align-items:center;gap:8px;
}
.gu-live{
  width:7px;height:7px;border-radius:50%;background:var(--gu-gaming);
  animation:gu-pulse 2s infinite;
}
@keyframes gu-pulse{
  0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--gu-gaming) 55%,transparent)}
  70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}
}
.gu-trending ol{display:flex;gap:26px}
.gu-trending li{display:flex;align-items:baseline;gap:9px;white-space:nowrap}
.gu-num{font-family:var(--gu-mono);font-size:13px;font-weight:700;color:var(--cat,var(--gu-muted))}
.gu-trending a{font-size:13.5px;color:var(--gu-muted);transition:color .15s}
.gu-trending a:hover{color:var(--gu-text)}

/* =====================================================================
   6. CATEGORY ROWS + CARDS
   ===================================================================== */
.gu-row{padding:46px 0 6px}
.gu-row-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px;gap:16px}
.gu-title-wrap{display:flex;align-items:center;gap:14px}
.gu-spine{width:4px;height:34px;border-radius:4px;background:var(--cat);flex-shrink:0}
.gu-eyebrow{font-family:var(--gu-mono);font-size:12px;font-weight:500;letter-spacing:.04em;color:var(--gu-muted)}
.gu-row-head h2{font-weight:800;font-size:26px;letter-spacing:-.02em;line-height:1;margin:0;color:var(--gu-text)}
.gu-more{font-family:var(--gu-mono);font-size:12px;color:var(--gu-muted);display:flex;align-items:center;gap:6px;white-space:nowrap;transition:color .15s}
.gu-more:hover{color:var(--cat)}

.gu-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.gu-card{
  display:flex;flex-direction:column;border-radius:var(--gu-r);overflow:hidden;
  background:var(--gu-surface);border:1px solid var(--gu-line);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.gu-thumb{position:relative;aspect-ratio:16/9;overflow:hidden}
.gu-thumb .gu-ph{position:absolute;inset:0;transition:transform .45s ease}
.gu-thumb .gu-pill{position:absolute;left:12px;top:12px}
.gu-card-body{padding:16px 16px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.gu-card-title{
  font-weight:700;font-size:16.5px;line-height:1.22;letter-spacing:-.01em;margin:0;color:var(--gu-text);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  background-image:linear-gradient(var(--cat),var(--cat));background-size:0% 2px;
  background-repeat:no-repeat;background-position:0 100%;transition:background-size .3s ease;padding-bottom:2px;
}
.gu-card .gu-meta{margin-top:auto}
.gu-card:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--cat) 45%,var(--gu-line));box-shadow:0 16px 40px -18px rgba(0,0,0,.7)}
.gu-card:hover .gu-ph{transform:scale(1.06)}
.gu-card:hover .gu-card-title{background-size:100% 2px}

/* =====================================================================
   7. FOOTER
   ===================================================================== */
.gu-site-footer{margin-top:64px;border-top:1px solid var(--gu-line);background:#0A0B11;padding:46px 0 34px;color:var(--gu-text)}
.gu-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:28px;align-items:flex-start}
.gu-foot .gu-brand img{height:24px}
.gu-foot p{color:var(--gu-muted);font-size:13px;max-width:34ch;margin-top:12px}
.gu-foot-nav{display:flex;gap:30px;flex-wrap:wrap}
.gu-foot-nav a{font-family:var(--gu-mono);font-size:12.5px;color:var(--gu-muted);transition:color .15s}
.gu-foot-nav a:hover{color:var(--gu-text)}
.gu-legal{margin-top:34px;padding-top:20px;border-top:1px solid var(--gu-line);display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-family:var(--gu-mono);font-size:11.5px;color:#5e667c}

/* =====================================================================
   8. RESPONSIVE + A11Y
   ===================================================================== */
@media(max-width:900px){
  .gu-hero-grid{grid-template-columns:1fr}
  .gu-secondary{flex-direction:row}
  .gu-cards{grid-template-columns:repeat(2,1fr) !important}
  .gu-nav{display:none}
}
@media(max-width:560px){
  .gu-secondary{flex-direction:column}
  .gu-cards{grid-template-columns:1fr !important}
  .gu-lead{min-height:380px}
  .gu-brand img{display:none}.gu-brand .gu-fallback{display:block}
}

.gu-site-header :focus-visible,.gu-wrap :focus-visible,.gu-site-footer :focus-visible{
  outline:2px solid var(--gu-ai);outline-offset:2px;border-radius:4px;
}
@media(prefers-reduced-motion:reduce){
  .gu-wrap *,.gu-site-header *,.gu-site-footer *{animation:none !important;transition:none !important}
}

/* =====================================================================
   9. OPTIONAL — darken Blocksy's header on INNER pages via CSS.
   Prefer doing this in Customizer > Colors instead (see README).
   Uncomment and adjust selectors only if you don't use the palette route.
   ===================================================================== */
/*
header[data-device] { background:var(--gu-bg) !important; }
*/

/* =====================================================================
   10. SINGLE POST  — dark article + sticky "related" sidebar
   ===================================================================== */
body.gu-single{background:var(--gu-bg) !important;color:var(--gu-text)}

.gu-article-wrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;padding-top:40px;padding-bottom:40px;align-items:start}
.gu-article{min-width:0}

.gu-article-head{margin-bottom:26px}
.gu-article-cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.gu-article-title{font-family:var(--gu-display);font-weight:800;font-size:clamp(28px,3.6vw,44px);line-height:1.08;letter-spacing:-.02em;margin:0 0 16px;color:var(--gu-text)}
.gu-article-meta{font-family:var(--gu-mono);font-size:13px;color:var(--gu-muted);display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.gu-article-meta .gu-sep{opacity:.45}
.gu-article-hero{margin:0 0 30px;border-radius:var(--gu-r);overflow:hidden;border:1px solid var(--gu-line)}
.gu-article-hero img{display:block;width:100%;height:auto}

/* prose — tuned for long-form readability on dark */
.gu-article-body{max-width:72ch;font-size:17.5px;line-height:1.75;color:#dfe3ee}
.gu-article-body > *{margin:0 0 1.15em}
.gu-article-body > *:last-child{margin-bottom:0}
.gu-article-body h2{font-family:var(--gu-display);font-weight:800;font-size:1.7em;line-height:1.2;letter-spacing:-.01em;margin:1.8em 0 .55em;color:var(--gu-text)}
.gu-article-body h3{font-family:var(--gu-display);font-weight:700;font-size:1.32em;line-height:1.25;margin:1.5em 0 .5em;color:var(--gu-text)}
.gu-article-body h4{font-family:var(--gu-display);font-weight:700;font-size:1.1em;margin:1.4em 0 .4em;color:var(--gu-text)}
.gu-article-body a{color:var(--cat,var(--gu-ai));text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--cat,var(--gu-ai)) 50%,transparent);transition:text-decoration-color .15s}
.gu-article-body a:hover{text-decoration-color:var(--cat,var(--gu-ai))}
.gu-article-body strong{color:var(--gu-text)}
.gu-article-body ul,.gu-article-body ol{padding-left:1.4em}
.gu-article-body li{margin:.4em 0}
.gu-article-body li::marker{color:var(--cat,var(--gu-ai))}
.gu-article-body figure{margin:1.7em 0}
.gu-article-body img{border-radius:10px;max-width:100%;height:auto;border:1px solid var(--gu-line)}
.gu-article-body figcaption{font-family:var(--gu-mono);font-size:12.5px;color:var(--gu-muted);margin-top:.5em;text-align:center}
.gu-article-body blockquote{margin:1.7em 0;padding:.4em 0 .4em 1.2em;border-left:3px solid var(--cat,var(--gu-ai));color:#c7cdda;font-style:italic}
.gu-article-body code{font-family:var(--gu-mono);font-size:.86em;background:var(--gu-surface-2);border:1px solid var(--gu-line);border-radius:5px;padding:.12em .4em}
.gu-article-body pre{background:#0a0c12;border:1px solid var(--gu-line);border-radius:12px;padding:18px;overflow:auto;font-size:13.5px;line-height:1.6}
.gu-article-body pre code{background:none;border:0;padding:0;font-size:inherit;color:#d6dcea}
.gu-article-body hr{border:0;border-top:1px solid var(--gu-line);margin:2em 0}
.gu-article-body table{width:100%;border-collapse:collapse;font-size:15px}
.gu-article-body th,.gu-article-body td{border:1px solid var(--gu-line);padding:9px 12px;text-align:left}
.gu-article-body th{background:var(--gu-surface);font-family:var(--gu-mono);font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--gu-muted)}
.gu-pagelinks{margin-top:1.5em;font-family:var(--gu-mono);font-size:13px;color:var(--gu-muted)}

/* tags */
.gu-article-tags{display:flex;flex-wrap:wrap;gap:8px;margin:34px 0 0;padding-top:24px;border-top:1px solid var(--gu-line)}
.gu-article-tags a{font-family:var(--gu-mono);font-size:12px;color:var(--gu-muted);border:1px solid var(--gu-line);border-radius:6px;padding:5px 10px;transition:color .15s,border-color .15s}
.gu-article-tags a:hover{color:var(--gu-text);border-color:#36405c}

/* related sidebar */
.gu-aside{min-width:0}
.gu-aside-sticky{position:sticky;top:88px}
.gu-aside-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.gu-aside-head h2{font-family:var(--gu-display);font-weight:800;font-size:18px;letter-spacing:-.01em;margin:0;color:var(--gu-text)}
.gu-aside-list{display:flex;flex-direction:column;gap:6px}
.gu-aside-item{display:grid;grid-template-columns:84px 1fr;gap:12px;padding:10px;border-radius:10px;border:1px solid transparent;transition:background .2s,border-color .2s}
.gu-aside-item:hover{background:var(--gu-surface);border-color:var(--gu-line)}
.gu-aside-thumb{aspect-ratio:1/1;border-radius:8px;overflow:hidden;position:relative}
.gu-aside-text{min-width:0;display:flex;flex-direction:column;gap:4px;justify-content:center}
.gu-aside-cat{font-family:var(--gu-mono);font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--cat,var(--gu-ai))}
.gu-aside-text h3{font-family:var(--gu-display);font-weight:600;font-size:14px;line-height:1.25;margin:0;color:var(--gu-text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gu-aside-date{font-family:var(--gu-mono);font-size:11px;color:var(--gu-muted)}

/* comments (dark) */
.gu-comments{margin-top:44px;padding-top:30px;border-top:1px solid var(--gu-line);max-width:72ch}
.gu-comments h2,.gu-comments h3,.gu-comments .comments-title,.gu-comments .comment-reply-title{font-family:var(--gu-display);color:var(--gu-text)}
.gu-comments .comment-list{list-style:none;margin:0;padding:0}
.gu-comments .comment-body{padding:14px 0;border-bottom:1px solid var(--gu-line)}
.gu-comments .comment-author,.gu-comments .comment-metadata,.gu-comments cite,.gu-comments .says{color:var(--gu-muted);font-size:13px}
.gu-comments p{color:#dfe3ee}
.gu-comments a{color:var(--gu-ai)}
.gu-comments label{font-family:var(--gu-mono);font-size:12.5px;color:var(--gu-muted)}
.gu-comments textarea,.gu-comments input:not([type=submit]):not([type=checkbox]):not([type=radio]){width:100%;background:var(--gu-surface);border:1px solid var(--gu-line);border-radius:9px;color:var(--gu-text);font-family:var(--gu-body);font-size:15px;padding:11px 13px;margin-top:6px}
.gu-comments textarea:focus,.gu-comments input:focus{outline:2px solid var(--gu-ai);outline-offset:1px;border-color:transparent}
.gu-comments .submit,.gu-comments [type=submit],.gu-comments button[type=submit]{background:var(--gu-ai);color:#06121a;font-family:var(--gu-body);font-weight:700;font-size:14px;border:0;border-radius:9px;padding:11px 20px;cursor:pointer;margin-top:14px;transition:filter .15s}
.gu-comments .submit:hover,.gu-comments [type=submit]:hover{filter:brightness(1.08)}

@media(max-width:900px){
  .gu-article-wrap{grid-template-columns:1fr;gap:40px}
  .gu-aside-sticky{position:static}
  .gu-aside-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
}
@media(max-width:560px){
  .gu-aside-list{grid-template-columns:1fr}
  .gu-article-body{font-size:16.5px}
}

/* =====================================================================
   11. ARCHIVE / SEARCH / PAGE  (dark, matching homepage + article)
   ===================================================================== */
body.gu-archive,body.gu-page{background:var(--gu-bg) !important;color:var(--gu-text)}

/* archive + search header */
.gu-archive{padding-top:40px;padding-bottom:40px}
.gu-archive-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:30px;padding-bottom:24px;border-bottom:1px solid var(--gu-line)}
.gu-archive-head .gu-spine{height:46px}
.gu-archive-eyebrow{font-family:var(--gu-mono);font-size:12px;letter-spacing:.04em;color:var(--gu-muted)}
.gu-archive-title{font-family:var(--gu-display);font-weight:800;font-size:clamp(26px,3.4vw,40px);letter-spacing:-.02em;line-height:1.05;margin:3px 0 0;color:var(--gu-text)}
.gu-archive-desc{color:var(--gu-muted);font-size:15px;line-height:1.6;margin:14px 0 0;max-width:70ch}

.gu-empty{color:var(--gu-muted);font-size:16px;padding:48px 0;text-align:center}

/* pagination */
.gu-pagination{margin-top:42px}
.gu-pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center}
.gu-pagination .page-numbers{font-family:var(--gu-mono);font-size:13px;color:var(--gu-muted);border:1px solid var(--gu-line);border-radius:9px;padding:9px 14px;min-width:42px;text-align:center;transition:color .15s,border-color .15s,background .15s}
.gu-pagination a.page-numbers:hover{color:var(--gu-text);border-color:#36405c}
.gu-pagination .page-numbers.current{background:var(--gu-ai);color:#06121a;border-color:var(--gu-ai);font-weight:700}
.gu-pagination .page-numbers.dots{border-color:transparent;padding-left:4px;padding-right:4px;min-width:auto}
.gu-pagination .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* static page */
.gu-page{padding-top:40px;padding-bottom:30px}
.gu-page-article{max-width:780px;margin:0 auto}
.gu-page-head{margin-bottom:24px}
.gu-page-title{font-family:var(--gu-display);font-weight:800;font-size:clamp(28px,3.6vw,44px);letter-spacing:-.02em;line-height:1.08;margin:0;color:var(--gu-text);position:relative;padding-bottom:18px}
.gu-page-title::after{content:"";position:absolute;left:0;bottom:0;width:54px;height:4px;border-radius:4px;background:var(--gu-ai)}
.gu-page .gu-article-body{max-width:none}
