/* Base da identidade CapivaraClan, usada pelas páginas do Z Station.
   (A home e a página do Capivara Samurai têm o CSS delas dentro do HTML.) */
@font-face { font-family: "Pixelify Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/pixelify-sans-latin-400-normal.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: "Pixelify Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/pixelify-sans-latin-ext-400-normal.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: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/pixelify-sans-latin-700-normal.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: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/pixelify-sans-latin-ext-700-normal.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: "Press Start 2P"; src: url("/assets/fonts/PressStart2P-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #201329; --plum: #2d193a; --plum-2: #382141; --plum-3: #482749; --plum-4: #593151;
  --mauve: #70405b; --rose: #a76373; --sand: #d2a186; --terracotta: #b65e35; --orange: #d8823d;
  --gold: #ecaf50; --gold-2: #f7c977; --cream: #ffe2a8; --cream-2: #fff0cc;
  --text: var(--cream-2); --muted: var(--sand); --accent: var(--gold);
  --brand: "Pixelify Sans", ui-rounded, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px; --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plum); color: var(--text); font: 17px/1.65 var(--sans); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--plum); padding: 8px 12px; }
h1, h2, h3 { font-family: var(--brand); font-weight: 700; letter-spacing: .01em; }

/* topo */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(32, 19, 41, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 3px solid var(--plum-3); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { margin-right: auto; display: block; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--sand); text-decoration: none; font: 700 17px/1 var(--brand); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav .wide { display: none; }
@media (min-width: 760px) { .nav { gap: 26px; } .nav a { font-size: 18px; } .nav .wide { display: inline; } }

/* idioma */
.lang { display: flex; border: 3px solid var(--plum-4); flex: none; }
.lang a { font: 700 15px/1 var(--brand); color: var(--sand); text-decoration: none; padding: 8px 10px; }
.lang a:hover { color: var(--cream); }
.lang a[aria-current="page"] { background: var(--gold); color: var(--plum); }
.lang-hint { background: var(--plum-2); border-bottom: 3px solid var(--plum-3); font-size: 15px; }
.lang-hint .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.lang-hint p { margin: 0; }
.lang-hint button { background: none; border: 0; color: var(--sand); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* botões */
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-block; text-decoration: none; cursor: pointer; font: 700 19px/1 var(--brand); padding: 15px 22px; border: 3px solid var(--night); box-shadow: 5px 5px 0 var(--night); transition: transform .08s steps(2), box-shadow .08s steps(2); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--night); }
.btn-gold { background: var(--gold); color: var(--plum); }
.btn-gold:hover { background: var(--gold-2); color: var(--plum); }
.btn-line { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-line:hover { color: var(--gold); border-color: var(--gold); }

/* card de post (lista do Z Station e home) */
.post-list { display: grid; gap: 24px; }
.post-card a { display: grid; text-decoration: none; color: inherit; background: var(--plum-2); border: 3px solid var(--plum-4); box-shadow: 8px 8px 0 #160c1d; }
@media (min-width: 760px) { .post-card a { grid-template-columns: 1.1fr 1fr; } }
.post-card img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 24px 24px 26px; }
.post-card-kicker { margin: 0 0 10px; font: 700 14px/1.3 var(--brand); color: var(--sand); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; color: var(--gold); }
.post-card p { margin: 0; color: var(--sand); }
.post-card a:hover h3 { color: var(--gold-2); }
.post-card a:hover { border-color: var(--mauve); }

/* "a gente também faz jogos" */
.also { background: var(--night); padding: 64px 0; }
.also-card { display: grid; gap: 0; background: var(--plum-2); border: 3px solid var(--plum-4); box-shadow: 8px 8px 0 #160c1d; text-decoration: none; color: inherit; }
@media (min-width: 820px) { .also-card { grid-template-columns: 1fr 1fr; } }
.also-art { position: relative; min-height: 220px; background: #110c0a url("/assets/img/hero.webp") center / cover no-repeat; image-rendering: pixelated; display: flex; align-items: flex-end; justify-content: flex-end; padding: 16px; }
.also-art img { width: 128px; height: 128px; image-rendering: pixelated; }
.also-body { padding: 28px; }
.also-body .eyebrow { margin: 0 0 8px; font: 700 15px/1.3 var(--brand); color: var(--terracotta); text-transform: uppercase; letter-spacing: .08em; }
.also-body h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.2; color: var(--cream); }
.also-body p { margin: 0 0 20px; color: var(--sand); }

/* rodapé */
footer { background: var(--night); padding: 28px 0 36px; color: var(--sand); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer p { margin: 0; }
footer a { color: var(--sand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
