/*
Theme Name: Poduzetnik Editorial
Theme URI: https://poduzetnik.ba
Author: poduzetnik.ba
Description: Editorial tema za poduzetnik.ba — glavni slider iz kategorije "Top", velike vijesti, najčitanije, eventi, oglasni prostori i potpuna mobilna verzija.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pba
*/

/* ---------- Tokens ---------- */
:root {
	--accent: #6D28D9;
	--slider-label: #C4B5FD;
	--ink: #16171A;
	--text: #26272B;
	--muted: #4A4A46;
	--subtle: #6B6A65;
	--line: #E4E3DF;
	--line-2: #DCDBD6;
	--paper: #F4F3F0;
	--white: #FFFFFF;
	--f-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--f-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
	--f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
	--wrap: 1240px;
	--gutter: 24px;
}
@media (max-width: 760px) {
	:root { --gutter: 16px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--f-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
button { font: inherit; cursor: pointer; }
.screen-reader-text {
	position: absolute !important; 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; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--ink); color: var(--white); padding: 12px 16px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Shared type helpers */
.mono {
	font-family: var(--f-mono);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.display {
	font-family: var(--f-display);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1.04;
}
.tag {
	display: inline-block;
	padding: 9px 14px;
	background: var(--accent);
	color: var(--white);
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.2;
}
a.tag:hover { color: var(--white); filter: brightness(1.1); }
.tag--dark { background: var(--ink); }
.avatar-dot {
	flex: 0 0 auto;
	width: 40px; height: 40px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--f-display); font-weight: 900; font-size: 15px;
}
.avatar-dot img { width: 100%; height: 100%; object-fit: cover; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.byline > span:last-child { min-width: 0; line-height: 1.6; }
.read-more { display: inline-block; padding: 12px 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.media-ph { background: #3A3B40; width: 100%; height: 100%; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: 40px; letter-spacing: -0.02em; }
.section-head a { font-size: 14px; font-weight: 600; padding: 10px 0; }
@media (max-width: 760px) {
	.section-head { margin-bottom: 12px; }
	.section-head h2 { font-size: 30px; }
}

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-bar {
	max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter);
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 16px;
}
.header-left { justify-self: start; display: flex; align-items: center; }
.search-toggle, .menu-toggle {
	display: inline-flex; align-items: center; gap: 10px;
	height: 48px; padding: 0 4px; border: 0; background: transparent; color: var(--ink);
	font-size: 15px; font-weight: 600;
}
.search-toggle:hover, .menu-toggle:hover { color: var(--accent); }
.site-logo { justify-self: center; display: block; line-height: 0; }
.site-logo { max-width: 100%; }
.site-logo img, .site-logo .custom-logo { height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.site-logo .site-title-text { font-family: var(--f-display); font-weight: 900; font-size: 40px; text-transform: lowercase; line-height: 1; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.header-actions .newsletter-link { font-size: 15px; font-weight: 600; padding: 12px 4px; }
.icon-btn {
	width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink);
	display: inline-flex; align-items: center; justify-content: center;
}
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav ul {
	list-style: none; margin: 0 auto; max-width: var(--wrap); padding: 0 var(--gutter);
	display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
}
.cat-nav a { display: block; padding: 16px 0; font-size: 17px; font-weight: 600; color: var(--muted); }
.cat-nav a:hover { color: var(--accent); }
.cat-nav .current-menu-item > a, .cat-nav .current-category-ancestor > a, .cat-nav .current-post-ancestor > a { color: var(--accent); font-weight: 700; }
.cat-nav .sub-menu { display: none; }

.search-panel { border-top: 1px solid var(--line); padding: 16px var(--gutter); }
.search-panel[hidden] { display: none; }
.search-form { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid #CFCEC8;
	font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
}
.search-form button { height: 48px; padding: 0 20px; border: 0; background: var(--ink); color: var(--white); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

.reading-progress { height: 3px; background: #ECEBE7; }
.reading-progress span { display: block; height: 3px; width: 0; background: var(--accent); }

/* Mobile menu */
.mobile-menu {
	position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--white);
	padding: 8px var(--gutter) 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { height: 52px; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__top img { height: 30px; width: auto; }
.mobile-menu .icon-btn { color: var(--white); }
.mobile-menu .search-form input[type="search"] { background: #26272B; border-color: #26272B; color: var(--white); }
.mobile-menu .search-form button { background: var(--accent); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu__cats a {
	display: block; padding: 14px 0; border-bottom: 1px solid #2E2F33; color: var(--white);
	font-family: var(--f-display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1.1;
}
.mobile-menu__cats a:hover { color: var(--slider-label); }
.mobile-menu__links ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.mobile-menu__links a { display: block; padding: 12px 0; color: #B9B8B3; font-size: 15px; }
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
	.site-header { position: sticky; top: 0; }
	.admin-bar .site-header { top: 46px; }
	.header-bar { padding: 6px 8px; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 0; }
	.search-toggle, .menu-toggle { width: 48px; height: 48px; justify-content: center; padding: 0; }
	.search-toggle__label, .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.site-logo img, .site-logo .custom-logo { height: 44px; }
	.header-actions .newsletter-link { display: none; }
	.cat-nav { border-top: 0; }
	.cat-nav ul { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 0 var(--gutter) 12px; scrollbar-width: none; }
	.cat-nav ul::-webkit-scrollbar { display: none; }
	.cat-nav li { flex: 0 0 auto; }
	.cat-nav a { height: 40px; padding: 0 16px; display: flex; align-items: center; border: 1px solid var(--line-2); color: var(--ink); font-size: 16px; font-weight: 600; }
	.cat-nav .current-menu-item > a, .cat-nav .current-category-ancestor > a, .cat-nav .current-post-ancestor > a { background: var(--accent); border-color: var(--accent); color: var(--white); }
}
@media (min-width: 783px) and (max-width: 900px) {
	.admin-bar .site-header { top: 32px; }
}

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; min-height: 780px; background: #3A3B40; color: var(--white); overflow: hidden; touch-action: pan-y; }
.hero-slider .slide {
	position: absolute; inset: 0; display: flex; align-items: flex-end;
	opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.hero-slider .slide.is-active { opacity: 1; visibility: visible; position: relative; min-height: 780px; }
.slide__media { position: absolute; inset: 0; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__media::after { content: ""; position: absolute; inset: 0; background: rgba(10, 11, 13, 0.38); }
.slide__content {
	position: relative; width: 100%; max-width: 1320px; margin: 0 auto;
	padding: 0 clamp(16px, 8vw, 120px) 128px; display: flex; flex-direction: column; gap: 22px;
}
.slide__cat { color: var(--slider-label); }
.slide__cat a { color: inherit; }
.slide__title { margin: 0; max-width: 1040px; font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: clamp(32px, 5.2vw, 76px); line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase; }
.slide__title a { color: var(--white); }
.slide__title a:hover { color: var(--slider-label); }
.slide__meta { display: flex; align-items: center; gap: 12px; color: #E2E1DC; }
.slide__meta .avatar-dot { width: 36px; height: 36px; background: var(--white); color: var(--ink); }
.slide__excerpt { margin: 0; max-width: 720px; font-size: 19px; line-height: 1.6; color: #EDECE8; }
.slide__more { color: var(--white); }
.slider-controls {
	position: absolute; left: 0; right: 0; bottom: 56px; z-index: 3;
	max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 8vw, 120px);
	display: flex; justify-content: flex-end; align-items: center; gap: 16px;
}
.slider-counter { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; }
.slider-dots { display: flex; gap: 6px; width: 220px; }
.slider-dots button { flex: 1; height: 24px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; }
.slider-dots button span { display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, 0.35); transition: background .3s; }
.slider-dots button[aria-current="true"] span { background: var(--white); }
.slider-arrow {
	position: absolute; top: 50%; z-index: 3; margin-top: -48px; width: 60px; height: 96px; border: 0;
	background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { filter: brightness(1.12); }
.slider-arrow--prev { left: 24px; }
.slider-arrow--next { right: 24px; }
@media (max-width: 760px) {
	.hero-slider, .hero-slider .slide.is-active { min-height: 560px; }
	.slide__content { padding: 0 var(--gutter) 84px; gap: 14px; }
	.slide__title { font-size: 32px; line-height: 0.98; }
	.slide__excerpt, .slide__more, .slide__meta .avatar-dot { display: none; }
	.slide__meta, .slide__cat { font-size: 12px; }
	.slider-arrow { display: none; }
	.slider-controls { bottom: 20px; padding: 0 var(--gutter); justify-content: space-between; }
	.slider-dots { flex: 1; width: auto; }
	.slider-dots button { height: 44px; padding: 0 3px; }
}

/* ---------- Big news ---------- */
.big-news { max-width: 1320px; margin: 0 auto; padding: 72px var(--gutter) 56px; display: flex; flex-direction: column; gap: 88px; }
.big-item { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.big-item__text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.big-item--text-left .big-item__text { padding-left: clamp(0px, 4vw, 56px); }
.big-item--image-left .big-item__text { padding-right: clamp(0px, 4vw, 56px); }
.big-item__media { flex: 1 1 420px; min-width: 0; position: relative; display: block; }
.big-item__img { aspect-ratio: 8 / 5; overflow: hidden; background: #D9D8D3; }
.big-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.big-item__media:hover img { transform: scale(1.03); }
.big-item__media .tag { position: absolute; top: 28px; }
.big-item--text-left .big-item__media .tag { right: 28px; }
.big-item--image-left .big-item__media .tag { left: 28px; }
.big-item__line { position: absolute; top: 28px; width: 72px; height: 3px; background: var(--accent); }
.big-item--text-left .big-item__line { left: -24px; }
.big-item--image-left .big-item__line { right: -24px; }
.big-item__title { margin: 0; font-size: clamp(30px, 3.6vw, 52px); }
.big-item__excerpt { margin: 0; max-width: 680px; font-size: 19px; line-height: 1.65; color: var(--muted); }
@media (max-width: 760px) {
	.big-news { padding: 36px var(--gutter) 8px; gap: 40px; }
	.big-item { gap: 14px; flex-direction: column; }
	.big-item--image-left { flex-direction: column; }
	.big-item--text-left { flex-direction: column-reverse; }
	.big-item__text { gap: 14px; padding: 0 !important; flex-basis: auto; }
	.big-item__media { flex-basis: auto; width: 100%; }
	.big-item__line { display: none; }
	.big-item__media .tag { top: 12px; left: 12px !important; right: auto !important; padding: 7px 10px; font-size: 11px; }
	.big-item__title { font-size: 26px; }
	.big-item__excerpt { font-size: 17px; line-height: 1.6; }
	.big-item .read-more { display: none; }
	.big-item .avatar-dot { width: 32px; height: 32px; font-size: 13px; }
	.big-item .byline { font-size: 12px; }
}

/* ---------- Ads ---------- */
.ad-slot { display: flex; justify-content: center; align-items: center; }
.ad-slot--wide { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 56px; }
.ad-slot--inline { margin: 16px 0; padding: 16px 0; background: var(--paper); }
.ad-slot > div { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.ad-slot .widget { margin: 0; display: flex; justify-content: center; }
.ad-slot img, .ad-slot iframe { margin: 0 auto; max-width: 100%; }
.ad-label { display: block; text-align: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); margin-bottom: 6px; }

/* ---------- Latest grid ---------- */
.latest { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 64px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px 32px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__img { aspect-ratio: 8 / 5; overflow: hidden; background: #E9E8E4; display: block; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__cat { font-size: 13px; font-weight: 600; color: var(--accent); }
.card__title { margin: 0; font-family: var(--f-serif); font-size: 26px; line-height: 1.15; font-weight: 500; }
.card__excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.card__date { font-size: 13px; color: var(--subtle); }
.card__body { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 760px) {
	.card-grid { display: flex; flex-direction: column; gap: 0; }
	.card { flex-direction: row-reverse; justify-content: flex-end; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
	.card:last-child { border-bottom: 1px solid var(--line); }
	.card__img { flex: 0 0 104px; height: 78px; aspect-ratio: auto; }
	.card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
	.card__title { font-size: 18px; line-height: 1.25; }
	.card__excerpt, .card__date { display: none; }
	.card__cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
}

/* ---------- Band: most read / events / ad ---------- */
.band { background: var(--paper); }
.band__inner { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; }
.band h2 { margin: 0 0 8px; font-family: var(--f-serif); font-size: 30px; font-weight: 500; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranked li { border-bottom: 1px solid var(--line-2); }
.ranked li:last-child { border-bottom: 0; }
.ranked a { display: flex; gap: 18px; padding: 16px 0; font-family: var(--f-serif); font-size: 19px; line-height: 1.3; }
.ranked a::before { counter-increment: rank; content: counter(rank); font-family: var(--f-serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--accent); min-width: 24px; }
.events-list { list-style: none; margin: 0; padding: 0; }
.events-list li { border-bottom: 1px solid var(--line-2); }
.events-list li:last-child { border-bottom: 0; }
.events-list a { display: flex; gap: 18px; padding: 16px 0; align-items: baseline; }
.events-list__date { flex: 0 0 72px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.events-list__title { font-family: var(--f-serif); font-size: 19px; line-height: 1.3; }
.band .widget-title { margin: 0 0 8px; font-family: var(--f-serif); font-size: 30px; font-weight: 500; }
.band .ad-slot { align-items: flex-start; }
@media (max-width: 760px) {
	.band__inner { padding: 36px var(--gutter); gap: 36px; }
	.band h2, .band .widget-title { font-size: 28px; }
	.ranked a, .events-list__title { font-size: 18px; }
	.ranked a::before { font-size: 30px; }
}

/* ---------- People row ---------- */
.people { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 64px; }
.people__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.portrait { display: flex; flex-direction: column; gap: 12px; }
.portrait__img { aspect-ratio: 3 / 4; overflow: hidden; background: #E9E8E4; display: block; }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.portrait__title { margin: 0; font-family: var(--f-serif); font-size: 22px; line-height: 1.2; font-weight: 500; }
@media (max-width: 900px) {
	.people { padding: 36px 0 36px var(--gutter); }
	.people .section-head { padding-right: var(--gutter); }
	.people__row { display: flex; overflow-x: auto; gap: 12px; padding-right: var(--gutter); scroll-snap-type: x mandatory; }
	.portrait { flex: 0 0 220px; scroll-snap-align: start; }
	.portrait__title { font-size: 19px; }
}

/* ---------- Newsletter ---------- */
.newsletter { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter__inner { max-width: 720px; margin: 0 auto; padding: 72px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.newsletter h2 { margin: 0; font-family: var(--f-serif); font-size: 48px; line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; }
.newsletter h2 em { color: var(--accent); }
.newsletter p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.newsletter__form { width: 100%; max-width: 480px; }
.newsletter__form input[type="email"], .newsletter__form input[type="text"] {
	width: 100%; height: 52px; padding: 0 18px; border: 1px solid #CFCEC8; border-radius: 999px; font: inherit; font-size: 16px;
}
.newsletter__form button, .newsletter__form input[type="submit"] {
	height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
@media (max-width: 760px) {
	.newsletter__inner { padding: 44px var(--gutter); }
	.newsletter h2 { font-size: 34px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 36px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.site-footer__about { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.site-footer__about img { height: 44px; width: auto; }
.site-footer__about p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 340px; }
.site-footer__col { flex: 0 1 220px; }
.site-footer__col h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--subtle); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col a { display: block; padding: 5px 0; font-size: 15px; }
.site-footer__bottom { padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) {
	.site-footer__inner { padding: 36px var(--gutter) 32px; gap: 24px; }
	.site-footer__about img { height: 36px; }
	.site-footer__col a { padding: 12px 0; font-size: 16px; }
}

/* ---------- Single post ---------- */
.post-head { max-width: 1080px; margin: 0 auto; padding: 64px var(--gutter) 40px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.breadcrumbs a { color: var(--subtle); }
.post-tags-top { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.post-title { margin: 0; font-size: clamp(34px, 5.4vw, 76px); line-height: 0.98; }
.post-head .byline { justify-content: center; }
.post-figure { margin: 0; padding: 0 var(--gutter); }
.post-figure__img { max-width: 1392px; margin: 0 auto; aspect-ratio: 21 / 9; overflow: hidden; background: #3A3B40; }
.post-figure__img img { width: 100%; height: 100%; object-fit: cover; }
.post-figure figcaption { max-width: 1392px; margin: 12px auto 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--subtle); }
.text-size { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 0; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.text-size__label { margin-right: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.text-size button { width: 44px; height: 44px; border: 1px solid #CFCEC8; background: var(--white); color: var(--ink); font-family: var(--f-serif); }
.text-size button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.text-size button:first-of-type { font-size: 16px; }
.text-size button:last-of-type { font-size: 22px; }

.entry-content { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 0; font-family: var(--f-serif); font-size: 21px; line-height: 1.7; color: var(--text); }
.entry-content.is-large { font-size: 24px; }
.entry-content > * { margin: 0 0 26px; }
.entry-content > p:first-child { font-family: var(--f-sans); font-size: 23px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2, .entry-content h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; color: var(--ink); line-height: 1.1; margin-top: 40px; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content blockquote, .entry-content .wp-block-quote, .entry-content .wp-block-pullquote {
	margin: 40px 0; padding: 0; border: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.entry-content blockquote::before { content: "“"; font-family: var(--f-display); font-weight: 900; font-size: 88px; line-height: 0.6; color: var(--accent); }
.entry-content blockquote p { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 34px; line-height: 1.12; text-transform: uppercase; color: var(--ink); }
.entry-content blockquote cite { font-style: normal; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.entry-content ul, .entry-content ol { padding-left: 26px; }
.entry-content li { margin-bottom: 8px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--subtle); margin-top: 8px; }
.entry-content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.entry-content .wp-block-gallery figure { margin: 0; width: auto !important; }
.entry-content .wp-block-gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.entry-content .alignwide { max-width: 1080px; margin-left: calc((760px - 1080px) / 2); margin-right: calc((760px - 1080px) / 2); }
.entry-content iframe { max-width: 100%; }

.post-after { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 0; display: flex; flex-direction: column; gap: 32px; }
.post-after__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a { padding: 10px 14px; border: 1px solid #D9D8D3; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.share { display: flex; align-items: center; gap: 8px; }
.share__label { margin-right: 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.share a, .share button { width: 44px; height: 44px; border: 0; background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.share a:hover, .share button:hover { background: var(--accent); color: var(--white); }
.share .share__copy { background: var(--accent); }
.share-bar { display: none; }
.updated-date { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }
.author-box { display: flex; gap: 24px; align-items: flex-start; padding: 32px; background: var(--paper); }
.author-box .avatar-dot { width: 72px; height: 72px; font-size: 26px; }
.author-box__body { display: flex; flex-direction: column; gap: 8px; }
.author-box__name { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.author-box__bio { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

.post-nav { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 0; }
.post-nav__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.post-nav a { display: flex; flex-direction: column; gap: 12px; padding: 32px 32px 32px 0; }
.post-nav a + a, .post-nav .post-nav__next { padding: 32px 0 32px 32px; text-align: right; }
.post-nav .post-nav__prev { border-right: 1px solid var(--line); }
.post-nav__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.post-nav__title { font-family: var(--f-display); font-weight: 900; font-size: 26px; line-height: 1.08; text-transform: uppercase; }

.related { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 0; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.related-card { display: flex; flex-direction: column; gap: 12px; }
.related-card__img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #D9D8D3; }
.related-card__img img { width: 100%; height: 100%; object-fit: cover; }
.related-card__img .tag { position: absolute; top: 16px; left: 16px; padding: 7px 11px; font-size: 11px; }
.related-card__date { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.related-card__title { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.related-card__body { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 760px) {
	.post-head { padding: 28px var(--gutter) 24px; align-items: flex-start; text-align: left; gap: 16px; }
	.breadcrumbs { display: none; }
	.post-tags-top { justify-content: flex-start; }
	.post-tags-top .tag { padding: 8px 12px; font-size: 11px; }
	.post-title { font-size: 34px; line-height: 1; }
	.post-head .byline { justify-content: flex-start; font-size: 12px; }
	.post-figure { padding: 0; }
	.post-figure__img { aspect-ratio: 4 / 3; }
	.post-figure figcaption { margin: 8px var(--gutter) 0; font-size: 11px; }
	.text-size { padding-top: 20px; }
	.entry-content { padding-top: 20px; font-size: 18px; }
	.entry-content.is-large { font-size: 21px; }
	.entry-content > * { margin-bottom: 20px; }
	.entry-content > p:first-child { font-size: 19px; }
	.entry-content h2 { font-size: 24px; }
	.entry-content blockquote p { font-size: 24px; }
	.entry-content blockquote::before { font-size: 64px; }
	.entry-content .wp-block-gallery { display: flex !important; overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scroll-snap-type: x mandatory; }
	.entry-content .wp-block-gallery figure { flex: 0 0 260px; scroll-snap-align: start; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
	.ad-slot--inline { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
	.post-after { padding-top: 24px; gap: 20px; }
	.post-after__row { border: 0; padding: 0; }
	.share { display: none; }
	.share-bar {
		display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
		background: var(--white); border-top: 1px solid var(--line);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.share-bar a, .share-bar button {
		height: 56px; border: 0; background: transparent; color: var(--ink);
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		font-family: var(--f-sans); font-size: 11px; font-weight: 600;
	}
	.share-bar .share__copy { background: var(--accent); color: var(--white); }
	body.single { padding-bottom: 56px; }
	.author-box { padding: 20px; gap: 14px; }
	.author-box .avatar-dot { width: 52px; height: 52px; font-size: 20px; }
	.author-box__name { font-size: 17px; }
	.post-nav { padding: 28px 0 0; }
	.post-nav__grid { display: block; }
	.post-nav a, .post-nav a + a, .post-nav .post-nav__next { padding: 20px var(--gutter); }
	.post-nav .post-nav__prev { border-right: 0; border-bottom: 1px solid var(--line); }
	.post-nav__title { font-size: 19px; }
	.related { padding-top: 36px; }
	.related .section-head h2 { font-size: 28px; }
	.related__grid { display: flex; flex-direction: column; gap: 0; }
	.related-card { flex-direction: row; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
	.related-card__img { flex: 0 0 88px; height: 88px; aspect-ratio: auto; }
	.related-card__img .tag { display: none; }
	.related-card__body { display: flex; flex-direction: column; gap: 6px; }
	.related-card__title { font-size: 17px; }
}

/* ---------- Comments ---------- */
.comments { max-width: 760px; margin: 0 auto; padding: 80px var(--gutter) 88px; }
.comments > summary { list-style: none; }
.comments > summary::-webkit-details-marker { display: none; }
.comments__toggle {
	display: none; width: 100%; height: 52px; border: 1px solid var(--ink); background: var(--white);
	font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
	align-items: center; justify-content: center; cursor: pointer;
}
.comments h2, .comment-reply-title { margin: 0 0 8px; font-family: var(--f-serif); font-size: 36px; font-weight: 500; letter-spacing: -0.02em; }
.comment-list { list-style: none; margin: 0 0 48px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }
.comment-meta img { border-radius: 999px; }
.comment-content { font-size: 17px; line-height: 1.6; }
.reply a { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.comment-form { display: flex; flex-direction: column; gap: 18px; }
.comment-form label { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #CFCEC8; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { height: 48px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.comment-form .comment-form-cookies-consent label { font-family: var(--f-sans); font-size: 14px; letter-spacing: 0; text-transform: none; margin: 0; }
.comment-form .submit { height: 52px; padding: 0 28px; border: 0; background: var(--ink); color: var(--white); font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.comment-notes, .logged-in-as { font-size: 15px; color: var(--subtle); }
@media (max-width: 760px) {
	.comments { padding: 32px var(--gutter) 40px; }
	.comments__toggle { display: flex; }
	.comments:not([open]) > *:not(summary) { display: none; }
	.comments h2, .comment-reply-title { font-size: 28px; margin-top: 20px; }
}

/* ---------- Archive ---------- */
.archive-head { max-width: var(--wrap); margin: 0 auto; padding: 80px var(--gutter) 56px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; border-bottom: 1px solid var(--ink); }
.archive-title { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: clamp(56px, 10vw, 140px); line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; word-break: break-word; }
.archive-desc { max-width: 620px; font-family: var(--f-serif); font-size: 22px; line-height: 1.5; color: var(--muted); }
.archive-desc p { margin: 0; }
.archive-count { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding-top: 8px; }
.chips a { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid #CFCEC8; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.chips a.is-current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.archive-list { max-width: 900px; margin: 0 auto; padding: 72px var(--gutter) 0; display: flex; flex-direction: column; gap: 64px; }
.archive-item { display: flex; flex-direction: column; gap: 22px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.archive-item__media { position: relative; display: block; }
.archive-item__img { aspect-ratio: 16 / 9; overflow: hidden; background: #3A3B40; }
.archive-item:nth-child(even) .archive-item__img { aspect-ratio: 3 / 2; }
.archive-item__img img { width: 100%; height: 100%; object-fit: cover; }
.archive-item__media .tag { position: absolute; top: 24px; left: 24px; }
.archive-item__title { margin: 0; font-size: clamp(28px, 3.4vw, 46px); }
.archive-item__excerpt { margin: 0; font-size: 19px; line-height: 1.65; color: var(--muted); }
.archive-item__body { display: flex; flex-direction: column; gap: 22px; }
.archive-item__kicker { display: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.archive-list .ad-slot { background: var(--paper); padding: 16px 0; min-height: 120px; }
.pagination { padding: 8px 0 88px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 14px; }
.pagination .page-numbers { min-width: 48px; height: 48px; padding: 0 12px; border: 1px solid #CFCEC8; display: inline-flex; align-items: center; justify-content: center; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination .page-numbers.dots { border: 0; }
.pagination .next, .pagination .prev { background: var(--accent); border-color: var(--accent); color: var(--white); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 20px; }
.no-results { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter); text-align: center; font-size: 18px; color: var(--muted); }
@media (max-width: 760px) {
	.archive-head { padding: 36px var(--gutter) 20px; align-items: flex-start; text-align: left; gap: 12px; }
	.archive-title { font-size: 64px; }
	.archive-desc { font-size: 18px; }
	.chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: calc(100% + 2 * var(--gutter)); margin: 4px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); scrollbar-width: none; }
	.chips a { flex: 0 0 auto; padding: 0 16px; font-size: 11px; }
	.archive-list { padding-top: 28px; gap: 0; }
	.archive-item { gap: 12px; padding-bottom: 28px; border-bottom: 0; }
	.archive-item__img, .archive-item:nth-child(even) .archive-item__img { aspect-ratio: 16 / 10; }
	.archive-item__media .tag { top: 12px; left: 12px; padding: 7px 10px; font-size: 11px; }
	.archive-item__title { font-size: 26px; }
	.archive-item__excerpt { font-size: 17px; line-height: 1.6; }
	.archive-item .read-more { display: none; }
	/* Compact rows for every item except the first of each group */
	.archive-item.is-compact { flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
	.archive-item.is-compact .archive-item__media { flex: 0 0 96px; }
	.archive-item.is-compact .archive-item__img { aspect-ratio: 1 / 1; }
	.archive-item.is-compact .tag, .archive-item.is-compact .archive-item__excerpt, .archive-item.is-compact .byline { display: none; }
	.archive-item.is-compact .archive-item__body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
	.archive-item.is-compact .archive-item__title { font-size: 17px; line-height: 1.12; }
	.archive-item.is-compact .archive-item__kicker { display: block; }
	.archive-list .ad-slot { margin: 20px calc(-1 * var(--gutter)); }
	.pagination { padding: 28px 0 44px; border-top: 1px solid var(--line); }
	.pagination .page-numbers:not(.next):not(.prev) { display: none; }
	.pagination .next, .pagination .prev { flex: 1; height: 52px; }
}

/* ---------- Pages & 404 ---------- */
.page-content { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 88px; }
.page-content .post-title { text-align: left; margin-bottom: 32px; }
.page-content .entry-content { padding: 0; }
.error-404 { max-width: 760px; margin: 0 auto; padding: 96px var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.error-404 h1 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(80px, 16vw, 200px); line-height: 0.9; }

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