/*
Theme Name: NeuroshimaHex.pl
Theme URI: https://neuroshimahex.pl
Author: Enclave Games
Author URI: https://enclavegames.com
Description: Ciemny motyw NeuroshimaHex.pl z kremowo-bursztynowym logo, ognistym nagłówkiem, bannerami wiadomości i prawym paskiem bocznym.
Version: 0.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neuroshimahexpl
*/

/* Zasady: ciemne powierzchnie, ścięte (heksowe) narożniki, twarde cienie bez poświaty. Ruch przestrzenny tylko przy prefers-reduced-motion: no-preference. */

/* Nagłówki: Barlow Condensed (SIL OFL, assets/fonts). Do czasu wczytania Arial Narrow Bold dopasowany metrykami, żeby podmiana nie przesuwała układu. */
@font-face { font-family: "NSH Head"; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "NSH Head"; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NSH Head"; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face {
  font-family: "NSH Head Fallback";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Roboto Condensed Bold"), local("Liberation Sans Narrow Bold");
  font-weight: 600 800;
  size-adjust: 90%;
  ascent-override: 111%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --bg: #0c0907;
  --surface: #17110d;
  --surface-2: #211912;
  --line: #3b2c1f;
  --text: #ece3d2;
  --muted: #b0a28b;
  --head: #fff5e4;
  --link: #f5911f;
  --link-hover: #ffc46b;
  --red: #c4161c;
  --fire: #e8571a;
  --gold: #f2c230;
  --ink: #120b05;
  --focus: #ffc46b;
  --shade: rgb(0 0 0 / .6);
  --cut: .875rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "NSH Head", "NSH Head Fallback", "Arial Narrow", var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  accent-color: var(--fire);
}
@media (prefers-contrast: more) { :root { --line: #8a7258; --muted: #d4c6ae; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font: 400 1.0625rem/1.7 var(--font); color: var(--text); overflow-wrap: break-word;
  /* Delikatna siatka heksów, jak plansza. */
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='145.5' viewBox='0 0 84 145.5'%3E%3Cpath d='M42 0 84 24.25v48.5L42 97 0 72.75v-48.5zM42 97v48.5M0 72.75 0 121M84 72.75V121' fill='none' stroke='%23fff' stroke-opacity='.028' stroke-width='1.5'/%3E%3C/svg%3E") center top / 84px auto;
}
.admin-bar { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
img, video, iframe, svg { max-inline-size: 100%; }
img, video { block-size: auto; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, blockquote, figcaption { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: #8f2a10; color: #fff; }

.screen-reader-text, .comment-author .says, .skip-link:not(:focus) { position: absolute !important; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; inset-block-start: .5rem; inset-inline-start: .5rem; z-index: 100; padding: .6em 1em; background: var(--gold); color: var(--ink); font-weight: 800; }
.admin-bar .skip-link:focus { inset-block-start: 2.5rem; }

.wrap { inline-size: min(70rem, 100% - 2rem); margin-inline: auto; }

/* Ścięte narożniki: corner-shape rysuje ramkę i cień po skosie; starsze przeglądarki pokażą zwykłe zaokrąglenie. */
.cut { border-radius: 0 var(--cut); corner-shape: bevel; }

/* Przyciski i formularze */
button, .button, input[type="submit"], input[type="button"], .wp-block-button__link, .more-link.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-block-size: 2.75rem; padding: .45rem 1.25rem;
  font: 700 1.05rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--link); border: 2px solid #000; border-radius: 0 .625rem; corner-shape: bevel; box-shadow: .25rem .25rem 0 #000;
}
:is(button, .button, input[type="submit"], input[type="button"], .wp-block-button__link):hover { color: var(--ink); background: var(--link-hover); }
:is(button, .button, input[type="submit"], input[type="button"], .wp-block-button__link):active { box-shadow: .1rem .1rem 0 #000; translate: .15rem .15rem; }
.button svg, button svg { flex: none; inline-size: 1.15em; block-size: 1.15em; }
input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]), textarea, select {
  inline-size: 100%; min-block-size: 2.75rem; padding: .5rem .8rem; font: inherit; font-size: 1rem; color: var(--text); background: #0a0705; border: 1px solid var(--line); border-radius: 0 .5rem; corner-shape: bevel;
}
:is(input, textarea, select):focus-visible { border-color: var(--link); outline-offset: 0; }
::placeholder { color: #8a7c68; opacity: 1; }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; min-inline-size: 0; }
.search-form button { flex: none; inline-size: 2.75rem; padding: 0; box-shadow: .2rem .2rem 0 #000; }

/* Górny pasek z menu: na komputerze przyklejony do góry ekranu. Poniżej progu menu otwiera się jako arkusz (Popover API) z przycisku w banerze. */
.topbar { position: relative; z-index: 60; background: #060403; border-block-end: 1px solid #2c1c10; box-shadow: 0 1px 0 rgb(232 87 26 / .25); }
.menu-panel { display: contents; color: inherit; }
.menu-head, .menu-button, .menu-search { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .25rem; }
.main-nav a { position: relative; display: block; padding: .7rem .7rem .6rem; color: #f3dcc0; text-decoration: none; font: 700 1.02rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .07em; }
.main-nav a::after { content: ""; position: absolute; inset-inline: .7rem; inset-block-end: 0; block-size: 3px; background: var(--fire); scale: 0 1; transition: scale .2s; }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after, .main-nav a[aria-current]::after, .main-nav :is(.current-menu-item, .current-menu-ancestor, .current-cat, .current_page_item, .current_page_ancestor) > a::after { scale: 1 1; }
.main-nav a[aria-current], .main-nav :is(.current-menu-item, .current-menu-ancestor, .current-cat, .current_page_item, .current_page_ancestor) > a { color: var(--link-hover); }

@media (min-width: 64em) {
  html { scroll-padding-block-start: 4rem; }
  .topbar { position: sticky; inset-block-start: 0; }
  .admin-bar .topbar { inset-block-start: 32px; }
}

/* Nagłówek korzysta z fragmentu tapety bez żetonu armii. */
.site-header { position: relative; z-index: 2; background: #2a0f05 url("assets/img/header-fire-960.webp") 18% 50% / cover; background-image: image-set(url("assets/img/header-fire-960.webp") 1x, url("assets/img/header-fire.webp") 2x); border-block-end: 3px solid #000; }
@media (min-width: 60em) { .site-header { background-image: url("assets/img/header-fire.webp"); } }
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .15), transparent 40%, rgb(0 0 0 / .35)), linear-gradient(90deg, rgb(10 4 2 / .35), transparent 45%); pointer-events: none; }
.banner { position: relative; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: .9rem 1rem; min-block-size: clamp(9rem, 6rem + 10vw, 12.5rem); padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { display: block; inline-size: clamp(15rem, 8rem + 38vw, 43rem); block-size: auto; filter: drop-shadow(0 .15rem .1rem rgb(0 0 0 / .85)); }
.custom-logo { display: block; inline-size: auto; max-block-size: 6rem; }
.tagline { flex-basis: 100%; margin: 0; font: 600 clamp(.95rem, .8rem + .55vw, 1.3rem)/1.8 var(--font-head); }
.tagline span { display: inline; padding: .2em .65em; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: rgb(8 4 2 / .78); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Wersja kompaktowa: logo i przycisk Menu w banerze, menu jako arkusz nad stroną. */
@supports selector(:popover-open) {
  @media (width < 64em) {
    body:has(.menu-panel:popover-open) { pointer-events: none; }
    .topbar { border: 0; box-shadow: none; }
    .brand { flex: 1 1 0; min-inline-size: 0; }
    .brand img { max-inline-size: 100%; }
    .tagline { display: none; }
    h1.tagline { order: 1; display: block; }
    .menu-button { flex: none; display: inline-flex; padding-inline: 1rem; }
    .menu-panel { display: none; position: fixed; inset: 0 0 auto; inline-size: auto; block-size: auto; max-block-size: 100dvh; margin: 0; padding: 0 1rem 1.25rem; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; color: var(--text); background: #0f0a07; border: 0; border-block-end: 3px solid var(--fire); box-shadow: 0 .5rem 0 var(--shade); }
    .menu-panel:popover-open { display: block; }
    .menu-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 4rem; }
    .menu-label { font: 800 1.2rem/1.4 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--head); }
    .menu-close { flex: none; inline-size: 2.75rem; padding: 0; }
    .main-nav ul { flex-direction: column; flex-wrap: nowrap; gap: .25rem; }
    .main-nav a { padding: .8rem 1rem; font-size: 1.2rem; background: var(--surface); border-radius: 0 .5rem; corner-shape: bevel; }
    .main-nav a::after { display: none; }
    .main-nav a:hover, .main-nav a[aria-current], .main-nav :is(.current-menu-item, .current-menu-ancestor, .current-cat, .current_page_item, .current_page_ancestor) > a { background: var(--surface-2); }
    .menu-search { display: block; margin-block-start: 1rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line); }
    @media (max-width: 22rem) {
      .menu-button { inline-size: 2.75rem; padding-inline: 0; }
      .menu-button-label { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    }
    @media (prefers-reduced-motion: no-preference) {
      .menu-panel { opacity: 1; translate: 0 0; transition: opacity .2s ease-out, translate .2s ease-out, display .2s allow-discrete, overlay .2s allow-discrete; }
      .menu-panel:not(:popover-open) { opacity: 0; translate: 0 -.75rem; }
      @starting-style { .menu-panel:popover-open { opacity: 0; translate: 0 -.75rem; } }
    }
  }
}
:is(.menu-button, .menu-close) svg { flex: none; display: block; inline-size: 1.375rem; block-size: 1.375rem; }

/* Układ */
.layout { padding-block: 2.25rem 3.25rem; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64em) {
  .layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 18.75rem; align-items: start; gap: 2.75rem; }
}
#content:focus { outline: none; }

.section-title, .page-heading { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; font: 800 1.35rem/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--head); }
.section-title::before, .page-heading::before, .widget-title::before { content: ""; flex: none; inline-size: 1.05em; aspect-ratio: 1.155; background: var(--fire); clip-path: var(--hex); }
.section-title::after { content: ""; flex: 1; block-size: 2px; background: linear-gradient(90deg, var(--line), transparent); }

.lead { --cut: 1.2rem; margin-block: 1.25rem 1.75rem; overflow: hidden; background: var(--surface); border: 1px solid #5a3823; border-radius: 0 var(--cut); corner-shape: bevel; box-shadow: .35rem .35rem 0 #000; }
.lead-body { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: clamp(1.1rem, 2.4vw, 1.8rem); }
.lead .title { margin: 0; font: 800 clamp(1.65rem, 1.1rem + 1.8vw, 2.4rem)/1.08 var(--font-head); color: var(--head); }
.lead .title a { color: inherit; text-decoration: none; }
.lead .title a:hover { color: var(--link-hover); }
.lead .excerpt { color: #eadfcc; font-size: 1.05rem; line-height: 1.6; }
.lead .excerpt p { margin: 0; }
.lead .button { margin-block-start: .35rem; }
.lead .entry-thumb { border-block-end: 1px solid var(--line); }
.entry-thumb { display: block; min-inline-size: 0; }
.entry-thumb img { display: block; inline-size: 100%; block-size: auto; }
.entry-thumb:focus-visible { outline-offset: -3px; }
.entries { display: grid; gap: 1.25rem; }
.entry { --cut: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.15rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--cut); corner-shape: bevel; transition: border-color .2s, box-shadow .2s; }
@media (min-width: 44em) {
  .entry.has-thumb { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
}
@media (hover: hover) {
  .entry:hover { border-color: #7a3c18; box-shadow: .3rem .3rem 0 #000; }
}
.entry-body { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-inline-size: 0; }
.entry .title { margin: 0; font: 700 clamp(1.35rem, 1.1rem + .8vw, 1.65rem)/1.12 var(--font-head); color: var(--head); }
.entry .title a { color: inherit; text-decoration: none; }
.entry .title a:hover { color: var(--link-hover); text-decoration: underline; text-decoration-thickness: 2px; }
.entry .excerpt { color: #d9cdb8; font-size: 1rem; line-height: 1.65; }
.entry .excerpt p { margin: 0 0 .6em; }
.entry .excerpt > :last-child { margin-block-end: 0; }
.entry-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin: .35rem 0 0; }
.basic-content { min-inline-size: 0; }
.entry-content { display: flow-root; }
.entry-content > :first-child { margin-block-start: 0; }
.entry-content :is(table, pre) { max-inline-size: 100%; overflow-x: auto; }
.more { display: inline-flex; align-items: center; gap: .35rem; font: 700 1rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.more svg { inline-size: 1.1em; block-size: 1.1em; transition: translate .2s; }
.more:hover svg { translate: .2rem 0; }
.comments-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; text-decoration: none; }
.comments-link svg { inline-size: 1.15em; block-size: 1.15em; color: var(--link); }
.comments-link:hover { color: var(--link-hover); }
.comments-link b { color: var(--head); }

.meta { display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.meta a { color: inherit; }
.meta a:hover { color: var(--link-hover); }
.meta > * { display: inline-flex; align-items: center; gap: .35rem; }
.meta svg { inline-size: 1em; block-size: 1em; color: var(--link); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-block; padding: .15rem .6rem; font: 700 .8rem/1.5 var(--font-head); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--ink); background: var(--gold); border-radius: 0 .4rem; corner-shape: bevel; }
a.chip:hover { color: var(--ink); background: #ffe27a; }
.chip.alt { color: #fff; background: var(--red); }
a.chip.alt:hover { color: #fff; background: #e0262d; }

/* Paginacja: heksy */
.pagination { margin-block-start: 2.25rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-inline-size: 3rem; block-size: 2.6rem; padding-inline: .5rem; font: 700 1.1rem/1 var(--font-head); color: var(--text); text-decoration: none; background: var(--surface-2); clip-path: polygon(.75rem 0, calc(100% - .75rem) 0, 100% 50%, calc(100% - .75rem) 100%, .75rem 100%, 0 50%); }
.pagination a.page-numbers:hover { color: var(--ink); background: var(--link-hover); }
.pagination .current { color: var(--ink); background: var(--link); }
.pagination .dots { background: none; }
.pagination :is(.prev, .next) { padding-inline: 1.25rem; text-transform: uppercase; letter-spacing: .06em; }

/* Pasek boczny */
.sidebar { display: grid; gap: 1.5rem; align-content: start; min-inline-size: 0; }
.widget { --cut: .875rem; padding: 1.15rem 1.25rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--cut); corner-shape: bevel; font-size: .95rem; }
.widget.bare { padding: 0; background: none; border: 0; }
.widget-title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .85rem; font: 800 1.15rem/1.15 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--head); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { position: relative; padding: .5rem 0 .5rem 1.1rem; border-block-start: 1px solid rgb(255 255 255 / .06); line-height: 1.4; }
.widget li:first-child { border-block-start: 0; padding-block-start: 0; }
.widget li:last-child { padding-block-end: 0; }
.widget li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .95em; inline-size: .5rem; aspect-ratio: 1.155; background: var(--fire); clip-path: var(--hex); }
.widget li:first-child::before { inset-block-start: .45em; }
.widget li a { color: var(--text); text-decoration: none; }
.widget li a:hover { color: var(--link-hover); text-decoration: underline; }
.widget .search-form input { background: #0a0705; }

.social { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.social li { padding: 0; border: 0; }
.social li::before { display: none; }
.social a { display: grid; place-items: center; inline-size: 3.25rem; aspect-ratio: 1.155; color: #fff; background: #2c2016; clip-path: var(--hex); transition: background-color .2s, color .2s; }
.social a:hover { color: var(--ink); background: var(--link); }
.social svg { inline-size: 1.35rem; block-size: 1.35rem; }
.widget_nsh_social .social { justify-content: space-between; }

.ad-slot { display: grid; place-items: center; min-block-size: 250px; overflow: hidden; }
.ad-slot > .custom-html-widget { inline-size: 100%; }
.ad-slot .adsbygoogle { display: block; inline-size: 100%; }
.ad-label { margin: 0 0 .35rem; color: #7f725f; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.ad-preview { display: grid; place-content: center; inline-size: min(100%, 250px); min-block-size: 250px; margin-inline: auto; border: 1px dashed var(--line); background: repeating-linear-gradient(45deg, #15100c 0 12px, #1b140f 12px 24px); color: var(--muted); text-align: center; font-size: .85rem; }

.about-img { display: block; margin: -1.15rem -1.25rem 1rem; aspect-ratio: 600 / 330; overflow: hidden; border-radius: 0 var(--cut) 0 0; corner-shape: bevel; }
.about-img img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 30%; }
.widget p { margin: 0 0 .75em; }
.widget > :last-child, .widget p:last-child { margin-block-end: 0; }
.about-text { color: #d5c9b4; line-height: 1.6; }

.shop { display: block; overflow: hidden; color: var(--head); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 0 .875rem; corner-shape: bevel; }
.shop img { display: block; inline-size: 100%; }
.shop span { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .9rem; font: 700 1rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--gold); }
.shop:hover span { background: #ffe27a; }
.shop svg { inline-size: 1.1em; block-size: 1.1em; }

.recent-comments li { color: var(--muted); font-size: .88rem; }
.recent-comments b { color: var(--head); font-weight: 700; }
.recent-comments a { display: block; }
.recent-comments time { display: block; color: #8d7f6a; font-size: .8rem; }

/* Stopka */
.site-footer { position: relative; margin-block-start: auto; color: #d8ccb7; font-size: .95rem; background: #120804 url("assets/img/footer-fire.webp") center bottom / cover; border-block-start: 3px solid #000; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 9 7 / .9), rgb(12 9 7 / .6) 55%, rgb(12 9 7 / .45)); pointer-events: none; }
.site-footer > * { position: relative; }
.footer-armies { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.3rem; padding-block-end: 1.3rem; }
.footer-grid { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); padding-block: 2.75rem 2.25rem; }
@media (min-width: 56em) { .footer-grid { grid-template-columns: 1fr 1fr 1.6fr; } }
.footer-title { margin: 0 0 .8rem; font: 800 1.1rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .09em; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.site-footer li { break-inside: avoid; padding-block: .2rem; }
.site-footer a { color: #f0e3cd; text-decoration: none; }
.site-footer a:hover { color: var(--link-hover); text-decoration: underline; }
.footer-about p { margin: 0 0 .75em; line-height: 1.6; }
.footer-about a { color: var(--link); }
.footer-logo { display: block; inline-size: 14rem; margin-block-end: .9rem; filter: drop-shadow(.2rem .25rem 0 rgb(0 0 0 / .6)); }
.credits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.1rem 1.5rem; color: #b2a48e; font-size: .85rem; border-block-start: 1px solid rgb(255 255 255 / .1); }
.credits p { margin: 0; }
.credits a { color: #e8dbc4; }

/* Strony i wpisy */
.article { --cut: 1.2rem; min-inline-size: 0; padding: clamp(1rem, .5rem + 2.5vw, 2.25rem); background: var(--surface); border: 1px solid #5a3823; border-radius: 0 var(--cut); corner-shape: bevel; box-shadow: .35rem .35rem 0 #000; }
.article-header { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-block-end: clamp(1.25rem, 3vw, 1.75rem); padding-block-end: 1.1rem; border-block-end: 1px solid var(--line); }
.entry-title, .archive-title { margin: 0; font: 800 clamp(1.8rem, 1.2rem + 2vw, 2.75rem)/1.06 var(--font-head); color: var(--head); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; }
.article-thumb { margin: 0 0 clamp(1.25rem, 3vw, 1.75rem); }
.article-thumb img { display: block; inline-size: 100%; }
.article-thumb figcaption, .entry-content :is(figcaption, .wp-caption-text) { margin-block-start: .45rem; color: var(--muted); font-size: .875rem; line-height: 1.5; text-align: center; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: ""; flex: none; inline-size: .45rem; aspect-ratio: 1.155; background: var(--fire); clip-path: var(--hex); }
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: var(--link-hover); }
.breadcrumbs [aria-current] { color: var(--text); }

/* Treść z edytora i starszych stron */
.entry-content { line-height: 1.75; }
.entry-content :is(p, ul, ol, dl, pre, table, address) { margin-block: 0 1.1em; }
.entry-content :is(h2, h3, h4, h5, h6) { margin: 1.6em 0 .55em; font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--head); }
.entry-content h2 { font-size: clamp(1.55rem, 1.3rem + .9vw, 1.9rem); }
.entry-content h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.55rem); }
.entry-content h4 { font-size: 1.25rem; }
.entry-content :is(h5, h6) { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; }
.entry-content :is(strong, b) { color: var(--head); }
.entry-content :is(ul, ol) { padding-inline-start: 1.5rem; }
.entry-content ul { list-style: square; }
.entry-content ul ul { list-style: circle; }
.entry-content ul ul ul { list-style: disc; }
.entry-content :is(ul, ol) :is(ul, ol) { margin-block: .3em .4em; }
.entry-content li { margin-block: .25em; }
.entry-content li::marker { color: var(--fire); }
.entry-content blockquote { margin: 1.5em 0; padding: .9rem 1.25rem; color: #e6dac4; background: var(--surface-2); border-inline-start: 4px solid var(--fire); }
.entry-content blockquote > :last-child { margin-block-end: 0; }
.entry-content cite { color: var(--muted); font-size: .9rem; font-style: normal; }
.entry-content hr { clear: both; margin: 2em 0; block-size: 2px; border: 0; background: linear-gradient(90deg, var(--line), transparent); }
.entry-content :is(code, kbd, samp, pre) { font-family: var(--mono); font-size: .9em; }
.entry-content pre { padding: 1rem; background: #0a0705; border: 1px solid var(--line); }
.entry-content table { display: block; inline-size: max-content; border-collapse: collapse; font-size: .95rem; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { display: table; inline-size: 100%; }
.entry-content :is(th, td) { padding: .45rem .75rem; text-align: start; vertical-align: top; border: 1px solid var(--line); }
.entry-content th { color: var(--head); background: var(--surface-2); }
.entry-content figure { margin: 0 0 1.25em; }
.entry-content :is(iframe, embed, object, video, ins) { max-inline-size: 100%; }
.entry-content :is(.alignleft, .left) { float: left; margin: .3rem 1.25rem 1rem 0; }
.entry-content :is(.alignright, .right) { float: right; margin: .3rem 0 1rem 1.25rem; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content figure.aligncenter { display: table; }
.entry-content :is(.center, .centerImg) { text-align: center; }
.entry-content .clear { clear: both; }
.entry-content .wp-caption { max-inline-size: 100%; }
/* Stare strony zasad: każdy akapit zaczyna się pod obrazkiem poprzedniego, jak w poprzednim szablonie. */
.type-page .entry-content :is(p:not(.wp-block-paragraph), h2, h3, h4) { clear: both; }
.entry-content img.floatLeft { float: left; inline-size: clamp(5.5rem, 36%, 150px); margin: 0 1rem .5rem 0; }
@media (max-width: 29.99em) {
  .entry-content :is(.alignleft, .alignright):not(.floatLeft) { float: none; display: block; margin-inline: auto; }
}
@media (max-width: 43.99em) {
  .entry-content :is(span.left, span.right) { float: none; display: block; margin-block-end: 1rem; text-align: center; }
}

/* Żetony armii: kafelki z żetonami i wiersze z opisami. */
.entry-content ul.zetony { margin-block-end: 1.5em; padding: 0; list-style: none; }
.entry-content ul.zetony > li { margin-block: 0 1.25em; }
.entry-content ul.zetony > li > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: .75rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.entry-content ul.zetony > li > ul > li { display: block; margin: 0; padding: .6rem .5rem .7rem; font-size: .9rem; line-height: 1.35; text-align: center; background: #0a0705; border: 1px solid var(--line); border-radius: 0 .75rem; corner-shape: bevel; }
.entry-content ul.zetony > li > ul > li img.floatLeft { float: none; display: block; inline-size: min(100%, 150px); margin: 0 auto .45rem; }
.entry-content ul.opisy { margin-block-end: 1.5em; padding: 0; list-style: none; }
.entry-content :is(ul.opisy > li, ul.zetony > li:has(> img.floatLeft)) { display: flow-root; margin-block: 0 .75rem; padding: .75rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 0 .75rem; corner-shape: bevel; }
.entry-content :is(ul.opisy, ul.zetony) > li > img.floatLeft { margin: 0 1rem 0 0; }

.entry-content .ranking-header { display: flex; justify-content: space-between; gap: 1rem; max-inline-size: 34rem; margin-block-end: 0; padding: .55rem .9rem; font: 700 1rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--head); background: var(--surface-2); border-block-end: 2px solid var(--fire); }
.entry-content ol.ranking { max-inline-size: 34rem; padding: 0; list-style-position: inside; font-variant-numeric: tabular-nums; }
.entry-content ol.ranking li { margin: 0; padding: .35rem .9rem; border-block-end: 1px solid rgb(255 255 255 / .06); }
.entry-content ol.ranking li:nth-child(even) { background: rgb(255 255 255 / .03); }
.entry-content ol.ranking li::marker { color: var(--muted); }
.entry-content ol.ranking span { float: right; color: var(--gold); font: 700 1.05rem/1.65 var(--font-head); }

.entry-content .nshex-download ul { display: grid; gap: .5rem; padding: 0; list-style: none; }
.entry-content .nshex-download li { margin: 0; padding: .55rem .9rem; color: var(--muted); font-size: .9rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 0 .6rem; corner-shape: bevel; }
.entry-content .nshex-download li a { font-size: 1.0625rem; font-weight: 600; }

.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-block-start: 1.5rem; }
.page-links-label { margin-inline-end: .35rem; color: var(--muted); font: 700 .95rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.page-links .post-page-numbers { display: inline-grid; place-items: center; min-inline-size: 2.6rem; block-size: 2.3rem; font: 700 1.05rem/1 var(--font-head); color: var(--text); text-decoration: none; background: var(--surface-2); clip-path: polygon(.6rem 0, calc(100% - .6rem) 0, 100% 50%, calc(100% - .6rem) 100%, .6rem 100%, 0 50%); }
.page-links a.post-page-numbers:hover { color: var(--ink); background: var(--link-hover); }
.page-links .current { color: var(--ink); background: var(--link); }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-block-start: 1.75rem; padding-block-start: 1.1rem; border-block-start: 1px solid var(--line); }
.post-tags-label { color: var(--muted); font: 700 .95rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tags a { display: inline-block; padding: .15rem .6rem; color: var(--text); font-size: .85rem; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 0 .4rem; corner-shape: bevel; }
.tags a::before { content: "#"; content: "#" / ""; color: var(--fire); }
.tags a:hover { color: var(--ink); background: var(--link-hover); border-color: var(--link-hover); }
.tags a:hover::before { color: inherit; }

.post-navigation { margin-block-start: 1.75rem; }
.post-navigation .nav-links { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 44em) {
  .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-navigation .nav-next { grid-column: 2; text-align: end; }
}
.post-navigation a { --cut: .875rem; display: flex; flex-direction: column; gap: .25rem; block-size: 100%; padding: .9rem 1.1rem; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--cut); corner-shape: bevel; transition: border-color .2s, box-shadow .2s; }
.post-navigation a:hover { border-color: #7a3c18; box-shadow: .3rem .3rem 0 #000; }
.nav-label { color: var(--muted); font: 700 .8rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .1em; }
.nav-previous .nav-label::before { content: "← "; content: "← " / ""; color: var(--link); }
.nav-next .nav-label::after { content: " →"; content: " →" / ""; color: var(--link); }
.nav-title { color: var(--head); font: 700 1.15rem/1.25 var(--font-head); }
.post-navigation a:hover .nav-title { color: var(--link-hover); }

/* Komentarze */
.comments-area { margin-block-start: 2.5rem; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list { display: grid; gap: .9rem; margin-block-end: 2.25rem; }
.comment-list .children { display: grid; gap: .9rem; margin-block-start: .9rem; padding-inline-start: clamp(.75rem, 3vw, 2rem); border-inline-start: 2px solid var(--line); }
.comment-body { --cut: .875rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--cut); corner-shape: bevel; }
.bypostauthor > .comment-body { border-color: #7a3c18; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; margin-block-end: .55rem; }
.comment-author { display: flex; align-items: center; gap: .7rem; min-inline-size: 0; font: 700 1.1rem/1.2 var(--font-head); color: var(--head); }
.comment-author .avatar { flex: none; inline-size: 2.75rem; block-size: auto; aspect-ratio: 1.155; object-fit: cover; background: var(--surface-2); clip-path: var(--hex); }
.comment-author .fn { font-weight: 700; }
.comment-author .fn a { color: inherit; }
.comment-metadata { color: var(--muted); font-size: .82rem; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-metadata a:hover { color: var(--link-hover); text-decoration: underline; }
.comment-metadata .edit-link { margin-inline-start: .5rem; }
.comment-awaiting-moderation { flex-basis: 100%; color: var(--gold); font-size: .85rem; }
.comment-content { color: #e2d6c1; font-size: 1rem; line-height: 1.65; }
.comment-content p { margin: 0 0 .6em; }
.comment-content > :last-child { margin-block-end: 0; }
.comment-content img { block-size: auto; }
.reply { margin-block-start: .55rem; }
.comment-reply-link { font: 700 .9rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.no-comments { margin: 0 0 1.5rem; color: var(--muted); }
.comment-respond { --cut: 1rem; padding: clamp(1rem, .5rem + 2.5vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--cut); corner-shape: bevel; }
.comment-list .comment-respond { margin-block-start: .9rem; }
.comment-reply-title small { order: 1; font: 700 .9rem/1 var(--font-head); letter-spacing: .07em; }
.comment-reply-title small:has(> a[style*="none"]) { display: none; }
.comment-form { display: grid; gap: 1rem; }
.comment-form > * { grid-column: 1 / -1; margin: 0; }
@media (min-width: 44em) {
  .comment-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comment-form > :is(.comment-form-author, .comment-form-email, .comment-form-url) { grid-column: auto; }
}
.comment-form label { display: block; margin-block-end: .3rem; color: var(--head); font: 700 .95rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.comment-form textarea { min-block-size: 9rem; resize: vertical; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: .9rem; }
.comment-form .required { color: var(--fire); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .6rem; }
.comment-form-cookies-consent input { flex: none; inline-size: 1.1rem; block-size: 1.1rem; margin-block-start: .3rem; }
.comment-form-cookies-consent label { margin: 0; color: var(--text); font: 400 .9rem/1.5 var(--font); text-transform: none; letter-spacing: 0; }

/* Archiwa, wyszukiwarka i 404 */
.archive-header { --cut: 1.2rem; display: flex; align-items: flex-start; gap: 1.25rem; margin-block-end: 1.75rem; padding: clamp(1rem, .5rem + 2.5vw, 1.75rem); background: var(--surface); border: 1px solid #5a3823; border-radius: 0 var(--cut); corner-shape: bevel; box-shadow: .35rem .35rem 0 #000; }
.archive-text { display: grid; gap: .65rem; flex: 1; min-inline-size: 0; }
.archive-label { display: flex; align-items: center; gap: .5rem; margin-block-end: .35rem; color: var(--link); font: 700 .95rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .14em; }
.archive-label::before { content: ""; flex: none; inline-size: .8em; aspect-ratio: 1.155; background: var(--fire); clip-path: var(--hex); }
.archive-description { color: #d9cdb8; }
.archive-description > * { margin: 0 0 .5em; }
.archive-description > :last-child { margin-block-end: 0; }
.archive-count, .author-url { margin: 0; color: var(--muted); font-size: .875rem; }
.author-avatar { flex: none; inline-size: clamp(4rem, 12vw, 6rem); block-size: auto; aspect-ratio: 1.155; object-fit: cover; background: var(--surface-2); clip-path: var(--hex); }
.archive-header .search-form, .notice-box .search-form { max-inline-size: 30rem; }
.notice-box { --cut: 1rem; padding: clamp(1rem, .5rem + 2.5vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--cut); corner-shape: bevel; }
.notice-box > * { margin: 0 0 1.1rem; }
.notice-box > :last-child { margin-block-end: 0; }
.section-links ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.section-links a { display: inline-block; padding: .35rem .85rem; color: var(--text); font: 700 .95rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 0 .5rem; corner-shape: bevel; }
.section-links a:hover { color: var(--ink); background: var(--link-hover); border-color: var(--link-hover); }

/* Ostrożnie z ruchem */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (forced-colors: active) {
  .entry, .widget, .lead, .article, .archive-header, .notice-box, .comment-body, .comment-respond, .post-navigation a, .tags a, .section-links a { border: 1px solid CanvasText; }
  .social a, .pagination .page-numbers, .page-links .post-page-numbers { clip-path: none; border: 1px solid CanvasText; }
}
@media print {
  .topbar, .sidebar, .site-footer, .pagination, .breadcrumbs, .post-navigation, .comment-respond, .reply, .section-links, .search-form { display: none !important; }
  body { background: #fff; color: #000; }
  .site-header { background: none; border: 0; }
  .article, .archive-header, .comment-body { padding: 0; background: none; border: 0; box-shadow: none; }
  .entry-title, .archive-title, .entry-content, .entry-content *, .comment-author, .comment-content, .comment-content * { color: #000; }
}
