/*
 * Comics Hut Editorial: main stylesheet.
 * 1 Fonts · 2 Tokens · 3 Base · 4 Header · 5 Layout · 6 Cards · 7 Sidebar
 * 8 Article · 9 Comments · 10 Pages + misc · 11 Footer · 12 Login page · 13 Small screens
 */

/* 1. Fonts -------------------------------------------------------------- */

@font-face {
	font-family: "Inter Variable";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter Variable";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Serif 4 Variable";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Serif 4 Variable";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens ------------------------------------------------------------- */

:root {
	--bg: #f7f6f3;
	--paper: #ffffff;
	--ink: #14161a;
	--ink-2: #353941;
	--muted: #6b7078;
	--line: #e5e3dd;
	--accent: #ce1256;
	--accent-dark: #a50e45;
	--accent-soft: #fdeef3;
	--serif: "Source Serif 4 Variable", Georgia, "Times New Roman", serif;
	--sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--radius: 12px;
	--radius-sm: 8px;
	--wrap: 1080px;
	--side: 320px;
	--gutter: 24px;
	--top-h: 68px;
	color-scheme: light;
}

/* 3. Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.18; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.icon { display: block; width: 20px; height: 20px; fill: currentColor; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--small { padding: 8px 15px; font-size: 13.5px; }
.btn--wide { width: 100%; padding: 14px 20px; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.icon-btn:hover { background: var(--bg); }

.kicker {
	color: var(--accent);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	line-height: 1.2;
	text-transform: uppercase;
}
a.kicker:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.section-title { margin: 0 0 18px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 500; line-height: 1.3; transition: border-color .15s ease, color .15s ease; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip::first-letter { text-transform: uppercase; }

.search-form { position: relative; display: flex; width: 100%; }
.search-form__input { width: 100%; padding: 10px 46px 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14.5px; line-height: 1.4; transition: border-color .15s ease, background-color .15s ease; -webkit-appearance: none; appearance: none; }
.search-form__input::placeholder { color: var(--muted); }
.search-form__input:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.search-form__btn { position: absolute; top: 50%; right: 5px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); transform: translateY(-50%); cursor: pointer; }
.search-form__btn:hover { background: var(--ink); color: #fff; }
.search-form__btn .icon { width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; transform: translateX(-50%); box-shadow: 0 8px 24px rgba(20, 22, 26, .2); }

/* 4. Header ------------------------------------------------------------- */

.site-top { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.admin-bar .site-top { top: 32px; }
.site-top__inner { display: flex; align-items: center; gap: 20px; min-height: var(--top-h); }
.site-top__menu, .site-top__search-toggle { display: none; }

.site-brand { flex: none; }
.site-brand .custom-logo-link { display: block; }
.site-brand .custom-logo { width: auto; height: 34px; max-width: 240px; object-fit: contain; }
.site-brand__text { font-family: var(--serif); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }

.site-top__search { flex: 1 1 auto; max-width: 480px; margin-inline: auto; }
.site-top__actions { display: flex; flex: none; align-items: center; gap: 14px; }
.site-top__login { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.site-top__login:hover { color: var(--accent); }
.site-top__me img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }

.site-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-nav__inner { overflow-x: auto; scrollbar-width: none; }
.site-nav__inner::-webkit-scrollbar { display: none; }
.site-nav__list { display: flex; gap: 30px; list-style: none; white-space: nowrap; }
.site-nav__list a { display: block; padding: 13px 0 12px; border-bottom: 2px solid transparent; color: var(--ink-2); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; transition: color .15s ease, border-color .15s ease; }
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-parent > a { border-bottom-color: var(--accent); color: var(--ink); }

.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 22, 26, .45); }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 16px; width: min(340px, 88vw); padding: 16px 20px 28px; overflow-y: auto; background: var(--paper); box-shadow: 12px 0 40px rgba(20, 22, 26, .18); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-family: var(--serif); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.drawer__label { margin: 8px 0 -6px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.drawer__list { list-style: none; }
.drawer__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.drawer__list a:hover { color: var(--accent); }
.drawer__account { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 12px; }
.has-drawer { overflow: hidden; }

/* 5. Layout ------------------------------------------------------------- */

.site-main { display: block; padding-block: 32px 72px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 44px; align-items: start; }
.layout__main { min-width: 0; }
.layout__side { position: sticky; top: calc(var(--top-h) + 24px); display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.admin-bar .layout__side { top: calc(var(--top-h) + 56px); }
.wrap--page { max-width: calc(820px + 2 * var(--gutter)); }

.page-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-head__eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.page-head__title { font-size: clamp(30px, 4vw, 42px); text-transform: capitalize; }
.page-head__text { max-width: 620px; margin-top: 10px; color: var(--muted); }
.page-head__text p:last-child { margin-bottom: 0; }
.page-head .search-form { max-width: 480px; margin-top: 16px; }

.empty { padding: 44px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; }
.empty__title { margin-bottom: 8px; font-size: 26px; }
.empty .search-form { max-width: 420px; margin: 18px auto 0; }
.empty p { color: var(--muted); }

/* 6. Cards -------------------------------------------------------------- */

.feed { display: flex; flex-direction: column; gap: 26px; }
.feed-more { margin-top: 28px; }

.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .2s ease, box-shadow .2s ease; }
.card:hover { border-color: #d3d0c8; box-shadow: 0 10px 30px -18px rgba(20, 22, 26, .35); }
.card__media { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--bg); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.02); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--accent-soft); color: var(--accent); font-family: var(--serif); font-size: 64px; font-weight: 800; }
.card__body { display: flex; flex-direction: column; padding: 20px 24px 16px; }
.card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.card__time { color: var(--muted); font-size: 13px; line-height: 1.2; }
.card__top .kicker + .card__time::before { content: "·"; margin-right: 10px; color: var(--line); }
.card__title { font-size: 24px; line-height: 1.2; }
.card__title a { transition: color .15s ease; }
.card__title a:hover { color: var(--accent-dark); }
.card__excerpt { display: -webkit-box; margin: 9px 0 0; overflow: hidden; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.card__by { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.card__actions { display: flex; flex: none; align-items: center; gap: 12px; }

.card--lead .card__title { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
.card--lead .card__excerpt { font-size: 16.5px; }
.card--lead .card__body { padding: 22px 26px 16px; }

.card--mini { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.card--mini:hover { box-shadow: none; }
.card--mini .card__media { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }
.card--mini .card__title { margin-top: 11px; font-size: 17px; line-height: 1.25; }

.count { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1; }
.count:hover { color: var(--accent); }
.count .icon { width: 17px; height: 17px; }

.share { display: flex; align-items: center; gap: 6px; }
.share__btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink-2); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.share__btn .icon { width: 15px; height: 15px; }
.share__btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.share__btn--facebook:hover { border-color: #1877f2; background: #1877f2; }
.share__btn--pinterest:hover { border-color: #bd081c; background: #bd081c; }
.share__btn--whatsapp:hover { border-color: #128c4b; background: #128c4b; }

/* 7. Sidebar ------------------------------------------------------------ */

.side-box { padding-top: 14px; border-top: 2px solid var(--ink); }
.side-box__title { margin-bottom: 6px; font-size: 20px; }
.side-box .chips { margin-top: 12px; }

.popular { list-style: none; counter-reset: pop; }
.popular__item { counter-increment: pop; border-bottom: 1px solid var(--line); }
.popular__item:last-child { border-bottom: 0; }
.popular__link { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; }
.popular__link::before { content: counter(pop); align-self: start; color: var(--accent); font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1; }
.popular__text { font-size: 15px; font-weight: 600; line-height: 1.35; transition: color .15s ease; }
.popular__link:hover .popular__text { color: var(--accent-dark); }
.popular__thumb img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; }

/* 8. Article ------------------------------------------------------------ */

.article { padding: 36px 44px 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.article__header .kicker { display: inline-block; margin-bottom: 12px; }
.article__title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.018em; }
.article__dek { margin: 14px 0 0; color: var(--ink-2); font-size: 19px; line-height: 1.5; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 24px 0 26px; padding: 14px 0; border-block: 1px solid var(--line); }
.byline__avatar img { width: 44px; height: 44px; border-radius: 50%; }
.byline__text { display: flex; flex-direction: column; margin-right: auto; line-height: 1.35; }
.byline__name { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.byline__name a { color: var(--ink); font-weight: 700; }
.byline__name a:hover { color: var(--accent); }
.byline__meta { color: var(--muted); font-size: 13px; }
.byline__actions { display: flex; align-items: center; gap: 14px; }

.article__figure { margin: 0 0 28px; }
.article__figure img { width: 100%; border-radius: var(--radius-sm); }

.entry-content { color: var(--ink-2); font-size: 18px; line-height: 1.72; overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content h2 { margin: 1.9em 0 .6em; color: var(--ink); font-size: 28px; }
.entry-content h3 { margin: 1.7em 0 .5em; color: var(--ink); font-size: 22px; }
.entry-content h4 { margin: 1.5em 0 .5em; color: var(--ink); font-family: var(--sans); font-size: 18px; letter-spacing: 0; }
.entry-content a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent); text-decoration-thickness: 2px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.7em 0; }
.entry-content figure img { margin-inline: auto; }
.entry-content figcaption, .entry-content .wp-caption-text { margin-top: 9px; color: var(--muted); font-size: 13.5px; line-height: 1.5; text-align: center; }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote { margin: 1.8em 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--accent); color: var(--ink); font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; color: var(--muted); font-family: var(--sans); font-size: 14px; font-style: normal; }
.entry-content hr, .entry-content .wp-block-separator { height: 0; margin: 2.3em auto; border: 0; border-top: 1px solid var(--line); }
.entry-content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 15.5px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--bg); color: var(--ink); }
.entry-content pre { overflow-x: auto; padding: 16px; border-radius: var(--radius-sm); background: var(--bg); font-size: 14.5px; }
.entry-content iframe, .entry-content embed, .entry-content video { max-width: 100%; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content .aligncenter { margin-inline: auto; text-align: center; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content::after { content: ""; display: table; clear: both; }
.page-links { display: flex; gap: 8px; margin-top: 24px; font-weight: 600; }

.article__footer { margin-top: 34px; }
.article__tags { margin-bottom: 22px; }
.article__share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-block: 1px solid var(--line); }
.article__share-label { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.article__share .share__btn { width: 38px; height: 38px; }
.article__share .share__btn .icon { width: 17px; height: 17px; }

.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 30px; padding: 22px; border-radius: var(--radius); background: var(--bg); }
.author-box__avatar img { width: 72px; height: 72px; border-radius: 50%; }
.author-box__eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.author-box__name { font-size: 22px; }
.author-box__name a:hover { color: var(--accent); }
.author-box__bio { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.related { margin-top: 44px; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* 9. Comments ----------------------------------------------------------- */

.comments { margin-top: 44px; }
.comment-list, .comment-list .children { list-style: none; }
.comment-list .children { margin-left: 26px; padding-left: 20px; border-left: 1px solid var(--line); }
.comment-item { margin-bottom: 4px; }
.comment-body { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-avatar { flex: none; }
.comment-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.comment-main { min-width: 0; flex: 1; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.comment-author { font-size: 14.5px; font-weight: 700; }
.comment-date { color: var(--muted); font-size: 12.5px; }
.comment-text { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; overflow-wrap: break-word; }
.comment-text p { margin-bottom: .7em; }
.comment-pending { margin: 6px 0; color: var(--muted); font-size: 13px; font-style: italic; }
.comment-links { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
.comment-links a { color: var(--accent-dark); }
.comment-links a:hover { text-decoration: underline; }
.comments__closed { color: var(--muted); }

.comment-respond { margin-top: 32px; }
.comment-reply-title small { margin-left: 10px; font-family: var(--sans); font-size: 13px; font-weight: 600; }
.comment-reply-title small a { color: var(--accent-dark); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="url"], .entry-content input[type="password"], .entry-content input[type="search"], .entry-content input[type="number"], .entry-content input[type="tel"], .entry-content select, .entry-content textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	font-size: 15.5px;
	line-height: 1.5;
}
.comment-form input:focus, .comment-form textarea:focus, .entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus { outline: none; border-color: var(--ink); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .logged-in-as, .comment-form .comment-notes { color: var(--muted); font-size: 13.5px; }
.comment-form .logged-in-as a { color: var(--accent-dark); }
.comment-form .form-submit { margin-top: 2px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 14px; font-weight: 600; }
.nav-links .page-numbers { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* 10. Pages + misc ------------------------------------------------------ */

.article--page .article__header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article--page .article__title { font-size: clamp(28px, 3.4vw, 40px); }

.not-found { padding: 48px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; }
.not-found__code { margin: 0; color: var(--accent); font-family: var(--serif); font-size: clamp(72px, 14vw, 128px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.not-found__title { margin: 6px 0 10px; font-size: clamp(24px, 3vw, 32px); }
.not-found__text { max-width: 440px; margin-inline: auto; color: var(--muted); }
.not-found .search-form { max-width: 420px; margin: 20px auto; }

.sticky, .bypostauthor { display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 1.6em 0; }
.gallery-item { margin: 0; }

/* Ad blocks from ad plugins: no empty gap when an ad slot is not filled. */
.code-block:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.layout__main > .code-block:first-child { margin-top: 0 !important; }

/* 11. Footer ------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 48px; padding-block: 48px 40px; }
.site-footer__tagline { max-width: 300px; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.site-footer__heading { margin-bottom: 14px; color: var(--muted); font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__links { display: grid; gap: 9px; list-style: none; font-size: 14.5px; }
.site-footer__links--two { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.site-footer__links a { color: var(--ink-2); }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 18px; color: var(--muted); font-size: 13px; }
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.site-footer__bottom p { margin: 0; }
.site-footer__top { font-weight: 600; }
.site-footer__top:hover { color: var(--accent); }

/* 12. Login page ([comicshut_auth]) ------------------------------------- */

.chut-auth { position: relative; max-width: 440px; margin: 0 auto; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.chut-auth a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.chut-auth__radio { position: absolute; opacity: 0; pointer-events: none; }
.chut-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.chut-auth__tab { padding: 12px 8px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 14.5px; font-weight: 700; text-align: center; cursor: pointer; }
.chut-auth__tab:hover { color: var(--ink); }
#chut-auth-t-login:checked ~ .chut-auth__tabs [for="chut-auth-t-login"],
#chut-auth-t-signup:checked ~ .chut-auth__tabs [for="chut-auth-t-signup"] { border-bottom-color: var(--accent); color: var(--ink); }
#chut-auth-t-login:focus-visible ~ .chut-auth__tabs [for="chut-auth-t-login"],
#chut-auth-t-signup:focus-visible ~ .chut-auth__tabs [for="chut-auth-t-signup"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.chut-auth__panel { display: none; }
#chut-auth-t-login:checked ~ .chut-auth__panel--login,
#chut-auth-t-signup:checked ~ .chut-auth__panel--signup { display: block; }
.chut-auth .chut-auth__title { margin: 0 0 4px; font-size: 26px; }
.chut-auth .chut-auth__lead { margin: 0 0 20px; color: var(--muted); }
.chut-auth .chut-form { display: flex; flex-direction: column; gap: 15px; }
.chut-auth .chut-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.chut-auth .chut-field label { font-size: 13px; font-weight: 600; }
.chut-auth .chut-field small { color: var(--muted); font-size: 12.5px; }
.chut-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.chut-auth__row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.chut-auth__row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--ink); }
.chut-auth__submit { width: 100%; padding: 13px 20px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.chut-auth__submit:hover { border-color: var(--accent); background: var(--accent); }
.chut-auth .chut-auth__alt { margin: 16px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.chut-auth__alt label { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chut-auth .chut-auth__notice { margin: 0 0 18px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500; }
.chut-auth__notice.is-error { border-color: #f3b6c9; background: var(--accent-soft); color: #7d0a34; }
.chut-auth__notice.is-success { border-color: #b7e0c5; background: #edf8f1; color: #0d5a2b; }
.chut-auth__notice.is-admin { border-style: dashed; color: var(--muted); font-size: 13.5px; font-weight: 400; }
.chut-auth__social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.chut-auth__or { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.chut-auth__or::before, .chut-auth__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.chut-auth .chut-auth__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chut-auth__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chut-auth__actions a { text-decoration: none; }

/* 13. Small screens ----------------------------------------------------- */

@media (max-width: 1000px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.layout__side { position: static; }
	.article { padding: 28px 28px 32px; }
}

@media (max-width: 782px) {
	.admin-bar .site-top { top: 46px; }
}

@media (max-width: 720px) {
	:root { --gutter: 16px; --top-h: 58px; }
	.site-main { padding-block: 20px 56px; }
	.site-top__inner { gap: 6px; }
	.site-top__menu, .site-top__search-toggle { display: inline-grid; }
	.site-brand { flex: 1; min-width: 0; text-align: center; }
	.site-brand .custom-logo-link { display: inline-block; }
	.site-brand .custom-logo { height: 28px; max-width: 180px; }
	.site-brand__text { font-size: 23px; }
	.site-top__login, .site-top__signup { display: none; }
	.site-top__actions { gap: 4px; }
	.site-top__search { position: absolute; top: 100%; left: 0; right: 0; display: none; max-width: none; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); background: var(--paper); }
	.site-top__search.is-open { display: block; }
	.site-nav__list { gap: 22px; }
	.site-nav__list a { padding: 11px 0 10px; font-size: 12px; }

	.feed { gap: 18px; }
	.card__body, .card--lead .card__body { padding: 16px 16px 13px; }
	.card__title { font-size: 20px; }
	.card--lead .card__title { font-size: 23px; }
	.card__excerpt, .card--lead .card__excerpt { font-size: 15px; -webkit-line-clamp: 2; line-clamp: 2; }
	.card__foot { margin-top: 13px; padding-top: 11px; }

	.article { padding: 22px 18px 26px; }
	.article__dek { font-size: 17px; }
	.byline { margin: 18px 0 20px; }
	.byline__actions { width: 100%; justify-content: space-between; }
	.entry-content { font-size: 17px; line-height: 1.68; }
	.entry-content h2 { font-size: 24px; }
	.entry-content h3 { font-size: 20px; }
	.entry-content blockquote { font-size: 19px; }
	.author-box { padding: 18px; }
	.author-box__avatar img { width: 56px; height: 56px; }
	.related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
	.card--mini .card__title { font-size: 15.5px; }
	.comment-list .children { margin-left: 8px; padding-left: 14px; }

	.site-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-block: 36px 28px; }
}

@media (max-width: 600px) {
	.admin-bar .site-top { top: 0; }
}

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