/* ==========================================================================
   Onos Arka – pagrindiniai stiliai
   Motyvas: gotikinė arka, plyta, pergamentas, rožinis langas.
   ========================================================================== */

/* ---------- 1. Kintamieji ---------- */
:root {
	--paper: #f5efe6;
	--paper-2: #ede4d6;
	--card: #fbf8f3;
	--ink: #1d1a1e;
	--ink-2: #433d42;
	--muted: #6b6266;
	--line: #dcd0be;
	--brick: #a3392a;
	--brick-2: #7e2a1f;
	--brick-soft: rgba(163, 57, 42, .1);
	--gold: #b8893a;
	--footer: #1d1a1e;
	--footer-ink: #efe6d8;
	--shadow: 0 1px 2px rgba(29, 26, 30, .06), 0 8px 24px -12px rgba(29, 26, 30, .25);
	--shadow-lg: 0 2px 6px rgba(29, 26, 30, .08), 0 24px 48px -20px rgba(29, 26, 30, .4);

	--f-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", P052, Georgia, serif;
	--f-text: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "DejaVu Serif", serif;
	--f-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

	--maxw: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--r: 6px;
	--prose-size: 1.16rem;
	--nav-h: 52px;

	/* Smaili gotikinė arka (lancetas) – kaukė paveikslėliams. */
	--lancet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V44C0 24 34 7 50 0 66 7 100 24 100 44V100Z'/%3E%3C/svg%3E");
	--brick-pattern: repeating-linear-gradient(0deg, transparent 0 22px, rgba(0, 0, 0, .09) 22px 24px),
		repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, .07) 46px 48px);

	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #15131a;
	--paper-2: #1c1922;
	--card: #1d1a22;
	--ink: #f0e9df;
	--ink-2: #d2c9be;
	--muted: #a59c94;
	--line: #312c36;
	--brick: #e2765f;
	--brick-2: #f09a84;
	--brick-soft: rgba(226, 118, 95, .14);
	--gold: #d9b068;
	--footer: #0e0d11;
	--footer-ink: #e9e1d5;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .7);
	--shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .9);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #15131a;
		--paper-2: #1c1922;
		--card: #1d1a22;
		--ink: #f0e9df;
		--ink-2: #d2c9be;
		--muted: #a59c94;
		--line: #312c36;
		--brick: #e2765f;
		--brick-2: #f09a84;
		--brick-soft: rgba(226, 118, 95, .14);
		--gold: #d9b068;
		--footer: #0e0d11;
		--footer-ink: #e9e1d5;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .7);
		--shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .9);
		color-scheme: dark;
	}
}

:root[data-size="l"] { --prose-size: 1.3rem; }
:root[data-size="xl"] { --prose-size: 1.45rem; }

/* ---------- 2. Pagrindai ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--nav-h) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1rem/1.6 var(--f-ui);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brick); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

::selection { background: var(--brick); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r);
	text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.site-main { outline: none; display: block; min-height: 40vh; }

.icon { flex: none; vertical-align: middle; }

/* ---------- 3. Bendri elementai ---------- */
.kicker {
	font: 700 .72rem/1.2 var(--f-ui);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brick);
	margin: 0 0 .7rem;
}
.kicker--line { display: flex; align-items: center; gap: 12px; }
.kicker--line::before { content: ""; width: 34px; height: 2px; background: currentColor; }

.chip {
	position: relative;
	z-index: 2;
	display: inline-block;
	font: 650 .7rem/1 var(--f-ui);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brick);
	background: var(--brick-soft);
	padding: 6px 10px 5px;
	border-radius: 999px;
	text-decoration: none;
	margin-bottom: .6rem;
	transition: background .2s, color .2s;
}
.chip:hover { background: var(--brick); color: #fff; }
.chip--outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.chip--outline:hover { border-color: var(--brick); background: var(--brick); }

.meta {
	display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
	font: 500 .8rem/1.4 var(--f-ui); color: var(--muted);
}
.meta__sep { color: var(--line); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 13px 24px; border-radius: 999px; border: 1.5px solid var(--ink);
	background: var(--ink); color: var(--paper);
	font: 650 .92rem/1 var(--f-ui); letter-spacing: .01em;
	text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--brick); }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--block { display: flex; width: fit-content; margin: 36px auto 0; }
.btn[disabled] { opacity: .6; cursor: default; }

.section-title {
	display: flex; align-items: center; gap: 14px;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	margin: 0 0 26px;
}
.section-title::before {
	content: ""; flex: none; width: 12px; height: 16px;
	background: var(--brick);
	-webkit-mask: var(--lancet) center / 100% 100% no-repeat;
	mask: var(--lancet) center / 100% 100% no-repeat;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title--small { font: 750 .78rem/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; color: var(--ink-2); }
.section-title--small::before { width: 9px; height: 12px; }

/* Ženklo (logotipo) spalvos */
.brand__mark { flex: none; display: block; }
.brand__mark .m-arch { fill: none; stroke: var(--brick); stroke-width: 3.2; stroke-linejoin: round; }
.brand__mark .m-rose { fill: none; stroke: var(--brick); stroke-width: 2.6; }
.brand__mark .m-rays { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.brand__mark .m-dot, .brand__mark .m-lights { fill: var(--brick); }

/* ---------- 4. Viršutinė juosta ---------- */
.topbar { border-bottom: 1px solid var(--line); font: 500 .78rem/1 var(--f-ui); color: var(--muted); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 7px; }
.topbar__date time::first-letter { text-transform: uppercase; }
.topbar__issue strong { color: var(--ink); font-weight: 700; }
.topbar__tools { display: flex; align-items: center; gap: 6px; }
.tool-link, .tool-btn {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
	border-radius: 999px; border: 0; background: transparent; color: var(--ink-2);
	text-decoration: none; font: inherit; transition: background .2s, color .2s;
}
.tool-link:hover, .tool-btn:hover { background: var(--brick-soft); color: var(--brick); }
.tool-btn__light { display: none; }
:root[data-theme="dark"] .tool-btn__dark { display: none; }
:root[data-theme="dark"] .tool-btn__light { display: inline; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .tool-btn__dark { display: none; }
	:root:not([data-theme="light"]) .tool-btn__light { display: inline; }
}

/* ---------- 5. Pagrindinė antraštė ---------- */
.masthead { border-bottom: 4px double var(--ink); }
.masthead__inner { position: relative; display: flex; align-items: center; justify-content: center; padding-block: clamp(18px, 3vw, 30px); }

.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand:hover .brand__mark .m-rays { stroke: var(--brick); }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font: 700 clamp(2rem, 5.2vw, 3.5rem)/.95 var(--f-display); letter-spacing: -.025em; margin: 0; }
.brand__b { font-style: italic; font-weight: 500; color: var(--brick); }
.brand__tagline { margin-top: 9px; font: 600 .7rem/1 var(--f-ui); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.masthead .brand__mark { width: clamp(44px, 6vw, 62px); height: auto; }

.menu-toggle {
	position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
	display: none; align-items: center; gap: 8px;
	background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
	font: 600 .8rem/1 var(--f-ui);
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }

/* ---------- 6. Rubrikų juosta (lipni) ---------- */
.sections {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.sections { background: var(--paper); }
}
.admin-bar .sections { top: 32px; }
@media (max-width: 782px) { .admin-bar .sections { top: 0; } }

.sections__list {
	display: flex; justify-content: center; gap: 2px; list-style: none;
	overflow-x: auto; scrollbar-width: none; min-height: var(--nav-h); align-items: center;
}
.sections__list::-webkit-scrollbar { display: none; }
.sections__list a {
	position: relative; display: block; white-space: nowrap; padding: 10px 14px;
	font: 650 .78rem/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase;
	color: var(--ink-2); text-decoration: none;
}
.sections__list a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
	background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.sections__list a:hover, .sections__list [aria-current="page"], .sections__list .current-menu-item > a, .sections__list .current-cat > a { color: var(--brick); }
.sections__list a:hover::after, .sections__list [aria-current="page"]::after, .sections__list .current-menu-item > a::after { transform: scaleX(1); }

/* ---------- 7. Kortelės ---------- */
.thumb { position: relative; overflow: hidden; background: var(--paper-2); border-radius: var(--r); aspect-ratio: 3 / 2; }
.thumb__img, .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .3s; }
:root[data-theme="dark"] .thumb img { filter: brightness(.9); }

.thumb--placeholder {
	display: grid; place-items: center; align-content: center; gap: 10px;
	color: #fff; background: linear-gradient(150deg, #a3392a, #6f2419);
}
.thumb--placeholder::before { content: ""; position: absolute; inset: 0; background: var(--brick-pattern); opacity: .7; }
.thumb--tone-1 { background: linear-gradient(150deg, #5b3a55, #33202f); }
.thumb--tone-2 { background: linear-gradient(150deg, #b8893a, #7d5719); }
.thumb--tone-3 { background: linear-gradient(150deg, #3f5a54, #23352f); }
.thumb__ph-mark, .thumb__ph-label { position: relative; }
.thumb__ph-mark .brand__mark { width: 42px; height: 42px; opacity: .9; }
.thumb--placeholder .brand__mark .m-arch, .thumb--placeholder .brand__mark .m-rose { stroke: #fff; }
.thumb--placeholder .brand__mark .m-dot, .thumb--placeholder .brand__mark .m-lights { fill: #fff; }
.thumb--placeholder .brand__mark .m-rays { stroke: #f0cf8e; }
.thumb__ph-label { font: 700 .68rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; opacity: .85; padding-inline: 10px; text-align: center; }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; padding-top: 14px; min-width: 0; }
.card__title { font-size: 1.28rem; line-height: 1.2; margin-bottom: .45rem; overflow-wrap: anywhere; }
.card__title a {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .35s, color .2s;
}
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { background-size: 100% 1px; color: var(--brick); }
.card:hover .thumb img { transform: scale(1.045); }
.card__excerpt { font: 400 .98rem/1.55 var(--f-text); color: var(--ink-2); margin-bottom: .6rem; }
.card__num { font: italic 500 1rem/1 var(--f-display); color: var(--gold); margin-bottom: 6px; letter-spacing: .02em; }

/* Kompaktiška */
.card--compact {
	display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start;
	padding: 14px 0; border-bottom: 1px solid var(--line);
}
.card--compact:last-child { border-bottom: 0; }
.card--compact:not(.has-post-thumbnail) { grid-template-columns: minmax(0, 1fr); }
.card--compact .thumb { aspect-ratio: 1; border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; }
.card--compact .card__body { padding-top: 0; }
.card--compact .card__title { font-size: 1.02rem; line-height: 1.25; }
.card--compact .card__num { font-size: .9rem; }

/* Juosta (rail) */
.card--rail { scroll-snap-align: start; }
.card--rail .thumb { aspect-ratio: 4 / 4.4; border-radius: 50% 50% var(--r) var(--r) / 26% 26% var(--r) var(--r); }
.card--rail .card__title { font-size: 1.14rem; }

/* Laiko juosta */
.timeline { position: relative; border-left: 2px solid var(--line); margin-left: 6px; }
.card--timeline {
	display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; align-items: start;
	padding: 6px 0 30px 30px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.card--timeline:last-child { border-bottom: 0; margin-bottom: 0; }
.card--timeline::before {
	content: ""; position: absolute; left: -8px; top: 12px; width: 14px; height: 14px; border-radius: 50%;
	background: var(--paper); border: 3px solid var(--brick); box-shadow: 0 0 0 4px var(--paper);
}
.card--timeline .card__media { order: 2; }
.card--timeline .card__body { order: 1; padding-top: 0; }
.card--timeline .card__title { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.card--timeline .thumb { aspect-ratio: 4 / 3; }

/* Tinklelis */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 40px 30px; }
.grid .card--grid { animation: rise .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 8. Pradžios puslapis ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; padding-block: clamp(28px, 5vw, 56px); }
.hero__lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 3.4vw, 44px); align-items: center; }
.hero__media { display: block; position: relative; isolation: isolate; }
.hero__media::after {
	content: ""; position: absolute; top: -14px; left: 14px; width: 100%; height: 100%; z-index: -1;
	background: var(--gold); opacity: .28;
	-webkit-mask: var(--lancet) center / 100% 100% no-repeat; mask: var(--lancet) center / 100% 100% no-repeat;
}
.thumb--arch {
	aspect-ratio: 4 / 5; border-radius: 0;
	-webkit-mask: var(--lancet) center / 100% 100% no-repeat; mask: var(--lancet) center / 100% 100% no-repeat;
}
.hero__lead:hover .thumb img { transform: scale(1.04); }
.hero__title { font-size: clamp(1.9rem, 3.7vw, 3.15rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 18px; }
.hero__title--long { font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.1; }
.hero__title a { text-decoration: none; }
.hero__excerpt { font: 400 1.12rem/1.6 var(--f-text); color: var(--ink-2); max-width: 40ch; }
.hero__body .meta { display: flex; margin-bottom: 24px; }

.hero__side { border-left: 1px solid var(--line); padding-left: 32px; }
.hero__side .card--compact { grid-template-columns: 76px minmax(0, 1fr); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; padding-block: 24px 64px; }
.split__side { display: flex; flex-direction: column; gap: 36px; }

.ledger {
	position: relative; display: grid; gap: 14px; padding: 24px; border-radius: 10px;
	background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ledger::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--line); border-radius: 6px; pointer-events: none; }
.ledger__row { position: relative; display: grid; grid-template-columns: 4.2rem 1fr; align-items: baseline; gap: 10px; margin: 0; }
.ledger__num { font: 700 2.1rem/1 var(--f-display); color: var(--brick); }
.ledger__label { font: 600 .82rem/1.3 var(--f-ui); color: var(--ink-2); }
.ledger__row--date { grid-template-columns: 1fr; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.ledger__row--date time { font: italic 500 1.1rem/1.2 var(--f-display); }

.cat-index { list-style: none; }
.cat-index a {
	display: flex; align-items: baseline; gap: 8px; padding: 8px 0; text-decoration: none;
	font: 500 1.02rem/1.3 var(--f-display);
}
.cat-index a::before { content: ""; order: 2; flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.cat-index a > span:first-child { order: 1; }
.cat-index__count { order: 3; font: 700 .78rem/1 var(--f-ui); color: var(--muted); }
.cat-index a:hover .cat-index__count { color: var(--brick); }

.rail-section { padding-block: 52px 28px; border-top: 1px solid var(--line); }
.rail-section:nth-of-type(odd) { background: var(--paper-2); }
.rail-head { display: flex; align-items: center; gap: 18px; }
.rail-head .section-title { flex: 1; margin-bottom: 22px; }
.rail-head__tools { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.rail-btn {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--card); transition: background .2s, color .2s, border-color .2s;
}
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font: 650 .8rem/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--brick); text-decoration: none; padding-left: 8px; white-space: nowrap; }
.more-link:hover .icon { transform: translateX(3px); }
.more-link .icon { transition: transform .2s; }

.rail {
	--pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px); gap: 26px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	padding: 4px var(--pad) 26px; scroll-padding-inline: var(--pad);
	scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.rail:focus-visible { outline-offset: -3px; }

/* ---------- 9. Kvietimas atrasti + poraštė ---------- */
.discover { position: relative; margin-top: 64px; background: var(--brick); color: #fff; overflow: hidden; }
:root[data-theme="dark"] .discover { background: #7e2a1f; }
.discover::before { content: ""; position: absolute; inset: 0; background: var(--brick-pattern); opacity: .6; }
.discover::after {
	content: ""; position: absolute; right: 8%; bottom: 0; width: 200px; height: 260px;
	background: rgba(255, 255, 255, .08);
	-webkit-mask: var(--lancet) center / 100% 100% no-repeat; mask: var(--lancet) center / 100% 100% no-repeat;
}
.discover__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-block: 48px; }
.discover .kicker { color: #f3d7a0; }
.discover__title { font-size: clamp(1.5rem, 3vw, 2.25rem); max-width: 22ch; color: #fff; }

.site-footer { background: var(--footer); color: var(--footer-ink); padding-top: 64px; font-size: .92rem; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: #f0a08e; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.brand--footer { color: var(--footer-ink); margin-bottom: 18px; }
.brand--footer:hover { color: var(--footer-ink); }
.brand--footer .brand__name { font-size: 1.9rem; }
.site-footer .brand__mark .m-arch, .site-footer .brand__mark .m-rose { stroke: #e2765f; }
.site-footer .brand__mark .m-dot, .site-footer .brand__mark .m-lights { fill: #e2765f; }
.site-footer .brand__b { color: #e2765f; }
.site-footer__about { color: rgba(239, 230, 216, .72); max-width: 42ch; line-height: 1.65; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.site-footer__title { font: 750 .74rem/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: rgba(239, 230, 216, .6); margin-bottom: 18px; }
.tag-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { display: inline-flex; gap: 6px; padding: 7px 12px; border: 1px solid rgba(239, 230, 216, .18); border-radius: 999px; font-size: .84rem; transition: border-color .2s, background .2s; }
.tag-cloud a:hover { border-color: #e2765f; background: rgba(226, 118, 95, .12); }
.tag-cloud span { opacity: .55; }
.mini-list { list-style: none; counter-reset: mini; }
.mini-list li { counter-increment: mini; display: grid; grid-template-columns: 30px 1fr; padding: 10px 0; border-bottom: 1px solid rgba(239, 230, 216, .12); line-height: 1.4; font-family: var(--f-display); font-size: 1.02rem; }
.mini-list li::before { content: counter(mini, decimal-leading-zero); font: italic 500 .9rem/1.5 var(--f-display); color: var(--gold); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(239, 230, 216, .12); color: rgba(239, 230, 216, .6); font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- 10. Mygtukas „Į viršų“ ---------- */
.to-top {
	position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 60;
	display: grid; place-items: center; width: 54px; height: 54px; padding: 0;
	border: 0; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
	transition: opacity .3s, transform .3s, visibility .3s, background .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brick); color: #fff; }
.to-top > * { grid-area: 1 / 1; }
.to-top__ring { width: 54px; height: 54px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--line); stroke-width: 2.5; }
.to-top__ring .to-top__progress { stroke: var(--brick); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top:hover .to-top__progress { stroke: #fff; }

/* ---------- 11. Skaitymo progresas ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--brick)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 12. Naršymo kelias, archyvai ---------- */
.crumbs { font: 500 .8rem/1.4 var(--f-ui); color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 9px; color: var(--line); font-size: 1.1em; }
.crumbs a { text-decoration: none; }
.crumbs [aria-current] { color: var(--ink-2); max-width: min(46ch, 86vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.archive-head { padding-block: 40px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.archive-head .crumbs ol { justify-content: center; }
.archive-head__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.02em; max-width: 22ch; }
.archive-head__page { display: block; font: italic 500 .45em/1.4 var(--f-display); color: var(--muted); }
.archive-head__desc { max-width: 62ch; margin-top: 14px; font: 400 1.1rem/1.6 var(--f-text); color: var(--ink-2); }
.archive-head__desc p:last-child { margin: 0; }
.archive-head__count { margin: 16px 0 0; font: 600 .8rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.archive-head__count strong { color: var(--brick); }
.archive-head::after { content: ""; width: 60px; height: 26px; margin-top: 26px; background: var(--gold); opacity: .7; -webkit-mask: var(--lancet) center / 18px 26px no-repeat; mask: var(--lancet) center / 18px 26px no-repeat; }
.subcats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.subcats .chip { margin: 0; }

.pager { margin-top: 56px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--card); text-decoration: none; font: 650 .9rem/1 var(--f-ui);
	transition: background .2s, color .2s, border-color .2s;
}
.pager .page-numbers.current { background: var(--brick); border-color: var(--brick); color: #fff; }
.pager a.page-numbers:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .dots { border: 0; background: none; }
.js .pager.is-enhanced { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.load-more-status { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 16px; }

.empty { text-align: center; padding: 40px 0; }

/* ---------- 13. Straipsnis ---------- */
.article__head { max-width: 980px; padding-block: clamp(26px, 4vw, 44px) 26px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.article__head .crumbs ol { justify-content: center; }
.article__title { font-size: clamp(2rem, 4.8vw, 3.55rem); line-height: 1.07; letter-spacing: -.022em; margin-bottom: 18px; max-width: 24ch; }
.article__lead { font: 400 clamp(1.1rem, 1.8vw, 1.32rem)/1.55 var(--f-text); color: var(--ink-2); max-width: 60ch; }
.article__bar {
	width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
	margin-top: 16px; padding-block: 14px; border-block: 1px solid var(--line);
}
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font: 500 .84rem/1.3 var(--f-ui); color: var(--muted); }
.byline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill-btn {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--card); font: 600 .8rem/1 var(--f-ui); transition: border-color .2s, color .2s, background .2s;
}
.pill-btn:hover, .pill-btn[aria-pressed="true"] { border-color: var(--brick); color: var(--brick); }
.pill-btn[aria-pressed="true"] { background: var(--brick-soft); }

.share { display: inline-flex; align-items: center; gap: 6px; }
.share__label { font: 650 .72rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share__btn {
	position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
	border: 1px solid var(--line); background: var(--card); color: var(--ink-2); text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.share__btn:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.share__btn[hidden] { display: none; }
.share__btn.is-done::after {
	content: attr(data-done); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	white-space: nowrap; background: var(--ink); color: var(--paper); font: 600 .72rem/1 var(--f-ui); padding: 7px 10px; border-radius: 6px;
}

.article__hero { max-width: calc(1180px + 2 * var(--gutter)); margin: 8px auto 0; }
.thumb--vault { aspect-ratio: 16 / 8.5; border-radius: 50% 50% 10px 10px / 18% 18% 10px 10px; }
.article__hero figcaption { text-align: center; font: 500 .82rem/1.5 var(--f-ui); color: var(--muted); margin-top: 10px; }

.article__layout {
	display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: center; gap: 64px;
	padding-block: clamp(30px, 4vw, 52px) 30px;
}
.article__layout.has-toc { grid-template-columns: 220px minmax(0, 690px) 280px; gap: 48px; }
.article__layout--single { grid-template-columns: minmax(0, 760px); }
.article__toc, .sticky-col { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.admin-bar .article__toc, .admin-bar .sticky-col { top: calc(var(--nav-h) + 56px); }
.article__aside { min-width: 0; }

.toc { font-family: var(--f-ui); }
.toc__title { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 750 .75rem/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.toc__title::-webkit-details-marker { display: none; }
.toc__list { list-style: none; counter-reset: toc; margin-top: 10px; max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: thin; }
.toc__item { counter-increment: toc; }
.toc__item a {
	display: grid; grid-template-columns: 26px 1fr; gap: 2px; padding: 7px 8px 7px 0; text-decoration: none;
	font-size: .86rem; line-height: 1.35; color: var(--muted); border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px;
	transition: color .2s, border-color .2s;
}
.toc__item a::before { content: counter(toc, decimal-leading-zero); font: italic 500 .82rem/1.5 var(--f-display); color: var(--gold); }
.toc__item--h3 a { padding-left: 22px; font-size: .82rem; }
.toc__item--h3 a::before { content: "–"; }
.toc__item a:hover, .toc__item a.is-active { color: var(--ink); border-left-color: var(--brick); }

/* Turinio tipografija */
.prose { font: 400 var(--prose-size)/1.78 var(--f-text); color: var(--ink); overflow-wrap: break-word; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > :is(h2, h3, h4) + * { margin-top: .55em; }
.prose > p:first-of-type::first-letter {
	float: left; font: 700 4.1em/.78 var(--f-display); color: var(--brick);
	margin: .06em .1em 0 -.02em; padding-top: .04em;
}
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 { font-size: 1.62em; margin-top: 2em; line-height: 1.18; }
.prose h3 { font-size: 1.28em; margin-top: 1.7em; }
.prose h4 { font-size: 1.08em; margin-top: 1.5em; }
.prose a { color: var(--brick); text-decoration-color: color-mix(in srgb, var(--brick) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brick); }
.prose blockquote {
	position: relative; margin-inline: 0; padding: .4em 0 .4em 1.4em; border-left: 3px solid var(--brick);
	font-family: var(--f-display); font-style: italic; font-size: 1.18em; line-height: 1.55; color: var(--ink-2);
}
.prose blockquote cite { display: block; margin-top: .6em; font: normal 600 .7em/1.3 var(--f-ui); color: var(--muted); }
.prose img { border-radius: var(--r); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption, .prose .wp-caption-text { font: 500 .78rem/1.5 var(--f-ui); color: var(--muted); margin-top: 8px; text-align: center; }
.prose hr { border: 0; height: 24px; margin-block: 2.2em; background: var(--gold); opacity: .6; -webkit-mask: var(--lancet) center / 14px 22px no-repeat; mask: var(--lancet) center / 14px 22px no-repeat; }
.prose table { width: 100%; border-collapse: collapse; font: 400 .88em/1.5 var(--f-ui); display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; background: var(--paper-2); }
.prose code { font-size: .85em; background: var(--paper-2); padding: .12em .38em; border-radius: 4px; }
.prose pre { background: var(--paper-2); padding: 1em; border-radius: var(--r); overflow-x: auto; font-size: .85em; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose .wp-block-embed iframe, .prose iframe { width: 100%; border: 0; border-radius: var(--r); }
.prose .wp-block-button__link { background: var(--ink); color: var(--paper); border-radius: 999px; text-decoration: none; font: 650 .9rem/1 var(--f-ui); padding: 14px 24px; }
.prose::after { content: ""; display: table; clear: both; }

.inline-related {
	clear: both; margin-block: 2em !important; padding: 18px 0; border-block: 3px double var(--line);
	font-family: var(--f-ui);
}
.inline-related__kicker { display: block; font: 750 .7rem/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 8px; }
.inline-related__link { display: block; text-decoration: none !important; color: var(--ink) !important; }
.inline-related__title { display: block; font: 700 1.25rem/1.3 var(--f-display); }
.inline-related__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.inline-related__link:hover .inline-related__title { color: var(--brick); }

.page-links { margin-top: 24px; font-family: var(--f-ui); }

.article__foot { margin-top: 44px; display: grid; gap: 28px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--paper-2); font: 600 .82rem/1 var(--f-ui); text-decoration: none; color: var(--ink-2); }
.tags a:hover { background: var(--brick); color: #fff; }
.article__end {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	padding: 20px 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.article__end-text { margin: 0; font: italic 500 1.12rem/1.4 var(--f-display); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav__link {
	display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px;
	text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.post-nav__link:hover { border-color: var(--brick); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.post-nav__link--next { text-align: right; grid-column: 2; align-items: flex-end; }
.post-nav__dir { display: inline-flex; align-items: center; gap: 6px; font: 700 .7rem/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.post-nav__title { font: 600 1.04rem/1.3 var(--f-display); }

.related { padding-block: 56px 20px; background: var(--paper-2); border-top: 1px solid var(--line); }
.related--flat { background: none; border: 0; }

.up-next {
	position: fixed; left: clamp(12px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 59;
	width: min(370px, calc(100vw - 100px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px;
	box-shadow: var(--shadow-lg); transform: translateY(calc(100% + 40px)); opacity: 0;
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.up-next.is-visible { transform: none; opacity: 1; }
.up-next__link { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: center; padding: 12px 40px 12px 12px; text-decoration: none; }
.up-next__thumb { aspect-ratio: 1; border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px; }
.up-next__thumb .thumb__ph-mark .brand__mark { width: 28px; height: 28px; }
.up-next__thumb .thumb__ph-label { display: none; }
.up-next__kicker { display: block; font: 750 .66rem/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 6px; }
.up-next__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 700 .98rem/1.28 var(--f-display); }
.up-next__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.up-next__close:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- 14. 404 ---------- */
.notfound { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 56px; }
.notfound__arch {
	display: grid; place-items: center; aspect-ratio: 3 / 4; color: #fff; position: relative;
	background: linear-gradient(160deg, #a3392a, #5e1f16);
	-webkit-mask: var(--lancet) center / 100% 100% no-repeat; mask: var(--lancet) center / 100% 100% no-repeat;
}
.notfound__arch::before { content: ""; position: absolute; inset: 0; background: var(--brick-pattern); opacity: .7; }
.notfound__arch span { position: relative; font: 700 5rem/1 var(--f-display); padding-top: 30%; }
.notfound__text p { font: 400 1.1rem/1.6 var(--f-text); color: var(--ink-2); max-width: 56ch; margin-top: 16px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.notfound .subcats { justify-content: flex-start; margin-top: 28px; }

/* ---------- 15. Prisitaikymas ---------- */
@media (max-width: 1180px) {
	.article__layout.has-toc { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
	.article__layout.has-toc .article__toc { grid-column: 1; grid-row: 1; position: static; }
	.article__layout.has-toc .article__body { grid-column: 1; grid-row: 2; }
	.article__layout.has-toc .article__aside { grid-column: 2; grid-row: 1 / span 2; }
	.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
	.toc__title { border-bottom: 0; padding-bottom: 0; }
	.toc[open] .toc__title { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
	.toc__list { max-height: none; }
}

@media (max-width: 1060px) {
	.hero { grid-template-columns: 1fr; gap: 40px; }
	.hero__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
	.hero__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
	.hero__list .card--compact:nth-last-child(2) { border-bottom: 0; }
	.split { grid-template-columns: 1fr; gap: 48px; }
	.split__side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
	.ledger { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
	.ledger__row--date { border-top: 0; padding-top: 0; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.article__layout, .article__layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.article__layout.has-toc .article__aside { grid-column: 1; grid-row: 3; }
	.sticky-col { position: static; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: 1; }
}

@media (max-width: 860px) {
	.topbar .topbar__issue { display: none; }
	.topbar__date { white-space: nowrap; overflow: hidden; min-width: 0; }
	.topbar__date time { overflow: hidden; text-overflow: ellipsis; }
	.menu-toggle { display: inline-flex; position: static; transform: none; flex: none; }
	.masthead__inner { justify-content: space-between; gap: 12px; }
	.brand { min-width: 0; }
	.sections__list {
		justify-content: flex-start;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
	.sections.is-open .sections__list { -webkit-mask-image: none; mask-image: none; }
	.sections.is-open .sections__list { flex-wrap: wrap; overflow: visible; padding-block: 10px; }
	.sections.is-open .sections__list a { border: 1px solid var(--line); border-radius: 999px; margin: 3px; }
	.sections.is-open .sections__list a::after { display: none; }
}

@media (max-width: 720px) {
	.hero__lead { grid-template-columns: 1fr; }
	.hero__media { max-width: 420px; width: 88%; margin-inline: auto; }
	.hero__list { grid-template-columns: 1fr; }
	.hero__list .card--compact:nth-last-child(2) { border-bottom: 1px solid var(--line); }
	.split__side { grid-template-columns: 1fr; }
	.ledger { grid-template-columns: 1fr 1fr; }
	.ledger__row--date { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
	.card--timeline { grid-template-columns: 1fr; gap: 14px; padding-left: 22px; }
	.card--timeline .card__media { order: 0; }
	.card--timeline .thumb { aspect-ratio: 16 / 9; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.notfound { grid-template-columns: 1fr; text-align: center; }
	.notfound__arch { width: 200px; margin-inline: auto; }
	.notfound__actions, .notfound .subcats { justify-content: center; }
	.article__bar { justify-content: center; }
	.crumbs li:last-child { display: none; }
	.crumbs li:nth-last-child(2) a { pointer-events: auto; }
	.article__meta { justify-content: center; }
	.share__label { display: none; }
	.thumb--vault { aspect-ratio: 4 / 3; border-radius: 50% 50% 8px 8px / 22% 22% 8px 8px; }
	.article__hero { padding-inline: 0; }
	.rail-head__tools .rail-btn { display: none; }
	.discover__inner { flex-direction: column; align-items: flex-start; }
	.brand__tagline { letter-spacing: .2em; font-size: .62rem; }
	.topbar__tools .tool-link span { display: none; }
}

@media (max-width: 480px) {
	.brand { gap: 10px; }
	.brand__name { font-size: 1.75rem; }
	.brand__tagline { font-size: .55rem; letter-spacing: .14em; }
	.masthead .brand__mark { width: 40px; }
	.menu-toggle__label { display: none; }
	.menu-toggle { padding: 9px; }
	.grid { gap: 34px; }
	.prose > p:first-of-type::first-letter { font-size: 3.4em; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .sections, .discover, .site-footer, .to-top, .progress, .up-next, .article__tools, .article__aside, .article__toc, .post-nav, .related, .share { display: none !important; }
	body { background: #fff; color: #000; }
	.article__layout { display: block; }
	.prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
