:root {
  --ink: #16181b;
  --paper: #f7f4ee;
  --white: #fff;
  --red: #b52229;
  --red-dark: #7e151a;
  --muted: #686d73;
  --line: #ddd8cf;
  --soft-line: #ebe7df;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 54px rgba(28, 20, 17, .1);
  --radius: 4px;
  --wrap: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .18s ease, background-color .18s ease, opacity .18s ease; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); line-height: 1.08; text-wrap: balance; }
p { margin: 0 0 1.35em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { 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:focus { position: fixed; left: 1rem; top: 1rem; z-index: 10000; background: var(--white); padding: .75rem 1rem; box-shadow: var(--shadow); }

.utility-bar { background: var(--ink); color: #d8dade; font-size: .75rem; letter-spacing: .045em; text-transform: uppercase; }
.utility-bar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.utility-bar ul { list-style: none; display: flex; align-items: center; gap: 1.2rem; padding: 0; margin: 0; }
.utility-bar a:hover { color: var(--white); }
.masthead { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; width: min(560px, 66vw); }
.brand .custom-logo-link { display: block; }
.brand img { width: auto; max-height: 92px; }
.masthead__actions { display: flex; gap: .5rem; }
.icon-button { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; color: var(--ink); font-size: 1.5rem; }
.icon-button:hover { color: var(--red); border-color: var(--red); }
.nav-toggle { display: none; align-content: center; gap: 4px; padding: 12px; }
.nav-toggle > span:not(.screen-reader-text) { display: block; height: 2px; width: 20px; background: currentColor; }
.primary-nav { border-block: 1px solid var(--ink); background: var(--white); position: sticky; top: 0; z-index: 100; }
.primary-nav ul { display: flex; align-items: stretch; justify-content: space-between; list-style: none; padding: 0; margin: 0; }
.primary-nav li { position: relative; }
.primary-nav a { display: flex; min-height: 52px; align-items: center; padding: .25rem .75rem; font-size: .82rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.primary-nav a:hover { background: var(--paper); }
.primary-nav .sub-menu { display: none; position: absolute; left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { min-height: 42px; text-transform: none; letter-spacing: 0; }
.site-search { border-bottom: 1px solid var(--line); background: var(--paper); padding: 1.2rem 0; }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 50px; border: 1px solid var(--line); background: var(--white); padding: .7rem 1rem; font: inherit; }
.search-form button, .button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--red); color: var(--white); padding: .7rem 1.3rem; font: 750 .78rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.search-form button:hover, .button:hover { background: var(--red-dark); color: var(--white); }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 3px solid var(--ink); padding-top: .7rem; margin-bottom: 1.35rem; }
.section-heading h1, .section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.section-heading > a, .section-heading > span { color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.section-heading--topline { margin-top: 2.4rem; }
.section-heading--inverse { border-color: var(--white); color: var(--white); }
.section-heading--inverse > span { color: #bfc3c8; }
.story-label, .eyebrow { display: inline-flex; align-items: center; width: fit-content; margin-bottom: .62rem; color: var(--red); font-size: .72rem; line-height: 1.2; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.story-label--sponsored { background: #efe4c9; color: #5d4319; padding: .38rem .52rem; }
.story-card__media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e8e4dd; }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-card__media img { transform: scale(1.025); }
.story-card__placeholder { display: block; height: 100%; background: linear-gradient(145deg, #e5e0d8, #cbc5bb); }
.story-card__body { padding-top: .85rem; }
.story-card__title { font-size: clamp(1.15rem, 1.8vw, 1.55rem); }
.story-card__excerpt { color: #4d5258; margin: .72rem 0 .85rem; font-size: .94rem; line-height: 1.55; }
.story-card__meta { color: var(--muted); margin-top: .75rem; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; }
.story-grid { display: grid; gap: 2rem 1.35rem; }
.story-grid--four { grid-template-columns: repeat(4, 1fr); }
.story-grid--three { grid-template-columns: repeat(3, 1fr); }
.story-card--compact { display: grid; grid-template-columns: 145px 1fr; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--soft-line); }
.story-card--compact .story-card__media { aspect-ratio: 4 / 3; }
.story-card--compact .story-card__body { padding: 0; }
.story-card--compact .story-card__title { font-size: 1.08rem; }
.story-card--compact .story-label { margin-bottom: .35rem; }
.editorial-section { padding-block: 3.4rem 1.1rem; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .75fr); gap: 1.5rem; }
.hero-lead { position: relative; min-height: 620px; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-lead__media, .hero-lead__media::after { position: absolute; inset: 0; }
.hero-lead__media::after { content: ""; background: linear-gradient(180deg, rgba(13,14,16,.04) 22%, rgba(13,14,16,.92) 100%); }
.hero-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-lead__body { position: absolute; z-index: 2; left: clamp(1.3rem, 3vw, 2.5rem); right: clamp(1.3rem, 3vw, 2.5rem); bottom: 2rem; }
.hero-lead h2 { max-width: 900px; font-size: clamp(2rem, 4vw, 4.2rem); }
.hero-lead p { max-width: 720px; margin: 1rem 0 .7rem; color: #e4e5e6; }
.hero-lead .story-card__meta { color: #d3d5d8; }
.hero-side { display: grid; align-content: start; gap: 1rem; }

.analysis-band { background: var(--ink); margin-top: 4rem; padding: 3.6rem 0 4.2rem; }
.story-grid--inverse { color: var(--white); }
.story-grid--inverse .story-card__excerpt, .story-grid--inverse .story-card__meta { color: #bfc3c8; }
.story-grid--inverse .story-card__media { background: #303338; }

.partner-band { margin-block: 4rem 1rem; padding: clamp(1.6rem, 4vw, 3rem); background: var(--paper); border-left: 5px solid #c39a4a; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.partner-band h2 { font-size: clamp(1.65rem, 3vw, 2.7rem); margin-bottom: .55rem; }
.partner-band p { margin: 0; max-width: 760px; color: var(--muted); }
.newsletter-band { margin-top: 4rem; background: var(--red); color: var(--white); }
.newsletter-band__inner { min-height: 250px; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.newsletter-band .eyebrow { color: #f6d6d7; }
.newsletter-band h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.newsletter-placeholder { padding: 1.3rem; border: 1px dashed rgba(255,255,255,.6); color: #f7e8e9; font-size: .9rem; }

.ad-slot { display: grid; place-items: center; min-height: 100px; margin-block: 2rem; padding: 1rem; border: 1px dashed #bbb6ad; background: #f5f3ef; color: var(--muted); text-align: center; }
.ad-slot::before { content: "Reklama"; display: block; margin-bottom: .5rem; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.ad-slot--sidebar { min-height: 300px; margin-top: 1.5rem; }
.ad-slot--inline { min-height: 250px; margin-block: 2.5rem; }
.ad-popup { position: fixed; z-index: 1000; right: 1.5rem; bottom: 1.5rem; width: min(480px, calc(100vw - 3rem)); max-height: min(70vh, 620px); overflow: auto; padding: 1.25rem; background: var(--white); border-top: 5px solid var(--red); box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.ad-popup__close { position: absolute; right: .6rem; top: .55rem; width: 44px; height: 44px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.ad-popup__label { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

.single-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(270px, 330px); justify-content: space-between; gap: 4rem; padding-block: 3.5rem 5rem; }
.page-layout { max-width: 980px; padding-block: 3.5rem 5rem; }
.article--page .article-header { max-width: 820px; }
.article-header h1 { font-size: clamp(2.5rem, 5vw, 5.15rem); letter-spacing: -.025em; }
.article-lead { margin: 1.35rem 0 1rem; color: #44494f; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; }
.post-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; color: var(--muted); font-size: .75rem; letter-spacing: .045em; text-transform: uppercase; }
.article-hero { margin: 2rem 0 0; }
.article-hero img { width: 100%; }
.article-hero figcaption { padding-top: .5rem; color: var(--muted); font-size: .75rem; }
.article-body { padding-top: 2rem; font-family: var(--serif); font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.78; }
.article-body > * { max-width: 760px; margin-inline: auto; }
.article-body h2 { margin-top: 2.25em; margin-bottom: .7em; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.article-body h3 { margin-top: 1.8em; margin-bottom: .6em; font-size: 1.55rem; }
.article-body a { color: var(--red-dark); text-decoration: underline; text-underline-offset: .14em; }
.article-body blockquote { border-left: 4px solid var(--red); padding-left: 1.4rem; font-size: 1.18em; font-style: italic; }
.article-body figure { max-width: 100%; }
.article-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tag-list, .share-row { display: flex; flex-wrap: wrap; gap: .55rem .8rem; align-items: center; margin-bottom: 1rem; font-size: .8rem; }
.tag-list > span, .share-row > span { font-weight: 800; text-transform: uppercase; }
.tag-list a { background: var(--paper); padding: .28rem .5rem; }
.article-sidebar { padding-top: 10rem; }
.sidebar-box { position: sticky; top: 82px; border-top: 3px solid var(--ink); padding-top: 1rem; }
.sidebar-box > h2 { margin-bottom: 1.2rem; font-size: 1.8rem; }
.sidebar-box .story-card--compact { grid-template-columns: 1fr; }
.sidebar-box .story-card__media { display: none; }
.archive-layout { padding-block: 3.5rem 5rem; }
.archive-header { max-width: 900px; margin-bottom: 2.4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink); }
.archive-header h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.archive-description { max-width: 720px; color: var(--muted); margin-top: 1rem; }
.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; gap: .45rem; flex-wrap: wrap; }
.page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); padding: .25rem .7rem; }
.page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.not-found { min-height: 60vh; padding-block: 6rem; }
.not-found h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 1rem; }
.not-found .search-form { max-width: 720px; margin: 2rem 0; }

.site-footer { background: #111316; color: #c7cacf; padding: 4rem 0 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand img { max-width: 360px; }
.footer-brand p { max-width: 520px; margin-top: 1rem; color: #9da1a7; }
.site-footer .widget-title { color: var(--white); font-size: 1.25rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #303338; font-size: .72rem; }

@media (max-width: 1060px) {
  :root { --wrap: min(100% - 36px, 940px); }
  .primary-nav { position: relative; }
  .primary-nav a { padding-inline: .4rem; font-size: .72rem; }
  .story-grid--four { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(2, 1fr); }
  .hero-lead { min-height: 580px; }
  .single-layout { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { padding-top: 0; }
  .sidebar-box { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .sidebar-box > .eyebrow, .sidebar-box > h2 { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --wrap: calc(100% - 28px); }
  .utility-bar__inner { justify-content: center; text-align: center; min-height: 30px; }
  .utility-bar nav, .utility-bar ul { display: none; }
  .masthead { min-height: 92px; }
  .brand { width: min(390px, calc(100vw - 132px)); }
  .brand img { max-height: 66px; }
  .nav-toggle { display: grid; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; z-index: 200; border-top: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; padding-block: .5rem; }
  .primary-nav a { min-height: 46px; padding-inline: 1rem; font-size: .82rem; }
  .primary-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 1rem; }
  .section-heading { align-items: flex-end; }
  .section-heading > a, .section-heading > span { max-width: 110px; text-align: right; }
  .hero-lead { min-height: 520px; }
  .hero-lead h2 { font-size: clamp(2rem, 9.2vw, 3.15rem); }
  .hero-lead p { display: none; }
  .hero-side { grid-template-columns: 1fr; }
  .story-card--compact { grid-template-columns: 112px 1fr; }
  .story-grid--three, .story-grid--four { grid-template-columns: 1fr; }
  .editorial-section { padding-top: 2.6rem; }
  .analysis-band { margin-top: 3rem; padding-block: 2.8rem; }
  .partner-band { flex-direction: column; align-items: flex-start; }
  .newsletter-band__inner { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.7rem; }
  .article-header h1 { font-size: clamp(2.25rem, 11vw, 3.7rem); }
  .single-layout { padding-top: 2.4rem; }
  .article-body { font-size: 1.07rem; }
  .sidebar-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .ad-popup { left: 0; right: 0; bottom: 0; width: 100%; max-height: 26vh; border-top-width: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
