/*
Theme Name: Innovate
Theme URI: https://innovatefashion.com/
Author: Innovate Fashion
Description: A fast, lightweight editorial theme for blogs. No jQuery, no icon fonts, no sliders libraries — one stylesheet and one small script. Includes light/dark mode, live search, auto table of contents, reading progress, text-size controls, front-page sections, optional AdSense / ad network slots, and full compatibility with Yoast SEO, Contact Form 7, Elementor and the block editor.
Version: 1.5.9
Requires at least: 6.0
Tested up to: 7.1
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: innovate
Tags: blog, news, one-column, two-columns, left-sidebar, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, editor-style, wide-blocks, accessibility-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
	--paper: #fbf8f4;
	--surface: #ffffff;
	--soft: #f3ede5;
	--ink: #161a2b;
	--muted: #5d6072;
	--line: #e7dfd4;
	--accent: #c8402b;
	--accent-ink: #ffffff;
	--accent-text: var(--accent);
	--footer-bg: #12172a;
	--shadow: 0 1px 2px rgb(22 26 43 / .06), 0 8px 24px -8px rgb(22 26 43 / .14);
	--r: 12px;
	--r-lg: 20px;
	--wrap: 1200px;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--read: 1.125rem;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #0e111b;
	--surface: #161a27;
	--soft: #1c2131;
	--ink: #f1ece4;
	--muted: #a7aab9;
	--line: #2a3043;
	--accent-text: color-mix(in srgb, var(--accent) 55%, #fff);
	--footer-bg: #090b13;
	--shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -8px rgb(0 0 0 / .6);
	color-scheme: dark;
}

:root[data-fs="-1"] { --read: 1rem; }
:root[data-fs="1"] { --read: 1.3125rem; }
:root[data-fs="2"] { --read: 1.5rem; }
:root[data-fs="3"] { --read: 1.75rem; }

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; margin: 0; clip: auto; clip-path: none;
	background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px;
}

.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }

/* ==========================================================================
   3. Buttons & forms
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
	padding: .75em 1.5em; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.2;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--sm { padding: .5em 1.1em; font-size: .85rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: inherit; text-decoration: none; transition: background .15s;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn--line { border: 1px solid var(--line); }
.icon-btn--line:hover { border-color: var(--ink); background: transparent; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
	width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
	border-radius: 10px; padding: .75em 1em; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
label { font-weight: 600; font-size: .9rem; }
.comment-form input[type="submit"], .wpcf7-submit, input[type="submit"] {
	background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: .8em 1.8em; font-weight: 700; cursor: pointer; width: auto;
}

.searchform { position: relative; display: flex; align-items: center; }
.searchform input[type="search"] { padding-right: 3em; border-radius: 999px; }
.searchform .icon-btn { position: absolute; right: 4px; }
.searchform--lg { gap: 12px; padding: 8px 12px 8px 20px; }
.searchform--lg input { border: 0; background: transparent; box-shadow: none !important; font-size: 1.15rem; padding: .5em 0; }
.searchform--lg .icon-btn { position: static; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.topbar { border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.social { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: inherit; transition: background .15s, color .15s; }
.social a:hover { background: var(--accent); color: var(--accent-ink); }
.social--lg a { width: 44px; height: 44px; border: 1px solid var(--line); }

.brand { text-align: center; padding-block: 28px 22px; }
.brand__name { font: 700 clamp(2rem, 5vw, 3.1rem)/1 var(--serif); letter-spacing: -.03em; text-decoration: none; display: inline-block; }
.brand__tag { margin: 8px 0 0; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.brand .custom-logo-link { display: inline-block; }
.brand .custom-logo { width: auto; max-height: 72px; margin-inline: auto; }
:root[data-theme="dark"] .brand .custom-logo { filter: brightness(1.15) contrast(.95); }

.navbar { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-block: 1px solid var(--line); transition: transform .3s ease; z-index: 50; }
.navbar.is-sticky { position: sticky; top: 0; }
.admin-bar .navbar.is-sticky { top: 32px; }
.navbar.is-hidden { transform: translateY(-110%); }
.navbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.navbar__burger, .navbar__brand { display: none; }
.nav { flex: 1; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav .menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
.nav .menu > li { position: relative; }
.nav .menu a {
	display: block; padding: 17px 14px; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; position: relative;
}
.nav .menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 2px; background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav .menu > li:hover > a::after, .nav .menu > li:focus-within > a::after, .nav .current-menu-item > a::after, .nav .current-menu-ancestor > a::after, .nav .current-menu-parent > a::after { transform: scaleX(1); }
.nav .menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav .menu li:hover > .sub-menu, .nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .menu .sub-menu a { padding: 10px 12px; border-radius: 8px; text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; }
.nav .menu .sub-menu a:hover { background: var(--soft); }
.navbar__tools { display: flex; align-items: center; gap: 4px; }
.navbar__cta { margin-right: 8px; }
.theme-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .875rem; line-height: 1; transition: border-color .15s, background .15s, transform .15s; }
.theme-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.theme-btn > span { display: inline-flex; align-items: center; gap: 8px; }
.theme-btn__light { display: none !important; }
:root[data-theme="dark"] .theme-btn__light { display: inline-flex !important; }
:root[data-theme="dark"] .theme-btn__dark { display: none !important; }
.theme-btn--wide { width: 100%; justify-content: center; height: 48px; font-size: 1rem; }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.drawer {
	position: fixed; z-index: 120; inset: 0 auto 0 0; width: min(380px, 88vw); background: var(--paper); display: flex; flex-direction: column;
	transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); box-shadow: var(--shadow);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer__title { font: 700 1.3rem var(--serif); }
.drawer__body { padding: 16px 22px 32px; overflow-y: auto; display: grid; gap: 28px; align-content: start; }
.drawer .menu a { display: block; padding: 12px 0; font: 600 1.2rem var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer .sub-menu { padding-left: 16px; }
.drawer .sub-menu a { font: 500 1rem var(--sans); }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgb(10 12 20 / .5); backdrop-filter: blur(2px); }

.search-dlg { border: 0; padding: 0; background: transparent; max-width: none; width: 100%; max-height: none; margin: 0; }
.search-dlg::backdrop { background: rgb(10 12 20 / .6); backdrop-filter: blur(5px); }
.search-dlg__in { width: min(680px, 92vw); margin: 9vh auto 0; background: var(--surface); border-radius: var(--r-lg); padding: 10px 10px 16px; box-shadow: 0 30px 80px rgb(0 0 0 / .35); color: var(--ink); }
.search-dlg__res { list-style: none; margin: 8px 0 0; padding: 0 6px; display: grid; gap: 2px; }
.search-dlg__res a { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; }
.search-dlg__res a:hover, .search-dlg__res a:focus { background: var(--soft); }
.search-dlg__res img, .search-dlg__res .ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; font-size: 1.4rem; }
.search-dlg__res strong { font: 600 1rem/1.3 var(--serif); display: block; }
.search-dlg__res small { color: var(--accent-text); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.search-dlg__res .none { padding: 14px; color: var(--muted); }
.search-dlg__hint { margin: 10px 18px 0; font-size: .75rem; color: var(--muted); }

/* ==========================================================================
   5. Cards
   ========================================================================== */
.kicker {
	display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); text-decoration: none; margin-bottom: .55em;
}
a.kicker:hover { text-decoration: underline; }
.kicker--plain { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .84rem; color: var(--muted); }
.meta > * { display: inline-flex; align-items: center; gap: 5px; }
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--ink); text-decoration: underline; }
.meta .avatar { border-radius: 50%; }
.meta .by a { font-weight: 700; color: var(--ink); }

.card { position: relative; min-width: 0; }
.card__media { display: block; position: relative; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media img { transform: scale(1.04); }
.ph {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; font: 700 3rem var(--serif); color: color-mix(in srgb, var(--accent) 60%, var(--ink));
	background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--soft)), var(--soft));
}
.fmt { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgb(10 12 20 / .65); color: #fff; }
.card__title { font-size: 1.2rem; margin: 0 0 .45em; line-height: 1.25; }
.card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.card__title a:hover { background-size: 100% 2px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt { color: var(--muted); font-size: 1rem; margin: 0 0 .9em; }
.card .meta, .card .kicker { position: relative; z-index: 2; }

.card--list { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 28px; padding-block: 26px; border-bottom: 1px solid var(--line); align-items: start; }
.card--list:first-child { padding-top: 0; }
.card--list .card__media { aspect-ratio: 4/3; }
.card--list .card__title { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.card--grid .card__media { aspect-ratio: 3/2; margin-bottom: 16px; }
.card--grid .card__title { font-size: 1.3rem; }

.card--overlay { color: #fff; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: #222; min-height: 240px; }
.card--overlay .card__media { position: absolute; inset: 0; border-radius: 0; }
.card--overlay::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgb(8 10 20 / .88) 0%, rgb(8 10 20 / .35) 48%, transparent 75%); pointer-events: none; }
.card--overlay .card__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 22px; }
.card--overlay .card__title { color: #fff; font-size: 1.25rem; }
.card--overlay .card__title a { background-image: none; }
.card--overlay .meta { color: rgb(255 255 255 / .8); }
.card--overlay .kicker { background: var(--accent); color: var(--accent-ink); padding: .35em .75em; border-radius: 999px; }

.card--mini { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.card--mini .card__media { aspect-ratio: 1; border-radius: 10px; }
.card--mini .card__title { font-size: 1rem; margin: 0 0 .25em; }
.card--mini .ph { font-size: 1.5rem; }

/* ==========================================================================
   6. Front-page sections
   ========================================================================== */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-title { margin: 0; font: 700 .84rem var(--sans); letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; flex: 1; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stories, .topics, .hero { margin-top: 36px; }

.ticker { background: var(--ink); color: var(--paper); font-size: .85rem; }
.ticker__in { display: flex; align-items: center; gap: 18px; min-height: 42px; }
.ticker__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; background: var(--accent); color: var(--accent-ink); padding: 4px 12px; border-radius: 999px; flex: none; }
.ticker__view { display: flex; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; flex: none; gap: 40px; padding-right: 40px; list-style: none; margin: 0; animation: tick 60s linear infinite; }
.ticker__view:hover .ticker__track { animation-play-state: paused; }
.ticker__track a { text-decoration: none; white-space: nowrap; }
.ticker__track a:hover { text-decoration: underline; }
@keyframes tick { to { transform: translateX(-100%); } }

.hero { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; grid-auto-rows: minmax(230px, 1fr); }
.hero .card:first-child { grid-row: span 2; min-height: 480px; }
.hero .card:first-child .card__title { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.12; }
.hero .card:first-child .card__body { padding: 32px; max-width: 760px; }
.hero--1 { grid-template-columns: 1fr; }
.hero--2 .card:first-child { grid-row: span 1; }

.rail-nav { display: flex; gap: 6px; }
.rail-nav .icon-btn { border: 1px solid var(--line); width: 38px; height: 38px; }
.rail-nav .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 min(250px, 72vw); aspect-ratio: 3/4; scroll-snap-align: start; min-height: 0; }
.rail .card__title { font-size: 1.1rem; }

.tiles { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4/3; color: #fff; text-decoration: none; background: var(--soft); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(8 10 20 / .8), transparent 70%); }
.tile__txt { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: grid; }
.tile__txt strong { font: 700 1.3rem var(--serif); }
.tile__txt small { opacity: .9; font-size: .86rem; }
.tile .ph { position: absolute; inset: 0; }

.missed { margin-top: 64px; padding-block: 48px; background: var(--soft); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.missed .card__title { font-size: 1.1rem; }

/* ==========================================================================
   7. Layout, feeds, archive, pagination
   ========================================================================== */
.layout { display: grid; gap: 56px; padding-block: 44px 24px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.layout--left { grid-template-columns: 320px minmax(0, 1fr); }
.layout--left .sidebar { order: -1; }
.layout--none { grid-template-columns: minmax(0, 1fr); }
.layout--none .main { max-width: 880px; margin-inline: auto; width: 100%; }
.main--wide { padding-block: 44px; }

.feed--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
.feed .ad { grid-column: 1 / -1; width: 100%; }

.archive-head { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.archive-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 .25em; }
.archive-head--author { display: flex; gap: 24px; align-items: center; }
.archive-head__avatar { border-radius: 50%; }
.archive-head__desc { color: var(--muted); max-width: 60ch; }
.archive-head__desc p { margin: 0 0 .5em; }
.archive-head__count { font-size: .85rem; color: var(--muted); margin: .5em 0 0; }
.archive-head .searchform { margin-top: 18px; max-width: 460px; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 40px 0 8px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9rem; }
.pager a.page-numbers:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .dots { border: 0; }
.pager--more .btn { min-width: 220px; }
.pager--more .btn.is-loading { opacity: .6; pointer-events: none; }

.none { padding: 40px 0; text-align: center; max-width: 520px; margin-inline: auto; }
.none .searchform { margin-top: 18px; }
.notfound { text-align: center; padding-block: 64px; }
.notfound__num { font: 700 clamp(5rem, 18vw, 10rem)/1 var(--serif); color: var(--accent-text); margin: 0; }
.notfound .searchform { max-width: 460px; margin: 24px auto 56px; }
.notfound .grid-3 { text-align: left; }

/* ==========================================================================
   8. Sidebar & widgets
   ========================================================================== */
.sidebar__in { position: sticky; top: 84px; display: grid; gap: 40px; max-height: calc(100vh - 108px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-bottom: 4px; }
.admin-bar .sidebar__in { top: 116px; max-height: calc(100vh - 140px); }
.widget-title { font: 800 .84rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; padding-top: 14px; border-top: 3px solid var(--ink); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .6em 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border: 0; }
.widget li a { text-decoration: none; }
.widget li a:hover { color: var(--accent-text); }
.widget > :last-child { margin-bottom: 0; }
.widget select { max-width: 100%; }
.w-posts { display: grid; gap: 18px; }
.w-posts--grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.w-posts--grid .card--mini { display: block; }
.w-posts--grid .card--mini .card__media { aspect-ratio: 4/3; margin-bottom: 10px; border-radius: var(--r); }
.w-posts--grid .card__title { font-size: .95rem; }
.w-cats { display: grid; gap: 12px; }
.w-cats .tile { aspect-ratio: 16/7; border-radius: var(--r); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: .35em .9em; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; text-decoration: none; font-weight: 600; transition: .15s; }
.chips a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.w-author { text-align: center; display: grid; justify-items: center; gap: 4px; }
.w-author img { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; margin-bottom: 8px; }
.w-author small { color: var(--accent-text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.w-author p { color: var(--muted); font-size: .92rem; margin: 8px 0 0; }

/* ==========================================================================
   9. Advertising (only rendered when configured)
   ========================================================================== */
.ad { margin: 28px auto; text-align: center; clear: both; }
.ad__label { display: block; margin-bottom: 8px; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ad__inner { display: block; overflow: hidden; max-width: 100%; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad--sidebar { margin-top: 0; }
.ad.wrap { margin-block: 20px 0; }

/* ==========================================================================
   10. Single posts
   ========================================================================== */
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin-inline: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.post-head { padding-top: 40px; max-width: 920px; }
.post-head--centered { text-align: center; }
.post-head--centered .crumbs ol, .post-head--centered .meta { justify-content: center; }
.post-title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .4em; }
.post-deck { font: 400 1.25rem/1.55 var(--serif); color: var(--muted); max-width: 52ch; margin: 0 auto 1.2em; }
.post-head--classic .post-deck { margin-inline: 0; }
.post-head__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; }
.post-head--centered .post-head__bar { justify-content: center; gap: 24px; }
.post-head .meta { font-size: .85rem; }
.post-head .meta .avatar { width: 32px; height: 32px; }
.post-head--classic .post-head__bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 14px; margin-top: 8px; }

.fs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.fs button { background: none; border: 0; padding: 6px 14px; font: 700 1rem var(--serif); }
.fs button + button { border-left: 1px solid var(--line); }
.fs button:hover { background: var(--soft); }
.fs small { font-size: .65em; vertical-align: super; margin-left: 1px; }
.fs--inline { margin-bottom: 20px; }

.post-figure { margin-top: 32px; margin-bottom: 0; }
.post-figure img { width: 100%; max-height: 640px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-lg); }
.post-figure figcaption, .entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.post--centered .post-figure, .post--classic .post-figure { max-width: 1100px; }
.page-article .post-figure { margin-bottom: 32px; }
.page-article .post-figure img { aspect-ratio: auto; }

.post-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 64vh, 660px); color: #fff; background: #222; isolation: isolate; }
.post-hero__media { position: absolute; inset: 0; z-index: -2; }
.post-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.post-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(8 10 20 / .88), rgb(8 10 20 / .25) 60%, rgb(8 10 20 / .1)); }
.post-hero__text { padding-block: 56px 40px; max-width: var(--wrap); }
.post-hero .post-title { color: #fff; max-width: 22ch; text-wrap: balance; }
.post-hero .kicker { background: var(--accent); color: var(--accent-ink); padding: .4em .9em; border-radius: 999px; }
.post-hero .meta { color: rgb(255 255 255 / .85); font-size: .85rem; }
.post-hero .meta a, .post-hero .meta .by a { color: #fff; }

.post .layout { padding-top: 40px; }
.post--hero .layout { padding-top: 32px; }
.entry-content { font-size: var(--read); line-height: 1.78; max-width: 720px; }
.layout--none .entry-content, .post .layout--none .main { margin-inline: auto; }
.main--wide .entry-content, .entry-content--intro { max-width: none; }
.entry-content > * { max-width: 100%; }
.entry-content p { margin-bottom: 1.35em; }
.entry-content a { color: var(--accent-text); text-decoration: underline; }
.entry-content h2 { font-size: 1.85em; margin: 2em 0 .55em; scroll-margin-top: 96px; line-height: 1.15; }
.entry-content h3 { font-size: 1.4em; margin: 1.8em 0 .5em; scroll-margin-top: 96px; }
.entry-content h4 { font-size: 1.15em; margin: 1.5em 0 .4em; }
.entry-content img { border-radius: var(--r); }
.entry-content figure { margin: 2em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accent-text); font-weight: 700; }
.entry-content blockquote { margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 4px solid var(--accent); font: italic 400 1.25em/1.5 var(--serif); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.entry-content pre, .entry-content code { font-size: .88em; background: var(--soft); border-radius: 6px; }
.entry-content code { padding: .15em .4em; }
.entry-content pre { padding: 1em; overflow-x: auto; }
.entry-content iframe, .entry-content video { width: 100%; border-radius: var(--r); }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.table-wrap { overflow-x: auto; margin: 2em 0; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .9em; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: .7em .8em; text-align: left; }
.entry-content th { background: var(--soft); font-weight: 700; }
.wp-caption { max-width: 100%; }
.page-links { margin: 1.5em 0; font-weight: 700; display: flex; gap: 8px; }
.sticky .card__title::before { content: ""; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery-item { margin: 0 !important; }

.toc { background: var(--soft); border-radius: var(--r); margin: 0 0 2.2em; font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
.toc summary { padding: 16px 20px; cursor: pointer; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; font-weight: 400; }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 0; padding: 0 20px 18px 42px; counter-reset: toc; }
.toc li { margin: 0; padding: 7px 0; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.toc a:hover, .toc a.is-active { color: var(--accent-text); }
.toc a.is-active { text-decoration: underline; text-underline-offset: 4px; }

.post-foot { max-width: 720px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.chips--tags a::before { content: "#"; opacity: .5; margin-right: 1px; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; color: var(--muted); }
.js-copy.is-done { background: var(--ink); color: var(--paper); }

.author-box { max-width: 720px; display: flex; gap: 20px; margin-top: 36px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.author-box img { border-radius: 50%; flex: none; width: 80px; height: 80px; }
.author-box__name { font: 700 1.3rem var(--serif); display: block; }
.author-box__name a { text-decoration: none; }
.author-box p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

.post-nav { max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.post-nav__a { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, transform .15s; }
.post-nav__a:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-nav__a span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.post-nav__a strong { font: 600 1rem/1.35 var(--serif); }
.post-nav__a--next { text-align: right; grid-column: 2; }
.post-nav__a--next span { justify-content: flex-end; }
.post-nav__a--prev:only-child { grid-column: 1; }

.related { margin-top: 56px; padding-block: 48px; background: var(--soft); }

.comments { max-width: 720px; margin-top: 56px; }
.comment-respond { margin-top: 40px; }
.comments__list + .comment-respond, .comments__list ~ .comment-respond { padding-top: 8px; }
.comments__list, .comments__list ol { list-style: none; margin: 0; padding: 0; }
.comments__list ol { padding-left: 28px; border-left: 2px solid var(--line); margin-left: 24px; }
.cmt { margin: 0 0 8px; }
.cmt__in { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cmt__av img { border-radius: 50%; }
.cmt__main { flex: 1; min-width: 0; }
.cmt__head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 6px; }
.cmt__head a { font-size: .8rem; color: var(--muted); text-decoration: none; }
.cmt__text p { margin: 0 0 .8em; }
.cmt__wait { font-size: .85rem; color: var(--accent-text); }
.cmt__reply a { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--accent-text); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: center; }
.comment-form-cookies-consent input { width: auto; }
.comment-form-cookies-consent label { margin: 0; font-weight: 500; }
.comment-reply-title small { margin-left: 12px; }
.comments__closed { color: var(--muted); }

.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-article .entry-content { max-width: none; }

/* ==========================================================================
   11. Footer & floating UI
   ========================================================================== */
.footer { margin-top: 64px; background: var(--footer-bg); color: #d4d7e4; font-size: .95rem; }
.footer a { color: inherit; }
.footer__cols { display: grid; gap: 40px; padding-block: 56px 24px; grid-template-columns: repeat(4, 1fr); }
.footer__cols--1 { grid-template-columns: 1fr; }
.footer__cols--2 { grid-template-columns: repeat(2, 1fr); }
.footer__cols--3 { grid-template-columns: repeat(3, 1fr); }
.footer .widget-title { color: #fff; border-color: rgb(255 255 255 / .35); }
.footer .widget li { border-color: rgb(255 255 255 / .12); }
.footer .card__title a, .footer .meta { color: inherit; }
.footer .chips a { border-color: rgb(255 255 255 / .2); }
.footer .chips a:hover { background: #fff; color: #12172a; }
.footer__bar { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; padding-block: 32px 84px; border-top: 1px solid rgb(255 255 255 / .12); }
.footer__cols + .footer__bar { margin-top: 24px; }
.footer__brand { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__name { font: 700 1.6rem var(--serif); text-decoration: none; color: #fff; letter-spacing: -.02em; }
.footer .social a:hover { background: #fff; color: #12172a; }
.footer__nav .menu { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer__nav a { text-decoration: none; font-size: .88rem; }
.footer__nav a:hover { text-decoration: underline; }
.footer__copy { grid-column: 1 / -1; margin: 0; font-size: .82rem; opacity: .7; }

.popular { position: fixed; left: 20px; bottom: 20px; z-index: 60; }
.popular__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: .65em 1.2em .65em 1em; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); }
.popular__panel { position: absolute; left: 0; bottom: calc(100% + 12px); width: min(340px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 16px; box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }

/* ==========================================================================
   12. Third-party
   ========================================================================== */
.wpcf7 form p { margin-bottom: 1em; }
.wpcf7-not-valid-tip, .wpcf7-response-output { font-size: .88rem; }
.wpcf7-response-output { border-radius: 10px; }
.yoast-breadcrumbs, .rank-math-breadcrumb { font-size: .8rem; color: var(--muted); }
.elementor-page .site-content { overflow: clip; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.layout, .layout--left { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.layout--left .sidebar { order: 0; }
	.sidebar__in { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 36px 32px; }
	.sidebar__in > .ad { grid-column: 1 / -1; }
	.tiles, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.footer__cols, .footer__cols--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.nav, .navbar__cta { display: none; }
	.navbar__burger { display: inline-grid; }
	.navbar__brand { display: block; font: 700 1.2rem var(--serif); text-decoration: none; letter-spacing: -.02em; visibility: hidden; opacity: 0; transition: opacity .2s; }
	.navbar.is-stuck .navbar__brand, .navbar:not(.is-sticky) .navbar__brand { visibility: visible; opacity: 1; }
	.navbar__in { min-height: 52px; }
	.hero { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.hero .card, .hero .card:first-child { grid-row: auto; min-height: 280px; }
	.hero .card:first-child { min-height: 380px; }
	.hero .card:first-child .card__body { padding: 22px; }
	.grid-3 { grid-template-columns: 1fr 1fr; }
	.admin-bar .navbar.is-sticky { top: 46px; }
}
@media (max-width: 560px) {
	.navbar .theme-btn { width: 42px; padding: 0; justify-content: center; }
	.navbar .theme-btn > span > span { display: none; }
}
@media (max-width: 700px) {
	body { font-size: 1.0625rem; }
	.wrap { width: calc(100% - 32px); }
	.topbar__date { display: none; }
	.topbar__in { justify-content: center; }
	.brand { padding-block: 20px 16px; }
	.card--list { grid-template-columns: 1fr; gap: 16px; }
	.card--list .card__media { aspect-ratio: 3/2; }
	.feed--grid, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
	.tile__txt strong { font-size: 1.05rem; }
	.sidebar__in { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__a--next { grid-column: 1; text-align: left; }
	.post-nav__a--next span { justify-content: flex-start; }
	.author-box { flex-direction: column; }
	.footer__cols, .footer__cols--2, .footer__cols--3 { grid-template-columns: 1fr; }
	.footer__bar { grid-template-columns: 1fr; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1.5em auto; max-width: 100%; }
	.archive-head--author { flex-direction: column; align-items: flex-start; }
	.popular__btn span { display: none; }
	.popular__btn { padding: .75em; }
	.post-figure { width: 100%; }
	.post-figure img { border-radius: var(--r); }
}
@media (min-width: 1000px) {
	.entry-content .alignwide { margin-inline: -60px; max-width: none; width: auto; }
}

/* ==========================================================================
   14. Motion & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ticker__view { overflow-x: auto; }
}
@media print {
	.topbar, .navbar, .drawer, .scrim, .search-dlg, .sidebar, .ad, .share, .fs, .popular, .totop, .related, .post-nav, .comments, .footer, .toc, .missed, .ticker { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.layout { display: block; padding: 0; }
	.entry-content { max-width: none; font-size: 12pt; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
	.post-hero { min-height: 0; color: #000; }
	.post-hero::after { display: none; }
	.post-hero .post-title { color: #000; }
}

/* ==========================================================================
   15. Editorial finish — print-magazine character, CSS only
   ========================================================================== */
:root { --r: 6px; --r-lg: 10px; }

body {
	background-image: radial-gradient(1000px 360px at 50% -90px, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
	background-repeat: no-repeat;
}
h1, h2, h3, .card__title { text-wrap: balance; }
p, .card__excerpt { text-wrap: pretty; }

/* Masthead: newspaper double rule, larger wordmark, flanked tagline */
.masthead { border-bottom: 3px double var(--ink); }
.brand { padding-block: 36px 30px; }
.brand__name { font-size: clamp(2.4rem, 6.5vw, 4.4rem); letter-spacing: -.035em; }
.brand__tag { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.brand__tag::before, .brand__tag::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .4; flex: none; }
.navbar { border-top: 0; }

/* Section headings: italic serif with a diamond marker */
.sec-title { font: italic 700 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--serif); letter-spacing: -.01em; text-transform: none; gap: 16px; }
.sec-title::before { content: ""; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); flex: none; }
.sec-title::after { background: var(--ink); opacity: .18; }
.sec-head { margin-bottom: 26px; }

/* Kickers: line-led small caps instead of pills */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }
.kicker--plain::before { display: none; }
.card--overlay .kicker, .post-hero .kicker { background: none; padding: 0; border-radius: 0; color: #fff; }
.card--overlay .kicker::before, .post-hero .kicker::before { background: color-mix(in srgb, var(--accent) 60%, #fff); }
.post-head--centered .kicker::after { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }

/* Hairline frame on every image */
.card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(22 26 43 / .08); pointer-events: none; }
.card:hover .card__title a { color: var(--accent-text); }
.card--overlay:hover .card__title a { color: #fff; }
.card--overlay .card__title { font-size: 1.3rem; }

/* Stories rail: outlined issue numbers */
.rail { counter-reset: story; }
.rail .card { counter-increment: story; }
.rail .card::before {
	content: counter(story, decimal-leading-zero); position: absolute; top: 14px; left: 18px; z-index: 2; pointer-events: none;
	font: 700 2.6rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1.2px rgb(255 255 255 / .9);
}

/* Popular reads: large italic numerals */
.w-posts--list { counter-reset: pop; }
.w-posts--list .card--mini { counter-increment: pop; grid-template-columns: 32px 72px 1fr; }
.w-posts--list .card--mini::before { content: counter(pop); font: italic 700 2.1rem/1 var(--serif); color: var(--accent-text); }

/* Lead story: first item in a list feed is a large stacked card */
@media (min-width: 900px) {
	.feed--list > .card--list:first-child { grid-template-columns: 1fr; gap: 22px; padding-bottom: 34px; }
	.feed--list > .card--list:first-child .card__media { aspect-ratio: 16/9; }
	.feed--list > .card--list:first-child .card__title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.12; }
	.feed--list > .card--list:first-child .card__excerpt { font-size: 1.08rem; max-width: 62ch; }
}

/* Article typography: drop cap, pull quotes, section rules */
.post .entry-content > p:first-child::first-letter {
	float: left; font: 700 3.25em/.8 var(--serif); padding: .08em .12em 0 0; color: var(--accent-text);
}
.entry-content h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin-bottom: .55em; }
.entry-content blockquote {
	margin: 2.4em 0; padding: 1.3em 0 1.1em; border: 0; border-block: 1px solid var(--line);
	font: italic 400 1.4em/1.4 var(--serif); text-wrap: balance;
}
.entry-content blockquote::before { content: "\201C"; display: block; height: .42em; font: 400 4.2em/.8 Georgia, "Times New Roman", serif; font-style: normal; color: var(--accent-text); opacity: .6; }
.post-title { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.06; letter-spacing: -.025em; }
.post-head--centered::after { content: ""; display: block; width: 64px; height: 1px; margin: 34px auto 0; background: var(--ink); opacity: .35; }
.post-deck { font-style: italic; }

/* Footer wordmark */
.footer { border-top: 3px double color-mix(in srgb, var(--paper) 25%, transparent); }
.footer__name { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1; }

/* Scroll reveal: pure CSS, progressive enhancement, skipped for reduced motion */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
		.feed .card, .tile, .grid-3 .card, .grid-4 .card, .author-box, .post-nav__a { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
	}
}

@media (max-width: 700px) {
	.brand__tag::before, .brand__tag::after { width: 14px; }
	.brand { padding-block: 26px 22px; }
	.rail .card::before { font-size: 2.2rem; }
	.post .entry-content > p:first-child::first-letter { font-size: 3.1em; }
}

/* ==========================================================================
   16. Popular posts rail (thumbnails + "+") — pill on small screens
   ========================================================================== */
.popular__rail { display: none; }
@media (min-width: 1400px) {
	.popular { top: 50%; bottom: auto; left: 14px; transform: translateY(-50%); }
	.popular__btn { display: none; }
	.popular__rail {
		display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 9px 10px; width: 70px;
		background: var(--surface); border: 1px solid var(--line); border-radius: 40px; box-shadow: var(--shadow);
	}
	.popular__label { font: 800 .72rem/1.15 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--muted); }
	.popular__thumb { position: relative; display: block; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--accent); transition: transform .2s, box-shadow .2s; }
	.popular__thumb:hover, .popular__thumb:focus-visible { transform: scale(1.08); box-shadow: 0 0 0 3px var(--accent-text); }
	.popular__thumb img, .popular__thumb .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; font-size: 1.3rem; }
	.popular__thumb::after {
		content: attr(data-title); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%) translateX(-4px); width: max-content; max-width: 280px;
		padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 600 .85rem/1.35 var(--sans);
		opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 5;
	}
	.popular__thumb:hover::after, .popular__thumb:focus-visible::after { opacity: 1; visibility: visible; transform: translateY(-50%); }
	.popular__more { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform .25s, background .15s; }
	.popular__more:hover { background: var(--accent); color: var(--accent-ink); }
	.popular.is-open .popular__more { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
	.popular__panel { left: calc(100% + 14px); bottom: auto; top: 50%; transform: translateY(-50%); }
}

/* ==========================================================================
   16. Version 1.1: white page, one-row header, sidebar, footer, back-to-top
   ========================================================================== */
:root { --paper: #ffffff; --soft: #f4f5f7; --line: #e6e8ec; }
:root[data-theme="dark"] { --paper: #0e111b; --soft: #1c2131; --line: #2a3043; }
body { background-image: none; }

/* Header: logo left, menu next to it, search + theme button on the right */
.masthead { border-bottom: 0; }
.topbar { border-bottom: 1px solid var(--line); }
.navbar { background: var(--paper); backdrop-filter: none; border-block: 0; border-bottom: 1px solid var(--line); }
.navbar__in { gap: 28px; min-height: 76px; justify-content: flex-start; }
.navbar__brand { display: none !important; }
.navbar__logo { flex: none; display: flex; align-items: center; }
.navbar__logo .custom-logo-link { display: inline-flex; }
.navbar__logo .custom-logo { height: 54px; width: auto; max-height: none; }
.navbar__name { font: 700 1.5rem var(--serif); letter-spacing: -.02em; text-decoration: none; }
:root[data-theme="dark"] .navbar__logo .custom-logo { filter: brightness(1.15) contrast(.95); }
/* Menu centred between logo (left) and tools (right): logo and tools share equal width */
.navbar__logo { flex: 1 1 0; }
.navbar__tools { flex: 1 1 0; justify-content: flex-end; }
.nav { flex: 0 1 auto; }
.nav .menu { justify-content: center; flex-wrap: nowrap; }
.nav .menu a { padding: 27px 14px; }
.nav .menu > li > a::after { bottom: 18px; }
.navbar__tools { gap: 8px; }

/* Sidebar: no inner scrollbar; the last block sticks while long pages scroll */
.layout { align-items: stretch; }
.sidebar { display: flex; flex-direction: column; min-width: 0; }
.sidebar__in { position: static; max-height: none; overflow: visible; display: flex; flex-direction: column; gap: 40px; flex: 1; padding-bottom: 0; }
.admin-bar .sidebar__in { max-height: none; }
.sidebar__in > * { min-width: 0; }
.sidebar__sticky { position: sticky; top: 96px; display: grid; gap: 36px; padding-top: 4px; }
.admin-bar .sidebar__sticky { top: 128px; }
.w-rank { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.w-rank li { counter-increment: rank; display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: start; padding: .7em 0; border-bottom: 1px solid var(--line); }
.w-rank li:last-child { border: 0; }
.w-rank li::before { content: counter(rank); font: italic 700 1.7rem/1 var(--serif); color: var(--accent-text); }
.w-rank a { font-weight: 700; line-height: 1.35; text-decoration: none; }
.w-rank a:hover { color: var(--accent-text); }
@media (max-height: 680px) { .sidebar__sticky { position: static; } }
@media (max-width: 1100px) {
	.sidebar__in { display: grid; }
	.sidebar__sticky { position: static; grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
}
@media (max-width: 640px) { .sidebar__sticky { grid-template-columns: 1fr; } }

/* Footer */
.footer__cols--3 { grid-template-columns: 1.2fr 1fr 1.4fr; }
.footer__cols--4 { grid-template-columns: 1.2fr 1fr 1.4fr 1fr; }
.footer__about-name { font: 700 1.6rem var(--serif); color: #fff; margin: 0 0 .5em; letter-spacing: -.02em; }
.footer__about p { margin: 0; line-height: 1.7; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { padding: .45em 0; border-bottom: 1px solid rgb(255 255 255 / .12); display: flex; justify-content: space-between; gap: 12px; }
.footer__list li:last-child { border: 0; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__list small { opacity: .6; }
@media (max-width: 1100px) { .footer__cols--3, .footer__cols--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer__cols--3, .footer__cols--4 { grid-template-columns: 1fr; } }

/* Back to top: clearer, always above other floating UI */
.totop[hidden] { display: none; }
.totop { width: auto; height: 48px; padding: 0 18px 0 14px; border-radius: 999px; grid-auto-flow: column; gap: 8px; right: 24px; bottom: 24px; z-index: 90; font: 700 .85rem var(--sans); cursor: pointer; }
.totop::after { content: "Top"; }

@media (max-width: 900px) {
	.navbar__in { gap: 10px; min-height: 64px; }
	.navbar__logo { flex: 1 1 auto; margin-right: auto; }
	.navbar__logo .custom-logo { height: 42px; }
	.navbar__tools { flex: 0 0 auto; }
	.totop { right: 16px; bottom: 16px; }
}

/* ==========================================================================
   17. Version 1.2: mobile fixes and text-size buttons
   ========================================================================== */
.fs button { cursor: pointer; }
.fs button:disabled { opacity: .35; cursor: not-allowed; background: none; }
.fs button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }

@media (max-width: 900px) {
	/* The date is hidden on small screens, which left an empty bar above the header */
	.topbar:not(:has(.social li)) { display: none; }
	/* Comfortable tap targets */
	.footer__nav a { display: inline-block; padding: 12px 4px; }
	.footer__list a { display: inline-block; padding: 6px 0; }
	.kicker { display: inline-block; padding-block: 8px; }
	.fs button { padding: 9px 16px; }
	.pager .page-numbers { min-width: 44px; height: 44px; }
	.popular { left: 12px; bottom: 16px; }
}

/* Text-size feedback: appears in the new size, wherever you are on the page */
.fs-toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 12px); z-index: 95; background: var(--ink); color: var(--paper); padding: .6em 1.3em; border-radius: 999px; font: 700 var(--read)/1.3 var(--sans); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; max-width: calc(100vw - 32px); }
.fs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Footer topics: collapsible on phones */
.footer__fold summary { list-style: none; cursor: default; display: flex; justify-content: space-between; align-items: center; }
.footer__fold summary::-webkit-details-marker { display: none; }
.footer__fold summary::after { content: none; }
@media (max-width: 640px) {
	.footer__fold summary { cursor: pointer; min-height: 44px; }
	.footer__fold summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; margin-right: 4px; }
	.footer__fold details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
	.footer__fold summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
	.footer__fold .footer__list { margin-top: 8px; }
}

/* Footer layout fixes (tablet gap, count alignment, floating button) */
.footer__list li { align-items: baseline; }
.footer__list small { font-size: .8rem; }
.popular { transition: opacity .2s; }
.popular.is-away { opacity: 0; pointer-events: none; visibility: hidden; }
@media (min-width: 641px) and (max-width: 1100px) {
	/* About on its own row, then Topics and Latest guides side by side: no empty space beside the long list */
	.footer__cols { grid-template-columns: repeat(2, 1fr); align-items: start; }
	.footer__cols .footer__col:first-child { grid-column: 1 / -1; }
	.footer__cols .footer__col:first-child .footer__about p { max-width: 62ch; }
}

/* Tablet sidebar: search on top, topic tiles in two columns, then the sticky block (no blank area beside the search box) */
@media (min-width: 641px) and (max-width: 1100px) {
	.sidebar__in > * { grid-column: 1 / -1; }
	.sidebar__in .w-cats { grid-template-columns: repeat(2, 1fr); }
	.sidebar__in .w-cats .tile { aspect-ratio: 16/9; }
}

/* ==========================================================================
   18. Version 1.3: brand lockup (monogram badge + serif wordmark)
   ========================================================================== */
.site-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1; }
.site-logo__mark { width: 46px; height: 46px; flex: none; display: block; }
.site-logo__mark .m-bg { fill: var(--ink); }
.site-logo__mark .m-t { fill: var(--paper); font: 700 21px var(--serif); letter-spacing: -.5px; }
.site-logo__mark .m-s { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.site-logo__text { display: inline-flex; align-items: baseline; gap: .26em; font: 700 1.7rem/1 var(--serif); letter-spacing: -.028em; white-space: nowrap; }
.site-logo__a { color: var(--ink); }
.site-logo__b { color: var(--accent-text); font-style: italic; font-weight: 600; }
.site-logo:hover .site-logo__b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-logo:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 900px) {
	.site-logo { gap: 9px; }
	.site-logo__mark { width: 38px; height: 38px; }
	.site-logo__text { font-size: 1.35rem; }
}
@media (max-width: 480px) {
	.site-logo__mark { width: 34px; height: 34px; }
	.site-logo__text { flex-direction: column; align-items: flex-start; gap: 3px; font-size: 1.05rem; line-height: .95; }
}

/* Logo: a touch larger for visibility */
.site-logo__mark { width: 50px; height: 50px; }
.site-logo__text { font-size: 1.85rem; }
@media (max-width: 900px) { .site-logo__mark { width: 42px; height: 42px; } .site-logo__text { font-size: 1.5rem; } }
@media (max-width: 480px) { .site-logo__mark { width: 40px; height: 40px; } .site-logo__text { font-size: 1.25rem; gap: 4px; } }

/* ==========================================================================
   19. Version 1.4: newsletter, announcement bar, share row, uploaded logo
   ========================================================================== */

/* Signup form (used in the band, the pop-up and under articles) */
.subscribe { display: grid; gap: 10px; width: 100%; }
.subscribe__row { display: flex; gap: 10px; }
.subscribe input[type="email"] { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1rem; }
.subscribe .btn { height: 52px; padding-inline: 28px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.subscribe .btn:disabled { opacity: .6; cursor: progress; }
.subscribe__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.subscribe__note { margin: 0; font-size: .82rem; color: var(--muted); }
.subscribe__note a { color: inherit; text-decoration: underline; }
.subscribe__msg { margin: 0; min-height: 1.4em; font-weight: 700; font-size: .92rem; }
.subscribe.is-ok .subscribe__msg { color: #1a7f4b; }
.subscribe.is-bad .subscribe__msg { color: #b3261e; }

/* Band above the footer */
.newsletter { margin-top: 64px; background: var(--accent); color: #fff; }
.newsletter__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 52px; }
.newsletter h2 { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--serif); margin: 0 0 .4em; color: #fff; letter-spacing: -.01em; }
.newsletter p { margin: 0; color: rgb(255 255 255 / .92); }
.newsletter .subscribe input[type="email"] { border-color: transparent; }
.newsletter .subscribe .btn { background: #161a2b; color: #fff; border: 0; }
.newsletter .subscribe .btn:hover { background: #000; }
.newsletter .subscribe__note, .newsletter .subscribe__note a { color: rgb(255 255 255 / .85); }
.newsletter .subscribe.is-ok .subscribe__msg, .newsletter .subscribe.is-bad .subscribe__msg { color: #fff; }
.newsletter + .footer { margin-top: 0; }

/* Box under an article */
.newsbox { margin: 40px 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--soft); }
.newsbox h2 { font: 700 1.5rem/1.2 var(--serif); margin: 0 0 .3em; }
.newsbox p { margin: 0 0 16px; color: var(--muted); }

/* Pop-up */
.sub-dlg { border: 0; border-radius: var(--r-lg); padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgb(0 0 0 / .35); }
.sub-dlg::backdrop { background: rgb(10 12 20 / .6); }
.sub-dlg__in { padding: 36px 32px 28px; position: relative; }
.sub-dlg h2 { font: 700 1.6rem/1.2 var(--serif); margin: 0 0 .3em; padding-right: 36px; }
.sub-dlg p { margin: 0 0 16px; color: var(--muted); }
.sub-dlg__x { position: absolute; right: 12px; top: 12px; }

/* Header + drawer button */
.navbar__sub { margin-right: 4px; }
.drawer__sub { width: 100%; justify-content: center; height: 48px; border-radius: 999px; cursor: pointer; }

/* Announcement bar */
.announce { background: var(--ink); color: var(--paper); font-size: .88rem; }
.announce__in { display: flex; justify-content: center; align-items: center; min-height: 40px; text-align: center; padding-block: 6px; }
.announce a { color: inherit; text-decoration: none; font-weight: 700; }
.announce a:hover { text-decoration: underline; }

/* Share row */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share__label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share--top { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.share .icon-btn[hidden] { display: none; }
.share a.icon-btn:hover, .share .icon-btn--line:hover { color: var(--accent-text); }

/* Footer contact line */
.footer__contact { margin-top: 14px; }
.footer__contact .i { vertical-align: -3px; margin-right: 4px; }
.footer__contact a { text-decoration: underline; text-underline-offset: 3px; }
.footer__contact small { opacity: .75; }

/* Uploaded logo (Site Settings -> Brand) */
.site-logo--img .site-logo__img { height: var(--logo-h, 54px); width: auto; display: block; }
.site-logo--img .site-logo__img--dark { display: none; }
:root[data-theme="dark"] .site-logo--img .site-logo__img--dark { display: block; }
:root[data-theme="dark"] .site-logo--img .site-logo__img--dark ~ .site-logo__img--light,
:root[data-theme="dark"] .site-logo--img:has(.site-logo__img--dark) .site-logo__img--light { display: none; }
@media (max-width: 900px) { .site-logo--img .site-logo__img { height: calc(var(--logo-h, 54px) * .78); } }

@media (max-width: 800px) {
	.newsletter__in { grid-template-columns: 1fr; gap: 20px; padding-block: 40px; }
	.subscribe__row { flex-direction: column; }
	.subscribe .btn { width: 100%; }
	.newsbox { padding: 24px 20px; }
	.sub-dlg__in { padding: 32px 20px 22px; }
}

/* Mobile: when the signup row stacks, keep the email field a proper tap-size (flex:1 collapsed its height) */
@media (max-width: 800px) {
	.subscribe input[type="email"] { flex: none; width: 100%; height: 52px; font-size: 16px; }
	.subscribe .btn { flex: none; }
}
