/*
Theme Name: Erkeks
Theme URI: https://erkeks.com
Author: Erkeks.com
Description: A magazine-style Men's Lifestyle, Fashion & Fitness blog theme for Erkeks.com. Links to posts start with <a href, all other links start with <a class; every page has exactly one <header> and one <footer>.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
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: erkeks
Tags: blog, news, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--ink: #0f0f10;
	--ink-2: #1c1c1f;
	--ink-3: #2a2a2e;
	--paper: #f5f3ee;
	--paper-2: #ebe7de;
	--white: #ffffff;
	--muted: #6d6a64;
	--line: #d9d4c8;
	--accent: #c8a24a;      /* brass */
	--accent-dark: #a8842f;
	--rust: #b4533a;
	--olive: #5f7046;
	--steel: #3d5a73;
	--font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-serif: "Playfair Display", Georgia, serif;
	--container: 1240px;
	--gap: 28px;
	--radius: 2px;
	--shadow: 0 14px 40px rgba(15, 15, 16, .12);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: .01em;
	margin: 0 0 .5em;
	text-transform: uppercase;
}
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--accent); color: var(--ink);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   3. Site header (tek <header>)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); }
.admin-bar .site-header { top: 32px; }
.topbar { border-bottom: 1px solid var(--ink-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #a9a59c; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar__tagline { flex: 1; text-align: center; }
.mainbar__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; transition: min-height .25s ease; }
.site-header.is-compact .mainbar__inner { min-height: 60px; }
.site-header.is-compact .topbar { display: none; }

.site-logo { display: inline-flex; align-items: baseline; gap: 2px; color: var(--paper); line-height: 1; }
.site-logo:hover { color: var(--paper); }
.site-logo__mark { width: 20px; height: 29px; margin-right: 12px; align-self: center; color: var(--paper); }
.site-logo__word { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: .14em; }
.site-logo__dot { font-family: var(--font-display); font-size: 14px; letter-spacing: .1em; color: var(--accent); }
.site-logo img { max-height: 44px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav .menu > li > a {
	display: block; padding: 10px 14px; font-family: var(--font-display); font-size: 15px;
	font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--paper);
}
.primary-nav .menu > li > a::after {
	content: ""; display: block; height: 2px; margin-top: 4px; background: var(--accent);
	transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.primary-nav .menu > li > a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav .current-cat > a::after { transform: scaleX(1); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; padding: 10px 0; background: var(--ink-2);
	box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 8px 18px; font-size: 14px; color: #d8d4ca; }
.primary-nav .sub-menu a:hover { color: var(--accent); }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
	border: 1px solid var(--ink-3); border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

.search-panel { border-top: 1px solid var(--ink-3); background: var(--ink-2); padding: 22px 0; }
.search-panel[hidden] { display: none; }

.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social__link { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: inherit; border-radius: 50%; }
.social__link:hover { color: var(--accent); background: rgba(255, 255, 255, .06); }
.social__link svg { width: 15px; height: 15px; }

.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ==========================================================================
   4. Search form
   ========================================================================== */
.search-form { display: flex; max-width: 720px; margin: 0 auto; border-bottom: 2px solid var(--accent); }
.search-form input[type="search"] {
	flex: 1; padding: 12px 4px; border: 0; background: transparent; color: inherit;
	font-family: var(--font-display); font-size: 22px; letter-spacing: .05em; outline: none;
}
.search-form button {
	border: 0; background: var(--accent); color: var(--ink); padding: 0 22px;
	font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; cursor: pointer;
}
.search-form button:hover { background: var(--paper); }

/* ==========================================================================
   5. Badges, meta, buttons
   ========================================================================== */
.badge {
	display: inline-block; padding: 4px 10px; background: var(--cat, var(--accent)); color: var(--white);
	font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4;
}
.badge:hover { background: var(--ink); color: var(--white); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.meta__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.meta__author { font-weight: 600; color: var(--ink); }
.btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; background: var(--ink); color: var(--paper);
	font-family: var(--font-display); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent); color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--paper); }

/* ==========================================================================
   6. Cards (posts: <article>, no header/footer inside)
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; background: transparent; }
.card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img, .card:hover .thumb-ph { transform: scale(1.05); }
.card__body { padding-top: 16px; }
.card__body .badge { margin-bottom: 12px; }
.card__title { font-size: 22px; margin-bottom: 10px; }
.card__title a:hover { color: var(--accent-dark); }
.card__excerpt { font-size: 15px; color: #45423d; margin-bottom: 12px; }

.thumb-ph {
	position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px;
	background: linear-gradient(135deg, var(--ph-a, #1c1c1f) 0%, var(--ph-b, #3a3a40) 100%); transition: transform .6s ease;
}
.thumb-ph::before {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
}
.thumb-ph span {
	position: relative; font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: .8;
	color: rgba(255, 255, 255, .16); text-transform: uppercase; letter-spacing: .04em;
}

/* Hero card */
.card--hero { min-height: 560px; justify-content: flex-end; color: var(--white); overflow: hidden; }
.card--hero .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--hero .card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%);
}
.card--hero .card__body { position: relative; z-index: 2; padding: 40px; pointer-events: none; }
.card--hero .card__body a, .card--hero .card__body .meta { pointer-events: auto; }
.card--hero .card__title { font-size: clamp(30px, 4vw, 52px); max-width: 820px; }
.card--hero .card__title a:hover { color: var(--accent); }
.card--hero .card__excerpt { color: #e7e3da; font-size: 17px; max-width: 640px; }
.card--hero .meta, .card--hero .meta__author { color: #d8d4ca; }

/* Side card */
.card--side { flex-direction: row; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--ink-3); }
.card--side:last-child { border-bottom: 0; padding-bottom: 0; }
.card--side > a:first-child { flex: 0 0 120px; }
.card--side .card__media { aspect-ratio: 1 / 1; }
.card--side .card__body { padding-top: 0; }
.card--side .card__title { font-size: 18px; color: var(--paper); }
.card--side .card__title a:hover { color: var(--accent); }
.card--side .badge { margin-bottom: 8px; font-size: 11px; }
.card--side .meta { color: #a9a59c; }
.card--side .meta__author { color: #d8d4ca; }
.card--side .thumb-ph span { font-size: 40px; }

/* List card */
.card--list { flex-direction: row; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.card--list > a:first-child { flex: 0 0 38%; }
.card--list .card__body { padding-top: 0; }
.card--list .card__title { font-size: 26px; }

/* Grids */
.grid { display: grid; gap: 40px var(--gap); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 .card__title { font-size: 20px; }
.grid--4 .meta { font-size: 12px; gap: 4px 8px; }

/* ==========================================================================
   7. Home
   ========================================================================== */
.hero-wrap { background: var(--ink); padding: 34px 0 56px; }
.hero { display: grid; grid-template-columns: 1.75fr 1fr; gap: var(--gap); }
.hero__side { display: flex; flex-direction: column; gap: 22px; padding: 26px; background: var(--ink-2); }
.hero__side-title { font-size: 14px; letter-spacing: .22em; color: var(--accent); margin: 0; }

.ticker { background: var(--accent); color: var(--ink); overflow: hidden; white-space: nowrap; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em; font-size: 14px; }
.ticker__track { display: inline-flex; gap: 46px; padding: 12px 0; animation: ticker 40s linear infinite; }
.ticker__track span::before { content: "✦"; margin-right: 46px; opacity: .55; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 72px 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.section--dark .section-head { border-color: var(--paper); }
.section-head__title { margin: 0; font-size: clamp(30px, 4vw, 46px); }
.section-head__title small { display: block; font-family: var(--font-serif); font-style: italic; font-size: 17px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); margin-bottom: 4px; }
.section--dark .section-head__title small { color: #a9a59c; }
.section-more { font-family: var(--font-display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.section--dark .card__title a:hover { color: var(--accent); }
.section--dark .card__excerpt { color: #bdb8ad; }
.section--dark .meta__author { color: var(--paper); }

.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
.feature__list .card--list:first-child { padding-top: 0; }
.feature__list .card--list > a:first-child { flex-basis: 34%; }
.feature__list .card--list .card__title { font-size: 20px; }

.newsletter { background: var(--ink); color: var(--paper); padding: 68px 0; position: relative; overflow: hidden; }
.newsletter::before { content: "ERKEKS"; position: absolute; right: -30px; bottom: -60px; font-family: var(--font-display); font-weight: 700; font-size: 240px; color: rgba(255,255,255,.035); letter-spacing: .1em; line-height: 1; }
.newsletter__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.newsletter p { color: #bdb8ad; margin: 0; }
.newsletter form { display: flex; }
.newsletter input[type="email"] { flex: 1; padding: 16px 18px; border: 1px solid var(--ink-3); background: var(--ink-2); color: var(--paper); outline: none; }
.newsletter input[type="email"]:focus { border-color: var(--accent); }

/* ==========================================================================
   8. Archive / page hero (div, not <header>)
   ========================================================================== */
.page-hero { background: var(--ink); color: var(--paper); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero__kicker { font-family: var(--font-display); color: var(--accent); letter-spacing: .24em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.page-hero__title { font-size: clamp(38px, 6vw, 76px); margin: 0 0 14px; }
.page-hero__desc { max-width: 680px; color: #bdb8ad; font-size: 18px; }
.page-hero__desc p:last-child { margin: 0; }
.page-hero .search-form { margin: 20px 0 0; }
.archive-body { padding: 64px 0 80px; }

.pagination { margin-top: 56px; }
.pagination__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; min-width: 46px; height: 46px; padding: 0 14px; align-items: center; justify-content: center;
	border: 1px solid var(--line); font-family: var(--font-display); letter-spacing: .1em; font-size: 15px;
}
.pagination a.page-numbers:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ==========================================================================
   9. Single
   ========================================================================== */
.entry-top { padding: 60px 0 36px; text-align: center; }
.entry-top .badge { margin-bottom: 18px; }
.entry-title { font-size: clamp(36px, 5.5vw, 68px); max-width: 980px; margin: 0 auto 18px; }
.entry-dek { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.5; color: #45423d; max-width: 760px; margin: 0 auto 22px; }
.entry-top .meta { justify-content: center; }
.meta__avatar img { width: 34px; height: 34px; border-radius: 50%; }
.entry-media { margin-bottom: 52px; }
.entry-media img { width: 100%; max-height: 720px; object-fit: cover; }
.entry-media figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }

.entry-layout { display: grid; grid-template-columns: 64px minmax(0, 720px) 1fr; gap: 48px; justify-content: center; }
.entry-layout--no-sidebar { grid-template-columns: 64px minmax(0, 760px); }
.share { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 8px; align-self: start; }
.share__label { font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto 6px; }
.share__link { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
.share__link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share__link svg { width: 16px; height: 16px; }

.entry-content { font-size: 19px; line-height: 1.8; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-weight: 700; font-size: 84px; line-height: .8; padding: 8px 12px 0 0; color: var(--accent-dark); }
.entry-content h2 { font-size: 34px; margin-top: 1.6em; }
.entry-content h3 { font-size: 26px; margin-top: 1.4em; }
.entry-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--accent); font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.45; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); }
.entry-content .alignwide { margin-left: -80px; margin-right: -80px; }
.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; text-align: left; }
.page-links { margin-top: 30px; font-family: var(--font-display); letter-spacing: .1em; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0; }
.tag-link { padding: 6px 14px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .06em; }
.tag-link:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.author-box { display: flex; gap: 22px; padding: 30px; background: var(--paper-2); margin: 40px 0; }
.author-box img { border-radius: 50%; width: 88px; height: 88px; }
.author-box__name { font-size: 22px; margin-bottom: 6px; }
.author-box p { font-size: 15px; color: #45423d; margin-bottom: 8px; }
.author-box__more { font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--accent); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 50px 0 0; background: var(--line); border: 1px solid var(--line); }
.post-nav__item { display: block; padding: 24px; background: var(--paper); }
.post-nav__item:hover { background: var(--white); }
.post-nav__item--next { text-align: right; }
.post-nav__label { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 6px; }
.post-nav__title { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; line-height: 1.25; }

.sidebar .widget { margin-bottom: 44px; }
.sidebar .widget-title, .sidebar .wp-block-heading { font-size: 16px; letter-spacing: .2em; padding-bottom: 10px; border-bottom: 3px solid var(--ink); margin-bottom: 18px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

.related { padding: 70px 0 80px; background: var(--paper-2); margin-top: 70px; }

/* Comments */
.comments { margin-top: 60px; }
.comments__title { font-size: 26px; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-left: 40px; }
.comment-body { padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.comment-meta img { border-radius: 50%; }
.comment-author-name { font-weight: 700; }
.comment-date { font-size: 13px; color: var(--muted); }
.comment-content { font-size: 16px; }
.comment-reply-link { font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.comment-respond { margin-top: 40px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); margin-bottom: 14px;
}
.comment-form .submit { padding: 14px 28px; border: 0; background: var(--ink); color: var(--paper); font-family: var(--font-display); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.comment-form .submit:hover { background: var(--accent); color: var(--ink); }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 22vw, 260px); line-height: .9; color: var(--ink); -webkit-text-stroke: 0; }
.notfound__code span { color: var(--accent); }

/* ==========================================================================
   10. Site footer (tek <footer>)
   ========================================================================== */
.site-footer { background: var(--ink); color: #bdb8ad; padding: 80px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; padding-bottom: 56px; }
.footer-brand p { margin-top: 18px; max-width: 360px; }
.footer-col__title { color: var(--paper); font-size: 15px; letter-spacing: .2em; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-link:hover, .footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--ink-3); padding: 22px 0; font-size: 13px; letter-spacing: .04em; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .social { margin-top: 20px; }
.site-footer .social__link { border: 1px solid var(--ink-3); width: 38px; height: 38px; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; opacity: 0; visibility: hidden; background: var(--accent); color: var(--ink); border: 0; }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--muted); }
.sticky, .bypostauthor { }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.hero { grid-template-columns: 1fr; }
	.entry-layout { grid-template-columns: 56px minmax(0, 1fr); }
	.entry-layout .sidebar { grid-column: 1 / -1; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: fixed; inset: 0 30% 0 0; max-width: 360px; background: var(--ink-2); padding: 90px 28px 28px;
		transform: translateX(-100%); transition: transform .3s ease; z-index: 70; overflow-y: auto; margin: 0;
	}
	.primary-nav.is-open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.5); }
	.primary-nav .menu { flex-direction: column; align-items: stretch; }
	.primary-nav .menu > li > a { font-size: 20px; padding: 12px 0; border-bottom: 1px solid var(--ink-3); }
	.primary-nav .menu > li > a::after { display: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
	.site-logo { margin-right: auto; }
	.feature, .newsletter__inner, .grid--3 { grid-template-columns: 1fr 1fr; }
	.feature { grid-template-columns: 1fr; }
	.newsletter__inner { grid-template-columns: 1fr; }
	.topbar__tagline { display: none; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.grid--4, .grid--3 { grid-template-columns: 1fr; }
	.card--hero { min-height: 460px; }
	.card--hero .card__body { padding: 24px; }
	.card--list { flex-direction: column; gap: 14px; }
	.card--list > a:first-child { flex-basis: auto; }
	.section { padding: 52px 0; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.entry-layout { grid-template-columns: 1fr; }
	.share { position: static; flex-direction: row; }
	.share__label { writing-mode: horizontal-tb; transform: none; margin: auto 6px auto 0; }
	.entry-content { font-size: 17px; }
	.post-nav { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.author-box { flex-direction: column; }
	.topbar__date { display: none; }
	.topbar__inner { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.card--hero .thumb-ph span { display: none; }
