/*
Theme Name: Lentica
Theme URI: https://lentica.pl/
Author: Lentica.pl
Description: Responsywny motyw blogowy dla lentica.pl, z widokami wpisów, kategorii, archiwów i autorów.
Version: 1.0.0
Requires at least: 6.0
Text Domain: lentica
*/

:root {
	--bg: #f6f6f6;
	--surface: #ffffff;
	--ink: #171717;
	--muted: #60636b;
	--soft: #eef2ee;
	--line: #dedede;
	--green: #2f6f4f;
	--brick: #9a463a;
	--gold: #c5962f;
	--teal: #27666b;
	--shadow: 0 18px 50px rgba(22, 22, 22, 0.08);
	--radius: 8px;
	--header-height: 86px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.68;
	letter-spacing: 0;
	text-rendering: optimizeLegibility;
}

body.nav-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-color: rgba(23, 23, 23, 0.28);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 180ms ease, text-decoration-color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a:hover,
a:focus-visible {
	color: var(--green);
	text-decoration-color: currentColor;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

input,
textarea,
select {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	color: var(--ink);
	padding: 0.78rem 0.9rem;
}

textarea {
	min-height: 160px;
	resize: vertical;
}

label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	border-bottom: 1px solid var(--line);
	padding: 0.75rem;
	text-align: left;
}

blockquote {
	margin: 2rem 0;
	border-left: 4px solid var(--gold);
	padding: 0.3rem 0 0.3rem 1.25rem;
	color: #343434;
	font-size: 1.08rem;
}

.shell,
.shell-narrow {
	width: min(100% - 32px, 1180px);
	margin-inline: auto;
}

.shell-narrow {
	width: min(100% - 32px, 780px);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 200;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	white-space: normal;
	border-radius: 6px;
	background: var(--ink);
	color: #fff;
	padding: 0.7rem 0.9rem;
}

.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 120;
	width: 100%;
	height: 3px;
	background: transparent;
	pointer-events: none;
}

.scroll-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--brick);
}

.admin-bar .scroll-progress {
	top: 32px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(23, 23, 23, 0.1);
	background: rgba(246, 246, 246, 0.92);
	backdrop-filter: blur(16px);
	transition: box-shadow 180ms ease, background-color 180ms ease;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header.is-scrolled {
	box-shadow: 0 12px 28px rgba(23, 23, 23, 0.08);
	background: rgba(246, 246, 246, 0.97);
}

.header-inner {
	min-height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.site-branding {
	min-width: 0;
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 0.72rem;
	max-width: 100%;
	color: var(--ink);
	line-height: 1.1;
	text-decoration: none;
}

.brand-mark {
	display: inline-flex;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	background: #f0eee7;
	box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.08);
}

.brand-mark svg {
	width: 34px;
	height: 34px;
	overflow: visible;
}

.brand-mark-bg {
	fill: #2f6f4f;
}

.brand-mark-lens {
	fill: #f6f6f0;
}

.brand-mark-dot {
	fill: #9a463a;
}

.brand-mark-stem {
	fill: none;
	stroke: #c5962f;
	stroke-width: 4;
	stroke-linecap: round;
}

.brand-name {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 1.35rem;
	font-weight: 850;
}

.site-title:hover .brand-mark,
.site-title:focus-visible .brand-mark,
.footer-title:hover .brand-mark,
.footer-title:focus-visible .brand-mark {
	transform: translateY(-1px);
}

.site-title .brand-mark,
.footer-title .brand-mark {
	transition: transform 180ms ease;
}

.site-description {
	margin: 0.25rem 0 0;
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.35;
}

.primary-nav .menu,
.footer-nav .menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	border-radius: 6px;
	padding: 0.55rem 0.72rem;
	color: #242424;
	font-weight: 700;
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	background: var(--soft);
	color: var(--green);
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex-direction: column;
}

.menu-toggle span:not(.screen-reader-text) {
	width: 20px;
	height: 2px;
	background: var(--ink);
	transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .menu-toggle span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
	opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.site-main {
	min-height: 58vh;
}

.front-hero {
	padding: 4rem 0 2.75rem;
}

.hero-story {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.hero-story-content {
	padding: 3rem;
	align-self: center;
}

.hero-story-content:only-child {
	grid-column: 1 / -1;
	max-width: 840px;
}

.section-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.8rem;
	color: var(--brick);
	font-size: 0.78rem;
	font-weight: 850;
	line-height: 1.2;
	text-transform: uppercase;
}

.section-kicker::before {
	content: "";
	width: 1.7rem;
	height: 2px;
	background: currentColor;
}

.entry-category {
	display: inline-flex;
	width: fit-content;
	border: 1px solid rgba(47, 111, 79, 0.22);
	border-radius: 6px;
	background: rgba(47, 111, 79, 0.08);
	color: var(--green);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	padding: 0.45rem 0.55rem;
	text-decoration: none;
}

.hero-story-category {
	display: flex;
	margin-top: 0.45rem;
	margin-bottom: 1rem;
}

.hero-story h1 {
	margin: 0 0 1rem;
	font-size: 3.15rem;
	line-height: 1.02;
	font-weight: 900;
	letter-spacing: 0;
}

.hero-story h1 a {
	text-decoration: none;
}

.hero-story-meta,
.single-meta,
.post-card-meta,
.loop-entry-meta,
.category-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	color: var(--muted);
	font-size: 0.88rem;
}

.meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.meta-item + .meta-item::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.45;
}

.hero-story-excerpt {
	max-width: 58ch;
	margin: 1.2rem 0 1.6rem;
	color: #3d3f43;
	font-size: 1.05rem;
}

.hero-story-excerpt p,
.post-card-excerpt p,
.loop-entry-excerpt p {
	margin: 0;
}

.hero-story-image {
	min-height: 430px;
	background: var(--soft);
}

.hero-story-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.button,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--ink);
	border-radius: 6px;
	background: var(--surface);
	color: var(--ink);
	font-weight: 850;
	line-height: 1;
	padding: 0.78rem 1rem;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible {
	transform: translateY(-1px);
}

.button-primary,
input[type="submit"],
button[type="submit"] {
	background: var(--ink);
	color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible {
	border-color: var(--green);
	background: var(--green);
	color: #fff;
}

.front-section {
	padding: 3.4rem 0;
}

.front-section-alt {
	margin-top: 1rem;
	background: #edf1f0;
}

.section-heading {
	max-width: 720px;
	margin-bottom: 1.5rem;
}

.section-heading h2 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.12;
	letter-spacing: 0;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
}

.post-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
	transform: translateY(-3px);
	border-color: rgba(47, 111, 79, 0.34);
	box-shadow: var(--shadow);
}

.post-card--wide {
	grid-column: span 7;
	grid-row: span 2;
}

.post-card--card {
	grid-column: span 5;
	display: grid;
	grid-template-columns: minmax(124px, 0.52fr) minmax(0, 1fr);
}

.post-card-image {
	display: block;
	overflow: hidden;
	background: var(--soft);
	text-decoration: none;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 320ms ease;
}

.post-card:hover .post-card-image img {
	transform: scale(1.035);
}

.post-card--wide .post-card-image {
	aspect-ratio: 16 / 10;
}

.post-card--card .post-card-image {
	min-height: 100%;
	aspect-ratio: 1 / 1;
}

.post-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: 1.15rem;
}

.post-card-title,
.loop-entry-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.2;
	letter-spacing: 0;
}

.post-card--wide .post-card-title {
	font-size: 1.75rem;
	line-height: 1.12;
}

.post-card-title a,
.loop-entry-title a {
	text-decoration: none;
}

.post-card-excerpt,
.loop-entry-excerpt {
	color: #4b4d52;
}

.post-card-meta {
	margin-top: auto;
}

.stream-layout {
	display: grid;
	grid-template-columns: 310px minmax(0, 1fr);
	gap: 2.2rem;
}

.section-heading-sticky {
	position: sticky;
	top: calc(var(--header-height) + 1.5rem);
	align-self: start;
}

.post-stream {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}

.post-card--stream {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	min-height: 132px;
}

.post-card--stream .post-card-image {
	aspect-ratio: 1 / 1;
	min-height: 100%;
}

.post-card--stream .post-card-body:first-child {
	grid-column: 1 / -1;
}

.post-card--stream .post-card-title {
	font-size: 1.02rem;
}

.post-card--stream .post-card-body {
	padding: 1rem;
}

.category-rail {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.category-card {
	border: 1px solid var(--line);
	border-top: 4px solid var(--green);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 1.1rem;
	min-height: 210px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.category-card:nth-child(2) {
	border-top-color: var(--brick);
}

.category-card:nth-child(3) {
	border-top-color: var(--gold);
}

.category-card:nth-child(4) {
	border-top-color: var(--teal);
}

.category-card-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	text-decoration: none;
}

.category-card-heading span {
	font-size: 1.1rem;
	font-weight: 850;
	line-height: 1.15;
}

.category-card-heading small {
	color: var(--muted);
	font-size: 0.78rem;
	white-space: nowrap;
}

.category-card h3 {
	margin: 2rem 0 0.7rem;
	font-size: 1.15rem;
	line-height: 1.22;
	letter-spacing: 0;
}

.category-card h3 a {
	text-decoration: none;
}

.archive-header,
.author-header,
.not-found {
	padding: 4rem 0 2rem;
}

.archive-header h1,
.author-header h1,
.not-found h1,
.single-header h1 {
	margin: 0;
	font-size: 2.85rem;
	line-height: 1.05;
	letter-spacing: 0;
}

.archive-description,
.author-header p,
.not-found p {
	max-width: 70ch;
	margin: 1rem 0 0;
	color: #43464b;
	font-size: 1.05rem;
}

.content-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2rem;
	align-items: start;
	padding-bottom: 4rem;
}

.archive-list {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.loop-entry {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 0.85rem;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.loop-entry:hover {
	transform: translateY(-2px);
	border-color: rgba(47, 111, 79, 0.34);
	box-shadow: var(--shadow);
}

.loop-entry-image {
	overflow: hidden;
	border-radius: 6px;
	background: var(--soft);
	aspect-ratio: 4 / 3;
}

.loop-entry-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.loop-entry-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.35rem 0.35rem 0.35rem 0;
}

.loop-entry-title {
	font-size: 1.45rem;
}

.sidebar {
	display: grid;
	gap: 1rem;
}

.widget,
.footer-widget {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 1rem;
}

.widget-title,
.footer-widget-title {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	line-height: 1.2;
}

.widget ul,
.footer-widget ul,
.category-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li + li,
.footer-widget li + li {
	margin-top: 0.45rem;
}

.category-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	border-bottom: 1px solid var(--line);
	padding: 0.55rem 0;
	text-decoration: none;
}

.category-links small {
	color: var(--muted);
}

.pagination-wrap {
	margin-top: 1.2rem;
}

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
}

.page-numbers,
.post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	padding: 0.45rem 0.72rem;
	text-decoration: none;
}

.page-numbers.current,
.post-page-numbers.current {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.single-header {
	padding: 4rem 0 2rem;
}

.single-header h1 {
	margin-top: 0.7rem;
}

.single-meta {
	margin-top: 1rem;
}

.single-dek {
	margin: 1.4rem 0 0;
	color: #3f4246;
	font-size: 1.18rem;
	line-height: 1.58;
}

.single-featured {
	margin-top: 0.8rem;
	margin-bottom: 2.8rem;
}

.single-featured img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.single-featured figcaption {
	margin-top: 0.65rem;
	color: var(--muted);
	font-size: 0.9rem;
}

.entry-content {
	color: #232323;
	font-size: 1.05rem;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.45rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2.25rem;
	line-height: 1.18;
	letter-spacing: 0;
}

.entry-content h2 {
	font-size: 1.85rem;
}

.entry-content h3 {
	font-size: 1.45rem;
}

.entry-content a {
	color: var(--green);
	text-decoration-color: rgba(47, 111, 79, 0.4);
}

.entry-content img,
.entry-content .wp-block-image img {
	border-radius: var(--radius);
}

.entry-content .alignwide {
	width: min(100vw - 32px, 1080px);
	max-width: min(100vw - 32px, 1080px);
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	color: var(--muted);
	font-size: 0.9rem;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 2rem;
}

.single-footer {
	padding: 1rem 0 4rem;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.4rem;
}

.tag-list a {
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	padding: 0.45rem 0.65rem;
	font-size: 0.88rem;
	text-decoration: none;
}

.author-box,
.author-header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
}

.author-box {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 1.1rem;
}

.author-box h2 {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	line-height: 1.2;
}

.author-box h2 a,
.author-link {
	text-decoration: none;
}

.author-box p {
	margin: 0;
	color: #44474b;
}

.author-avatar img,
.author-box-avatar img,
.comment-author img {
	border-radius: 50%;
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.2rem;
}

.post-nav a {
	display: block;
	height: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 1rem;
	text-decoration: none;
}

.post-nav span {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
}

.post-nav-next {
	text-align: right;
}

.comments-area {
	padding: 0 0 4rem;
}

.comments-title,
.comment-reply-title {
	margin: 0 0 1rem;
	font-size: 1.45rem;
	line-height: 1.2;
}

.comment-list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 1rem 0 0 2rem;
	padding: 0;
	list-style: none;
}

.comment-body {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 1rem;
	margin-bottom: 1rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 850;
}

.comment-metadata {
	margin: 0.35rem 0 0.75rem;
	color: var(--muted);
	font-size: 0.85rem;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-respond {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 1.1rem;
}

.comment-form {
	display: grid;
	gap: 0.9rem;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
}

.comment-form-cookies-consent input {
	width: auto;
	margin-top: 0.35rem;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 500;
}

.search-form {
	display: flex;
	gap: 0.55rem;
	align-items: stretch;
}

.search-form label {
	flex: 1;
	margin: 0;
}

.search-label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 800;
}

.search-submit {
	width: auto;
	white-space: nowrap;
}

.empty-state,
.not-found {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 2rem;
}

.empty-state h1,
.empty-state h2,
.not-found h1 {
	margin-top: 0;
}

.site-footer {
	border-top: 1px solid var(--line);
	background: #20201d;
	color: #f5f5f2;
}

.footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 2rem;
	padding: 2.4rem 0;
}

.footer-brand p {
	max-width: 50ch;
	margin: 0.8rem 0 0;
	color: rgba(245, 245, 242, 0.72);
}

.footer-title {
	color: #fff;
}

.footer-title .brand-mark {
	background: rgba(245, 245, 242, 0.1);
	box-shadow: inset 0 0 0 1px rgba(245, 245, 242, 0.16);
}

.footer-title .brand-mark-bg {
	fill: #c5962f;
}

.footer-title .brand-mark-lens {
	fill: #20201d;
}

.footer-title .brand-mark-dot {
	fill: #f5f5f2;
}

.footer-title .brand-mark-stem {
	stroke: #9a463a;
}

.footer-nav .menu {
	justify-content: flex-end;
	flex-wrap: wrap;
}

.footer-nav a {
	color: #f5f5f2;
	text-decoration-color: rgba(245, 245, 242, 0.26);
}

.footer-widgets {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.footer-widget {
	border-color: rgba(245, 245, 242, 0.18);
	background: rgba(255, 255, 255, 0.04);
}

.footer-copy {
	grid-column: 1 / -1;
	margin: 0;
	color: rgba(245, 245, 242, 0.62);
	font-size: 0.9rem;
}

[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

.alignleft {
	float: left;
	margin: 0.4rem 1.4rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.4rem 0 1rem 1.4rem;
}

.aligncenter {
	margin-inline: auto;
}

.sticky {
	position: relative;
}

.bypostauthor {
	display: block;
}

@media (max-width: 1080px) {
	.hero-story {
		grid-template-columns: 1fr;
	}

	.hero-story-image {
		order: -1;
		min-height: 320px;
	}

	.post-card--wide,
	.post-card--card {
		grid-column: span 6;
		display: block;
	}

	.post-card--card .post-card-image {
		aspect-ratio: 16 / 10;
	}

	.stream-layout,
	.content-with-sidebar {
		grid-template-columns: 1fr;
	}

	.section-heading-sticky {
		position: static;
	}

	.category-rail,
	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.admin-bar .scroll-progress {
		top: 46px;
	}
}

@media (max-width: 760px) {
	body {
		font-size: 15px;
	}

	.header-inner {
		min-height: 72px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.primary-nav {
		position: fixed;
		inset: 72px 16px auto 16px;
		z-index: 110;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--surface);
		box-shadow: var(--shadow);
		padding: 0.6rem;
		opacity: 0;
		transform: translateY(-8px);
		pointer-events: none;
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.admin-bar .primary-nav {
		inset-top: 118px;
	}

	.nav-open .primary-nav {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	.primary-nav .menu {
		display: grid;
		gap: 0.15rem;
		align-items: stretch;
	}

	.primary-nav a {
		display: flex;
		width: 100%;
	}

	.front-hero,
	.archive-header,
	.author-header,
	.not-found,
	.single-header {
		padding-top: 2.5rem;
	}

	.hero-story-content {
		padding: 1.35rem;
	}

	.hero-story h1,
	.archive-header h1,
	.author-header h1,
	.not-found h1,
	.single-header h1 {
		font-size: 2.15rem;
		line-height: 1.08;
	}

	.section-heading h2 {
		font-size: 1.65rem;
	}

	.feature-grid,
	.post-stream,
	.category-rail,
	.footer-inner,
	.footer-widgets,
	.post-nav {
		grid-template-columns: 1fr;
	}

	.post-card--wide,
	.post-card--card {
		grid-column: auto;
	}

	.post-card--stream {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.loop-entry {
		grid-template-columns: 1fr;
	}

	.loop-entry-body {
		padding: 0.2rem;
	}

	.author-header,
	.author-box {
		grid-template-columns: 1fr;
	}

	.post-nav-next {
		text-align: left;
	}

	.footer-nav .menu {
		justify-content: flex-start;
	}
}

@media (max-width: 520px) {
	.shell,
	.shell-narrow {
		width: min(100% - 24px, 1180px);
	}

	.site-description {
		display: none;
	}

	.brand-name {
		font-size: 1.18rem;
	}

	.brand-mark {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}

	.brand-mark svg {
		width: 30px;
		height: 30px;
	}

	.hero-story-image {
		min-height: 240px;
	}

	.post-card--stream {
		grid-template-columns: 1fr;
	}

	.post-card--stream .post-card-image {
		aspect-ratio: 16 / 10;
	}

	.search-form {
		display: grid;
	}

	.search-submit {
		width: 100%;
	}

	.comment-list .children {
		margin-left: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}

	[data-reveal] {
		opacity: 1;
		transform: none;
	}
}
