/*
Theme Name: Captionly
Author: Built with Claude
Description: An editorial, lifestyle theme for caption websites. Serif captions on soft cards in a masonry grid, gradient topic headers, moods, a pop-up search with instant results, gentle motion, and automatic light and dark mode.
Version: 4.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: captionly
*/

/* =========================================================
   1. Tokens (light by default, dark from the visitor's device)
   ========================================================= */
:root {
	--bg: #ffffff;
	--card: #ffffff;
	--surface: #f4f4f2;
	--ink: #16151a;
	--muted: #6e6b75;
	--line: #e7e5ea;
	--accent: #3d6fd9;
	--golden: #f6d6a6;
	--coral: #ff7082;
	--blue: #6795f0;
	--overlay: rgba(22, 21, 26, 0.38);
	--serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--shadow: 0 16px 34px -20px rgba(20, 18, 30, 0.38);
	--shadow-lg: 0 40px 80px -30px rgba(20, 18, 30, 0.45);
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--pop: cubic-bezier(0.3, 1.4, 0.5, 1);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111014;
		--card: #1a191f;
		--surface: #1e1d24;
		--ink: #f2f1f5;
		--muted: #9c99a6;
		--line: #2b2932;
		--accent: #8fb0f5;
		--overlay: rgba(6, 5, 9, 0.6);
		--shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.8);
		--shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
		color-scheme: dark;
	}
	.hero-card, .mood:not(.mood--photo), .topic:not(.topic--photo) { filter: brightness(0.93) saturate(0.95); }
}

/* Caption card tones */
.tone-0 { --tile: var(--card); --tile-ink: var(--ink); }
.tone-1 { --tile: #efe6d8; --tile-ink: #2b2418; }
.tone-2 { --tile: #dce5d6; --tile-ink: #1f2a1c; }
.tone-3 { --tile: #f3dcdc; --tile-ink: #3a1f22; }
.tone-4 { --tile: #dde6ee; --tile-ink: #18242f; }
.tone-5 { --tile: #e6e0f5; --tile-ink: #221a3a; }
.tone-6 { --tile: #1c1a22; --tile-ink: #f5f3f8; }
.tone-7 { --tile: #dfe1c4; --tile-ink: #2a2c14; }
/* Dark tones: deep, muted versions so cards never glare at night */
@media (prefers-color-scheme: dark) {
	.tone-1 { --tile: #2a251e; --tile-ink: #f1e6d4; }
	.tone-2 { --tile: #1f2921; --tile-ink: #dde9d6; }
	.tone-3 { --tile: #2f2124; --tile-ink: #f6dcdd; }
	.tone-4 { --tile: #1c2530; --tile-ink: #dbe7f3; }
	.tone-5 { --tile: #25203a; --tile-ink: #e7e0fa; }
	.tone-6 { --tile: #26232f; --tile-ink: #f5f3f8; }
	.tone-7 { --tile: #25271a; --tile-ink: #e5e8c9; }
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--sans); font-size: 16px; line-height: 1.55;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
kbd { font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #ffd9de; color: #16151a; }
html.palette-open { overflow: hidden; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
@media (max-width: 600px) { .wrap { padding: 0 14px; } }
.site-main { overflow-x: hidden; overflow-x: clip; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* =========================================================
   3. Header
   ========================================================= */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-head.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(20, 18, 30, 0.5); }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }
html.js .site-head { animation: head-in 0.7s var(--ease) both; }
@keyframes head-in { from { transform: translateY(-100%); } to { transform: none; } }

.site-head__in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand__svg { display: block; height: 30px; width: auto; }
@media (max-width: 400px) { .brand__svg { height: 25px; } }

.site-nav { flex: 1; display: flex; align-items: center; }
.site-nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { position: relative; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s ease; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.site-nav__list a:hover, .site-nav__list .current-menu-item a { color: var(--ink); }
.site-nav__list a:hover::after, .site-nav__list .current-menu-item a::after { transform: scaleX(1); }

.site-head__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-trigger {
	display: inline-flex; align-items: center; gap: 10px; height: 42px; min-width: 250px; padding: 0 8px 0 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted);
	cursor: pointer; font-size: 15px; text-align: left;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.search-trigger:hover { border-color: var(--ink); background: var(--bg); }
.search-trigger:active { transform: scale(0.98); }
.search-trigger svg { width: 18px; height: 18px; flex-shrink: 0; }
.search-trigger__label { flex: 1; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.icon-btn svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
	.nav-toggle { display: grid; }
	.search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; }
	.search-trigger__label, .search-trigger__key { display: none; }
	.site-nav {
		position: absolute; top: 70px; left: 0; right: 0; display: block;
		background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 22px;
		clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
		transition: clip-path 0.45s var(--ease), opacity 0.3s ease;
	}
	.site-nav[data-open] { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
	.site-nav__list { flex-direction: column; gap: 4px; }
	.site-nav__list a { display: block; padding: 10px 0; font-size: 20px; color: var(--ink); font-family: var(--serif); }
	.site-nav__list a::after { display: none; }
}

/* =========================================================
   4. Search bar, chips, buttons
   ========================================================= */
.searchbar { display: flex; align-items: center; background: var(--surface); border-radius: 999px; padding: 6px; border: 1px solid transparent; transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.3s ease; }
.searchbar:focus-within, .searchbar:hover { border-color: var(--ink); background: var(--bg); box-shadow: var(--shadow); }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; padding: 12px 18px; }
.searchbar input::placeholder { color: var(--muted); }
.searchbar input:focus { outline: none; }
.searchbar button { border: 0; border-radius: 999px; cursor: pointer; background: var(--ink); color: var(--bg); font-weight: 600; padding: 12px 22px; transition: transform 0.2s var(--pop); }
.searchbar button:hover { transform: scale(1.04); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.chips--scroll::-webkit-scrollbar { display: none; }
html.js .chips--scroll.is-overflowing {
	--fade-l: 0px; --fade-r: 56px;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
	cursor: grab;
}
html.js .chips--scroll.is-overflowing.is-scrolled { --fade-l: 56px; }
html.js .chips--scroll.is-overflowing.is-end { --fade-r: 0px; }
html.js .chips--scroll.is-dragging { cursor: grabbing; }
html.js .chips--scroll.is-dragging a { pointer-events: none; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--ink);
	text-decoration: none; font-size: 15px; font-weight: 500;
	transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--pop);
}
.chip:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

.btn {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
	background: var(--bg); color: var(--ink); text-decoration: none;
	font-size: 15px; font-weight: 600; padding: 11px 20px;
	transition: border-color 0.2s ease, transform 0.25s var(--pop), background 0.2s ease;
}
.btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--light { background: #fff; color: #16151a; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* =========================================================
   5. Sections
   ========================================================= */
.block { margin-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.015em; }
.section-link { color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.section-link:hover { color: var(--ink); }

/* =========================================================
   6. Homepage hero with story cards
   ========================================================= */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 8px; }
.hero__title { margin: 0; max-width: 12ch; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
.hero__lede { margin: 20px 0 28px; max-width: 46ch; color: var(--muted); font-size: 18px; }
.hero .searchbar { max-width: 560px; }
.hero .chips { margin-top: 20px; }
html.js .hero__copy > * { animation: blur-rise 0.9s var(--ease) both; }
html.js .hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
html.js .hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
html.js .hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 36px; } .hero__title { max-width: 14ch; } }

.stage { position: relative; height: 580px; }
html.js .stage { animation: pop-in 0.9s 0.2s var(--pop) both; }
.stage__cards { position: absolute; inset: 0 0 70px; }
.story {
	--x: 0px; --r: 0deg; --s: 1;
	position: absolute; left: 50%; top: 50%; width: 260px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden;
	color: #fff; text-decoration: none; background: #222 var(--photo) center / cover no-repeat;
	box-shadow: 0 34px 60px -30px rgba(20, 10, 40, 0.55);
	transform: translate(-50%, -50%) translateX(var(--x)) rotate(var(--r)) scale(var(--s));
	transition: transform 0.9s var(--ease), opacity 0.6s ease, filter 0.6s ease;
}
.story.is-center { z-index: 3; }
.story.is-right { --x: 150px; --r: 6deg; --s: 0.84; z-index: 2; filter: saturate(0.9) blur(0.4px); cursor: pointer; }
.story.is-left { --x: -150px; --r: -6deg; --s: 0.84; z-index: 2; filter: saturate(0.9) blur(0.4px); cursor: pointer; }
.story.is-back { --s: 0.7; opacity: 0; z-index: 1; pointer-events: none; filter: blur(6px); }
.story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 22%, transparent 60%, rgba(0, 0, 0, 0.45)); }
.story--photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.12); }
.story--g0 { background: linear-gradient(160deg, #ff7082, #f4b78f); }
.story--g1 { background: linear-gradient(160deg, #6795f0, #ff7082); }
.story--g2 { background: linear-gradient(160deg, #eeaf8e, #6795f0); }
.story--g0, .story--g1, .story--g2 { background-size: 180% 180%; animation: pan 10s ease-in-out infinite alternate; }
.story__bar { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.story__bar i { display: block; width: 0; height: 100%; background: #fff; }
.story.is-center .story__bar i { animation: bar 4.5s linear forwards; }
@keyframes bar { to { width: 100%; } }
.story__head { position: absolute; z-index: 2; top: 24px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.story__head span:last-child { opacity: 0.75; }
.story__avatar { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#f6d6a6, #ff7082, #6795f0, #f6d6a6); box-shadow: inset 0 0 0 2px #fff; }
.story__caption { position: absolute; z-index: 2; left: 18px; right: 18px; top: 50%; transform: translateY(-50%); text-align: center; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.24; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); text-wrap: balance; }
.story__foot { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 10px; }
.story__reply { flex: 1; border: 1.5px solid rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 8px 14px; font-size: 13px; opacity: 0.9; }
.story__foot svg { width: 26px; height: 26px; }
.stage__action { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 6; }

.sticker { --rot: 0deg; position: absolute; z-index: 5; left: 50%; pointer-events: none; animation: bob 5s ease-in-out infinite; }
.sticker--emoji { --rot: -8deg; top: 2%; margin-left: -225px; background: #fff; color: #000; border-radius: 999px; padding: 8px 14px; font-size: 26px; line-height: 1; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.35); }
.sticker--emoji.is-swapping { animation: swap 0.5s var(--pop), bob 5s ease-in-out infinite; }
.sticker--heart { --rot: -14deg; top: 60%; margin-left: -262px; width: 72px; filter: drop-shadow(0 12px 16px rgba(255, 112, 130, 0.4)); animation-delay: -1.2s; }
.sticker--heart svg { display: block; width: 100%; height: auto; }
.sticker--star { --rot: 6deg; top: 20%; margin-left: 175px; display: flex; align-items: center; gap: 2px; background: #6795f0; border-radius: 999px; padding: 8px 12px; box-shadow: 0 12px 24px -12px rgba(103, 149, 240, 0.8); animation-delay: -2.4s; }
.sticker--star svg { width: 20px; height: 20px; }
.sticker--avatar { top: 58%; margin-left: 180px; width: 90px; height: 90px; border-radius: 50%; padding: 4px; background: conic-gradient(#f6d6a6, #ff7082, #6795f0, #f6d6a6); animation-delay: -3.3s; }
.sticker--avatar span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); background-image: var(--photo, linear-gradient(160deg, #f6d6a6, #ff7082)); background-size: cover; background-position: center; }
@media (max-width: 900px) { .stage { height: 540px; } }
@media (max-width: 520px) {
	.stage { height: 470px; }
	.story { width: 200px; border-radius: 22px; }
	.story.is-right { --x: 100px; } .story.is-left { --x: -100px; }
	.story__caption { font-size: 18px; left: 14px; right: 14px; }
	.sticker--emoji { margin-left: -160px; font-size: 20px; }
	.sticker--heart { margin-left: -180px; width: 54px; }
	.sticker--star { margin-left: 110px; }
	.sticker--avatar { margin-left: 115px; width: 66px; height: 66px; }
}

/* =========================================================
   7. Drifting topic rows
   ========================================================= */
.marquee-block { margin-top: 56px; }
.marquee-block .section-head { margin-bottom: 14px; }
.marquee {
	--speed: 70s;
	display: flex; overflow: hidden; padding: 6px 0;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee--slow { --speed: 95s; }
.marquee__track { display: flex; flex-shrink: 0; gap: 12px; list-style: none; margin: 0; padding: 0 6px; animation: drift var(--speed) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee__chip {
	display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
	padding: 12px 20px 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
	color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500;
	transition: transform 0.3s var(--pop), box-shadow 0.3s ease, border-color 0.2s ease;
}
.marquee__chip:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow); border-color: var(--ink); }
.marquee__emoji { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); font-size: 17px; }

/* =========================================================
   8. Gradient topic header (every topic, mood and listing page)
   ========================================================= */
.topic-head { padding-top: 28px; margin-bottom: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.hero-card {
	position: relative; overflow: hidden; isolation: isolate;
	padding: 56px 56px 48px; border-radius: 32px;
	color: var(--hero-ink, #3a2418);
	background: linear-gradient(110deg, var(--g1, #f6d6a6), var(--g2, #eeaf8e), var(--g1, #f6d6a6));
	background-size: 220% 100%;
	animation: pan 16s ease-in-out infinite alternate;
}
.hero-card::after {
	content: ""; position: absolute; z-index: -1; right: -8%; top: -30%; width: 46%; aspect-ratio: 1;
	border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.45), transparent);
	animation: float-glow 12s ease-in-out infinite alternate;
}
.hero-card__emoji { display: inline-block; font-size: 46px; line-height: 1; }
.hero-card__title { margin: 18px 0 0; max-width: 18ch; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.02em; }
.hero-card__blurb { margin: 14px 0 0; max-width: 58ch; font-size: 19px; line-height: 1.55; }
.hero-card__meta { margin: 14px 0 0; font-weight: 600; font-size: 16px; opacity: 0.78; }
.hero-card__btn { margin-top: 22px; }
.hero-chips { margin-top: 18px; }
html.js .hero-card__emoji { animation: pop-in 0.8s 0.1s var(--pop) both, bob-small 6s 1s ease-in-out infinite; }
html.js .hero-card__title { animation: blur-rise 0.9s 0.15s var(--ease) both; }
html.js .hero-card__blurb, html.js .hero-card__meta, html.js .hero-card > .topic-filter, html.js .hero-card__btn { animation: blur-rise 0.9s 0.28s var(--ease) both; }
html.js .hero-chips li { animation: slide-left 0.7s var(--ease) both; }
html.js .hero-chips li:nth-child(2) { animation-delay: 0.05s; } html.js .hero-chips li:nth-child(3) { animation-delay: 0.1s; }
html.js .hero-chips li:nth-child(4) { animation-delay: 0.15s; } html.js .hero-chips li:nth-child(5) { animation-delay: 0.2s; }
html.js .hero-chips li:nth-child(6) { animation-delay: 0.25s; } html.js .hero-chips li:nth-child(n+7) { animation-delay: 0.3s; }
@media (max-width: 600px) {
	.topic-head { padding-top: 18px; }
	.hero-card { padding: 36px 24px 30px; border-radius: 24px; }
	.hero-card__emoji { font-size: 38px; }
	.hero-card__blurb { font-size: 17px; }
}

/* =========================================================
   9. Caption cards and grid
   ========================================================= */
.grid { columns: 250px 5; column-gap: 14px; }
.grid > .cap { margin: 0 0 14px; break-inside: avoid; }
.cap {
	position: relative; display: inline-flex; flex-direction: column; gap: 18px; width: 100%; vertical-align: top;
	background: var(--tile); color: var(--tile-ink); border-radius: 18px; padding: 24px 20px 14px;
	transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.tone-0.cap { box-shadow: inset 0 0 0 1px var(--line); }
.tone-6.cap { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tone-0.cap:hover { box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.cap__body { display: block; color: inherit; text-decoration: none; position: relative; z-index: 1; }
.cap__text { margin: 0; font-family: var(--serif); font-weight: 450; font-size: var(--cap-size); line-height: 1.24; letter-spacing: -0.005em; text-wrap: pretty; overflow-wrap: anywhere; }
.is-short { --cap-size: 29px; } .is-medium { --cap-size: 23px; } .is-long { --cap-size: 19px; }
.is-long .cap__text { line-height: 1.38; }
.cap__bar { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.cap__topic { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 13px; font-weight: 500; color: inherit; opacity: 0.75; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s ease; }
.cap__topic:hover { opacity: 1; }
.cap__actions { display: flex; gap: 6px; margin-left: auto; }
.cap__btn {
	display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
	border: 0; border-radius: 999px; cursor: pointer; color: inherit; font-size: 13px; font-weight: 600;
	background: rgba(0, 0, 0, 0.06);
	background: color-mix(in srgb, var(--tile-ink) 9%, transparent);
	transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--pop);
}
.cap__btn:hover { background: var(--tile-ink); color: var(--tile); }
.cap__btn:active { transform: scale(0.92); }
.cap__btn svg { width: 15px; height: 15px; }
.cap__btn--icon { width: 34px; padding: 0; justify-content: center; }
.is-copied { animation: copied 0.5s var(--pop); }
@keyframes copied { 0% { transform: scale(0.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.cap--photo { --tile: #16151a; --tile-ink: #ffffff; justify-content: flex-end; min-height: 320px; overflow: hidden; background: #16151a var(--photo) center / cover no-repeat; padding: 22px 18px 14px; }
.cap--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 14, 0.82) 0%, rgba(10, 9, 14, 0.35) 55%, rgba(10, 9, 14, 0.05) 100%); }
.cap--photo .cap__btn { background: rgba(255, 255, 255, 0.16); }
.cap--photo .cap__btn:hover { background: #fff; color: #16151a; }
@media (max-width: 560px) {
	.grid { columns: 2; column-gap: 10px; }
	.grid > .cap { margin-bottom: 10px; padding: 18px 14px 10px; gap: 14px; border-radius: 14px; }
	.is-short { --cap-size: 22px; } .is-medium { --cap-size: 19px; } .is-long { --cap-size: 16px; }
	.cap__btn:not(.cap__btn--icon) .lbl { display: none; }
	.cap__btn { width: 32px; height: 32px; padding: 0; justify-content: center; }
	.cap__topic { display: none; }
	.cap--photo { min-height: 240px; }
}

/* =========================================================
   10. Moods, topic tiles, caption of the day, photo wall
   ========================================================= */
.moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); grid-auto-rows: 116px; grid-auto-flow: dense; gap: 14px; }
.mood {
	position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
	padding: 18px 18px 20px; border-radius: 22px;
	color: var(--hero-ink); text-decoration: none;
	background: linear-gradient(150deg, var(--g1), var(--g2)); background-size: 170% 170%;
	animation: pan 14s ease-in-out infinite alternate;
	transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.mood--h0 { grid-row: span 2; } .mood--h1 { grid-row: span 3; } .mood--h2 { grid-row: span 2; }
.mood:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mood > * { position: relative; z-index: 2; }
.mood__emoji { font-size: 30px; line-height: 1; margin-bottom: auto; transition: transform 0.4s var(--pop); }
.mood:hover .mood__emoji { transform: scale(1.18) rotate(-8deg); }
.mood__label { margin-top: 24px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; }
.mood__blurb { margin-top: 6px; font-size: 14px; opacity: 0.85; }
.mood--photo { color: #fff; background: #222; animation: none; }
.mood--photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--photo) center / cover no-repeat; transition: transform 0.8s var(--ease); }
.mood--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 9, 14, 0.78), rgba(10, 9, 14, 0.05) 65%); }
.mood--photo:hover::after { transform: scale(1.06); }
@media (max-width: 560px) { .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 96px; gap: 10px; } .mood__label { font-size: 24px; } }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.topic {
	position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 170px; padding: 18px; border-radius: 20px; overflow: hidden; isolation: isolate;
	color: var(--hero-ink); text-decoration: none;
	background: linear-gradient(150deg, var(--g1), var(--g2));
	transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic__emoji { font-size: 28px; line-height: 1; margin-bottom: auto; transition: transform 0.4s var(--pop); }
.topic:hover .topic__emoji { transform: scale(1.2) rotate(8deg); }
.topic__name { margin-top: 22px; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.05; letter-spacing: -0.01em; }
.topic__count { font-size: 13px; opacity: 0.75; }
.topic--photo { color: #fff; background: #222 var(--photo) center / cover no-repeat; }
.topic--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 9, 14, 0.75), rgba(10, 9, 14, 0.05) 70%); }

.daily { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.daily__label { margin: 0; font-weight: 600; font-size: 15px; }
.daily__date { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.daily__quote { margin: 0; font-family: var(--serif); font-weight: 450; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.18; letter-spacing: -0.01em; max-width: 26ch; }
.daily__quote a { text-decoration: none; }
.daily__meta { margin: 16px 0 0; color: var(--muted); }
.daily__meta a { color: var(--ink); }
@media (max-width: 760px) { .daily { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; } }

.band { position: relative; height: 560px; overflow: hidden; border-radius: 28px; background: #111; }
.band__wall { position: absolute; inset: -40px -20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.band__col { display: flex; flex-direction: column; gap: 14px; animation: wall 70s linear infinite; }
.band__col--down { animation-direction: reverse; }
@keyframes wall { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.band__pic { display: block; flex-shrink: 0; border-radius: 20px; background: #333 var(--photo) center / cover no-repeat; }
.band__pic--0 { height: 250px; } .band__pic--1 { height: 330px; } .band__pic--2 { height: 210px; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(12, 10, 16, 0.5); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
.band__copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; }
.band__title { margin: 0; max-width: 14ch; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.02em; }
.band__lede { margin: 18px 0 26px; font-size: 18px; opacity: 0.9; max-width: 42ch; }
@media (max-width: 700px) { .band { height: 480px; } .band__wall { grid-template-columns: repeat(3, 1fr); } .band__col:nth-child(4) { display: none; } }

/* =========================================================
   11. Single caption page
   ========================================================= */
.caption-page { padding-top: 40px; }
.caption-page .cap { display: flex; padding: 56px 48px 48px; border-radius: 26px; }
.caption-page .cap:hover { transform: none; }
.caption-page .cap__text { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.16; }
.caption-page .is-long .cap__text { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.3; }
.caption-page .cap--photo { min-height: 460px; }
html.js .caption-page > .cap { animation: pop-in 0.8s var(--pop) both; }
.caption-page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--muted); }
.caption-page .chips { margin-top: 12px; }
@media (max-width: 600px) { .caption-page .cap { padding: 36px 24px 30px; } }

.post-preview { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 32px; align-items: center; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.post-preview__copy p { margin: 12px 0 0; color: var(--muted); font-size: 17px; max-width: 34ch; }
.ig { width: 100%; max-width: 380px; justify-self: center; overflow: hidden; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; }
.ig__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ig__avatar { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#f6d6a6, #ff7082, #6795f0, #f6d6a6); box-shadow: inset 0 0 0 2px var(--card); }
.ig__dots { margin-left: auto; color: var(--muted); letter-spacing: 1px; font-size: 12px; }
.ig__photo { aspect-ratio: 4 / 5; background-size: cover; background-position: center; }
.ig__photo--img { background-image: var(--photo); }
.ig__icons { display: flex; gap: 14px; padding: 12px 14px 0; color: var(--ink); }
.ig__icons svg { width: 25px; height: 25px; }
.ig__likes { margin: 8px 14px 0; font-weight: 600; }
.ig__caption { margin: 4px 14px 16px; line-height: 1.45; }
html.js .ig.is-in .ig__icons svg:first-child { animation: pop-in 0.6s 0.4s var(--pop) both; }
@media (max-width: 700px) { .post-preview { grid-template-columns: 1fr; } }

/* =========================================================
   12. A–Z topics page
   ========================================================= */
.topic-filter { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 24px; padding: 6px 8px 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: #16151a; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.4); transition: box-shadow 0.3s ease, background 0.2s ease; }
.topic-filter:focus-within { background: #fff; box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.45); }
.topic-filter svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.6; }
.topic-filter input { flex: 1; min-width: 0; border: 0; background: transparent; color: #16151a; font: inherit; font-size: 17px; padding: 10px 4px; }
.topic-filter input:focus { outline: none; }
.az-jump { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 32px; padding: 0; list-style: none; }
.az-jump a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); text-decoration: none; font-weight: 600; transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--pop), opacity 0.3s ease; }
.az-jump a:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.az-jump a.is-dim { opacity: 0.25; pointer-events: none; }
.az-group { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.az-group[hidden] { display: none; }
.az-letter { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1; }
.az-list { columns: 240px 4; column-gap: 24px; list-style: none; margin: 0; padding: 0; }
.az-list li { break-inside: avoid; display: flex; align-items: baseline; gap: 6px; padding: 5px 0; }
.az-list li[hidden] { display: none; }
.az-list a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 17px; transition: color 0.2s ease; }
.az-list a:hover { color: var(--accent); }
.az-emoji { width: 1.4em; text-align: center; }
.az-count { color: var(--muted); font-size: 14px; }
.az-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: 17px; }
.az-empty[hidden] { display: none; }
html.js .az-list li.is-match { animation: slide-left 0.4s var(--ease) both; }
@media (max-width: 600px) { .az-group { grid-template-columns: 1fr; gap: 10px; } .az-letter { font-size: 34px; } }

/* =========================================================
   13. Pagination, empty states, pages
   ========================================================= */
.pager { margin: 40px 0 0; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--pop); }
.pager .page-numbers.current, .pager a.page-numbers:hover { background: var(--ink); color: var(--bg); }
.pager a.page-numbers:hover { transform: translateY(-2px); }
.pager .page-numbers.dots { background: none; }
.empty { padding: 40px; border: 1px dashed var(--line); border-radius: 18px; }
.empty h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 28px; }
.empty p { margin: 0 0 18px; color: var(--muted); max-width: 52ch; }
.prose { max-width: 70ch; padding-top: 52px; font-size: 18px; line-height: 1.7; }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 28px; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin: 1.8em 0 0.5em; }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 23px; }
.prose a { color: var(--accent); }

/* =========================================================
   14. Footer, back to top, toast
   ========================================================= */
.site-foot { margin-top: 110px; padding: 56px 0 36px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand .brand { color: var(--ink); }
.foot-brand .brand__svg { height: 34px; }
.foot-brand__line { margin: 16px 0 0; max-width: 34ch; line-height: 1.6; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.foot-social .chip { background: var(--bg); font-size: 14px; }
.foot-col__title { margin: 4px 0 14px; color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--ink); }
.foot-col__more { font-weight: 600; color: var(--ink) !important; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-bottom p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center;
	width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
	opacity: 0; transform: translateY(16px) scale(0.6); pointer-events: none;
	transition: opacity 0.3s ease, transform 0.45s var(--pop);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 20px) scale(0.9); opacity: 0; pointer-events: none;
	background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg);
	transition: opacity 0.25s ease, transform 0.45s var(--pop);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* =========================================================
   15. Pop-up search
   ========================================================= */
.palette { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.palette[hidden] { display: none; }
.palette__backdrop {
	position: absolute; inset: 0; background: var(--overlay);
	-webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
	opacity: 0; transition: opacity 0.3s ease;
}
.palette__panel {
	position: relative; display: flex; flex-direction: column; width: 100%; max-width: 680px; max-height: min(640px, 80vh);
	border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden;
	opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(6px);
	transition: opacity 0.3s ease, transform 0.45s var(--pop), filter 0.35s ease;
}
.palette.is-open .palette__backdrop { opacity: 1; }
.palette.is-open .palette__panel { opacity: 1; transform: none; filter: none; }
.palette__search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette__search svg { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }
.palette__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 19px; padding: 6px 0; }
.palette__search input:focus { outline: none; }
.palette__search input::-webkit-search-cancel-button { display: none; }
.palette__close { border: 0; background: none; cursor: pointer; padding: 0; }
.palette__body { flex: 1; overflow-y: auto; padding: 10px 10px 14px; overscroll-behavior: contain; }
.palette__foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.palette__foot kbd { margin-right: 2px; }
.pal-group { padding: 8px 6px 4px; }
.pal-group__title { margin: 0 0 6px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.pal-row { display: flex; align-items: center; gap: 8px; padding-right: 6px; animation: slide-left 0.35s var(--ease) both; }
.pal-row .pal-item { flex: 1; min-width: 0; animation: none; }
.pal-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 6px; }
.pal-item {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); text-decoration: none;
	transition: background 0.15s ease;
	animation: slide-left 0.35s var(--ease) both;
}
.pal-item:nth-child(2) { animation-delay: 0.03s; } .pal-item:nth-child(3) { animation-delay: 0.06s; } .pal-item:nth-child(4) { animation-delay: 0.09s; }
.pal-item:nth-child(5) { animation-delay: 0.12s; } .pal-item:nth-child(n+6) { animation-delay: 0.15s; }
.pal-item.is-active, .pal-item:hover { background: var(--surface); }
.pal-item__icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; background: var(--surface); font-size: 19px; }
.pal-item.is-active .pal-item__icon, .pal-item:hover .pal-item__icon { background: var(--bg); }
.pal-item__main { flex: 1; min-width: 0; }
.pal-item__title { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item__title mark { background: none; color: var(--accent); font-weight: 700; }
.pal-item__sub { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item--caption .pal-item__title { font-family: var(--serif); font-size: 17px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pal-item__copy { flex-shrink: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--pop); }
.pal-item__copy:hover { background: var(--ink); color: var(--bg); }
.pal-item__go { color: var(--muted); font-size: 18px; opacity: 0; transform: translateX(-6px); transition: opacity 0.2s ease, transform 0.25s var(--ease); }
.pal-item.is-active .pal-item__go, .pal-item:hover .pal-item__go { opacity: 1; transform: none; }
.pal-empty { padding: 26px 18px; color: var(--muted); text-align: center; }
.pal-skeleton { height: 52px; margin: 6px 6px; border-radius: 14px; background: linear-gradient(90deg, var(--surface) 25%, var(--line) 37%, var(--surface) 63%); background-size: 400% 100%; animation: shimmer 1.2s ease infinite; }
@media (max-width: 600px) {
	.palette { padding: 0; align-items: stretch; }
	.palette__panel { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
	.palette__foot { display: none; }
}

/* =========================================================
   16. Motion
   ========================================================= */
@keyframes pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes blur-rise { from { opacity: 0; filter: blur(10px); transform: translateY(16px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes slide-left { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes swap { 0% { transform: scale(0.7) rotate(var(--rot)); } 60% { transform: scale(1.12) rotate(var(--rot)); } 100% { transform: scale(1) rotate(var(--rot)); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--rot)); } 50% { transform: translateY(-10px) rotate(var(--rot)); } }
@keyframes bob-small { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }
@keyframes float-glow { from { transform: translate(0, 0); } to { transform: translate(-30%, 20%); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Scroll reveal: fade up out of a soft blur */
html.js .reveal { opacity: 0; filter: blur(8px); transform: translateY(18px); transition: opacity 0.7s ease, transform 0.8s var(--ease), filter 0.7s ease; transition-delay: var(--d, 0s); }
html.js .reveal.is-in { opacity: 1; filter: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.marquee { overflow-x: auto; }
	.marquee__track, .band__col, .hero-card, .mood, .story--g0, .story--g1, .story--g2 { animation: none !important; }
	.marquee__track + .marquee__track { display: none; }
	html.js .reveal { opacity: 1; filter: none; transform: none; }
	.story.is-center .story__bar i { width: 100%; }
}
