/*
Theme Name: The How Post
Theme URI: https://pacific-lightskyblue-duck-48.hostingersite.com
Author: The How Post
Author URI: https://pacific-lightskyblue-duck-48.hostingersite.com
Description: A modern glassmorphism editorial theme for The How Post — clear how-to guides, explained simply. Glassy sticky header with scroll animation, animated hero, soft gradients, rounded glass cards and gentle entrance motion. How-To only.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thehowpost
Tags: blog, news, education, custom-menu, featured-images, translation-ready, two-columns, custom-header
*/

/* ============ Tokens ============ */
:root {
	--pine: #0F3D2E;
	--pine-dark: #0A2B20;
	--pine-light: #1B5C45;
	--pine-mid: #2A7A5C;
	--amber: #E8A33D;
	--amber-dark: #C9831F;
	--amber-soft: #F6E7C8;
	--paper: #F7F3EA;
	--paper-dark: #EFE8D6;
	--ink: #1C2B23;
	--muted: #5A6B60;
	--card: #FFFFFF;
	--border: rgba(15, 61, 46, 0.10);
	--glass: rgba(255, 255, 255, 0.68);
	--glass-border: rgba(255, 255, 255, 0.65);
	--radius: 22px;
	--radius-sm: 16px;
	--shadow: 0 10px 30px rgba(15, 61, 46, 0.08);
	--shadow-lg: 0 24px 60px rgba(15, 61, 46, 0.16);
	--font-head: "Newsreader", Georgia, "Times New Roman", serif;
	--font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============ Keyframes ============ */
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}
@keyframes drift {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(24px, -18px) scale(1.06); }
}
@keyframes logoIn {
	from { opacity: 0; transform: translateY(-8px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shineSweep {
	0% { transform: translateX(-120%) skewX(-18deg); }
	60%, 100% { transform: translateX(240%) skewX(-18deg); }
}
@keyframes popIn {
	from { opacity: 0; transform: scale(0.94); }
	to { opacity: 1; transform: scale(1); }
}

/* ============ Base ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		radial-gradient(900px 480px at 85% -5%, rgba(232, 163, 61, 0.14), transparent 60%),
		radial-gradient(700px 420px at -10% 12%, rgba(27, 92, 69, 0.10), transparent 60%),
		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: var(--pine); text-decoration: none; }
a:hover { color: var(--amber-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
	color: var(--pine);
	margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 22px;
}

.section { padding: 76px 0; }
.section--alt {
	background: linear-gradient(180deg, rgba(239, 232, 214, 0.55), rgba(239, 232, 214, 0.9));
}
section[id] { scroll-margin-top: 92px; }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}
.section__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0; letter-spacing: -0.01em; }
.section__kicker {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--amber-dark);
	margin: 0 0 8px;
}
.section__more { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }

.eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--amber-dark);
	background: var(--amber-soft);
	border: 1px solid rgba(201, 131, 31, 0.25);
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
}

/* Scroll-reveal (JS adds .in-view) */
.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.32, 1);
	transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ Glassy masthead ============ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 243, 234, 0.72);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
	border-bottom: 1px solid rgba(15, 61, 46, 0.08);
	transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
	background: rgba(247, 243, 234, 0.9);
	box-shadow: 0 10px 34px rgba(15, 61, 46, 0.14);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 74px;
	transition: min-height 0.35s ease;
}
.site-header.is-scrolled .site-header__inner { min-height: 58px; }

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--pine);
	letter-spacing: -0.01em;
	white-space: nowrap;
	animation: logoIn 0.7s ease both;
}
.site-logo:hover { color: var(--pine); text-decoration: none; }
.site-logo span { color: var(--amber-dark); }
.logo-mark {
	position: relative;
	display: inline-flex;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 13px;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(15, 61, 46, 0.28);
	animation: floatY 5s ease-in-out 0.9s infinite;
}
.logo-mark svg { display: block; width: 100%; height: 100%; }
.logo-mark::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: translateX(-120%) skewX(-18deg);
	animation: shineSweep 2.4s ease 0.5s both;
}

.main-nav { margin-left: auto; }
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}
.main-nav a {
	position: relative;
	display: block;
	padding: 10px 13px;
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 10px;
}
.main-nav a::after {
	content: "";
	position: absolute;
	left: 13px; right: 13px; bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--pine-light), var(--amber));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}
.main-nav a:hover { color: var(--pine); text-decoration: none; }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav .current-menu-item a { color: var(--pine); }
.main-nav .current-menu-item a::after { transform: scaleX(1); }

.menu-toggle {
	display: none;
	margin-left: auto;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid var(--border);
	color: var(--pine);
	border-radius: 12px;
	padding: 9px 14px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.menu-toggle:hover { border-color: var(--pine); }

/* ============ Hero ============ */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(720px 420px at 18% 0%, rgba(232, 163, 61, 0.22), transparent 62%),
		radial-gradient(640px 460px at 88% 110%, rgba(42, 122, 92, 0.55), transparent 60%),
		linear-gradient(155deg, var(--pine) 0%, var(--pine-dark) 100%);
	color: #fff;
	padding: 96px 0 104px;
	text-align: center;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.4px);
	background-size: 26px 26px;
	opacity: 0.35;
	pointer-events: none;
}
.hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}
.hero__orb--1 {
	width: 340px; height: 340px;
	top: -90px; left: -60px;
	background: rgba(232, 163, 61, 0.35);
	animation: drift 11s ease-in-out infinite;
}
.hero__orb--2 {
	width: 300px; height: 300px;
	bottom: -120px; right: -40px;
	background: rgba(42, 122, 92, 0.5);
	animation: drift 13s ease-in-out 1.2s infinite reverse;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
	color: #fff;
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	margin-bottom: 16px;
	animation: fadeUp 0.8s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}
.hero h1 em {
	font-style: normal;
	background: linear-gradient(90deg, var(--amber), #F2C063);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--amber);
}
.hero__tagline {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: #CFDDD3;
	max-width: 580px;
	margin: 0 auto 36px;
	animation: fadeUp 0.8s cubic-bezier(0.22, 0.8, 0.32, 1) 0.12s both;
}
.hero-search { max-width: 600px; margin: 0 auto; animation: fadeUp 0.8s cubic-bezier(0.22, 0.8, 0.32, 1) 0.24s both; }
.hero-search .search-form {
	max-width: none;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	padding: 6px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.hero-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 13px 18px;
	font-family: var(--font-body);
	font-size: 1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
}
.hero-search input[type="search"]::placeholder { color: rgba(255, 255, 255, 0.65); }
.hero-search input[type="search"]:focus { outline: none; box-shadow: none; }
.hero-search button {
	padding: 13px 26px;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	color: var(--pine-dark);
	background: linear-gradient(135deg, #F2B45C, var(--amber));
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(232, 163, 61, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-search button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(232, 163, 61, 0.55); }
.hero__chips { margin-top: 26px; font-size: 0.92rem; color: #B9C9BC; animation: fadeUp 0.8s cubic-bezier(0.22, 0.8, 0.32, 1) 0.36s both; }
.hero__chips a {
	display: inline-block;
	margin: 4px 4px 0;
	padding: 7px 15px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.07);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero__chips a:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ============ Featured story ============ */
.featured-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--glass);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}
.featured-card__media { min-height: 340px; }
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; }
.featured-card__body { padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-card__body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.featured-card__body h2 a { color: var(--pine); }
.featured-card__body h2 a:hover { color: var(--amber-dark); }
.featured-card__body p { color: var(--muted); }
.btn {
	display: inline-block;
	padding: 13px 24px;
	background: var(--pine);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 999px;
	border: 2px solid var(--pine);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--pine-light); border-color: var(--pine-light); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 61, 46, 0.25); }
.btn--amber {
	background: linear-gradient(135deg, #F2B45C, var(--amber));
	border-color: transparent;
	color: var(--pine-dark);
	box-shadow: 0 8px 20px rgba(232, 163, 61, 0.4);
}
.btn--amber:hover { background: linear-gradient(135deg, #F6C26E, #EDAB45); color: var(--pine-dark); }

/* ============ Most searched ranking ============ */
.rank-list {
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--glass);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.rank-list li {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	border-radius: 14px;
	transition: background 0.2s ease;
}
.rank-list li:hover { background: rgba(255, 255, 255, 0.75); }
.rank-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	flex: 0 0 40px;
	border-radius: 50%;
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--pine);
	background: var(--amber-soft);
	border: 1px solid rgba(201, 131, 31, 0.3);
}
.rank-list li:first-child .rank-num {
	color: #fff;
	background: linear-gradient(135deg, #F2B45C, var(--amber-dark));
	border-color: transparent;
	box-shadow: 0 6px 16px rgba(232, 163, 61, 0.45);
}
.rank-term { flex: 1; font-weight: 600; font-size: 1.05rem; }
.rank-term a { color: var(--ink); }
.rank-term a:hover { color: var(--pine); }
.rank-vol {
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--amber-dark);
	background: var(--amber-soft);
	padding: 5px 13px;
	border-radius: 999px;
	white-space: nowrap;
}

/* ============ Guide cards / grids ============ */
.guides-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.guide-card {
	background: var(--glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.32, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(232, 163, 61, 0.55); }
.guide-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.guide-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.guide-card:hover .guide-card__media img { transform: scale(1.05); }
.guide-card__media--fallback {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--pine) 0%, var(--pine-light) 70%, var(--amber) 165%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 22px;
	text-align: center;
}
.guide-card__media--fallback .fallback-mark {
	font-family: var(--font-head);
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
	color: rgba(255, 255, 255, 0.85);
}
.guide-card__media--fallback span {
	font-family: var(--font-head);
	font-size: 1.18rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}
.guide-card__media--fallback.tint-1 { background: linear-gradient(135deg, #0F3D2E 0%, #1B5C45 65%, #E8A33D 170%); }
.guide-card__media--fallback.tint-2 { background: linear-gradient(135deg, #C9831F 0%, #E8A33D 55%, #F6E7C8 140%); }
.guide-card__media--fallback.tint-3 { background: linear-gradient(135deg, #0A2B20 0%, #2A7A5C 70%, #8FC3A6 150%); }
.guide-card__media--fallback.tint-4 { background: linear-gradient(135deg, #1B5C45 0%, #0F3D2E 60%, #C9831F 150%); }
.guide-card__media--fallback.tint-5 { background: linear-gradient(135deg, #2A7A5C 0%, #E8A33D 90%, #F6E7C8 150%); }
.sample-tag {
	position: absolute;
	top: 12px; left: 12px;
	z-index: 2;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pine-dark);
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.9);
	padding: 4px 10px;
	border-radius: 999px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.guide-card__vol {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 2;
	font-size: 0.78rem;
	font-weight: 800;
	color: #fff;
	background: rgba(10, 43, 32, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 4px 11px;
	border-radius: 999px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.guide-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.guide-card__meta {
	display: flex;
	gap: 12px;
	align-items: center;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--amber-dark);
	margin-bottom: 9px;
}
.guide-card__meta .reading-time { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 600; }
.guide-card__body h3 { font-size: 1.28rem; margin-bottom: 8px; }
.guide-card__body h3 a { color: var(--ink); }
.guide-card__body h3 a:hover { color: var(--pine); }
.guide-card__excerpt { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }
.guide-card__date { margin-top: auto; padding-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* Filter buttons */
.format-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.format-filters a {
	padding: 10px 19px;
	border: 1.5px solid var(--pine);
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--pine);
	background: rgba(255, 255, 255, 0.55);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.format-filters a:hover { background: var(--pine); color: #fff; text-decoration: none; transform: translateY(-1px); }
.format-filters a.is-active { background: var(--pine); color: #fff; box-shadow: 0 8px 18px rgba(15, 61, 46, 0.28); }

/* ============ Guide of the Week ============ */
.guide-week {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(420px 260px at 90% 0%, rgba(232, 163, 61, 0.3), transparent 65%),
		linear-gradient(135deg, var(--pine) 0%, var(--pine-dark) 100%);
	color: #fff;
	border-radius: var(--radius);
	padding: 52px;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 44px;
	align-items: center;
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(255, 255, 255, 0.14);
}
.guide-week::before {
	content: "";
	position: absolute;
	width: 220px; height: 220px;
	border-radius: 50%;
	right: -70px; top: -70px;
	background: rgba(232, 163, 61, 0.28);
	filter: blur(60px);
	pointer-events: none;
}
.guide-week h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.guide-week h2 a { color: #fff; }
.guide-week h2 a:hover { color: var(--amber); }
.guide-week p { color: #CFDDD3; }
.guide-week .eyebrow { background: rgba(232, 163, 61, 0.18); border-color: rgba(232, 163, 61, 0.4); color: var(--amber); }
.guide-week__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.guide-week__steps li {
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	padding: 13px 17px;
	font-size: 0.95rem;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background 0.2s ease, transform 0.2s ease;
}
.guide-week__steps li:hover { background: rgba(255, 255, 255, 0.15); transform: translateX(3px); }
.guide-week__steps li strong { color: var(--amber); }

/* ============ Browse by Format ============ */
.format-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.format-tile {
	display: block;
	background: var(--glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	padding: 28px 26px;
	box-shadow: var(--shadow);
	transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.32, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.format-tile:hover { border-color: rgba(232, 163, 61, 0.6); text-decoration: none; transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.format-tile__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	border-radius: 15px;
	background: linear-gradient(135deg, var(--pine-light), var(--pine));
	color: var(--amber);
	margin-bottom: 16px;
	box-shadow: 0 8px 18px rgba(15, 61, 46, 0.25);
}
.format-tile__icon svg { width: 24px; height: 24px; }
.format-tile h3 { font-size: 1.32rem; margin-bottom: 5px; }
.format-tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.format-tile .count {
	display: inline-block;
	margin-top: 14px;
	font-weight: 800;
	font-size: 0.9rem;
	color: var(--amber-dark);
	background: var(--amber-soft);
	padding: 4px 12px;
	border-radius: 999px;
}

/* ============ Launch plan ============ */
.plan-panel {
	background: var(--glass);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border: 1.5px solid rgba(15, 61, 46, 0.14);
	border-radius: var(--radius);
	padding: 48px;
	box-shadow: var(--shadow-lg);
	position: relative;
	overflow: hidden;
}
.plan-panel::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--pine-light), var(--amber), var(--pine-light));
}
.plan-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 30px 0;
	text-align: center;
}
.plan-stat__num {
	font-family: var(--font-head);
	font-size: clamp(2.1rem, 4vw, 3rem);
	font-weight: 800;
	color: var(--pine);
	line-height: 1.1;
}
.plan-stat__num span { color: var(--amber-dark); }
.plan-stat__label { font-size: 0.92rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.plan-panel p { color: var(--muted); max-width: 720px; }
.plan-weeks {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-top: 30px;
}
.plan-week {
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 15px 12px;
	font-size: 0.9rem;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-week:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-week strong { display: block; color: var(--pine); font-size: 0.95rem; }

/* ============ Article / single ============ */
.article { max-width: 780px; margin: 0 auto; padding: 60px 20px 76px; }
.article__header { text-align: center; margin-bottom: 34px; animation: fadeUp 0.6s ease both; }
.article__header h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
.article__meta {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	color: var(--muted);
	font-size: 0.95rem;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-radius: 999px;
	padding: 8px 18px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.article__meta a { color: var(--pine); font-weight: 600; }
.article__thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow-lg); }
.article__content { font-size: 1.08rem; line-height: 1.78; }
.article__content h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article__content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.article__content img { border-radius: 14px; }
.article__content blockquote {
	border-left: 4px solid var(--amber);
	margin: 1.5em 0;
	padding: 0.5em 0 0.5em 1.2em;
	font-family: var(--font-head);
	font-size: 1.25rem;
	color: var(--pine);
	background: linear-gradient(90deg, rgba(232, 163, 61, 0.10), transparent);
	border-radius: 0 14px 14px 0;
}
.article__nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 52px;
	padding-top: 30px;
	border-top: 1px solid var(--border);
}
.article__nav a { font-weight: 600; }
.article__nav--prev, .article__nav--next { flex: 1; }
.article__nav--next { text-align: right; }

/* ============ Archive / listing pages ============ */
.page-head { padding: 64px 0 8px; animation: fadeUp 0.6s ease both; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.01em; }
.page-head p { color: var(--muted); max-width: 640px; }
.listing { padding: 24px 0 76px; }
.no-results { text-align: center; padding: 52px 0; color: var(--muted); }
.pagination { margin-top: 44px; text-align: center; }
.pagination .page-numbers {
	display: inline-block;
	padding: 10px 16px;
	margin: 0 3px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--glass);
	font-weight: 700;
	color: var(--pine);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: border-color 0.2s ease, background 0.2s ease;
}
.pagination .page-numbers.current { background: var(--pine); color: #fff; border-color: var(--pine); }
.pagination a.page-numbers:hover { text-decoration: none; border-color: var(--pine); }

/* ============ Search form (inner pages) ============ */
.search-form { display: flex; max-width: 480px; }
.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 13px 17px;
	font-family: var(--font-body);
	font-size: 1rem;
	border: 2px solid var(--border);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--ink);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--amber); }
.search-form button {
	padding: 13px 22px;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	color: var(--pine-dark);
	background: linear-gradient(135deg, #F2B45C, var(--amber));
	border: 2px solid var(--amber);
	border-radius: 0 999px 999px 0;
	cursor: pointer;
}

/* ============ Footer ============ */
.site-footer {
	background:
		radial-gradient(600px 300px at 90% 0%, rgba(232, 163, 61, 0.14), transparent 60%),
		linear-gradient(180deg, var(--pine) 0%, var(--pine-dark) 100%);
	color: #B9C9BC;
	padding: 64px 0 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__wordmark {
	font-family: var(--font-head);
	font-size: clamp(2.6rem, 8vw, 5.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	color: rgba(255, 255, 255, 0.09);
	text-align: center;
	margin: 0 0 44px;
	user-select: none;
}
.site-footer__wordmark span { color: rgba(232, 163, 61, 0.22); }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 44px;
	margin-bottom: 44px;
}
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: #E9EFEA; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 26px;
	font-size: 0.88rem;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
	.guides-grid { grid-template-columns: repeat(2, 1fr); }
	.format-grid { grid-template-columns: repeat(2, 1fr); }
	.featured-card { grid-template-columns: 1fr; }
	.featured-card__media { min-height: 230px; }
	.guide-week { grid-template-columns: 1fr; padding: 38px 30px; }
	.plan-weeks { grid-template-columns: repeat(3, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.section { padding: 54px 0; }
	.menu-toggle { display: block; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 12px;
		right: 12px;
		background: rgba(247, 243, 234, 0.94);
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
		border: 1px solid var(--border);
		border-radius: 18px;
		padding: 12px;
		box-shadow: var(--shadow-lg);
	}
	.main-nav.is-open { display: block; animation: popIn 0.25s ease both; }
	.main-nav ul { flex-direction: column; gap: 2px; }
	.main-nav a { padding: 12px 14px; }
	.main-nav a::after { display: none; }
	.hero { padding: 64px 0 72px; }
	.hero-search .search-form { flex-direction: column; border-radius: 22px; padding: 8px; gap: 8px; }
	.hero-search input[type="search"] { border-radius: 14px; text-align: center; background: rgba(10, 43, 32, 0.45); }
	.hero-search button { border-radius: 14px; }
	.guides-grid { grid-template-columns: 1fr; }
	.format-grid { grid-template-columns: 1fr; }
	.plan-stats { grid-template-columns: 1fr; gap: 20px; }
	.plan-weeks { grid-template-columns: repeat(2, 1fr); }
	.plan-panel { padding: 34px 22px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.rank-list li { padding: 12px 12px; }
	.guide-week { padding: 32px 22px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
	.reveal { opacity: 1; transform: none; }
}
