/* ==========================================================================
   mastyra's Detective Agency — agency.css
   A custom design inspired by Katrielle Layton's office,
   vintage case files, and storybook detective fiction.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables & Reset
   -------------------------------------------------------------------------- */

:root {
	/* Color palette — pulled from Katrielle's wardrobe & office */
	--cream: #fef6dd;
	--cream-warm: #fbecc4;
	--paper: #f5e8c8;
	--paper-aged: #e8d39a;
	--ink: #2a1f17;
	--ink-soft: #4a3a2a;

	--katrielle-red: #c8423b;
	--katrielle-red-dark: #a23029;
	--hat-yellow: #f0d878;
	--mystery-gold: #b59543;

	--office-teal: #4a9d96;
	--office-teal-dark: #2f6b66;
	--office-floor: #d9893a;

	/* Type */
	--font-display: "Abril Fatface", "Times New Roman", serif;
	--font-serif: "Fraunces", "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, sans-serif;
	--font-stamp: "Special Elite", "Courier New", monospace;

	/* Layout */
	--max-w: 760px;
	--radius-card: 6px;
	--radius-soft: 10px;

	/* Shadow */
	--shadow-card: 0 18px 60px -20px rgba(20, 14, 8, 0.55), 0 6px 18px -8px rgba(20, 14, 8, 0.35);
	--shadow-soft: 0 4px 14px -4px rgba(20, 14, 8, 0.3);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: #2a1f17;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--katrielle-red);
	text-decoration: none;
	border-bottom: 1px solid rgba(200, 66, 59, 0.3);
	transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover {
	color: var(--katrielle-red-dark);
	border-bottom-color: var(--katrielle-red-dark);
}

button {
	font-family: inherit;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
}

/* --------------------------------------------------------------------------
   2. Background layer (Katrielle's office)
   -------------------------------------------------------------------------- */

.bg-layer {
	position: fixed;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	/* Filter on the static container so no animated layer carries a filter */
	filter: saturate(1.05) brightness(0.92);
}

.bg-image {
	position: absolute;
	inset: 0;
	background-image: url("../../images/bg.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	/* Static — no animation. Drift caused jitter on macOS Safari. */
}

.bg-vignette {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at center, rgba(42, 31, 23, 0) 0%, rgba(42, 31, 23, 0.45) 70%, rgba(42, 31, 23, 0.7) 100%),
		linear-gradient(to bottom, rgba(42, 31, 23, 0.25) 0%, rgba(42, 31, 23, 0.1) 30%, rgba(42, 31, 23, 0.4) 100%);
}

/* Subtle paper grain layer over background */
.bg-paper {
	position: absolute;
	inset: 0;
	opacity: 0.18;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0.4 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

/* --------------------------------------------------------------------------
   3. Decorative scattered elements
   -------------------------------------------------------------------------- */

.decor {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}

.decor-glass,
.decor-puzzle,
.decor-question {
	position: absolute;
	color: var(--cream);
	opacity: 0.07;
}

.decor-glass-1 {
	top: 8%;
	left: 4%;
	width: 110px;
	transform: rotate(-15deg);
}
.decor-glass-2 {
	bottom: 12%;
	right: 5%;
	width: 90px;
	transform: rotate(28deg);
}
.decor-puzzle-1 {
	top: 30%;
	right: 6%;
	width: 70px;
	transform: rotate(22deg);
	color: var(--hat-yellow);
	opacity: 0.09;
}
.decor-puzzle-2 {
	bottom: 35%;
	left: 5%;
	width: 60px;
	transform: rotate(-18deg);
	color: var(--katrielle-red);
	opacity: 0.1;
}
.decor-question-1 {
	top: 60%;
	right: 12%;
	width: 50px;
	color: var(--cream);
	opacity: 0.08;
	transform: rotate(12deg);
}

/* --------------------------------------------------------------------------
   4. Wrapper & general layout
   -------------------------------------------------------------------------- */

.wrapper {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 56px 24px 80px;
	position: relative;
	z-index: 1;
}

/* --------------------------------------------------------------------------
   5. Hero / Header
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	margin-bottom: 56px;
	animation: heroIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes heroIn {
	from { opacity: 0; transform: translateY(-12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.hero-card {
	position: relative;
	background:
		linear-gradient(140deg, var(--cream) 0%, var(--cream-warm) 100%);
	border-radius: var(--radius-card);
	padding: 60px 44px 44px;
	text-align: center;
	box-shadow: var(--shadow-card);
	border: 1px solid rgba(200, 66, 59, 0.15);
	overflow: hidden;
}

/* paper texture inside hero */
.hero-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' seed='5'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0 0.15 0 0 0 0.18 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
	mix-blend-mode: multiply;
	opacity: 0.5;
	pointer-events: none;
}

/* decorative double-rule edge */
.hero-card::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(200, 66, 59, 0.25);
	border-radius: 4px;
	pointer-events: none;
}

/* paper-pin decoration in corners */
.hero-pin {
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ff6b6b 0%, #c8423b 60%, #6b1a16 100%);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset -1px -2px 2px rgba(0, 0, 0, 0.3);
	z-index: 4;
}
.hero-pin-tl { top: 18px; left: 18px; }
.hero-pin-tr { top: 18px; right: 18px; }

/* CASE No. stamp */
.hero-stamp {
	position: absolute;
	top: 24px;
	right: 50%;
	transform: translateX(50%) rotate(-3deg);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	font-family: var(--font-stamp);
	font-size: 10px;
	letter-spacing: 0.18em;
	color: rgba(200, 66, 59, 0.55);
	border: 2px double rgba(200, 66, 59, 0.55);
	padding: 6px 16px;
	border-radius: 3px;
	z-index: 3;
	pointer-events: none;
	display: none; /* hidden — emblem replaces it visually */
}

.hero-emblem {
	width: 92px;
	height: 92px;
	margin: 0 auto 14px;
	position: relative;
	z-index: 2;
	animation: emblemFloat 5s ease-in-out infinite;
	filter: drop-shadow(0 4px 8px rgba(200, 66, 59, 0.25));
}
.hero-emblem img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

@keyframes emblemFloat {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-4px); }
}

.hero-eyebrow {
	position: relative;
	z-index: 2;
	margin: 0 0 8px;
	font-family: var(--font-stamp);
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--katrielle-red);
}

.hero-title {
	position: relative;
	z-index: 2;
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-family: var(--font-serif);
	font-weight: 900;
	line-height: 1;
	color: var(--ink);
}

.hero-title-top {
	font-size: clamp(20px, 4vw, 28px);
	font-style: italic;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--katrielle-red);
	font-family: var(--font-serif);
}

.hero-title-bottom {
	font-size: clamp(40px, 8.5vw, 68px);
	letter-spacing: 0;
	font-family: var(--font-display);
	font-weight: 400; /* Abril Fatface only ships Regular */
	text-shadow: 1px 1px 0 rgba(200, 66, 59, 0.08);
}

.hero-tag {
	position: relative;
	z-index: 2;
	max-width: 460px;
	margin: 0 auto 28px;
	font-size: 15px;
	color: var(--ink-soft);
	line-height: 1.5;
}

.hero-quote {
	position: relative;
	z-index: 2;
	margin: 0 auto 30px;
	max-width: 480px;
	padding: 20px 24px;
	background: rgba(255, 255, 255, 0.5);
	border-left: 3px solid var(--katrielle-red);
	border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 16px;
	color: var(--ink);
	text-align: left;
}
.hero-quote-mark {
	font-size: 38px;
	line-height: 0;
	color: var(--katrielle-red);
	margin-right: 4px;
	vertical-align: -10px;
	font-weight: 700;
}
.hero-quote cite {
	display: block;
	margin-top: 8px;
	font-style: normal;
	font-size: 12px;
	font-family: var(--font-stamp);
	letter-spacing: 0.1em;
	color: var(--ink-soft);
}

/* Socials */
.socials {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.social {
	--size: 46px;
	width: var(--size);
	height: var(--size);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ink);
	color: var(--cream);
	border: none;
	border-bottom: none;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.4),
				background 0.25s ease,
				box-shadow 0.25s ease;
	box-shadow: 0 4px 10px -2px rgba(20, 14, 8, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
	position: relative;
}
.social svg {
	width: 22px;
	height: 22px;
}
.social::before {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: var(--ink);
	color: var(--cream);
	font-family: var(--font-stamp);
	font-size: 10px;
	letter-spacing: 0.1em;
	padding: 4px 9px;
	border-radius: 3px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.social::after {
	content: "";
	position: absolute;
	bottom: calc(100% + 4px);
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: var(--ink);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.social:hover {
	transform: translateY(-3px) rotate(-4deg);
	background: var(--katrielle-red);
	box-shadow: 0 8px 18px -4px rgba(200, 66, 59, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}
.social:hover::before,
.social:hover::after {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
.social:nth-child(2):hover { background: #1b2838; } /* Steam blue */
.social:nth-child(3):hover { background: var(--mystery-gold); }
.social:nth-child(4):hover { background: var(--katrielle-red); }
.social:nth-child(1):hover { background: #24292f; } /* GitHub */

/* --------------------------------------------------------------------------
   6. Navigation (sticky pill)
   -------------------------------------------------------------------------- */

.nav {
	position: sticky;
	top: 16px;
	z-index: 20;
	display: flex;
	justify-content: center;
	gap: 4px;
	margin: 0 auto 40px;
	max-width: max-content;
	padding: 6px;
	background: rgba(254, 246, 221, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 999px;
	border: 1px solid rgba(200, 66, 59, 0.18);
	box-shadow: 0 8px 24px -8px rgba(20, 14, 8, 0.5);
	flex-wrap: wrap;
}

.nav-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	font-family: var(--font-body);
	letter-spacing: 0.02em;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.nav-item svg {
	width: 14px;
	height: 14px;
	stroke-width: 2.4;
}
.nav-item:hover {
	background: var(--katrielle-red);
	color: var(--cream);
	transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   7. Articles (case file folders)
   -------------------------------------------------------------------------- */

.main {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.article {
	position: relative;
	scroll-margin-top: 90px;
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.article.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Folder tab */
.folder-tab {
	display: inline-block;
	margin: 0 0 -8px 32px;
	padding: 7px 22px 14px;
	background: linear-gradient(180deg, var(--paper-aged) 0%, var(--paper) 100%);
	border-radius: 8px 8px 0 0;
	border: 1px solid rgba(74, 58, 42, 0.18);
	border-bottom: none;
	font-family: var(--font-stamp);
	font-size: 11px;
	letter-spacing: 0.22em;
	color: var(--ink-soft);
	position: relative;
	z-index: 2;
	transform: rotate(-0.6deg);
}

.article-inner {
	position: relative;
	background:
		linear-gradient(140deg, var(--cream) 0%, var(--cream-warm) 100%);
	border-radius: 4px var(--radius-card) var(--radius-card) var(--radius-card);
	padding: 44px 44px 48px;
	box-shadow: var(--shadow-card);
	border: 1px solid rgba(74, 58, 42, 0.12);
	overflow: hidden;
}

/* paper texture */
.article-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' seed='9'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0 0.15 0 0 0 0.15 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
	mix-blend-mode: multiply;
	opacity: 0.55;
	pointer-events: none;
}

/* horizontal lined paper feel */
.article-inner::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to bottom, transparent 0, transparent calc(2em - 1px), rgba(74, 58, 42, 0.06) calc(2em - 1px), rgba(74, 58, 42, 0.06) 2em);
	background-size: 100% 2em;
	pointer-events: none;
	opacity: 0.5;
}

.article > * {
	position: relative;
}

.article-header {
	margin-bottom: 24px;
	position: relative;
	z-index: 1;
}

.article-title {
	font-family: var(--font-display);
	font-weight: 400; /* Abril is single-weight */
	font-size: clamp(30px, 5.4vw, 42px);
	line-height: 1.05;
	letter-spacing: 0;
	color: var(--ink);
	margin: 0 0 14px;
}

.article-rule {
	height: 3px;
	width: 64px;
	background: var(--katrielle-red);
	border-radius: 2px;
	position: relative;
}
.article-rule::after {
	content: "";
	position: absolute;
	left: 70px;
	top: 1px;
	width: 28px;
	height: 1px;
	background: rgba(200, 66, 59, 0.4);
}

.article-inner p {
	position: relative;
	z-index: 1;
	margin: 0 0 16px;
	font-size: 15.5px;
	color: var(--ink);
	line-height: 1.72;
}

.article-inner p.lead {
	font-size: 17px;
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	color: var(--ink-soft);
	border-left: 2px solid var(--mystery-gold);
	padding-left: 14px;
	margin-bottom: 22px;
}

.article-inner p strong {
	color: var(--katrielle-red-dark);
	font-weight: 700;
}

/* Figures */
.article-figure {
	position: relative;
	z-index: 1;
	margin: 0 0 24px;
	border-radius: var(--radius-soft);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	border: 4px solid var(--cream);
	outline: 1px solid rgba(74, 58, 42, 0.2);
	transform: rotate(-0.4deg);
	transition: transform 0.4s ease;
}
.article-figure:hover {
	transform: rotate(0deg) scale(1.01);
}
.article-figure img {
	display: block;
	width: 100%;
}
.article-figure figcaption {
	font-family: var(--font-stamp);
	font-size: 11px;
	letter-spacing: 0.1em;
	color: var(--ink-soft);
	padding: 10px 14px;
	background: var(--cream);
	border-top: 1px dashed rgba(74, 58, 42, 0.3);
	text-align: center;
}
.article-figure--full {
	transform: rotate(0);
}
.article-figure--full:hover {
	transform: scale(1.005);
}
.article-figure--logo {
	max-width: 200px;
	margin: 0 auto 20px;
	transform: rotate(-2deg);
}
.article-figure--logo:hover {
	transform: rotate(0);
}
.article-figure--text-logo {
	max-width: 420px;
	margin: 0 auto 20px;
	transform: rotate(-1deg);
	background: transparent;
}
.article-figure--text-logo:hover {
	transform: rotate(0);
}

/* Skill badges */
.badges {
	position: relative;
	z-index: 1;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.badges li {
	font-family: var(--font-stamp);
	font-size: 11px;
	letter-spacing: 0.12em;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(200, 66, 59, 0.3);
	border-radius: 999px;
	color: var(--katrielle-red-dark);
	text-transform: uppercase;
}

/* Case sub-titles */
.case-title {
	position: relative;
	z-index: 1;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 24px;
	color: var(--ink);
	margin: 26px 0 14px;
	letter-spacing: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}
.case-title::before {
	content: "";
	width: 8px;
	height: 8px;
	background: var(--katrielle-red);
	border-radius: 2px;
	transform: rotate(45deg);
	flex-shrink: 0;
}

/* Evidence section (project links) */
.evidence {
	position: relative;
	z-index: 1;
	margin-top: 28px;
	padding: 22px 24px;
	background: rgba(255, 255, 255, 0.35);
	border-radius: var(--radius-soft);
	border: 1px dashed rgba(74, 58, 42, 0.3);
}

.evidence-title {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: 15px;
	color: var(--ink);
	margin: 0 0 12px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	letter-spacing: 0.01em;
	line-height: 1.35;
}
.evidence-title:not(:first-child) {
	margin-top: 22px;
}
.evidence-title svg {
	width: 16px;
	height: 16px;
	color: var(--katrielle-red);
	flex-shrink: 0;
	margin-top: 3px;
}
.evidence-meta {
	font-family: var(--font-stamp);
	font-size: 10px;
	letter-spacing: 0.1em;
	color: var(--ink-soft);
	background: rgba(200, 66, 59, 0.12);
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: auto;
	font-weight: 400;
	text-transform: uppercase;
	flex-shrink: 0;
	margin-top: 2px;
}

.evidence-links {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.evidence-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 16px;
	background: var(--cream);
	border: 1px solid rgba(74, 58, 42, 0.18);
	border-bottom: 1px solid rgba(74, 58, 42, 0.18);
	border-radius: 6px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
}
.evidence-link:hover {
	background: var(--katrielle-red);
	color: var(--cream);
	border-color: var(--katrielle-red-dark);
	transform: translateX(2px);
	border-bottom-color: var(--katrielle-red-dark);
}
.evidence-link-arrow {
	font-weight: 700;
	transition: transform 0.2s ease;
}
.evidence-link:hover .evidence-link-arrow {
	transform: translateX(4px);
}

/* Credits list */
.credits-list {
	position: relative;
	z-index: 1;
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}
.credits-list li {
	display: grid;
	grid-template-columns: 200px 1fr;
	align-items: center;
	gap: 16px;
	padding: 12px 18px;
	background: rgba(255, 255, 255, 0.45);
	border-left: 3px solid var(--mystery-gold);
	border-radius: 0 6px 6px 0;
}
.credit-role {
	font-family: var(--font-stamp);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.credit-name {
	font-family: var(--font-serif);
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
}
.credit-handle {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	color: var(--ink-soft);
	margin-left: 6px;
}

/* Contact card */
.contact-card {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 36px 28px;
	background: rgba(255, 255, 255, 0.5);
	border: 2px dashed var(--katrielle-red);
	border-radius: var(--radius-soft);
}
.contact-card-icon {
	width: 52px;
	height: 52px;
	color: var(--katrielle-red);
	margin: 0 auto 14px;
}
.contact-label {
	font-family: var(--font-stamp);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin: 0 0 8px !important;
}
.contact-value {
	font-family: var(--font-display);
	font-size: 24px !important;
	font-weight: 400;
	color: var(--ink) !important;
	margin: 0 0 10px !important;
	line-height: 1.3 !important;
}
.contact-value strong {
	color: var(--katrielle-red) !important;
}
.contact-hint {
	font-size: 13px !important;
	color: var(--ink-soft) !important;
	margin: 0 !important;
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

.footer {
	margin-top: 80px;
	text-align: center;
	color: rgba(254, 246, 221, 0.75);
}
.footer-logo {
	width: 36px;
	height: 36px;
	margin: 0 auto 12px;
	display: block;
	opacity: 0.85;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.footer-rule {
	margin: 0 auto 16px;
	width: 60px;
	height: 1px;
	background: rgba(254, 246, 221, 0.4);
	position: relative;
}
.footer-rule::before {
	content: "✦";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: #2a1f17;
	padding: 0 6px;
	font-size: 10px;
	color: var(--hat-yellow);
}
.footer p {
	font-family: var(--font-stamp);
	font-size: 11px;
	letter-spacing: 0.15em;
	margin: 0;
}
.footer-dot {
	margin: 0 8px;
	color: var(--katrielle-red);
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
	.wrapper {
		padding: 32px 16px 60px;
	}
	.hero-card {
		padding: 50px 24px 32px;
	}
	.article-inner {
		padding: 32px 24px 36px;
	}
	.folder-tab {
		margin-left: 16px;
		padding: 6px 16px 12px;
	}
	.credits-list li {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.evidence {
		padding: 18px 16px;
	}
	.evidence-title {
		flex-wrap: wrap;
	}
	.evidence-meta {
		margin-left: 0;
	}
	.nav {
		gap: 2px;
		padding: 4px;
	}
	.nav-item {
		padding: 8px 12px;
		font-size: 12px;
	}
	.nav-item span {
		display: none;
	}
	.nav-item svg {
		width: 16px;
		height: 16px;
	}
	.hero-quote {
		font-size: 15px;
		padding: 16px 18px;
	}
	.social {
		--size: 42px;
	}
	.decor-glass-1, .decor-glass-2, .decor-puzzle-1, .decor-puzzle-2 {
		width: 50px;
	}
}

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