@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-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: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-black-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: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-black-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; }

*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 5.3vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
h3 { font-size: 1.3rem; }
p, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .16em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
ul[class], nav ul, .term-map ul, .facts { list-style: none; padding: 0; margin: 0; }
.wrap { width: min(var(--max, 1312px), calc(100% - var(--gut, 64px) * 2)); margin-inline: auto; }
.skip-link, .screen-reader-text:not(:focus) { position: absolute; overflow: hidden; clip-path: inset(50%); inline-size: 1px; block-size: 1px; white-space: nowrap; }
.skip-link:focus { z-index: 9; clip-path: none; inline-size: auto; block-size: auto; padding: .75rem 1rem; background: var(--surface); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: clamp(12px, 2vw, 36px); }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; line-height: 1; font-family: var(--display); font-size: clamp(1.25rem, 2.05vw, 2rem); font-weight: 700; }
.brand svg { flex: none; }
.primary ul, .header-tools, .utility-bar nav { display: flex; align-items: center; gap: clamp(12px, 2.15vw, 33px); }
.primary a, .utility-bar a { display: block; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.header-tools { gap: 8px; }
.icon-link, .drawer summary { display: grid; width: 43px; height: 43px; place-items: center; border-radius: var(--radius); background: var(--tint); cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer nav { position: absolute; top: 100%; right: var(--gut); max-height: 70vh; overflow-y: auto; width: min(calc(100% - var(--gut) * 2), 660px); padding: 20px; border: 1px solid var(--line); box-shadow: 0 10px 22px #1d172923; background: var(--surface); }
.drawer-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.drawer-categories > li > a { font-weight: 750; }
.drawer-categories li li { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); font-size: .87rem; }
.utility-bar { display: none; }
.text-link { display: inline-flex; align-items: baseline; gap: 6px; font-size: .87rem; font-weight: 750; color: var(--accent); }
.text-link span { flex: none; }
.home-section { padding-block: clamp(32px, 4vw, 66px); }
.home-section > p, .home-section > header p { color: var(--muted); margin-top: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-block-end: 25px; }
.story { min-width: 0; }
.story-media { overflow: hidden; background: var(--tint); }
.story-media .photo { width: 100%; height: 100%; object-fit: cover; }
.story-topic { color: var(--accent); font-size: .73rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 750; line-height: 1.35; }
.story h3 { margin: 5px 0 6px; }
.story .deck { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.byline { font-size: .76rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.byline a { font-weight: 650; }
.term-map { display: grid; grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.term-map section { min-width: 0; }
.term-map h3 { margin-bottom: .75rem; }
.term-map li + li { margin-top: 6px; }
.term-map ul { font-size: .9rem; }
.comparison-links { display: grid; grid-template-columns: repeat(var(--compare-columns, 3), minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.comparison-card { background: var(--tint); border-radius: var(--radius); padding: clamp(18px, 2vw, 30px); min-width: 0; }
.comparison-card h3 { margin: 9px 0; font-size: clamp(1.25rem, 2.2vw, 2rem); }
.comparison-card > .text-link { margin-top: 13px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1.25fr; gap: clamp(14px, 3vw, 45px); padding-block: 36px; }
.footer-grid h2 { font-family: var(--body); font-weight: 760; font-size: .94rem; margin-bottom: 14px; }
.footer-grid p, .footer-grid li { font-size: .86rem; margin-top: 8px; }
.footer-grid p { color: var(--muted); max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 17px 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; color: var(--muted); }
.inner { min-height: 60vh; padding-block: 28px 66px; }
.crumb ol { display: flex; flex-wrap: wrap; gap: 4px 9px; color: var(--muted); list-style: none; padding: 0; font-size: .82rem; }
.crumb li + li::before { content: "/"; padding-inline-end: 9px; opacity: .6; }
.view-intro { margin-bottom: 28px; padding: clamp(20px, 3vw, 42px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.view-intro h1 { margin-top: 16px; overflow-wrap: anywhere; }
.view-intro > p { max-width: 65ch; margin-top: 15px; color: var(--muted); }
.children-nav { margin-block: 0 23px; }
.children-nav ul, .tag-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.children-nav a, .tag-nav a { display: block; background: var(--tint); border-radius: var(--radius); padding: .55em .85em; color: var(--accent); font-weight: 700; font-size: .9rem; }
.children-nav a[aria-current] { background: var(--accent); color: #fff; }
.editorial-layout, .entity-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .34fr); gap: 24px; align-items: start; }
.topic-aside { background: var(--tint); padding: 23px; border-radius: var(--radius); align-self: start; }
.topic-aside h2 { font-size: 1.45rem; margin-bottom: .8rem; }
.topic-aside ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.topic-aside li { margin-top: .55rem; }
.topic-aside a { overflow-wrap: anywhere; }
.topic-aside a[aria-current] { text-decoration: underline; }
.archive-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.archive-feature .story-media { aspect-ratio: 1.5; }
.archive-feature .story-copy { padding: 18px; }
.archive-feature h3 { font-size: clamp(1.5rem, 2.4vw, 2.3rem); }
.inner-results, .directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.editorial-layout .inner-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-story, .entity-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.result-story .story-media { aspect-ratio: 1.78; }
.result-story .story-copy, .entity-card { padding: 18px; }
.result-story h3, .entity-card h2 { overflow-wrap: anywhere; }
.article { width: min(100%, 948px); margin: 24px auto 0; }
.article-title { margin-bottom: 24px; }
.article-title h1 { margin-top: 12px; }
.article-deck { font-size: clamp(1.08rem, 2vw, 1.4rem); max-width: 60ch; color: var(--muted); margin-top: 16px; }
.article-photo img { width: 100%; aspect-ratio: 2.05; object-fit: cover; border-radius: var(--radius); }
.article-body { width: min(100%, 715px); margin: 24px auto 0; }
.prose { max-width: 72ch; overflow-wrap: anywhere; line-height: 1.7; }
.prose h2 { margin: 1.2em 0 .35em; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.prose p + p, .prose ul, .prose figure { margin: 1em 0; }
.prose a, .topic-aside a:hover, .notice a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
.article-answer { font-size: 1.12rem; }
.article-deck + .byline { margin-top: 14px; }
.toc { background: var(--tint); padding: 18px 20px; margin-bottom: 22px; border-radius: var(--radius); }
.toc h2 { font-size: 1.15rem; margin-bottom: 8px; }
.toc ol { padding-left: 24px; }
.tag-nav { margin-top: 25px; }
.related > h2 { margin: 0 0 18px; }
.search-form, .filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.search-form label { flex: 1 1 280px; }
.filters label { flex: 1 1 165px; }
label { display: grid; gap: 6px; min-width: 0; font-weight: 680; }
input, select, textarea { min-width: 0; width: 100%; padding: .65em .8em; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--radius); }
textarea { resize: vertical; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: .65em 1.05em; border: 1px solid var(--accent); border-radius: var(--radius); min-height: 44px; color: #fff; background: var(--accent); font-weight: 750; }
.button:hover { color: #fff; filter: brightness(.9); text-decoration: none; }
.button.secondary { color: var(--accent); background: var(--surface); }
.notice { background: var(--tint); padding: 15px 18px; border-inline-start: 3px solid var(--accent); border-radius: var(--radius); }
.notice.error { color: #742037; border-color: #942643; background: #f8e6eb; }
.notice.success { color: #1e5a3a; border-color: #1f6743; background: #e6f2ea; }
.result-count { margin: 0 0 12px; color: var(--muted); font-size: .88rem; }
.contact-layout { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: start; gap: 24px; }
.contact-layout aside a { display: inline-block; margin-top: 12px; color: var(--accent); text-decoration: underline; }
.contact-panel { display: grid; gap: 15px; padding: clamp(16px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.entity-mark { display: grid; place-items: center; height: 70px; margin-bottom: 16px; color: var(--accent); background: var(--tint); font-family: var(--display); font-size: 2rem; }
.entity-card h2 { font-size: 1.58rem; margin: 8px 0; }
.entity-card > p:not(.story-topic) { color: var(--muted); }
.entity-card .text-link { margin-top: 12px; }
.facts div { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 8px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 750; }
.facts dd { margin: 0; }
.ranking-list li { padding-block: 9px; }
.compare-panel { border: 1px solid var(--line); background: var(--surface); padding: clamp(12px, 3vw, 36px); border-radius: var(--radius); }
.compare-panel > p { margin-block: 11px 20px; color: var(--muted); }
.matrix table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.matrix th, .matrix td { vertical-align: top; border: 1px solid var(--line); overflow-wrap: anywhere; padding: clamp(5px, 1.5vw, 15px); }
.matrix thead, .matrix tbody th { background: var(--tint); }
.paginator, .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 14px; row-gap: 8px; margin-top: 22px; }
@media (max-width: 1150px) { :root { --gut: 35px; } .primary ul { gap: 15px; } .primary a { font-size: .78rem; } }
@media (max-width: 930px) { .masthead .primary { display: none; } .utility-bar { display: block; border-top: 1px solid var(--line); } .utility-bar nav { overflow-x: auto; min-height: 42px; scrollbar-width: thin; } .inner-results, .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) {
    :root { --gut: 18px; }
    .masthead { min-height: 66px; }
    .footer-grid, .term-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-formats { grid-column: 1 / -1; }
    .comparison-links, .editorial-layout, .entity-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
    .archive-feature { grid-template-columns: minmax(0, 1fr); }
    .editorial-layout .inner-results, .inner-results, .directory-grid { grid-template-columns: minmax(0, 1fr); }
    .result-story:has(.story-media) { display: grid; grid-template-columns: minmax(90px,.6fr) minmax(0,1.4fr); align-items: stretch; }
    .result-story .story-media { aspect-ratio: auto; }
    .result-story .story-copy { padding: 12px; }
    .matrix { font-size: .78rem; }
    .section-heading { flex-wrap: wrap; }
    .article-photo img { aspect-ratio: 1.55; }
    .inner { padding-block: 16px 45px; }
}

.story-topic a, .byline a { display: inline-flex; align-items: center; min-height: 24px; }


/*
Theme Name: Mainbox
Description: Dedykowany magazyn redakcyjny mainbox.pl.
Version: 1.0.0
Text Domain: mainbox
*/
:root { --paper: #f8f8f5; --surface: #fff; --ink: #161831; --muted: #4f536c; --accent: #2423a0; --tint: #f1f1f8; --line: #dedee9; --field-line: #8c8ca2; --body: "Geist",system-ui,sans-serif; --display: var(--body); --radius: 6px; --columns: 6; }
.mainbox h1, .mainbox h2, .mainbox h3 { letter-spacing: -.055em; font-weight: 760; }
.mainbox .brand { font-family: "Archivo Black",var(--body); font-weight: 400; letter-spacing: -.075em; }
.mainbox .brand svg { width: 26px; height: 26px; color: var(--accent); }
.mainbox .site-footer { background: var(--surface); }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); align-items: end; gap: 16px; padding-block: clamp(24px, 3.4vw, 51px) 25px; }
.home-intro h1 { line-height: .96; font-size: clamp(2.45rem, 5.15vw, 4.85rem); }
.home-intro p { max-width: 35ch; margin: 0 0 3px auto; color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); align-items: stretch; gap: 15px; }
.hero-lead, .hero-side, .news-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.hero-lead .story-media { aspect-ratio: 2.53; }
.hero-lead .story-copy { padding: 18px 21px 20px; }
.hero-lead h3 { font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: .99; }
.hero-sides { display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 14px; }
.hero-side { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.34fr); }
.hero-side .story-copy { padding: clamp(10px, 1.55vw, 22px); display: flex; flex-direction: column; justify-content: center; }
.hero-side h3 { font-size: clamp(1.1rem, 1.65vw, 1.65rem); }
.news-grid, .quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.news-card .story-media { aspect-ratio: 1.85; }
.news-card .story-copy { padding: 13px 14px 15px; }
.news-card h3 { font-size: clamp(1.04rem, 1.55vw, 1.45rem); }
.quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; margin-top: 16px; }
.quick-story { padding: 12px 8px 12px 0; border-top: 1px solid var(--line); }
.quick-story h3, .chapter-row h3 { font-size: 1.12rem; }
.chapter-band { background: #f0f0f6; }
.chapter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px 15px; margin-top: 20px; }
.chapter { border-top: 3px solid var(--section-ink); padding: clamp(11px, 1.45vw, 21px); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.chapter > header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 13px; margin-bottom: 14px; }
.chapter > header h3 { font-size: clamp(1.55rem, 2.7vw, 2.4rem); }
.chapter .story-topic, .chapter .text-link { color: var(--section-ink); }
.chapter-feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0,1.35fr); align-items: center; gap: 13px; margin: 0 0 12px; }
.chapter-feature .story-media { aspect-ratio: 1.3; border-radius: var(--radius); }
.chapter-feature h3 { font-size: clamp(1.25rem, 1.9vw, 1.85rem); }
.chapter-row { border-top: 1px solid var(--line); padding-block: 9px; }
.mainbox .comparison-card:nth-child(2) { background: #f8e8ee; }
.mainbox .comparison-card:nth-child(3) { background: #f5eddc; }
.topic-home { padding-top: 0; }
.mainbox .term-map section { padding: 10px 0 3px; border-top: 2px solid var(--topic-color, var(--accent)); }
.mainbox .term-map section:nth-child(1) { --topic-color: #703f16; }
.mainbox .term-map section:nth-child(3) { --topic-color: #245783; }
.mainbox .term-map section:nth-child(4) { --topic-color: #82374e; }
.mainbox .term-map section:nth-child(5) { --topic-color: #694b22; }
.mainbox .term-map section:nth-child(6) { --topic-color: #24583d; }
.mainbox .term-map ul { color: var(--topic-color,var(--accent)); }
.mainbox .footer-formats ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.mainbox .footer-formats li { margin: 0; }
.mainbox .footer-formats a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 7px 10px; background: var(--tint); color: var(--accent); border-radius: var(--radius); }
@media (max-width: 1110px) { .mainbox .term-map { --columns: 3; } }
@media (max-width: 660px) {
    .home-intro, .hero, .news-grid, .quick-grid, .chapter-grid, .chapter-feature { grid-template-columns: minmax(0,1fr); }
    .home-intro p { margin: 0; }
    .hero-lead .story-media { aspect-ratio: 1.45; }
    .hero-lead .story-copy { padding: 13px; }
    .hero-side { grid-template-columns: 112px minmax(0,1fr); }
    .hero-side .story-copy { padding: 12px; }
    .hero-side .story-media { min-height: 100px; }
    .news-card { display: grid; grid-template-columns: 105px minmax(0,1fr); }
    .news-card .story-media { aspect-ratio: auto; }
    .news-card .story-copy { padding: 11px; }
    .chapter-feature .story-media { aspect-ratio: 1.7; }
    .chapter > header { flex-wrap: wrap; }
}

.masthead-search { display: flex; align-items: center; padding-inline: 9px; background: var(--tint); border-radius: var(--radius); }
.masthead-search input { width: clamp(120px,13vw,195px); border: 0; background: transparent; font-size: .8rem; }
.masthead-search button { border: 0; padding: 6px; color: var(--accent); background: transparent; line-height: 0; }
.mainbox .header-tools .icon-link { display: none; }
.hero-side .story-media { position: relative; min-height: 110px; }
.hero-side .story-media .photo { position: absolute; inset: 0; }
@media (min-width: 661px) {
    .home-intro { padding-top: clamp(23px,2.4vw,35px); }
    .hero { grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); }
}
@media (max-width: 930px) {
    .mainbox .header-tools .icon-link { display: grid; }
    .masthead-search { display: none; }
}
