/*
Theme Name: Shelves
Theme URI: https://wordpress.org/themes/
Author: Shelves
Description: A streaming-app style blogging theme for guest-post sites. The homepage is made of sideways-scrolling shelves: latest posts, a shelf for each of your top categories, and a Random Picks shelf of 10 shuffled posts (image, title, 100-word preview) that change on every visit, plus category tiles and pages. Self-hosted font, no theme JavaScript.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.2
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: shelves
Update URI: false
Tags: blog, news, one-column, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* Fonts (self-hosted, no Google requests) */
@font-face {
	font-family: "Lexend";
	src: url("assets/fonts/lexend.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Base (shared structure; the theme section below sets the look)
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--sh-bg);
	color: var(--sh-ink);
	font-family: var(--sh-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--sh-display);
	line-height: 1.15;
	text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--sh-focus, currentColor); outline-offset: 3px; border-radius: 4px; }

.sh-wrap { width: min(100% - 32px, var(--sh-wrap)); margin-inline: auto; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--sh-accent);
	color: var(--sh-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.sh-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--sh-accent);
	color: var(--sh-on-accent);
	border: 0;
	border-radius: var(--sh-btn-radius, 8px);
	font-family: var(--sh-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.sh-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.sh-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sh-nav-button { display: none; }
.sh-burger { position: relative; width: 18px; height: 12px; }
.sh-burger::before,
.sh-burger::after,
.sh-burger span {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.sh-burger::before { top: 0; }
.sh-burger span { top: 5px; }
.sh-burger::after { top: 10px; }
.sh-nav-toggle:checked + .sh-nav-button .sh-burger::before { transform: translateY(5px) rotate(45deg); }
.sh-nav-toggle:checked + .sh-nav-button .sh-burger span { opacity: 0; }
.sh-nav-toggle:checked + .sh-nav-button .sh-burger::after { transform: translateY(-5px) rotate(-45deg); }
.sh-nav-toggle:focus-visible + .sh-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.sh-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sh-menu li { position: relative; }
.sh-menu a { display: block; text-decoration: none; }
.sh-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.sh-menu li:hover > .sub-menu,
.sh-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* Thumbnails */
.sh-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	text-decoration: none;
	background: var(--sh-soft);
}
.sh-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
a.sh-thumb:hover img { transform: scale(1.04); }
.sh-thumb__fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--sh-tone, var(--sh-soft));
	font-family: var(--sh-display);
	font-weight: 700;
	font-size: clamp(2.6rem, 7vw, 4.2rem);
	line-height: 1;
	color: var(--sh-tone-ink, var(--sh-ink));
}

/* Chips + meta */
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sh-chip { text-decoration: none; }
.sh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--sh-muted); font-size: 0.88rem; }
.sh-meta__item + .sh-meta__item::before { content: "·"; margin: 0 8px; }
.sh-meta a { color: var(--sh-ink); font-weight: 700; text-decoration: none; }
.sh-meta a:hover { text-decoration: underline; }
.sh-meta__avatar { width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; }

/* Lists in boxes */
.sh-catlist,
.sh-pagelist,
.sh-randlist { margin: 0; padding: 0; list-style: none; }
.sh-pagelist .children { display: none; }
.sh-cat,
.sh-pagelist a { text-decoration: none; }
.sh-randlist,
.sh-rand,
.sh-rand__media { position: relative; }
.sh-rand__title { margin: 0 0 6px; }
.sh-rand__title a,
.sh-card__title a,
.sh-full__title a { text-decoration: none; }
.sh-rand__text { margin: 0 0 8px; }
.sh-rand__more { font-weight: 700; }
.widget.sh-box > :not(.sh-box__title) { margin: 16px 18px; }
.widget.sh-box ul { padding-left: 1.1em; }

/* Article content */
.sh-entry { font-size: 1.075rem; line-height: 1.78; overflow-wrap: break-word; }
.sh-entry > * { margin-block: 0 1.15em; }
.sh-entry > *:last-child { margin-bottom: 0; }
.sh-entry h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
.sh-entry h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1.5em; }
.sh-entry h4 { font-size: 1.15rem; margin-top: 1.4em; }
.sh-entry a { color: var(--sh-link, var(--sh-ink)); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sh-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sh-entry a:hover { text-decoration-thickness: 4px; }
.sh-entry ul,
.sh-entry ol { padding-left: 1.4em; }
.sh-entry li { margin-bottom: 0.4em; }
.sh-entry li::marker { color: var(--sh-accent); }
.sh-entry blockquote { margin-inline: 0; }
.sh-entry blockquote p:last-child { margin-bottom: 0; }
.sh-entry blockquote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-style: normal; color: var(--sh-muted); }
.sh-entry img { border-radius: var(--sh-img-radius, 8px); }
.sh-entry figure { margin-inline: 0; }
.sh-entry figcaption,
.wp-caption-text,
.wp-element-caption { margin-top: 8px; color: var(--sh-muted); font-size: 0.88rem; text-align: center; }
.sh-entry code,
.sh-entry kbd { padding: 0.12em 0.4em; background: var(--sh-soft); border-radius: 6px; font-family: var(--sh-mono); font-size: 0.88em; }
.sh-entry pre { padding: 20px 22px; background: #15131c; color: #f3f0e8; border-radius: 10px; overflow-x: auto; font-family: var(--sh-mono); font-size: 0.9rem; line-height: 1.6; }
.sh-entry pre code { padding: 0; background: none; color: inherit; }
.sh-entry table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sh-entry th,
.sh-entry td { padding: 10px 12px; border: 1px solid var(--sh-line); text-align: left; }
.sh-entry th { background: var(--sh-soft); }
.sh-entry .wp-block-table { overflow-x: auto; }
.sh-entry hr { border: 0; height: 1px; background: var(--sh-line); margin: 2.4em 0; }
.sh-entry .more-link { display: inline-block; margin-top: 4px; font-family: var(--sh-display); font-weight: 700; }
.sh-pagelinks { margin-top: 22px; font-weight: 700; }
.sh-pagelinks a,
.sh-pagelinks > span:not(:first-child) { margin-left: 6px; }

.sh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--sh-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.sh-tags a::before { content: "#"; color: var(--sh-accent); margin-right: 1px; }

/* WordPress core classes */
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide,
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-caption { font-size: 0.85rem; }
.sticky { position: relative; }
.bypostauthor > .comment-body { outline: 2px solid var(--sh-accent); }

/* Single post */
.sh-single__thumb { margin: 0; }
.sh-single__thumb img { display: block; width: 100%; height: auto; }
.sh-single .sh-tags { margin-top: 30px; }
.sh-author { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 32px; padding: 22px; }
.sh-author__avatar { width: 88px; height: 88px; border-radius: 50%; }
.sh-author__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sh-muted); }
.sh-author__name { margin: 2px 0 6px; font-size: 1.35rem; }
.sh-author__name a { text-decoration: none; }
.sh-author__bio { margin: 0 0 8px; font-size: 0.98rem; color: var(--sh-muted); }
.sh-author__site { font-weight: 700; font-size: 0.92rem; }
@media (max-width: 520px) {
	.sh-author { grid-template-columns: 1fr; }
	.sh-author__avatar { width: 64px; height: 64px; }
}

.sh-postnav { margin-top: 36px; }
.sh-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sh-postnav .nav-next { grid-column: 2; text-align: right; }
.sh-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.sh-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sh-muted); }
.sh-postnav__title { font-family: var(--sh-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.sh-postnav .nav-links { grid-template-columns: 1fr; }
	.sh-postnav .nav-next { grid-column: auto; }
}

/* Pagination */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	font-family: var(--sh-display);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.page-numbers.dots { background: transparent !important; border-color: transparent !important; }

/* Archive header */
.sh-archive-head { margin-bottom: 32px; }
.sh-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.sh-archive-head__desc { color: var(--sh-muted); max-width: 60ch; }
.sh-archive-head .sh-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.sh-search { display: flex; gap: 8px; }
.sh-search__input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--sh-paper);
	color: var(--sh-ink);
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.sh-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--sh-accent); box-shadow: 0 0 0 3px var(--sh-ring, rgba(0, 0, 0, 0.12)); }
.sh-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--sh-accent);
	color: var(--sh-on-accent);
	border: 0;
	border-radius: var(--sh-input-radius, 8px);
	cursor: pointer;
}

.sh-comments { margin-top: 44px; }
.sh-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.sh-comment-list,
.sh-comment-list .children { margin: 0; padding: 0; list-style: none; }
.sh-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--sh-paper); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--sh-display); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 10px; font-size: 0.82rem; }
.comment-metadata a { color: var(--sh-muted); text-decoration: none; }
.comment-content { font-size: 1rem; }
.reply a { font-size: 0.85rem; font-weight: 700; }
.comment-respond { padding: clamp(20px, 4vw, 30px); background: var(--sh-paper); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.92rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-reply-title small { margin-left: 10px; font-size: 0.85rem; }

/* 404 + empty */
.sh-404,
.sh-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--sh-paper); border-radius: var(--sh-radius); }
.sh-404__num { margin: 0; font-family: var(--sh-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--sh-accent); }
.sh-404 .sh-search,
.sh-empty .sh-search { max-width: 460px; margin: 18px auto 22px; }

/* Footer widgets */
.sh-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 32px; margin-bottom: 32px; }
.sh-footer-widget ul { padding-left: 1.1em; }

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


/* ==========================================================================
   Shelves look
   ========================================================================== */
:root {
	--sh-bg: #f5f4fb;
	--sh-paper: #ffffff;
	--sh-ink: #17142b;
	--sh-muted: #5a5670;
	--sh-soft: #ecebf7;
	--sh-line: #e1def0;
	--sh-night: #17142b;
	--sh-accent: #6d28d9;
	--sh-on-accent: #ffffff;
	--sh-link: #6d28d9;
	--sh-radius: 16px;
	--sh-btn-radius: 12px;
	--sh-input-radius: 12px;
	--sh-img-radius: 12px;
	--sh-focus: #6d28d9;
	--sh-ring: rgba(109, 40, 217, 0.2);
	--sh-shadow: 0 1px 2px rgba(23, 20, 43, 0.05), 0 8px 24px rgba(23, 20, 43, 0.07);
	--sh-display: "Lexend", ui-sans-serif, system-ui, sans-serif;
	--sh-body: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--sh-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--sh-wrap: 1440px;
}

body { font-size: 0.98rem; font-weight: 300; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; }
strong, b { font-weight: 600; }
.sh-t0 { --sh-tone: #e9ddff; --sh-tone-ink: #4c1d95; }
.sh-t1 { --sh-tone: #d9f2ff; --sh-tone-ink: #075985; }
.sh-t2 { --sh-tone: #ffe4d6; --sh-tone-ink: #9a3412; }
.sh-t3 { --sh-tone: #dcfce7; --sh-tone-ink: #166534; }
.sh-t4 { --sh-tone: #fde2ef; --sh-tone-ink: #9d174d; }
.sh-thumb__fallback { background: var(--sh-tone); color: var(--sh-tone-ink); font-weight: 600; }
.sh-btn { font-family: var(--sh-body); font-weight: 600; }
.sh-btn:hover { background: #5b21b6; color: #ffffff; transform: none; }

/* Header */
.sh-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 244, 251, 0.88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--sh-line); }
.admin-bar .sh-header { top: 32px; }
.sh-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; min-height: 68px; padding-block: 8px; }
.sh-brand__title { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; }
.sh-brand__title a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sh-brand__mark { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.sh-brand__mark span { width: 6px; border-radius: 2px; background: var(--sh-accent); }
.sh-brand__mark span:nth-child(1) { height: 22px; }
.sh-brand__mark span:nth-child(2) { height: 15px; background: #a78bfa; }
.sh-brand__mark span:nth-child(3) { height: 19px; background: #f472b6; transform: rotate(-14deg); transform-origin: bottom; }
.custom-logo { max-height: 48px; width: auto; }
.sh-header__panel { flex: 1; display: flex; align-items: center; gap: 16px; }
.sh-nav { margin-right: auto; }
.sh-menu { gap: 2px; }
.sh-menu a { padding: 8px 12px; white-space: nowrap; border-radius: 10px; font-weight: 400; color: var(--sh-muted); }
.sh-menu a:hover { color: var(--sh-ink); background: var(--sh-soft); }
.sh-menu .current-menu-item > a,
.sh-menu .current_page_item > a { color: var(--sh-ink); font-weight: 600; }
.sh-menu .sub-menu { background: var(--sh-paper); border-radius: 14px; box-shadow: var(--sh-shadow); }
.sh-header .sh-search__input { width: 190px; padding: 9px 14px; background: var(--sh-paper); }
.sh-header .sh-search__btn { width: 42px; }
.sh-cta { padding: 0.6em 1em; font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 1180px) {
	.sh-nav-button { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 9px 14px; border-radius: 10px; background: var(--sh-paper); box-shadow: var(--sh-shadow); font-weight: 500; cursor: pointer; }
	.sh-header__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
	.sh-nav-toggle:checked ~ .sh-header__panel { display: flex; }
	.sh-menu { flex-direction: column; align-items: stretch; }
	.sh-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 14px; }
	.sh-header .sh-search__input { width: 100%; }
	.sh-cta { align-self: flex-start; }
}

/* Single-column layout */
.sh-layout { padding-block: 26px 60px; }
.sh-main { min-width: 0; }

/* Hero */
.sh-hero { position: relative; min-height: 460px; border-radius: 26px; overflow: hidden; background: var(--sh-night); isolation: isolate; }
.sh-hero__thumb { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; height: 100%; }
.sh-hero__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 20, 43, 0.92) 0%, rgba(23, 20, 43, 0.65) 40%, rgba(23, 20, 43, 0.05) 75%), linear-gradient(0deg, rgba(23, 20, 43, 0.5), transparent 40%); }
.sh-hero__body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; max-width: 620px; min-height: 460px; padding: clamp(24px, 4.5vw, 56px); color: #ffffff; }
.sh-hero__flag { align-self: flex-start; margin-bottom: 12px; padding: 4px 10px; border-radius: 6px; background: var(--sh-accent); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.sh-hero .sh-chip { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.sh-hero__title { margin: 6px 0 12px; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; color: #ffffff; }
.sh-hero__title a { text-decoration: none; }
.sh-hero__deck { margin: 0 0 22px; color: rgba(255, 255, 255, 0.85); font-size: 1rem; line-height: 1.6; }
.sh-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sh-hero .sh-btn { padding: 0.85em 1.5em; background: #ffffff; color: var(--sh-ink); font-size: 1rem; }
.sh-hero .sh-btn:hover { background: var(--sh-accent); color: #ffffff; }
.sh-play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.sh-hero__meta { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 640px) {
	.sh-hero,
	.sh-hero__body { min-height: 420px; }
	.sh-hero__thumb::after { background: linear-gradient(0deg, rgba(23, 20, 43, 0.95) 10%, rgba(23, 20, 43, 0.2) 80%); }
}

/* Shelves */
.sh-shelf { margin-top: 44px; }
.sh-shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sh-shelf__title,
.sh-box--random .sh-box__heading { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; }
.sh-shelf__all { font-size: 0.9rem; font-weight: 500; color: var(--sh-link); text-decoration: none; white-space: nowrap; }
.sh-shelf__all:hover { text-decoration: underline; }
.sh-row,
.sh-randlist {
	display: flex;
	gap: 16px;
	margin: 0 -16px;
	padding: 4px 16px 16px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 16px;
	scrollbar-width: thin;
	scrollbar-color: #c9c3e6 transparent;
}
.sh-tile { position: relative; flex: 0 0 clamp(220px, 22vw, 290px); scroll-snap-align: start; }
.sh-tile__thumb { aspect-ratio: 16 / 10; border-radius: var(--sh-radius); box-shadow: var(--sh-shadow); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.sh-tile:hover .sh-tile__thumb { transform: translateY(-4px) scale(1.02); box-shadow: 0 2px 4px rgba(23, 20, 43, 0.08), 0 18px 36px rgba(23, 20, 43, 0.16); }
.sh-tile__body { padding: 12px 4px 0; }
.sh-tile .sh-chips { margin-bottom: 6px; }
.sh-tile__title { margin: 0 0 4px; font-size: 1rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.sh-tile__title a { text-decoration: none; }
.sh-tile__title a::after { content: ""; position: absolute; inset: 0; }
.sh-tile__title a:hover { color: var(--sh-link); }
.sh-tile__date { font-size: 0.78rem; color: var(--sh-muted); }
.sh-chip { position: relative; z-index: 1; display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--sh-tone); color: var(--sh-tone-ink); font-size: 0.72rem; font-weight: 500; }

/* Random Picks shelf (after content) */
.sh-after { margin-top: 54px; }
.sh-box--random { padding: 26px 26px 10px; border-radius: 26px; background: var(--sh-night); color: #e7e4f7; }
.sh-box--random .sh-box__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 16px; }
.sh-box--random .sh-box__heading { color: #ffffff; }
.sh-box__hint { font-size: 0.85rem; color: #b8b2d9; }
.sh-box--random .sh-randlist { margin: 0 -26px; padding-inline: 26px; scroll-padding-inline: 26px; scrollbar-color: #4c4670 transparent; }
.sh-rand { position: relative; flex: 0 0 clamp(250px, 24vw, 310px); scroll-snap-align: start; display: flex; flex-direction: column; padding: 12px; border-radius: 18px; background: #221e3b; }
.sh-rand__thumb { aspect-ratio: 16 / 10; border-radius: 12px; }
.sh-rand__num { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--sh-accent); color: #ffffff; font-size: 0.72rem; font-weight: 600; }
.sh-rand__body { display: flex; flex-direction: column; flex: 1; padding: 12px 4px 4px; }
.sh-rand__title { font-size: 1.02rem; font-weight: 500; line-height: 1.35; }
.sh-rand__title a { color: #ffffff; text-decoration: none; }
.sh-rand__title a:hover { color: #c4b5fd; }
.sh-rand__text { flex: 1; font-size: 0.82rem; line-height: 1.6; color: #b8b2d9; }
.sh-rand__more { color: #c4b5fd; font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.sh-rand__more:hover { text-decoration: underline; }

.sh-after__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; margin-top: 34px; align-items: start; }
.sh-after__row .sh-box { padding: 22px 24px; background: var(--sh-paper); border-radius: 22px; box-shadow: var(--sh-shadow); }
.sh-after__row .sh-box__title { margin: 0 0 14px; font-size: 1.2rem; font-weight: 600; }
.sh-after__row .sh-catlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sh-cat { display: flex; flex-direction: column; justify-content: space-between; min-height: 82px; padding: 14px; border-radius: 14px; background: var(--sh-tone); color: var(--sh-tone-ink); font-weight: 600; transition: transform 0.15s ease; }
.sh-cat:hover,
.sh-cat.is-current { transform: translateY(-3px); }
.sh-count { font-size: 0.76rem; font-weight: 400; opacity: 0.85; }
.sh-pagelist a { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--sh-line); font-weight: 400; }
.sh-pagelist a::after { content: "\203A"; color: var(--sh-muted); }
.sh-pagelist a:hover,
.sh-pagelist .current_page_item > a { color: var(--sh-link); }
.sh-after__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 22px; }
.sh-after__widgets .sh-box { padding: 6px 4px; background: var(--sh-paper); border-radius: 22px; box-shadow: var(--sh-shadow); }
.widget.sh-box > .sh-box__title { margin: 16px 18px 0; font-size: 1.1rem; }
@media (max-width: 800px) {
	.sh-after__row { grid-template-columns: minmax(0, 1fr); }
}

/* Grid (page 2+, archives, search) */
.sh-page-title { margin: 6px 0 24px; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.sh-feed--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px 22px; }
.sh-card { position: relative; display: flex; flex-direction: column; }
.sh-card__thumb { aspect-ratio: 16 / 10; border-radius: var(--sh-radius); box-shadow: var(--sh-shadow); margin-bottom: 12px; }
.sh-card__title { margin: 0 0 6px; font-size: 1.08rem; font-weight: 500; line-height: 1.35; }
.sh-card__title a:hover { color: var(--sh-link); }
.sh-card__excerpt { font-size: 0.88rem; color: var(--sh-muted); }
.sh-card__excerpt p { margin: 0 0 8px; }
.sh-card .sh-meta { font-size: 0.78rem; }
.sh-card .sh-meta__item:last-child { display: none; }
.sh-feed--full { display: flex; flex-direction: column; gap: 30px; max-width: 820px; }
.sh-full { padding: 26px; background: var(--sh-paper); border-radius: 22px; box-shadow: var(--sh-shadow); }
.sh-full__thumb { margin: -26px -26px 20px; }
.sh-full__title { margin: 0 0 10px; font-size: 1.9rem; }
.sh-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; }
.sh-btn--ghost { background: var(--sh-soft); color: var(--sh-ink); }
.sh-meta a { color: var(--sh-ink); }

/* Single + page */
.sh-single { max-width: 860px; margin-inline: auto; }
.sh-single__head { text-align: center; padding-block: 20px 24px; }
.sh-single__head .sh-chips,
.sh-single__head .sh-meta { justify-content: center; }
.sh-single__title { margin: 8px 0 16px; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; }
.sh-single__thumb { margin-bottom: 30px; }
.sh-single__thumb img { border-radius: 22px; }
.sh-entry { font-size: 1.06rem; line-height: 1.8; }
.sh-entry a { color: var(--sh-link); }
.sh-entry blockquote,
.sh-entry .wp-block-quote { padding: 22px 26px; border-radius: 18px; background: var(--sh-soft); font-size: 1.2rem; font-weight: 400; }
.sh-author { background: var(--sh-paper); border-radius: 18px; box-shadow: var(--sh-shadow); }
.sh-postnav,
.sh-comments { max-width: 860px; margin-inline: auto; }
.sh-postnav a { background: var(--sh-paper); border-radius: 18px; box-shadow: var(--sh-shadow); }
.page-numbers { border-radius: 12px; background: var(--sh-paper); box-shadow: var(--sh-shadow); color: var(--sh-ink); }
a.page-numbers:hover { color: var(--sh-link); }
.page-numbers.current { background: var(--sh-accent); color: #ffffff; }
.sh-kicker { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--sh-accent); color: #ffffff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sh-404,
.sh-empty { box-shadow: var(--sh-shadow); }
.comment-body,
.comment-respond { border: 0; box-shadow: var(--sh-shadow); }

/* Footer */
.sh-footer { padding-block: 34px 30px; border-top: 1px solid var(--sh-line); }
.sh-footer a { text-decoration: none; }
.sh-footer__widgets { border-bottom: 1px solid var(--sh-line); }
.sh-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.sh-footer__brand { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; }
.sh-footer__menu { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; color: var(--sh-muted); }
.sh-footer__menu a:hover,
.sh-footer__bottom a:hover { color: var(--sh-link); }
.sh-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 0.85rem; color: var(--sh-muted); }
.sh-footer__bottom p { margin: 0; }
