/*
Theme Name: Soft Serve
Theme URI: https://wordpress.org/themes/
Author: Soft Serve
Description: A soft pastel blogging theme for guest-post sites. A bento grid of the five latest posts, a calm centred reading column of full posts, and an Explore section with Categories, Pages and 10 shuffled posts (image, title, 100-word preview) that change on every visit. Self-hosted fonts, 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: soft-serve
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: "Fredoka";
	src: url("assets/fonts/fredoka.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Nunito";
	src: url("assets/fonts/nunito.woff2") format("woff2");
	font-weight: 200 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(--ss-bg);
	color: var(--ss-ink);
	font-family: var(--ss-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(--ss-display);
	line-height: 1.15;
	text-wrap: balance;
}

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

.ss-wrap { width: min(100% - 32px, var(--ss-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(--ss-accent);
	color: var(--ss-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.ss-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--ss-accent);
	color: var(--ss-on-accent);
	border: 0;
	border-radius: var(--ss-btn-radius, 8px);
	font-family: var(--ss-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;
}
.ss-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.ss-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ss-nav-button { display: none; }
.ss-burger { position: relative; width: 18px; height: 12px; }
.ss-burger::before,
.ss-burger::after,
.ss-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;
}
.ss-burger::before { top: 0; }
.ss-burger span { top: 5px; }
.ss-burger::after { top: 10px; }
.ss-nav-toggle:checked + .ss-nav-button .ss-burger::before { transform: translateY(5px) rotate(45deg); }
.ss-nav-toggle:checked + .ss-nav-button .ss-burger span { opacity: 0; }
.ss-nav-toggle:checked + .ss-nav-button .ss-burger::after { transform: translateY(-5px) rotate(-45deg); }
.ss-nav-toggle:focus-visible + .ss-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.ss-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ss-menu li { position: relative; }
.ss-menu a { display: block; text-decoration: none; }
.ss-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;
}
.ss-menu li:hover > .sub-menu,
.ss-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

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

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

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

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

.ss-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--ss-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.ss-tags a::before { content: "#"; color: var(--ss-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(--ss-accent); }

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

.ss-postnav { margin-top: 36px; }
.ss-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ss-postnav .nav-next { grid-column: 2; text-align: right; }
.ss-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.ss-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ss-muted); }
.ss-postnav__title { font-family: var(--ss-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.ss-postnav .nav-links { grid-template-columns: 1fr; }
	.ss-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(--ss-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 */
.ss-archive-head { margin-bottom: 32px; }
.ss-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.ss-archive-head__desc { color: var(--ss-muted); max-width: 60ch; }
.ss-archive-head .ss-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.ss-search { display: flex; gap: 8px; }
.ss-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(--ss-paper);
	color: var(--ss-ink);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.ss-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--ss-accent); box-shadow: 0 0 0 3px var(--ss-ring, rgba(0, 0, 0, 0.12)); }
.ss-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--ss-accent);
	color: var(--ss-on-accent);
	border: 0;
	border-radius: var(--ss-input-radius, 8px);
	cursor: pointer;
}

.ss-comments { margin-top: 44px; }
.ss-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.ss-comment-list,
.ss-comment-list .children { margin: 0; padding: 0; list-style: none; }
.ss-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--ss-paper); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--ss-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(--ss-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(--ss-paper); border: 1px solid var(--ss-line); border-radius: var(--ss-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 */
.ss-404,
.ss-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--ss-paper); border-radius: var(--ss-radius); }
.ss-404__num { margin: 0; font-family: var(--ss-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--ss-accent); }
.ss-404 .ss-search,
.ss-empty .ss-search { max-width: 460px; margin: 18px auto 22px; }

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

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


/* ==========================================================================
   Soft Serve look
   ========================================================================== */
:root {
	--ss-bg: #f5f0ff;
	--ss-paper: #ffffff;
	--ss-ink: #2b2440;
	--ss-muted: #5d5573;
	--ss-soft: #efe8ff;
	--ss-line: #e2d9f7;
	--ss-violet: #6c3fd1;
	--ss-mint: #e3f8ee;
	--ss-accent: #ffb38a;
	--ss-on-accent: #15131c;
	--ss-radius: 28px;
	--ss-btn-radius: 999px;
	--ss-input-radius: 16px;
	--ss-img-radius: 20px;
	--ss-focus: #6c3fd1;
	--ss-ring: rgba(108, 63, 209, 0.2);
	--ss-shadow: 0 10px 30px rgba(80, 60, 140, 0.10);
	--ss-display: "Fredoka", ui-rounded, "Nunito", system-ui, sans-serif;
	--ss-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
	--ss-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--ss-wrap: 1220px;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
a:hover { color: var(--ss-violet); }
::selection { background: #c9b8ff; }

.ss-t0 { --ss-tone: #ffaed6; }
.ss-t1 { --ss-tone: #ffe58a; }
.ss-t2 { --ss-tone: #9be8c8; }
.ss-t3 { --ss-tone: #c9b8ff; }
.ss-t4 { --ss-tone: #ffc9a8; }
.ss-thumb__fallback { font-weight: 700; }

.ss-btn { font-family: var(--ss-display); font-weight: 600; font-size: 1.02rem; box-shadow: 0 5px 0 var(--ss-ink); }
.ss-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ss-ink); color: var(--ss-on-accent); }
.ss-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ss-ink); }

/* Header */
.ss-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding-block: 22px; }
.ss-brand { margin-right: auto; }
.ss-brand__title { margin: 0; font-family: var(--ss-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.85rem); }
.ss-brand__title a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ss-brand__scoop { width: 32px; height: 32px; border-radius: 50% 50% 46% 46%; background: var(--ss-accent); border: 3px solid var(--ss-ink); }
.custom-logo { max-height: 60px; width: auto; }
.ss-header__panel { display: flex; align-items: center; gap: 16px; }
.ss-nav .ss-menu { padding: 6px; background: var(--ss-paper); border-radius: 999px; box-shadow: var(--ss-shadow); }
.ss-menu a { padding: 8px 18px; border-radius: 999px; font-weight: 700; transition: background-color 0.15s ease; }
.ss-menu a:hover { background: var(--ss-soft); color: var(--ss-ink); }
.ss-menu .current-menu-item > a,
.ss-menu .current_page_item > a { background: var(--ss-ink); color: #ffffff; }
.ss-menu .sub-menu { background: var(--ss-paper); border-radius: 20px; box-shadow: var(--ss-shadow); }

@media (max-width: 900px) {
	.ss-nav-button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--ss-paper); border-radius: 999px; box-shadow: var(--ss-shadow); font-weight: 800; cursor: pointer; }
	.ss-header__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; }
	.ss-nav-toggle:checked ~ .ss-header__panel { display: flex; }
	.ss-nav .ss-menu { flex-direction: column; align-items: stretch; border-radius: 24px; }
	.ss-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 16px; }
	.ss-cta { align-self: flex-start; }
}

/* Bento */
.ss-bento { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; padding-top: 12px; }
.ss-bento__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-content: start; }
.ss-tile { position: relative; display: flex; flex-direction: column; background: var(--ss-paper); border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); overflow: hidden; transition: transform 0.2s ease; }
.ss-tile:hover { transform: translateY(-4px); }
.ss-tile__thumb { aspect-ratio: 4 / 3; }
.ss-tile--big .ss-tile__thumb { aspect-ratio: 16 / 10; }
.ss-tile__flag { position: absolute; top: 18px; left: 18px; padding: 6px 14px; background: var(--ss-paper); border-radius: 999px; font-family: var(--ss-display); font-weight: 600; font-size: 0.9rem; }
.ss-tile__body { padding: 14px 16px 18px; }
.ss-tile--big .ss-tile__body { padding: 22px 28px 28px; }
.ss-tile__title a { text-decoration: none; }
.ss-tile__title { margin: 0; font-size: 1.08rem; line-height: 1.25; font-weight: 600; }
.ss-tile--big .ss-tile__title { margin-bottom: 10px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 700; }
.ss-tile .ss-chips { margin-bottom: 6px; }
.ss-tile:not(.ss-tile--big) .ss-chip { padding: 0; background: none; color: var(--ss-violet); font-size: 0.78rem; }
@media (max-width: 960px) {
	.ss-bento { grid-template-columns: minmax(0, 1fr); }
}

/* Centred reading column */
.ss-layout { width: min(100% - 32px, 780px); padding-block: 60px 72px; }
.ss-main { min-width: 0; }
.ss-section-title { margin: 0 0 26px; text-align: center; font-size: clamp(1.8rem, 4vw, 2.3rem); }

.ss-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ss-tone); color: var(--ss-ink); font-size: 0.8rem; font-weight: 800; }
.ss-chip:hover { color: var(--ss-ink); filter: saturate(1.2) brightness(0.97); }
.ss-meta { font-size: 0.9rem; }

/* Full posts */
.ss-feed--full { display: flex; flex-direction: column; gap: 32px; }
.ss-full { background: var(--ss-paper); border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); overflow: hidden; }
.ss-full__thumb { aspect-ratio: 16 / 8.5; }
.ss-full__body { padding: clamp(22px, 4vw, 36px); }
.ss-full__title { margin: 0 0 8px; font-size: clamp(1.6rem, 3.6vw, 2.15rem); line-height: 1.15; }
.ss-full .ss-meta { margin-bottom: 20px; }
.ss-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.ss-btn--ghost { background: transparent; color: var(--ss-ink); border: 2px solid var(--ss-ink); box-shadow: none; font-family: var(--ss-body); font-weight: 800; font-size: 0.9rem; }
.ss-btn--ghost:hover { background: var(--ss-ink); color: #ffffff; box-shadow: none; }

/* Cards (archives, search, excerpt mode) */
.ss-feed--cards { display: flex; flex-direction: column; gap: 22px; }
.ss-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 16px; background: var(--ss-paper); border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); transition: transform 0.2s ease; }
.ss-card:hover { transform: translateY(-3px); }
.ss-card__thumb { aspect-ratio: auto; height: 100%; min-height: 170px; border-radius: 20px; }
.ss-card__body { padding: 6px 6px 6px 0; }
.ss-card__title { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.2; }
.ss-card__excerpt { color: var(--ss-muted); font-size: 0.97rem; }
.ss-card__excerpt p { margin: 0 0 8px; }
.ss-card .ss-meta { font-size: 0.82rem; }
@media (max-width: 600px) {
	.ss-card { grid-template-columns: 1fr; }
	.ss-card__thumb { aspect-ratio: 16 / 9; min-height: 0; }
	.ss-card__body { padding: 0 4px 4px; }
}

/* Content */
.ss-entry { font-size: 1.1rem; }
.ss-entry h2,
.ss-entry h3 { font-weight: 600; }
.ss-entry a { color: var(--ss-violet); text-decoration-color: var(--ss-accent); text-decoration-thickness: 3px; }
.ss-entry blockquote,
.ss-entry .wp-block-quote { padding: 22px 26px; background: var(--ss-mint); border-radius: 22px; font-family: var(--ss-display); font-size: 1.3rem; font-weight: 500; line-height: 1.45; }
.ss-entry hr { height: 8px; width: 80px; margin-inline: auto; border-radius: 8px; background: var(--ss-accent); }

/* Single + page */
.ss-single { background: var(--ss-paper); border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); overflow: hidden; }
.ss-single__head { padding: clamp(24px, 5vw, 44px) clamp(22px, 5vw, 44px) 20px; text-align: center; }
.ss-single__head .ss-chips,
.ss-single__head .ss-meta { justify-content: center; }
.ss-single__title { margin: 4px 0 16px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.ss-single__thumb { margin-inline: clamp(12px, 3vw, 24px); }
.ss-single__thumb img { border-radius: 22px; }
.ss-single__body { padding: 30px clamp(22px, 5vw, 44px) clamp(24px, 5vw, 44px); }
.ss-author { background: var(--ss-soft); border-radius: 24px; }
.ss-author__site { color: var(--ss-violet); }
.ss-postnav a { background: var(--ss-paper); border-radius: 22px; box-shadow: var(--ss-shadow); transition: transform 0.2s ease; }
.ss-postnav a:hover { transform: translateY(-3px); }
.ss-tags a { background: var(--ss-soft); border-radius: 999px; }

.pagination .nav-links { justify-content: center; }
.page-numbers { border-radius: 999px; background: var(--ss-paper); box-shadow: var(--ss-shadow); }
a.page-numbers:hover { background: #ffe58a; color: var(--ss-ink); }
.page-numbers.current { background: var(--ss-ink); color: #ffffff; }

.ss-archive-head { text-align: center; }
.ss-archive-head .ss-search { margin-inline: auto; }
.ss-kicker { display: inline-block; padding: 4px 14px; border-radius: 999px; background: #ffe58a; font-weight: 800; font-size: 0.85rem; }
.ss-404,
.ss-empty { box-shadow: var(--ss-shadow); }
.ss-404__num { color: var(--ss-violet); }
.comment-body,
.comment-respond { border: 0; box-shadow: var(--ss-shadow); }

/* Explore band */
.ss-explore { background: var(--ss-mint); border-radius: 48px 48px 0 0; padding-block: 56px 64px; }
.ss-explore__title { margin: 0 0 26px; font-size: clamp(1.9rem, 4vw, 2.4rem); }
.ss-explore__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 22px; margin-bottom: 40px; }
@media (max-width: 800px) {
	.ss-explore__row { grid-template-columns: minmax(0, 1fr); }
	.ss-explore { border-radius: 32px 32px 0 0; padding-block: 40px 48px; }
}
.ss-explore__row .ss-box { padding: 24px; background: var(--ss-paper); border-radius: var(--ss-radius); }
.ss-box__title { margin: 0 0 14px; font-size: 1.35rem; font-weight: 600; }
.ss-catlist { display: flex; flex-wrap: wrap; gap: 10px; }
.ss-cat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 7px 7px 16px; border-radius: 999px; background: var(--ss-tone); color: var(--ss-ink); font-weight: 800; transition: transform 0.15s ease; }
.ss-cat:hover,
.ss-cat.is-current { transform: translateY(-2px) rotate(-1.5deg); color: var(--ss-ink); }
.ss-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--ss-paper); font-size: 0.75rem; }
.ss-pagelist { display: flex; flex-direction: column; gap: 8px; }
.ss-pagelist a { display: block; padding: 9px 16px; border-radius: 16px; background: var(--ss-bg); font-weight: 700; transition: background-color 0.15s ease; }
.ss-pagelist a:hover,
.ss-pagelist .current_page_item > a { background: #c9b8ff; color: var(--ss-ink); }

.ss-box--random .ss-box__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.ss-box__heading { margin: 0; font-size: clamp(1.6rem, 3vw, 1.9rem); }
.ss-box__hint { padding: 4px 12px; border-radius: 999px; background: #ffe58a; font-size: 0.82rem; font-weight: 800; }
.ss-randlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 22px; }
.ss-rand { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--ss-paper); border-radius: var(--ss-radius); }
.ss-rand__thumb { aspect-ratio: auto; height: 100%; min-height: 150px; max-height: 260px; border-radius: 20px; }
.ss-rand__num { position: absolute; top: 8px; left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--ss-paper); font-size: 0.72rem; font-weight: 800; }
.ss-rand__body { padding-top: 4px; }
.ss-rand__title { font-size: 1.2rem; line-height: 1.25; font-weight: 600; }
.ss-rand__text { font-size: 0.92rem; line-height: 1.6; color: var(--ss-muted); }
.ss-rand__more { color: var(--ss-violet); font-size: 0.92rem; text-decoration: none; }
.ss-rand__more:hover { text-decoration: underline; }
@media (max-width: 560px) {
	.ss-rand { grid-template-columns: 1fr; }
	.ss-rand__thumb { aspect-ratio: 16 / 9; min-height: 0; }
}
.ss-explore__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 30px; }
.ss-explore__widgets .ss-box { background: var(--ss-paper); border-radius: var(--ss-radius); padding: 8px 6px; }
.widget.ss-box > .ss-box__title { margin: 16px 18px 0; }

/* Footer */
.ss-footer { background: var(--ss-ink); color: #f5f0ff; padding-block: 44px 30px; }
.ss-footer a { color: inherit; text-decoration: none; }
.ss-footer a:hover { color: #ffe58a; }
.ss-footer__widgets { border-bottom: 1px solid rgba(245, 240, 255, 0.2); }
.ss-footer-widget__title { font-size: 1.1rem; color: #ffe58a; }
.ss-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.ss-footer__brand { font-family: var(--ss-display); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2rem); }
.ss-footer__menu { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.ss-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(245, 240, 255, 0.2); color: #cfc6ea; font-size: 0.9rem; }
.ss-footer__bottom p { margin: 0; }
