/*
Theme Name: Inkwave
Theme URI: https://smalltattoosideas.com/
Author: Ozge Pehriz
Description: A bold, modern, dark-first theme with a full-screen slideshow of the latest posts. Made for Small Tattoos & Ideas.
Version: 1.2.0
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: inkwave
*/

:root {
	--bg: #0c0c0d;
	--bg-2: #131315;
	--surface: #18181b;
	--ink: #f3f1ec;
	--muted: #9b988f;
	--line: rgba(255,255,255,.09);
	--accent: #d7ff3c;
	--accent-ink: #0c0c0d;
	--glass: rgba(20,20,22,.45);
	--radius: 22px;
	--display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1320px;
	--header-h: 76px;
	color-scheme: dark;
}
:root[data-mode="light"] {
	--bg: #f6f5f1;
	--bg-2: #eeece6;
	--surface: #ffffff;
	--ink: #111112;
	--muted: #66635c;
	--line: rgba(0,0,0,.09);
	--accent: #111112;
	--accent-ink: #d7ff3c;
	--glass: rgba(255,255,255,.55);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--sans); font-size: 17px; line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: #d7ff3c; color: #0c0c0d; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }
.screen-reader-text, .skip-link { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; top: 10px; left: 10px; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 60;
	transition: background-color .3s, border-color .3s, backdrop-filter .3s;
	border-bottom: 1px solid transparent; color: #fff;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
body:not(.has-hero) .site-header, .site-header.scrolled {
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
	border-bottom-color: var(--line); color: var(--ink);
}
body:not(.has-hero) .site-main { padding-top: var(--header-h); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { min-width: 0; flex: 0 1 auto; }
.site-title { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.site-title .mark { width: 12px; height: 12px; border-radius: 50%; background: #d7ff3c; box-shadow: 0 0 18px #d7ff3c; flex: 0 0 auto; }
.custom-logo { max-height: 46px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav .menu { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.site-header.scrolled .primary-nav .menu, body:not(.has-hero) .primary-nav .menu { background: var(--bg-2); border-color: var(--line); }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 8px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; transition: .2s; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-cat > a { background: #d7ff3c; color: #0c0c0d; }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
	background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.icon-btn {
	width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
	display: inline-grid; place-items: center; cursor: pointer; color: inherit; font-size: 16px; transition: .2s;
}
.site-header.scrolled .icon-btn, body:not(.has-hero) .icon-btn { border-color: var(--line); background: var(--bg-2); }
.icon-btn:hover { background: #d7ff3c !important; color: #0c0c0d; border-color: #d7ff3c !important; }
.icon-btn.glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; border-color: rgba(255,255,255,.2); }
.mode-toggle .i-sun { display: none; }
:root[data-mode="light"] .mode-toggle .i-sun { display: block; }
:root[data-mode="light"] .mode-toggle .i-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 16px; height: 2px; background: currentColor; margin: 2px 0; transition: .2s; }

.search-overlay { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(10px); display: flex; align-items: flex-start; padding-top: 20vh; }
.search-overlay[hidden] { display: none; }
.search-overlay .wrap { width: 100%; position: relative; }
.big-search { display: flex; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.big-search input { flex: 1; border: 0; background: transparent; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 6vw, 72px); letter-spacing: -.03em; color: var(--ink); outline: none; min-width: 0; }
.search-close { position: absolute; top: -76px; right: 28px; color: var(--ink); }

.btn, .big-search button, .search-form .search-submit, .comment-form .submit {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
	font: 600 15px var(--sans); background: var(--ink); color: var(--bg); transition: transform .2s, background .2s;
}
.btn:hover, .big-search button:hover, .search-form .search-submit:hover, .comment-form .submit:hover { transform: translateY(-2px); }
.btn-accent { background: #d7ff3c; color: #0c0c0d; }
.btn-accent:hover { background: #fff; }

/* ---------- Slider ---------- */
.slider { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 980px; overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.slides { position: absolute; inset: 0; touch-action: pan-y; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s ease-out; }
.slide.is-active .slide-bg { transform: scale(1); }
.slide-shade { position: absolute; inset: 0; background:
	linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%),
	linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%),
	linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 60%); }
.slide-content { position: absolute; left: 0; right: 0; bottom: 150px; }
.slide-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.slide-num { font-family: var(--display); font-weight: 700; font-size: 14px; color: #d7ff3c; letter-spacing: .1em; }
.slide-title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 104px); line-height: .95; letter-spacing: -.045em; margin: 0 0 20px; max-width: 14ch; }
.slide-title a:hover { color: #d7ff3c; }
.slide-excerpt { font-size: 18px; color: rgba(255,255,255,.78); max-width: 52ch; margin: 0 0 28px; }
.slide-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.slide-foot .meta { color: rgba(255,255,255,.7); }
.slide .slide-content > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.slide.is-active .slide-content > * { opacity: 1; transform: none; }
.slide.is-active .slide-content > *:nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide-content > *:nth-child(3) { transition-delay: .22s; }
.slide.is-active .slide-content > *:nth-child(4) { transition-delay: .32s; }

.slider-ui { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 5; display: flex; align-items: flex-end; gap: 28px; }
.slider-tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.slider-tab { background: none; border: 0; padding: 0; color: rgba(255,255,255,.55); text-align: left; cursor: pointer; font: 500 13px var(--sans); }
.slider-tab .bar { display: block; height: 3px; background: rgba(255,255,255,.22); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.slider-tab .fill { display: block; height: 100%; width: 0; background: #d7ff3c; }
.slider-tab.is-active { color: #fff; }
.slider-tab.is-done .fill { width: 100%; }
.slider-tab .tab-label { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.slider-tab:hover { color: #fff; }
.slider-arrows { display: flex; gap: 8px; }
.slider-pause .pl { display: none; }
.slider.is-paused .slider-pause .ps { display: none; }
.slider.is-paused .slider-pause .pl { display: inline; }

/* ---------- Sections ---------- */
.block { padding-top: 96px; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; margin: 0; }
.section-title em { font-style: normal; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }

/* Bento of styles */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); color: #fff; isolation: isolate; }
.tile-0 { grid-column: span 2; grid-row: span 2; }
.tile-3 { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.tile:hover img { transform: scale(1.07); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0) 60%); z-index: -1; }
.tile-text { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.tile-text strong { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1; text-transform: capitalize; }
.tile-0 .tile-text strong { font-size: clamp(30px, 4vw, 56px); }
.tile-text small { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); white-space: nowrap; transition: .2s; }
.tile:hover small { background: #d7ff3c; color: #0c0c0d; }

/* Grid of posts */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 22px; }
.card { position: relative; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-placeholder { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, #2a2a2e, #141416); }
.card-arrow {
	position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: #d7ff3c; color: #0c0c0d; font-weight: 700; transform: scale(.6) rotate(-45deg); opacity: 0; transition: .3s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-arrow { transform: none; opacity: 1; }
.card-body { padding: 16px 4px 0; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 8px; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s; }
.card:hover .card-title a { background-size: 100% 1.5px; }

.chip { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: .2s; }
.chip:hover { border-color: #d7ff3c; background: #d7ff3c; color: #0c0c0d; }
.chip-glass { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

.page-head { padding: 64px 0 40px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 8vw, 112px); line-height: .92; letter-spacing: -.05em; margin: 0; text-transform: capitalize; }
.page-desc { color: var(--muted); max-width: 60ch; margin-top: 16px; }

.pagination { margin: 64px 0 0; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers { min-width: 48px; height: 48px; padding: 0 16px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; transition: .2s; }
.page-numbers.current, .page-numbers:hover { background: #d7ff3c; color: #0c0c0d; border-color: #d7ff3c; }
.page-numbers.dots { border: 0; }

/* ---------- Single ---------- */
.post-hero { position: relative; min-height: 76vh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 64px; overflow: hidden; isolation: isolate; }
.post-hero.has-cover { color: #fff; background: #000; }
.post-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 9s ease-out both; }
.post-hero .slide-shade { z-index: -1; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.post-hero:not(.has-cover) { min-height: 0; padding-top: calc(var(--header-h) + 40px); }
.post-hero-inner { width: 100%; }
.post-title { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6.5vw, 96px); line-height: .95; letter-spacing: -.045em; margin: 20px 0 28px; max-width: 16ch; }
.post-byline { display: inline-flex; align-items: center; gap: 12px; }
.post-byline img { border-radius: 50%; }
.post-byline strong { display: block; font-size: 15px; }
.post-hero.has-cover .meta { color: rgba(255,255,255,.75); }
body:not(.has-hero) .single-page .post-head { padding-top: 40px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 320px; gap: 72px; justify-content: center; padding-top: 64px; }
.post-layout:not(:has(.post-sidebar)) { grid-template-columns: minmax(0, 720px); }
.post-sidebar .sticky { position: sticky; top: calc(var(--header-h) + 24px); }

.entry-content { font-size: 18px; line-height: 1.8; }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 2.2em; }
.entry-content h2 { font-size: 36px; }
.entry-content h3 { font-size: 27px; }
.entry-content h4 { font-size: 21px; }
.entry-content a { text-decoration: underline; text-decoration-color: #d7ff3c; text-decoration-thickness: 2px; text-underline-offset: 4px; }
:root[data-mode="light"] .entry-content a { text-decoration-color: #111; }
.entry-content img { border-radius: 18px; max-height: 860px; width: auto; margin-left: auto; margin-right: auto; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; overflow-wrap: anywhere; }
.entry-content p { overflow-wrap: anywhere; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content blockquote { margin: 2em 0; padding: 28px 32px; border-radius: var(--radius); background: var(--bg-2); border-left: 4px solid #d7ff3c; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.3; letter-spacing: -.02em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.entry-content iframe { max-width: 100%; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.post-tags a { font-size: 13px; text-decoration: none !important; color: var(--muted); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }
.post-tags a:hover { background: #d7ff3c; color: #0c0c0d; border-color: #d7ff3c; }
.related { padding-top: 110px; }

/* Widgets */
.widget { margin-bottom: 20px; font-size: 15px; }
.widget-title, .widget h2 { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin: 0 0 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { font-weight: 500; }
.widget li a:hover { color: var(--muted); }
.widget .post-date { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.post-sidebar .widget { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.widget img { border-radius: 12px; }

/* Forms */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
input[type=search], input[type=text], input[type=email], input[type=url], textarea {
	width: 100%; padding: 13px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font: 16px var(--sans); color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: #d7ff3c; }

/* Comments */
.comments { padding: 72px 0 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-metadata { font-size: 13px; color: var(--muted); }
.comment-reply-title, .comments .section-label { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; }

.notfound, .empty { padding: 110px 28px; text-align: center; }
.notfound .post-title { margin-left: auto; margin-right: auto; }
.notfound .search-form, .empty .search-form { max-width: 480px; margin: 28px auto; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 140px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-top: 72px; padding-bottom: 48px; }
.footer-brand .site-title { font-size: clamp(30px, 4vw, 48px); white-space: normal; }
.footer-brand p { color: var(--muted); max-width: 40ch; }
.footer-nav .menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-nav a:hover, .site-footer .widget a:hover { color: #d7ff3c; }
:root[data-mode="light"] .footer-nav a:hover { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	.post-layout { grid-template-columns: minmax(0, 720px); gap: 40px; }
	.post-sidebar .sticky { position: static; }
	.alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 1100px) {
	.menu-toggle { display: inline-grid; }
	.header-actions { margin-left: auto; }
	.primary-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); padding: 14px 20px 26px; display: none; max-height: calc(100vh - var(--header-h)); overflow: auto; }
	.admin-bar .primary-nav { top: calc(var(--header-h) + 32px); }
	.primary-nav.open { display: block; }
	.primary-nav .menu { flex-direction: column; background: none !important; border: 0 !important; padding: 0; }
	.primary-nav .menu a { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.03em; text-transform: none; padding: 10px 6px; border-radius: 12px; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; background: none; }
	.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
	.bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.tile-0 { grid-column: span 2; grid-row: span 2; }
	.tile-3 { grid-column: span 1; }
	.slider-tab .tab-label { display: none; }
	.footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
	:root { --header-h: 64px; }
	body { font-size: 16px; }
	.wrap, .wrap-narrow { padding: 0 16px; }
	.header-inner { gap: 10px; }
	.brand { flex: 1 1 auto; }
	.site-title { font-size: 18px; white-space: normal; line-height: 1.1; }
	.icon-btn { width: 38px; height: 38px; }
	.header-actions { gap: 6px; }
	.slider { min-height: 520px; height: 88svh; }
	.slide-content { bottom: 110px; }
	.slide-excerpt { display: none; }
	.slide-foot .meta { display: none; }
	.slider-ui { bottom: 28px; gap: 12px; }
	.slider-tabs { gap: 6px; }
	.slider-tab .bar { margin-bottom: 0; }
	.slider-pause { display: none; }
	.block { padding-top: 64px; }
	.bento { gap: 10px; grid-auto-rows: 140px; }
	.tile-text { left: 14px; right: 14px; bottom: 12px; }
	.tile-text small { display: none; }
	.grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
	.card-media { border-radius: 16px; }
	.card-title { font-size: 16px; margin: 8px 0 4px; }
	.card .chip { font-size: 10px; padding: 4px 8px; }
	.card .meta span:last-child, .card .meta .dot { display: none; }
	.card-arrow { display: none; }
	.post-hero { min-height: 64vh; padding-bottom: 40px; }
	.entry-content { font-size: 17px; }
	.entry-content h2 { font-size: 28px; }
	.footer-bottom { flex-direction: column; gap: 8px; }
	.search-close { top: -64px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- 1.0.1 ---------- */
.tile-4, .tile-5 { grid-column: span 2; }
.slide-title { font-size: clamp(36px, min(6.4vw, 10.5vh), 100px); max-width: 18ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .06em; }
.slide-content { bottom: clamp(110px, 18vh, 160px); }
@media (max-height: 760px) and (min-width: 641px) { .slide-excerpt { display: none; } }
@media (max-width: 960px) {
	.tile-3, .tile-4 { grid-column: span 1; }
	.tile-5 { grid-column: span 2; }
}

/* =========================================================
   1.1.0  UX & polish pass
   ========================================================= */

/* Typography: softer body text on dark, crisp headings */
.entry-content { color: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content strong { color: var(--ink); }
.entry-content h2, .entry-content h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.entry-content > p:first-of-type { font-size: 1.12em; color: var(--ink); }

/* Section heads */
.block-head { align-items: flex-end; }
.block-sub { color: var(--muted); max-width: 32ch; margin: 0 0 6px; text-align: right; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d7ff3c; }
:root[data-mode="light"] .eyebrow::before { background: #111; }

/* Whole card is clickable; chip stays its own link */
.card { position: relative; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card .chip { position: relative; z-index: 2; }
.card:focus-within .card-media { outline: 2px solid #d7ff3c; outline-offset: 3px; }
.card-link:focus-visible { outline: none; }
.card:hover .card-title a { color: var(--ink); }

/* Category tiles */
.tile-go { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); font-weight: 700; transition: .3s; }
.tile:hover .tile-go { background: #d7ff3c; color: #0c0c0d; transform: rotate(45deg); }
.tile-text { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 8px; }
.tile-text small { background: none; backdrop-filter: none; padding: 0; color: rgba(255,255,255,.75); font-weight: 500; }
.tile:hover small { background: none; color: #fff; }
.tile:focus-visible { outline-offset: 4px; }

/* Filter chips (archive, search) */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.filter { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: .2s; }
.filter:hover { border-color: var(--ink); }
.filter.is-current { background: #d7ff3c; border-color: #d7ff3c; color: #0c0c0d; }
.page-head .eyebrow { margin-bottom: 18px; }
.empty-title { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.03em; margin: 0 0 6px; color: var(--ink); }
.empty { color: var(--muted); }

/* Search overlay suggestions */
.search-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.search-suggest span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-right: 6px; }

/* Header: logo never wraps awkwardly */
.site-title { overflow: hidden; text-overflow: ellipsis; }
.primary-nav .menu > li > a { white-space: nowrap; }

/* Slider polish */
.slide-hit { position: absolute; inset: 0; z-index: 1; }
.slide-content { z-index: 2; pointer-events: none; }
.slide-content a, .slide-content button { pointer-events: auto; }
.slide-num span { color: rgba(255,255,255,.5); }
.slide-title { text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.slider-tab { padding: 14px 0 0; margin-top: -14px; }
.slider-tab:focus-visible { outline-offset: 6px; }
.slider-arrows .icon-btn svg { display: block; }
.slider-pause .ps, .slider-pause .pl { display: block; }
.slider-pause .pl { display: none; }
.slider.is-paused .slider-pause .pl { display: block; }
.scroll-cue { position: absolute; left: 50%; bottom: 10px; z-index: 5; width: 22px; height: 34px; margin-left: -11px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (min-width: 1101px) and (min-height: 760px) { .scroll-cue { display: block; } .slider-ui { bottom: 60px; } }

/* Reading progress */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.admin-bar .read-progress { top: 32px; }
.read-progress span { display: block; height: 100%; width: 100%; background: #d7ff3c; transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(215,255,60,.6); }

/* Table of contents */
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.toc-list li { margin: 0; padding: 0; border: 0; }
.toc-list a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.35; text-decoration: none !important; transition: .15s; }
.toc-list a:hover { color: var(--ink); border-left-color: var(--muted); }
.toc-list a.is-active { color: var(--ink); border-left-color: #d7ff3c; font-weight: 600; }
.toc-count { color: var(--muted); font-weight: 500; font-family: var(--sans); font-size: 13px; }
.toc-side { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 16px; margin-bottom: 20px; }
.toc-side .toc-list { max-height: calc(100vh - var(--header-h) - 200px); overflow: auto; scrollbar-width: thin; padding-right: 6px; }
.toc-head { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin: 0 0 12px; }
.toc-inline { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 0; margin-bottom: 2em; }
.toc-inline summary { cursor: pointer; list-style: none; padding: 16px 20px; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 500; transition: transform .2s; }
.toc-inline[open] summary::after { transform: rotate(45deg); }
.toc-inline .toc-list { padding: 0 20px 16px; max-height: 50vh; overflow: auto; }
@media (min-width: 1181px) { .toc-inline { display: none !important; } }
@media (max-width: 1180px) { .toc-side { display: none !important; } .post-sidebar { border-top: 1px solid var(--line); padding-top: 40px; } }

/* Share */
.share { margin-top: 44px; padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.share-label { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.entry-content .share-btn, .share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 14px var(--sans); text-decoration: none; cursor: pointer; transition: .2s; }
.share-btn:hover { border-color: var(--ink); }
.share-btn.pin { background: #e60023; border-color: #e60023; color: #fff; }
.share-btn.pin:hover { background: #c8001e; }
.share-btn.copied { background: #d7ff3c; color: #0c0c0d; border-color: #d7ff3c; }

/* Back to top */
.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #d7ff3c; color: #0c0c0d; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: .3s cubic-bezier(.2,.7,.2,1); }
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* Faster, subtler reveal */
.reveal { transform: translateY(18px); transition-duration: .6s; }

/* Footer link rhythm */
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

@media (max-width: 1100px) {
	.block-sub { display: none; }
}
@media (max-width: 640px) {
	.site-title { white-space: nowrap; font-size: 16px; }
	.block-head { margin-bottom: 22px; }
	.tile-go { width: 30px; height: 30px; top: 10px; right: 10px; font-size: 13px; }
	.tile-text small { display: block; font-size: 11px; }
	.tile-text { gap: 4px; }
	.share { padding: 18px; }
	.share-label { font-size: 18px; width: 100%; }
	.back-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
	.slider-tab { padding-top: 18px; margin-top: -18px; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* 1.1.1 */
.slider-arrows .slider-pause .pl { display: none; }
.slider.is-paused .slider-arrows .slider-pause .ps { display: none; }
.slider.is-paused .slider-arrows .slider-pause .pl { display: block; }

/* 1.1.2 */
.footer-brand .site-title { line-height: 1.02; align-items: flex-start; margin-bottom: 16px; }
.footer-brand .site-title .mark { margin-top: .32em; }

/* 1.1.3 */
.nav-mode { display: none; }
@media (max-width: 1100px) {
	.nav-mode { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
}
@media (max-width: 420px) {
	.header-actions .mode-toggle { display: none; }
}
.entry-content figcaption, .entry-content .wp-caption-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 8px; }
.entry-content figcaption a { color: var(--muted); text-decoration: none; }

/* 1.1.4: keep the glow visible, truncate only the name */
.site-title { overflow: visible; min-width: 0; max-width: 100%; }
.site-title .mark { margin-left: 4px; }
.site-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-brand .site-name { white-space: normal; overflow: visible; }

/* =========================================================
   1.2.0  Ad placements
   Space is reserved before the ad loads (no layout jumps),
   and the box disappears if Google has no ad to show.
   ========================================================= */
.ad { position: relative; margin: 2.4em auto; padding: 26px 12px 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; clear: both; overflow: hidden; }
.ad-label { position: absolute; top: 7px; left: 0; right: 0; font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad ins.adsbygoogle { margin: 0 auto; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* In posts */
.entry-content .ad { max-width: 100%; }
.ad-intro, .ad-end { min-height: 300px; }
.ad-inline { min-height: 250px; }
.ad-end { margin-top: 32px; }

/* Sidebar (desktop only) */
.ad-side { min-height: 620px; margin: 0 0 20px; padding: 26px 10px 10px; }
@media (max-width: 1180px) { .ad-side { display: none; } }

/* Inside the post grid: full row, wide banner */
.grid > .ad-feed { grid-column: 1 / -1; margin: 0; min-height: 130px; }

@media (max-width: 640px) {
	.ad { margin: 2em -16px; border-radius: 0; border-left: 0; border-right: 0; }
	.entry-content .ad { margin-left: -16px; margin-right: -16px; max-width: none; }
	.ad-intro, .ad-end, .ad-inline { min-height: 280px; }
	.grid > .ad-feed { margin: 0 -16px; min-height: 120px; }
}
