/*
Theme Name: ArtNori Editorial
Theme URI: https://artnori.com
Author: ArtNori
Description: Lightweight editorial WordPress theme for a Korean culture, art, exhibition, performance, and festival magazine.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artnori
*/

@font-face {
	font-family: "Paperlogy";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/Paperlogy-4Regular.woff2") format("woff2");
}

@font-face {
	font-family: "Paperlogy";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/Paperlogy-5Medium.woff2") format("woff2");
}

@font-face {
	font-family: "Paperlogy";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/Paperlogy-6SemiBold.woff2") format("woff2");
}

:root {
	--color-ink: #171717;
	--color-muted: #5f625f;
	--color-paper: #f7f8f5;
	--color-surface: #ffffff;
	--color-line: #dedfd7;
	--color-moss: #2c6659;
	--color-cobalt: #245c98;
	--color-clay: #c05f45;
	--color-ochre: #d8aa39;
	--shadow-soft: 0 18px 46px rgb(23 23 23 / 7%);
	--shadow-lift: 0 28px 72px rgb(23 23 23 / 13%);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--font-main: "Paperlogy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--radius: 8px;
	--site-width: 1440px;
	--content-width: 820px;
	--article-header-width: 1260px;
}

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

::selection {
	background: rgb(216 170 57 / 32%);
	color: var(--color-ink);
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-main);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.72;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 180ms ease;
}

a:hover {
	color: var(--color-clay);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--color-cobalt);
	outline-offset: 3px;
}

button,
input,
textarea,
select {
	font: inherit;
	letter-spacing: 0;
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	z-index: 1000;
	top: 14px;
	left: 14px;
	padding: 10px 14px;
	background: var(--color-ink);
	color: #fff;
	border-radius: var(--radius);
}

.site-shell {
	width: min(100% - 48px, var(--site-width));
	margin: 0 auto;
}

.site-header {
	padding: 18px 0 0;
	border-bottom: 1px solid var(--color-ink);
}

.topline,
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	justify-content: space-between;
	color: var(--color-muted);
	font-size: 0.82rem;
}

.topline {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--color-line);
}

.topline span {
	min-width: 0;
}

.brand-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
	gap: 34px;
	align-items: center;
	padding: 20px 0 18px;
}

.site-branding {
	display: flex;
	gap: 14px;
	align-items: center;
	min-width: 0;
}

.site-title,
.footer-title {
	text-decoration: none;
}

.site-title {
	display: block;
	max-width: 100%;
	font-size: clamp(2.4rem, 5vw, 4.75rem);
	font-weight: 500;
	line-height: 0.96;
	overflow-wrap: anywhere;
	transform-origin: left center;
	transition: color 180ms ease, transform 260ms var(--ease-out);
}

.custom-logo {
	width: auto;
	max-height: 54px;
}

.search-form {
	display: flex;
	gap: 8px;
	width: 100%;
}

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

.search-field {
	width: 100%;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-ink);
	transition: border-color 180ms ease, box-shadow 220ms ease, background-color 180ms ease;
}

.search-field:focus {
	outline: 0;
	border-color: var(--color-cobalt);
	box-shadow: 0 0 0 4px rgb(36 92 152 / 12%);
}

.search-form button {
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--color-ink);
	border-radius: var(--radius);
	background: var(--color-ink);
	color: #fff;
	cursor: pointer;
	transition: transform 180ms var(--ease-out), box-shadow 180ms ease, background-color 180ms ease;
}

.primary-nav {
	overflow-x: auto;
	padding: 9px 0 12px;
	border-top: 1px solid var(--color-line);
	scrollbar-width: thin;
}

.menu,
.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu a,
.footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	color: var(--color-ink);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: color 180ms ease, background-size 220ms var(--ease-out);
}

.menu a:hover,
.footer-menu a:hover {
	color: var(--color-cobalt);
	background-size: 100% 1px;
}

.site-main {
	padding: 20px 0 72px;
}

.issue-header,
.archive-header,
.section-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 430px);
	gap: 34px;
	align-items: center;
	margin-bottom: 18px;
}

.issue-header {
	padding: 18px 0 22px;
	border-bottom: 1px solid var(--color-line);
}

.section-kicker {
	margin: 0 0 8px;
	color: var(--color-cobalt);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin-top: 0;
}

h1,
h2,
h3 {
	font-weight: 500;
	letter-spacing: 0;
}

.issue-header h1,
.archive-header h1 {
	margin-bottom: 0;
	font-size: clamp(1.45rem, 2.05vw, 2rem);
	line-height: 1.18;
}

.issue-summary,
.archive-description,
.section-heading > p:last-child {
	margin: 0;
	color: var(--color-muted);
	font-size: 1.03rem;
}

.issue-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: flex-end;
	text-align: right;
}

.issue-summary span {
	color: var(--color-cobalt);
	font-size: 0.82rem;
	font-weight: 600;
}

.issue-summary p {
	margin: 0;
	white-space: nowrap;
}

.lead-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
	gap: 32px;
	padding: 28px 0 42px;
	border-bottom: 1px solid var(--color-line);
}

.article-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	overflow: hidden;
	transform: translateZ(0);
	transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease;
}

.article-card::before {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, var(--color-cobalt), var(--color-moss), var(--color-ochre));
	content: "";
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left center;
	transition: opacity 260ms ease, transform 340ms var(--ease-out);
}

.article-card--feature {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.74fr);
	min-height: 340px;
	border-color: rgb(23 23 23 / 10%);
	box-shadow: 0 18px 54px rgb(23 23 23 / 6%);
}

.article-media {
	display: block;
	min-height: 220px;
	background: var(--color-ink);
	text-decoration: none;
	overflow: hidden;
}

.article-image {
	width: 100%;
	height: 100%;
	min-height: 220px;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transform: scale(1);
	transition: transform 700ms var(--ease-out), filter 260ms ease;
}

.article-card--feature .article-image {
	min-height: 340px;
	aspect-ratio: auto;
}

.article-image--fallback {
	display: grid;
	place-items: end start;
	padding: 22px;
	background:
		radial-gradient(circle at 18% 18%, rgb(216 170 57 / 42%), transparent 28%),
		linear-gradient(135deg, #245c98, #2c6659 56%, #171717);
	color: #fff;
}

.article-image--fallback span {
	max-width: 90%;
	font-size: clamp(1.45rem, 4vw, 2.6rem);
	font-weight: 500;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.article-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

.article-card--standard .article-card__body {
	display: grid;
	grid-template-rows: auto minmax(3.7em, auto) auto minmax(3.25em, auto);
	height: 100%;
	gap: 12px;
}

.article-card--feature .article-card__body {
	justify-content: center;
	padding: 28px 34px;
}

.category-badge {
	align-self: flex-start;
	color: var(--color-moss);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 180ms ease;
}

.article-title {
	margin: 0;
	font-size: clamp(1.2rem, 2vw, 1.62rem);
	line-height: 1.32;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.article-card--standard .article-title {
	min-height: 3.7em;
	font-size: clamp(1rem, 1.04vw, 1.16rem);
	line-height: 1.42;
}

.article-card--standard .article-title a,
.article-card--standard p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-card--standard .article-title a {
	-webkit-line-clamp: 2;
}

.article-card--feature .article-title {
	font-size: clamp(1.45rem, 1.75vw, 1.82rem);
	line-height: 1.24;
}

.article-title a,
.rail-item h2 a,
.post-navigation a {
	text-decoration: none;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	color: var(--color-muted);
	font-size: 0.82rem;
}

.article-card p {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.article-card--standard p {
	min-height: 3.25em;
	-webkit-line-clamp: 2;
}

.latest-rail {
	display: flex;
	flex-direction: column;
	padding: 0 2px;
	border-top: 1px solid var(--color-ink);
}

.rail-heading {
	display: flex;
	justify-content: space-between;
	padding: 13px 0;
	border-bottom: 1px solid var(--color-line);
	color: var(--color-muted);
	font-size: 0.82rem;
	font-weight: 500;
}

.rail-item {
	padding: 20px 0;
	border-bottom: 1px solid var(--color-line);
	transition: transform 220ms var(--ease-out), border-color 220ms ease;
}

.rail-item h2 {
	margin: 8px 0 10px;
	font-size: clamp(1rem, 1.24vw, 1.16rem);
	line-height: 1.35;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.article-section,
.category-section {
	padding: 38px 0 0;
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.home-recent .article-media {
	min-height: 180px;
}

.home-recent .article-image {
	min-height: 180px;
}

.section-link {
	justify-self: end;
	align-self: center;
	padding: 9px 12px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-ink);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 180ms var(--ease-out), border-color 180ms ease, color 180ms ease;
}

.section-link:hover {
	border-color: var(--color-cobalt);
	color: var(--color-cobalt);
	transform: translateY(-1px);
}

.archive-grid {
	padding-top: 8px;
}

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

.category-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 74px;
	padding: 16px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-surface);
	font-weight: 500;
	text-decoration: none;
	box-shadow: 0 10px 28px rgb(23 23 23 / 4%);
	transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
}

.category-list small {
	color: var(--color-muted);
	font-size: 0.78rem;
}

.single-article,
.page-article {
	width: min(100%, var(--content-width));
	margin: 0 auto;
}

.single-article {
	width: min(100%, var(--article-header-width));
}

.single-article .entry-content,
.single-article .single-footer,
.single-article .single-media {
	width: min(100%, var(--content-width));
	margin-right: auto;
	margin-left: auto;
}

.utility-page {
	width: min(100%, 1180px);
	margin: 0 auto;
}

.utility-hero {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 52px;
	align-items: end;
	padding: 48px 0 38px;
	border-top: 1px solid var(--color-ink);
	border-bottom: 1px solid var(--color-line);
}

.utility-meta {
	display: grid;
	gap: 13px;
	align-self: stretch;
	padding-top: 14px;
	border-top: 2px solid var(--color-ink);
	color: var(--color-muted);
	font-size: 0.88rem;
}

.utility-meta strong {
	display: block;
	color: var(--color-ink);
	font-size: 1rem;
	font-weight: 500;
}

.utility-hero h1 {
	max-width: 860px;
	margin-bottom: 16px;
	font-size: clamp(3rem, 6.8vw, 6.2rem);
	font-weight: 500;
	line-height: 0.98;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.utility-hero p {
	max-width: 760px;
	margin: 0;
	color: var(--color-muted);
	font-size: 1.12rem;
	line-height: 1.72;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.utility-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 52px;
	padding: 44px 0 76px;
}

.utility-index {
	position: sticky;
	top: 18px;
	align-self: start;
	padding-top: 16px;
	border-top: 1px solid var(--color-ink);
	color: var(--color-muted);
}

.utility-index strong {
	display: block;
	margin-bottom: 12px;
	color: var(--color-ink);
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
}

.utility-index a {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 0;
	border-top: 1px solid var(--color-line);
	color: var(--color-muted);
	font-size: 0.94rem;
	text-decoration: none;
}

.utility-index a:hover {
	color: var(--color-cobalt);
}

.utility-content {
	border-top: 1px solid var(--color-ink);
}

.utility-section {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: 42px;
	padding: 34px 0 38px;
	border-bottom: 1px solid var(--color-line);
}

.utility-section h2 {
	margin: 0;
	font-size: clamp(1.45rem, 2.4vw, 2.1rem);
	line-height: 1.18;
	word-break: keep-all;
}

.utility-section h3 {
	margin: 1.45em 0 0.6em;
	font-size: 1.16rem;
}

.utility-section p,
.utility-section li {
	color: var(--color-ink);
	font-size: 1.04rem;
	line-height: 1.82;
}

.utility-section p {
	margin-bottom: 1.05em;
}

.utility-section ul {
	margin: 0;
	padding-left: 1.2em;
}

.utility-note {
	margin-top: 18px;
	padding: 16px 0 16px 18px;
	border-left: 3px solid var(--color-cobalt);
	color: var(--color-muted);
}

.utility-note p:last-child {
	margin-bottom: 0;
}

.utility-link-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
	margin-top: 16px;
}

.utility-link-grid a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 0;
	border-top: 1px solid var(--color-line);
	color: var(--color-ink);
	font-weight: 500;
	text-decoration: none;
}

.utility-link-grid a::after {
	color: var(--color-cobalt);
	content: "↗";
}

.directory-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 42px 0 76px;
}

.directory-card {
	display: flex;
	min-height: 230px;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-surface);
	box-shadow: 0 14px 34px rgb(23 23 23 / 5%);
	text-decoration: none;
	transition: transform 240ms var(--ease-out), box-shadow 240ms ease, border-color 240ms ease;
}

.directory-card span {
	color: var(--color-cobalt);
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
}

.directory-card h2 {
	margin: 18px 0 12px;
	font-size: clamp(1.35rem, 2vw, 1.9rem);
	line-height: 1.2;
	word-break: keep-all;
}

.directory-card p {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.98rem;
	line-height: 1.68;
}

.content-panel {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 28px 0;
	border: 1px solid var(--color-line);
	background: var(--color-line);
}

.content-panel div {
	padding: 18px;
	background: var(--color-surface);
}

.content-panel strong {
	display: block;
	margin-bottom: 4px;
	font-size: 1.08rem;
	font-weight: 600;
}

.content-panel span {
	color: var(--color-muted);
	font-size: 0.92rem;
}

.trust-panel {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 24px 0 34px;
	border: 1px solid var(--color-line);
	background: var(--color-line);
}

.trust-panel div {
	min-width: 0;
	padding: 18px;
	background: color-mix(in srgb, var(--color-surface) 92%, var(--color-cobalt));
}

.trust-panel span {
	display: block;
	margin-bottom: 6px;
	color: var(--color-muted);
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
}

.trust-panel strong,
.trust-panel a {
	color: var(--color-ink);
	font-size: 0.96rem;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.trust-panel a:hover {
	color: var(--color-cobalt);
}

.single-header {
	padding: 24px 0 28px;
	border-bottom: 1px solid var(--color-line);
}

.single-header h1 {
	margin: 10px 0 14px;
	max-width: 1180px;
	font-size: clamp(2.2rem, 4.7vw, 3.55rem);
	line-height: 1.12;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.single-media {
	margin-top: 28px;
	margin-bottom: 28px;
}

.single-media img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	border-radius: var(--radius);
}

.single-media figcaption {
	margin-top: 8px;
	color: var(--color-muted);
	font-size: 0.86rem;
}

.entry-content {
	font-size: 1.04rem;
}

.entry-content > * {
	margin-bottom: 1.35em;
}

.page-article .entry-content > h1:first-child {
	display: none;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2em;
	margin-bottom: 0.65em;
	line-height: 1.25;
}

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

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

.entry-content strong,
.entry-content b {
	font-weight: 600;
}

.entry-content blockquote {
	margin-left: 0;
	padding: 18px 0 18px 22px;
	border-left: 3px solid var(--color-clay);
	color: var(--color-muted);
}

.entry-content a {
	color: var(--color-cobalt);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
	padding: 10px;
	border: 1px solid var(--color-line);
	text-align: left;
	vertical-align: top;
}

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

.single-footer,
.post-navigation {
	width: min(100%, var(--content-width));
	margin: 34px auto 0;
	padding-top: 18px;
	border-top: 1px solid var(--color-line);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-list a {
	padding: 7px 10px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-muted);
	font-size: 0.84rem;
	text-decoration: none;
	transition: transform 180ms var(--ease-out), border-color 180ms ease, color 180ms ease;
}

.post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.post-navigation div {
	padding: 14px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-surface);
}

.pagination {
	margin-top: 28px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination a,
.pagination span {
	display: grid;
	place-items: center;
	min-width: 38px;
	min-height: 38px;
	padding: 0 10px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-surface);
	text-decoration: none;
}

.pagination .current {
	background: var(--color-ink);
	color: #fff;
}

.empty-state {
	width: min(100%, 720px);
	margin: 36px auto;
	padding: 34px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-surface);
	text-align: center;
}

.empty-state h1,
.empty-state h2 {
	margin-bottom: 10px;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.site-footer {
	padding: 42px 0 28px;
	border-top: 1px solid var(--color-ink);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
	gap: 28px;
	margin-bottom: 28px;
}

.footer-title {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 2rem;
	font-weight: 500;
	line-height: 1;
}

	.footer-grid p {
		max-width: 540px;
		margin: 0;
		color: var(--color-muted);
	}

@keyframes artnori-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 14px, 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.article-section,
	.category-section,
	.site-footer {
		animation: artnori-rise 520ms var(--ease-out) both;
	}

	.article-section {
		animation-delay: 70ms;
	}

	.category-section {
		animation-delay: 110ms;
	}

	.site-footer {
		animation-delay: 130ms;
	}

	.article-grid .article-card,
	.category-list a {
		animation: artnori-rise 520ms var(--ease-out) backwards;
	}

	.article-grid .article-card:nth-child(2),
	.category-list a:nth-child(2) {
		animation-delay: 60ms;
	}

	.article-grid .article-card:nth-child(3),
	.category-list a:nth-child(3) {
		animation-delay: 105ms;
	}

	.article-grid .article-card:nth-child(4),
	.category-list a:nth-child(4) {
		animation-delay: 150ms;
	}
}

@media (hover: hover) and (pointer: fine) {
	.site-title:hover {
		transform: translate3d(2px, 0, 0);
	}

	.search-form button:hover {
		background: #252525;
		box-shadow: 0 12px 28px rgb(23 23 23 / 16%);
		transform: translate3d(0, -1px, 0);
	}

	.search-form button:active {
		transform: translate3d(0, 0, 0);
	}

	.article-card:hover {
		border-color: rgb(44 102 89 / 34%);
		box-shadow: var(--shadow-lift);
		transform: translate3d(0, -5px, 0);
	}

	.article-card:focus-within {
		border-color: rgb(36 92 152 / 34%);
		box-shadow: var(--shadow-lift);
		transform: translate3d(0, -4px, 0);
	}

	.article-card:hover::before,
	.article-card:focus-within::before {
		opacity: 1;
		transform: scaleX(1);
	}

	.article-card:hover .article-image,
	.article-card:focus-within .article-image {
		filter: saturate(1.05);
		transform: scale(1.025);
	}

	.article-card:hover .category-badge {
		color: var(--color-cobalt);
	}

	.rail-item:hover {
		border-color: rgb(36 92 152 / 24%);
		transform: translate3d(5px, 0, 0);
	}

	.category-list a:hover {
		border-color: rgb(36 92 152 / 28%);
		box-shadow: 0 20px 42px rgb(23 23 23 / 9%);
		transform: translate3d(0, -3px, 0);
	}

	.tag-list a:hover {
		border-color: var(--color-cobalt);
		color: var(--color-cobalt);
		transform: translate3d(0, -1px, 0);
	}
}

@media (max-width: 980px) {
	.brand-row,
	.issue-header,
	.archive-header,
	.section-heading,
	.lead-layout,
	.article-card--feature,
	.utility-hero,
	.utility-layout,
	.utility-section,
	.directory-grid,
	.content-panel,
	.trust-panel,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.utility-hero,
	.utility-layout {
		gap: 26px;
	}

	.utility-index {
		position: static;
	}

	.utility-link-grid {
		grid-template-columns: 1fr;
	}

	.article-card--feature .article-image {
		min-height: 260px;
		aspect-ratio: 16 / 10;
	}

	.article-grid,
	.category-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.site-shell {
		width: min(100% - 22px, var(--site-width));
	}

	.topline {
		display: grid;
		gap: 4px;
	}

	.site-header {
		padding-top: 14px;
	}

	.brand-row {
		gap: 14px;
		padding: 18px 0 14px;
	}

	.search-form {
		display: flex;
	}

	.search-form button {
		flex: 0 0 58px;
		width: 58px;
		padding: 0;
	}

	.menu {
		flex-wrap: wrap;
		width: 100%;
		gap: 4px 14px;
		padding-bottom: 2px;
	}

	.site-main {
		padding-top: 18px;
	}

	.lead-layout {
		padding-top: 18px;
	}

	.issue-header {
		gap: 14px;
		padding: 12px 0 16px;
	}

	.issue-header h1 {
		font-size: 1.6rem;
	}

	.issue-summary {
		font-size: 0.96rem;
	}

	.article-grid,
	.category-list,
	.post-navigation {
		grid-template-columns: 1fr;
	}

	.article-card--feature {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.article-card--feature .article-media {
		order: 2;
		min-height: 160px;
	}

	.article-card--feature .article-card__body {
		order: 1;
	}

	.article-card__body,
	.article-card--feature .article-card__body {
		padding: 18px;
	}

	.article-card--standard .article-card__body {
		display: flex;
		height: auto;
		gap: 10px;
	}

	.article-card--standard .article-title,
	.article-card--standard p {
		min-height: 0;
	}

	.article-card--feature .article-image {
		min-height: 180px;
		aspect-ratio: 16 / 9;
	}

	.issue-summary {
		gap: 4px 10px;
		justify-items: start;
		justify-content: flex-start;
		text-align: left;
	}

	.issue-summary p {
		white-space: normal;
	}

	.single-header {
		padding-top: 10px;
	}

	.single-header h1 {
		font-size: clamp(2rem, 10vw, 2.7rem);
		line-height: 1.14;
	}

	.utility-hero {
		padding: 30px 0 26px;
	}

	.utility-hero h1 {
		font-size: clamp(2.45rem, 12vw, 4.2rem);
	}

	.utility-layout {
		padding: 28px 0 54px;
	}

	.utility-section {
		gap: 14px;
		padding: 26px 0 30px;
	}

	.utility-section p,
	.utility-section li {
		font-size: 1rem;
	}

	.empty-state {
		padding: 24px 18px;
	}
}

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

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