/* Me Mjekun */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
	--ink: #10293a;
	--ink-2: #3c5261;
	--muted: #5d717e;
	--line: #dde6eb;
	--paper: #ffffff;
	--tint: #eef6fb;
	--tint-2: #dcedf7;
	--brand: #4aa8d8;
	--brand-deep: #0f6fa6;
	--night: #10293a;
	--night-2: #1b3b50;
	--sans: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--gutter: clamp(16px, 3vw, 28px);
	--radius: 6px;
	--section: clamp(40px, 6vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; border-radius: 2px; }
.icon { flex: none; }

.container { width: 100%; max-width: calc(1180px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--brand-deep); color: #fff; border: 0; border-radius: var(--radius); font-weight: 600; transition: background .15s; }
.button:hover { background: #0b5a88; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 68px; }
.site-header__left { display: flex; align-items: center; gap: 8px; justify-self: start; }
.social { display: flex; align-items: center; gap: 2px; list-style: none; }
.social a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 36px; height: 36px; border-radius: 50%; color: var(--ink-2); transition: background .15s, color .15s; }
.social a:hover { background: var(--tint); color: var(--brand-deep); }
.social--footer { gap: 6px; margin-top: 16px; margin-left: -2px; }
.site-footer .social li { margin: 0; }
.social--footer a { width: 40px; height: 40px; background: var(--night-2); color: #fff; }
.social--footer a:hover { background: var(--brand-deep); color: #fff; text-decoration: none; }
.social--sidebar, .social--drawer { flex-wrap: wrap; gap: 6px; }
.social--sidebar a, .social--drawer a { height: 38px; padding: 0 13px 0 10px; background: var(--tint); border-radius: 19px; font-size: 13px; font-weight: 600; color: var(--ink); }
.social--sidebar a:hover, .social--drawer a:hover { background: var(--tint-2); color: var(--brand-deep); }
.social--drawer { flex: none; flex-wrap: nowrap; }
.social--drawer a { padding: 0 11px 0 8px; font-size: 12px; gap: 5px; }
.site-logo { display: flex; justify-content: center; }
.site-logo img, .custom-logo { width: auto; height: 38px; max-width: 210px; object-fit: contain; }
.site-header__search { justify-self: end; width: min(100%, 280px); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 8px; background: none; border: 0; border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.icon-btn:hover { background: var(--tint); }
.icon-btn--search { display: none; }

.search-form { position: relative; display: block; }
.search-form input { width: 100%; height: 40px; padding: 0 42px 0 14px; background: var(--tint); border: 1px solid transparent; border-radius: 20px; font-size: 14px; }
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus { background: #fff; border-color: var(--brand-deep); outline: none; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form button { position: absolute; top: 0; right: 2px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: var(--ink-2); }

.site-nav { border-top: 1px solid var(--line); }
.site-nav__list { display: flex; justify-content: center; gap: clamp(14px, 2.4vw, 30px); overflow-x: auto; list-style: none; scrollbar-width: none; }
.site-nav__list::-webkit-scrollbar { display: none; }
.site-nav__list a { position: relative; display: block; padding: 11px 0; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-deep); transform: scaleX(0); transition: transform .18s; }
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a:hover::after, .site-nav__list .current-menu-item a::after, .site-nav__list .current-post-ancestor a::after { transform: scaleX(1); }
.site-nav__list .current-menu-item a, .site-nav__list .current-post-ancestor a { color: var(--brand-deep); }

.reading-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.reading-progress[hidden] { display: none; }
.reading-progress span { display: block; height: 100%; background: var(--brand-deep); transform: scaleX(0); transform-origin: left; }

.wordmark { display: inline-flex; align-items: stretch; font-family: var(--sans); font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: .03em; }
.wordmark__me { display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px 7px 6px; background: var(--brand); color: #fff; }
.wordmark__me .icon { width: 19px; height: 19px; stroke-width: 3.4; }
.wordmark__rest { display: inline-flex; align-items: center; padding: 7px 8px; color: var(--brand-deep); background: #fff; }

/* Drawer ---------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(16, 41, 58, .5); }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 12px; width: min(360px, 88vw); padding: 12px 18px 24px; overflow-y: auto; background: #fff; animation: drawer .2s ease-out; }
@keyframes drawer { from { transform: translateX(-24px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 24px; }
.drawer__list { list-style: none; }
.drawer__list a { display: block; padding: 11px 2px; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer__list a:hover { color: var(--brand-deep); }
.drawer__list .sub-menu { padding-left: 14px; list-style: none; }

/* Sections -------------------------------------------------------------- */
.hb { padding-block: var(--section); }
.hb + .hb--plain:not(.hb--topics) { padding-top: 0; }
.hb--hero { padding-block: clamp(20px, 3vw, 36px) 20px; }
.hb--topics { padding-block: 8px clamp(32px, 4vw, 48px); }
.hb--hero + .hb--topics { padding-top: 12px; }
.hb--tint { background: var(--tint); }
.hb--dark { background: var(--night); color: #fff; }
.hb.hb--tint + .hb--plain:not(.hb--topics), .hb.hb--dark + .hb--plain:not(.hb--topics) { padding-top: var(--section); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-top: 12px; border-top: 2px solid currentColor; }
.sec-head__title { font-size: clamp(25px, 2.8vw, 34px); }
.sec-head__more { display: inline-flex; flex: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-deep); }
.sec-head__more .icon { width: 16px; height: 16px; transition: transform .15s; }
.sec-head__more:hover .icon { transform: translateX(3px); }
.hb--dark .sec-head__more { color: #9ad4f2; }

/* Cards ----------------------------------------------------------------- */
.card { min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint-2); border-radius: var(--radius); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.025); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--brand); }
.card__placeholder .icon { width: 36%; max-width: 44px; height: auto; }
.card__body { padding-top: 12px; }
.kicker { display: inline-block; margin-bottom: 5px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--brand-deep); }
.kicker:hover { text-decoration: underline; }
.card__title { font-size: 21px; line-height: 1.2; text-wrap: pretty; }
.card__title a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .2s; }
.card:hover .card__title a { background-size: 100% 1px; }
.card__excerpt { margin-top: 8px; color: var(--ink-2); }
.card__meta { margin-top: 7px; font-size: 13px; color: var(--muted); }
.hb--dark .kicker { color: #9ad4f2; }
.hb--dark .card__meta, .hb--dark .card__excerpt { color: #b9cad5; }

.card--lead .card__media { aspect-ratio: 16 / 10; }
.card--lead .card__body { padding-top: 16px; }
.card--lead .card__title { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.08; text-wrap: balance; }
.card--lead .card__excerpt { max-width: 62ch; font-size: 17px; }

.card--row { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 16px; align-items: start; }
.card--row .card__media { grid-column: 2; grid-row: 1; aspect-ratio: 1; }
.card--row .card__body { grid-column: 1; grid-row: 1; padding-top: 0; }
.card--row .card__title { font-size: 19px; }

.card--mini .card__body { padding-top: 0; }
.card--mini .card__title { font-size: 18px; line-height: 1.22; }
.card--mini .card__meta { margin-top: 4px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 44px); }
.hero__side { display: flex; flex-direction: column; justify-content: space-between; }
.hero__side .card { padding-block: 16px; border-top: 1px solid var(--line); }
.hero__side .card:first-child { padding-top: 0; border-top: 0; }
.hero__side .card:last-child { padding-bottom: 0; }

.grid { display: grid; gap: clamp(28px, 3vw, 36px) clamp(20px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--4 .card__title { font-size: 19px; }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); }
.split .card--lead .card__title { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; }
.split__list .card { padding-block: 16px; border-top: 1px solid var(--line); }
.split__list .card:first-child { padding-top: 0; border-top: 0; }
.hb--tint .split__list .card, .hb--tint .hero__side .card { border-color: var(--tint-2); }
.hb--dark .split__list .card { border-color: var(--night-2); }

.cat-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.cat-col__title { margin-bottom: 16px; padding-top: 10px; border-top: 2px solid currentColor; font-size: 24px; }
.cat-col__title a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-col__title .icon { color: var(--brand-deep); transition: transform .15s; }
.cat-col__title a:hover .icon { transform: translateX(3px); }
.hb--dark .cat-col__title .icon { color: #9ad4f2; }
.cat-col .card--mini { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.hb--tint .cat-col .card--mini { border-color: var(--tint-2); }
.hb--dark .cat-col .card--mini { border-color: var(--night-2); }

.strip { position: relative; }
.strip__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 72px) / 4)); gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.strip__track::-webkit-scrollbar { display: none; }
.strip__track .card { scroll-snap-align: start; }
.strip__track .card__title { font-size: 19px; }
.strip__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.strip__nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid #47677c; border-radius: 50%; color: #fff; transition: background .15s; }
.strip__nav button:hover:not(:disabled) { background: var(--night-2); }
.strip__nav button:disabled { opacity: .3; cursor: default; }

.ranked { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 40px); list-style: none; counter-reset: rank; }
.ranked > li { display: flex; gap: 14px; counter-increment: rank; padding-top: 14px; border-top: 1px solid var(--line); }
.hb--tint .ranked > li { border-color: #c7dfec; }
.hb--dark .ranked > li { border-color: var(--night-2); }
.ranked > li::before { content: counter(rank); flex: none; width: 34px; font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: .95; color: var(--brand-deep); }
.hb--dark .ranked > li::before { color: #9ad4f2; }
.ranked--side { grid-template-columns: 1fr; gap: 14px; }
.ranked--side > li::before { width: 26px; font-size: 28px; }
.ranked--side .card__title { font-size: 17px; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.topics a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 15px; background: var(--tint); border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--ink); transition: background .15s, color .15s; }
.topics a:hover { background: var(--tint-2); }
.topics a[aria-current] { background: var(--brand-deep); color: #fff; }
.topics--compact { gap: 6px; }
.topics--compact a { min-height: 32px; padding: 4px 12px; font-size: 13px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta__title { font-size: clamp(26px, 3vw, 36px); }
.cta__text { max-width: 60ch; margin-top: 8px; color: var(--ink-2); }
.hb--dark .cta__text { color: #c8d6df; }
.hb--dark .button { background: #fff; color: var(--ink); }
.hb--plain.hb--cta .cta { padding: clamp(24px, 4vw, 40px); background: var(--tint); border-radius: var(--radius); }

/* Listings -------------------------------------------------------------- */
.page-hero { padding-block: clamp(26px, 4vw, 46px); background: var(--tint); }
.page-hero__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; }
.page-hero__desc { max-width: 66ch; margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.page-hero__count { margin-top: 10px; font-size: 14px; color: var(--muted); }
.page-hero .topics { margin-top: 16px; }
.page-hero .topics a { background: #fff; }
.page-hero .topics a[aria-current] { background: var(--brand-deep); }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__desc { margin-inline: auto; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.crumbs a { font-weight: 600; color: var(--brand-deep); }
.crumbs a:hover { text-decoration: underline; }

.listing { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); padding-block: clamp(28px, 4vw, 48px) var(--section); }
.listing__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; }
.listing__grid .card--lead { grid-column: 1 / -1; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.listing__side { display: flex; flex-direction: column; gap: 32px; }
.side-box__title { margin-bottom: 14px; padding-top: 10px; border-top: 2px solid currentColor; font-size: 23px; }

.pagination { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: var(--radius); font-weight: 600; }
.pagination a.page-numbers:hover { background: var(--tint); }
.pagination .current { background: var(--brand-deep); color: #fff; }
.pagination .dots { color: var(--muted); }

.empty { padding: 40px 24px; text-align: center; background: var(--tint); border-radius: var(--radius); }
.empty h2 { font-size: 28px; }
.empty p { margin-block: 8px 16px; color: var(--ink-2); }
.empty .search-form { max-width: 380px; margin-inline: auto; }
.empty .search-form input { background: #fff; }

/* Article --------------------------------------------------------------- */
.article__head { max-width: calc(900px + var(--gutter) * 2); padding-top: clamp(24px, 4vw, 44px); text-align: center; }
.article__head .crumbs { justify-content: center; }
.article__title { font-size: clamp(32px, 5vw, 56px); line-height: 1.06; }
.article__dek { max-width: 680px; margin: 14px auto 0; font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.35; color: var(--ink-2); }
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.article__read { display: inline-flex; align-items: center; gap: 5px; }
.article__read .icon { width: 16px; height: 16px; }
.article__image { margin-block: clamp(20px, 3vw, 32px) 0; }
.article__image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); }
.article__image figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.article__layout { display: grid; grid-template-columns: 250px minmax(0, 700px); justify-content: center; gap: clamp(32px, 5vw, 64px); padding-block: clamp(26px, 4vw, 44px) var(--section); }
.article__layout--solo { grid-template-columns: minmax(0, 720px); }
.article__rail { min-width: 0; }
.toc { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; font-size: 14px; }
.admin-bar .toc { top: 162px; }
.toc summary { padding-bottom: 8px; font-weight: 700; list-style: none; border-bottom: 2px solid var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; }
.toc a { display: block; padding: 8px 0 8px 10px; border-left: 2px solid var(--line); line-height: 1.3; color: var(--ink-2); }
.toc a:hover { color: var(--brand-deep); }
.toc a[aria-current] { border-left-color: var(--brand-deep); font-weight: 600; color: var(--brand-deep); }

.prose { font-family: var(--serif); font-size: 20px; line-height: 1.62; color: #1a3343; overflow-wrap: break-word; }
.prose > * { margin-block: 0 1.05em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.18; scroll-margin-top: 130px; }
.prose h2 { margin-top: 1.7em; margin-bottom: .55em; font-size: 31px; }
.prose h3 { margin-top: 1.5em; margin-bottom: .5em; font-size: 25px; }
.prose h4 { margin-top: 1.3em; margin-bottom: .4em; font-size: 21px; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--brand-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand-deep); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); font-style: italic; color: var(--ink-2); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figure, .prose .wp-caption { max-width: 100%; margin-inline: 0; }
.prose figcaption, .prose .wp-caption-text { margin-top: 6px; font-family: var(--sans); font-size: 13px; line-height: 1.4; color: var(--muted); }
.prose iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose .wp-embedded-content { aspect-ratio: auto; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.4; }
.prose th, .prose td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--tint); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose pre { overflow-x: auto; padding: 14px; background: var(--tint); font-size: 14px; }
.prose .alignleft { float: left; max-width: 50%; margin: .3em 1.2em .8em 0; }
.prose .alignright { float: right; max-width: 50%; margin: .3em 0 .8em 1.2em; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose::after { content: ""; display: block; clear: both; }
.prose .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prose .gallery-columns-1 { grid-template-columns: 1fr; }
.prose .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prose .gallery-item { margin: 0; }
.prose .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .prose textarea, .prose select { width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #aebfca; border-radius: var(--radius); font-family: var(--sans); font-size: 16px; }
.prose input[type="submit"], .prose button { padding: 11px 20px; background: var(--brand-deep); color: #fff; border: 0; border-radius: var(--radius); font-family: var(--sans); font-size: 16px; font-weight: 600; }
.prose label { font-family: var(--sans); font-size: 15px; font-weight: 600; }

.disclaimer { display: flex; gap: 12px; margin-top: 32px; padding: 16px 18px; background: var(--tint); border-left: 3px solid var(--brand-deep); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.disclaimer .icon { color: var(--brand-deep); }
.article__tags { margin-top: 24px; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.share strong { margin-right: 8px; font-size: 14px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 10px; background: var(--tint); border: 0; border-radius: 21px; font-size: 13px; font-weight: 600; transition: background .15s; }
.share a:hover, .share button:hover { background: var(--tint-2); }
.share [data-copy-label]:empty { display: none; }

.comments { margin-top: 36px; padding-top: 22px; border-top: 2px solid var(--ink); }
.comments__title, .comment-reply-title { margin-bottom: 14px; font-size: 26px; }
.comment-list { margin-bottom: 26px; list-style: none; }
.comment-list .children { margin-left: 28px; list-style: none; }
.comment__body { display: flex; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.comment__body img { border-radius: 50%; }
.comment__meta { font-size: 14px; }
.comment__meta span { margin-left: 6px; color: var(--muted); }
.comment__pending { font-size: 13px; color: #8a5300; }
.comment__body p { margin-bottom: 6px; }
.comment-reply-link { font-size: 13px; font-weight: 600; color: var(--brand-deep); }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #aebfca; border-radius: var(--radius); }
.comment-form-cookies-consent { display: none; }
.comment-notes { font-size: 14px; color: var(--muted); }
.comment-form .submit { padding: 12px 20px; background: var(--brand-deep); color: #fff; border: 0; border-radius: var(--radius); font-weight: 600; }

/* Simple page ----------------------------------------------------------- */
.simple-page__body { width: 100%; max-width: calc(740px + var(--gutter) * 2); margin-inline: auto; padding: clamp(28px, 5vw, 52px) var(--gutter) var(--section); }
.simple-page__image { margin: 0 0 28px; }
.simple-page__image img { width: 100%; border-radius: var(--radius); }

/* 404 ------------------------------------------------------------------- */
.not-found { max-width: 620px; padding-block: clamp(56px, 10vw, 110px); text-align: center; }
.not-found__code { font-family: var(--serif); font-size: clamp(72px, 12vw, 120px); font-weight: 500; line-height: 1; color: var(--brand); }
.not-found h1 { margin-top: 10px; font-size: clamp(30px, 4vw, 42px); }
.not-found p:not(.not-found__code) { margin-block: 12px 22px; color: var(--ink-2); }
.not-found .search-form { margin-bottom: 18px; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--night); color: #d4e0e7; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr 1.7fr .8fr; gap: 36px; padding-block: 52px 36px; }
.site-footer__brand p { max-width: 32ch; margin-top: 14px; font-size: 15px; }
.wordmark--light .wordmark__rest { background: #fff; }
.site-footer h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.site-footer ul { list-style: none; }
.site-footer__topics ul { columns: 2; column-gap: 24px; }
.site-footer li { break-inside: avoid; margin-bottom: 7px; font-size: 14px; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.site-footer__base { padding-block: 16px 22px; border-top: 1px solid var(--night-2); font-size: 13px; color: #a9bcc8; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1040px) {
	.article__layout { grid-template-columns: minmax(0, 720px); gap: 20px; }
	.toc { position: static; max-height: none; padding: 12px 16px; background: var(--tint); border-radius: var(--radius); }
	.admin-bar .toc { top: auto; }
	.toc summary { display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; cursor: pointer; }
	.toc summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--brand-deep); }
	.toc details[open] summary { margin-bottom: 8px; }
	.toc details[open] summary::after { content: "−"; }
	.article__rail:empty { display: none; }
}

@media (max-width: 1000px) {
	.hero, .split { grid-template-columns: 1fr; }
	.grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ranked { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ranked--side { grid-template-columns: 1fr; }
	.listing { grid-template-columns: 1fr; }
	.listing__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
	.strip__track { grid-auto-columns: minmax(250px, 38%); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.social--header { display: none; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 720px) {
	html { scroll-padding-top: 70px; }
	.site-header__top { grid-template-columns: auto 1fr auto; gap: 4px; min-height: 58px; }
	.icon-btn__label { display: none; }
	.icon-btn--search { display: inline-flex; }
	.site-logo img, .custom-logo { height: 30px; max-width: 170px; }
	.site-header__search { display: none; grid-column: 1 / -1; grid-row: 2; width: 100%; padding-bottom: 10px; }
	.site-header.is-searching .site-header__search { display: block; }
	.site-nav { display: none; }

	.grid--2, .grid--3, .grid--4, .cat-cols, .ranked, .listing__grid { grid-template-columns: 1fr; }
	.listing__side { grid-template-columns: 1fr; }
	.grid .card:not(.card--lead), .listing__grid .card:not(.card--lead) { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; align-items: start; }
	.grid .card:not(.card--lead) .card__media, .listing__grid .card:not(.card--lead) .card__media { grid-column: 2; grid-row: 1; aspect-ratio: 1; }
	.grid .card:not(.card--lead) .card__body, .listing__grid .card:not(.card--lead) .card__body { grid-column: 1; grid-row: 1; padding-top: 0; }
	.grid .card__title, .grid--4 .card__title, .listing__grid .card:not(.card--lead) .card__title { font-size: 19px; }
	.grid { gap: 20px; }
	.listing__grid { gap: 20px; }
	.listing__grid .card--lead { padding-bottom: 20px; }
	.card--row { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; }

	.hb--topics .topics { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.hb--topics .topics::-webkit-scrollbar { display: none; }
	.hb--topics .topics a { white-space: nowrap; }

	.strip__track { grid-auto-columns: 74%; gap: 16px; }
	.strip__nav { display: none; }

	.article__head { text-align: left; }
	.article__head .crumbs, .article__meta { justify-content: flex-start; }
	.article__dek { margin-inline: 0; }
	.article__image { padding-inline: 0; }
	.article__image img { border-radius: 0; }
	.article__image figcaption { padding-inline: var(--gutter); }
	.prose { font-size: 19px; line-height: 1.6; }
	.prose h2 { font-size: 27px; }
	.prose h3 { font-size: 23px; }
	.prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 0 0 1em; }

	.site-footer__grid { grid-template-columns: 1fr; padding-top: 40px; }
}

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

@media print {
	.site-header, .site-footer, .article__rail, .share, .related, .comments { display: none !important; }
	.article__layout { display: block; }
}
