/*
Theme Name: GlosyWise
Theme URI: https://glosywise.com/
Author: GlosyWise
Author URI: https://glosywise.com/
Description: An elegant fashion-magazine theme for GlosyWise — beauty, skincare and fashion. Serif headlines, clean white layout, red accent, InStyle-style homepage with a 3-column top row (Must-Reads, hero feature, The Latest), a Top Stories panel, a cover-story promo, category sections and a Latest News grid with Load More.
Version: 1.3.4
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: glosywise
Tags: blog, fashion, beauty, magazine, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   GlosyWise 1.3.0 — elegant fashion magazine
   Fonts: Playfair Display (headings) + Inter (body/meta)
   Accent: red #d9232e, main ink #111111
   ============================================================ */

:root {
	--red: #d9232e;
	--red-dark: #b01e28;
	--red-pale: #fdf3f4;
	--cover: #e9edf0;
	--ink: #111111;
	--body: #333333;
	--muted: #777777;
	--line: #e9e2e2;
	--bg: #ffffff;
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--body);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ink);
	text-decoration: none;
}

a:hover {
	color: var(--red-dark);
}

h1, h2, h3, h4 {
	font-family: var(--serif);
	color: var(--ink);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.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;
}

.skip-link:focus {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
	z-index: 100;
}

.thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	background: var(--red-pale);
	color: var(--red-dark);
	font-family: var(--serif);
	font-size: 20px;
	text-align: center;
	padding: 20px;
}

.thumb-placeholder-small {
	min-height: 80px;
	font-size: 13px;
}

/* ---------- Buttons ---------- */
.btn-outline {
	display: inline-block;
	padding: 10px 26px;
	border: 1px solid var(--ink);
	background: transparent;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
	background: var(--ink);
	color: #fff;
}

.btn-outline:disabled {
	opacity: 0.55;
	cursor: default;
}

/* ---------- Header: masthead (wordmark left, links right) ---------- */
.masthead {
	padding: 26px 20px 20px;
}

.masthead-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.site-branding {
	text-align: left;
}

.site-title {
	font-family: var(--serif);
	font-size: 58px;
	font-weight: 900;
	line-height: 1;
	margin: 0;
	letter-spacing: 0.01em;
}

.site-title a {
	color: var(--ink);
}

.site-title a:hover {
	color: var(--ink);
}

.site-description {
	margin: 8px 0 0;
	font-size: 11px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--muted);
}

.custom-logo {
	max-height: 110px;
	width: auto;
}

.masthead-links {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-top: 16px;
	flex-shrink: 0;
}

.social-links {
	display: flex;
	align-items: center;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	display: block;
	line-height: 0;
	color: var(--ink);
}

.social-links a:hover {
	color: var(--red);
}

.masthead-link {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--ink);
	white-space: nowrap;
}

.masthead-link:hover {
	color: var(--red-dark);
}

/* ---------- Header: navigation ---------- */
.main-nav {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: #fff;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	min-height: 52px;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav li {
	margin: 0;
}

.main-nav li a {
	display: block;
	padding: 15px 16px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
}

.main-nav li a:hover,
.main-nav li.current-menu-item > a,
.main-nav li.current-category-ancestor > a {
	color: var(--red-dark);
}

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	padding: 8px 10px;
	cursor: pointer;
	color: var(--ink);
}

.nav-search-toggle {
	background: none;
	border: 0;
	padding: 6px;
	cursor: pointer;
	color: var(--ink);
	line-height: 0;
}

.nav-search-toggle:hover {
	color: var(--red);
}

.nav-search {
	display: none;
	border-top: 1px solid var(--line);
	padding: 14px 0;
}

.nav-search.is-open {
	display: block;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 0 auto;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 15px;
	color: var(--body);
	background: #fff;
}

.search-field:focus {
	outline: none;
	border-color: var(--red);
}

.search-submit {
	padding: 10px 22px;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.search-submit:hover {
	background: var(--red-dark);
	border-color: var(--red-dark);
}

/* ---------- Homepage: 3-column top row ---------- */
.site-content {
	padding: 36px 0 10px;
}

.home-top-grid {
	display: grid;
	grid-template-columns: 1fr 1.8fr 1fr;
	gap: 40px;
	align-items: start;
}

/* THE LATEST runs down the right side beside the hero row and the
TOP STORIES panel, so it spans both grid rows; the panel spans the
left+centre columns in row 2. The cover promo sits below the grid,
full width. */
.rail-latest {
	grid-column: 3;
	grid-row: 1 / 3;
}

.top-stories {
	grid-column: 1 / 3;
	grid-row: 2;
}

/* ---------- Rails (MUST-READS / THE LATEST) ---------- */
.rail {
	min-width: 0;
}

.rail-heading {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink);
	margin: 0 0 20px;
	padding-top: 12px;
	border-top: 3px double var(--ink);
}

.rail-cat {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 6px;
}

.rail-cat a {
	color: var(--red);
}

.rail-cat a:hover {
	color: var(--red-dark);
}

.rail-time {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.rail-byline {
	display: block;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-top: 4px;
}

.rail-byline a {
	color: var(--muted);
}

.rail-byline a:hover {
	color: var(--red-dark);
}

/* MUST-READS: label on top, thumb left, headline + byline right. */
.must-item {
	margin-bottom: 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line);
}

.must-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.must-item-row {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.must-thumb {
	flex: 0 0 104px;
	display: block;
}

.must-thumb img {
	display: block;
	width: 104px;
	height: 78px;
	object-fit: cover;
	object-position: center top;
}

.must-item-body {
	min-width: 0;
}

.must-item-title {
	font-size: 17px;
	line-height: 1.35;
	margin: 0;
}

.must-item-title a:hover {
	color: var(--red-dark);
}

/* THE LATEST: label + time on one line, headline left, thumb right. */
.latest-item {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}

.latest-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.latest-item-labels {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.latest-item-labels .rail-cat {
	display: inline-block;
	margin-bottom: 0;
}

.latest-item-row {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-top: 6px;
}

.latest-item-body {
	flex: 1 1 0;
	min-width: 0;
}

.latest-item-title {
	font-size: 17px;
	line-height: 1.35;
	margin: 0;
}

.latest-item-title a:hover {
	color: var(--red-dark);
}

.latest-thumb {
	flex: 0 0 84px;
	display: block;
}

.latest-thumb img {
	display: block;
	width: 84px;
	height: 63px;
	object-fit: cover;
	object-position: center top;
}

/* Centred "See More Latest News" link at the end of THE LATEST rail. */
.rail-more {
	text-align: center;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.rail-more-link {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rail-more-link:hover {
	color: var(--red-dark);
}

/* ---------- Hero feature (centre column) ---------- */
.hero-post {
	margin-bottom: 10px;
}

.hero-media {
	position: relative;
	margin-bottom: 16px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

/* Small white semicircular scallop notch at the bottom-centre of the
hero image (InStyle motif, pure CSS). */
.hero-media::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 150px;
	height: 30px;
	transform: translateX(-50%);
	background: #fff;
	border-radius: 150px 150px 0 0;
	pointer-events: none;
}

.hero-media-link {
	display: block;
	height: 100%;
}

.hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.hero-post .rail-cat {
	font-size: 12.5px;
}

.hero-title {
	font-size: 40px;
	line-height: 1.15;
	margin: 0 0 12px;
}

.hero-title a:hover {
	color: var(--red-dark);
}

.hero-meta {
	margin-bottom: 0;
}

/* ---------- Cover-story promo (full width, below the top row) ---------- */
.cover-promo {
	background: var(--cover);
	padding: 36px 40px 40px;
	margin-top: 44px;
}

.cover-promo-heading {
	font-size: 40px;
	line-height: 1.15;
	margin: 0 0 26px;
}

.cover-promo-inner {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 36px;
	align-items: start;
}

/* Portrait "magazine cover" crop of the hero post's featured image.
The label + title sit BELOW the image (same pattern as the hero), so
a baked-in watermark at the image's bottom-left can never collide
with an overlaid badge. */
.cover-media {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin-bottom: 16px;
}

.cover-media-link {
	display: block;
	height: 100%;
}

.cover-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.cover-media .thumb-placeholder {
	height: 100%;
	min-height: 0;
}

.cover-title {
	font-size: 26px;
	line-height: 1.25;
	margin: 0;
}

.cover-title a:hover {
	color: var(--red-dark);
}

.cover-story .rail-byline {
	margin-top: 6px;
}

/* The 4-post list beside the cover reuses the MUST-READS item styles
(thumb left, headline + byline right, red category label on top). */

/* ---------- Magazine sections (v1.3.0) ---------- */
.mag-section {
	margin-top: 54px;
}

/* Centred sans uppercase heading with a double rule above and a
right-arrow, the InStyle section-heading motif. */
.mag-heading {
	text-align: center;
	margin: 0 0 28px;
	padding-top: 16px;
	border-top: 3px double var(--ink);
}

.mag-heading h2 {
	font-family: var(--sans);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
}

.mag-heading h2 a:hover {
	color: var(--red-dark);
}

.mag-heading-left {
	text-align: left;
}

.mag-heading-left h2 {
	font-size: 24px;
}

/* Centred "SEE ALL …" footer link under a category section. */
.section-more {
	text-align: center;
	margin-top: 26px;
}

.section-more-link {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.section-more-link:hover {
	color: var(--red-dark);
}

/* ---------- TOP STORIES (black panel, left two-thirds) ---------- */
.top-stories {
	background: #000;
	color: #fff;
	padding: 28px 32px 32px;
}

.top-stories-heading {
	font-family: var(--sans);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 22px;
}

.top-stories-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.top-story-media {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin-bottom: 12px;
}

.top-story-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.top-story-media .thumb-placeholder {
	height: 100%;
	min-height: 0;
}

.top-story .rail-cat {
	margin-bottom: 6px;
}

.top-story-title {
	font-size: 19px;
	line-height: 1.3;
	margin: 0;
}

.top-story-title a {
	color: #fff;
}

.top-story-title a:hover {
	color: var(--red);
}

.top-story .rail-byline,
.top-story .rail-byline a {
	color: #aaa;
}

.top-story .rail-byline a:hover {
	color: var(--red);
}

/* ---------- LOOK OF THE DAY ---------- */
.look-inner {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

.look-thumbs {
	flex: 0 0 220px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.look-thumb {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.look-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.look-large {
	flex: 0 0 266px;
	aspect-ratio: 2 / 3;
	overflow: hidden;
}

.look-large-link {
	display: block;
	height: 100%;
}

.look-large img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.look-large .thumb-placeholder {
	height: 100%;
	min-height: 0;
}

.look-text {
	flex: 1 1 0;
	min-width: 0;
}

.look-title {
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 12px;
}

.look-title a:hover {
	color: var(--red-dark);
}

.look-dek {
	font-size: 16px;
	color: var(--body);
	margin: 0 0 10px;
}

.look-text .section-more {
	text-align: left;
	margin-top: 16px;
}

/* ---------- Magazine card grids (FASHION / WHAT TO BUY / BEAUTY / WOMEN'S / MEN'S) ---------- */
.mag-grid {
	display: grid;
	gap: 30px;
}

.mag-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.mag-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

.mag-card-media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin-bottom: 14px;
}

.mag-card-media-link {
	display: block;
	height: 100%;
}

.mag-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.mag-card-media .thumb-placeholder {
	height: 100%;
	min-height: 0;
}

.mag-card-title {
	font-size: 22px;
	line-height: 1.3;
	margin: 0;
}

.mag-card-title a:hover {
	color: var(--red-dark);
}

.mag-card .rail-byline {
	margin-top: 6px;
}

/* ---------- TRENDING ---------- */
.trend-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.trend-media {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	margin-bottom: 12px;
}

.trend-media-link {
	display: block;
	height: 100%;
}

.trend-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.trend-media .thumb-placeholder {
	height: 100%;
	min-height: 0;
}

.trend-title {
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	margin: 0;
}

.trend-title a:hover {
	color: var(--red-dark);
}

/* ---------- WELLNESS split feature ---------- */
.wellness-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: center;
}

.wellness-media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.wellness-media-link {
	display: block;
	height: 100%;
}

.wellness-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.wellness-media .thumb-placeholder {
	height: 100%;
	min-height: 0;
}

.wellness-title {
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 12px;
}

.wellness-title a:hover {
	color: var(--red-dark);
}

.wellness-dek {
	font-size: 16px;
	color: var(--body);
	margin: 0 0 10px;
}

/* ---------- MEN'S FASHION panel ---------- */
.mens-panel {
	background: var(--cover);
	padding: 36px 40px 40px;
	margin-top: 54px;
}

.mens-heading {
	font-family: var(--serif);
	font-size: 34px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 26px;
}

/* ---------- MORE LATEST NEWS (left ~60% list) ---------- */
.more-latest {
	width: 60%;
	margin-top: 54px;
}

.more-item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--line);
}

.more-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.more-thumb {
	flex: 0 0 240px;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.more-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.more-thumb .thumb-placeholder {
	height: 100%;
	min-height: 0;
}

.more-body {
	flex: 1 1 0;
	min-width: 0;
}

.more-labels {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.more-labels .rail-cat {
	display: inline-block;
	margin-bottom: 0;
}

.more-title {
	font-size: 21px;
	line-height: 1.35;
	margin: 4px 0 0;
}

.more-title a:hover {
	color: var(--red-dark);
}

/* ---------- ABOUT GLOSYWISE strip ---------- */
.about-strip {
	display: flex;
	gap: 24px;
	align-items: center;
	background: var(--red-pale);
	border: 1px solid var(--line);
	padding: 28px 32px;
	margin-top: 54px;
}

.about-avatar {
	flex: 0 0 auto;
}

.about-avatar img {
	display: block;
	border-radius: 50%;
}

.about-heading {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--red);
	margin: 0 0 4px;
}

.about-name {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 4px;
}

.about-desc {
	margin: 0 0 8px;
	font-size: 15px;
}

/* ---------- Category badge ---------- */
.cat-badge {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 2;
}

.cat-badge a {
	display: inline-block;
	padding: 5px 12px;
	background: var(--red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cat-badge a:hover {
	background: var(--red-dark);
	color: #fff;
}

/* ---------- Post meta ---------- */
.post-meta {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}

.post-meta a {
	color: var(--muted);
}

.post-meta a:hover {
	color: var(--red-dark);
}

.meta-sep {
	margin: 0 8px;
	color: var(--red);
}

/* ---------- Sections & headings ---------- */
.section-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 46px 0 24px;
}

.section-heading::before {
	content: "";
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	background: var(--red);
}

.section-heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

.section-heading h2 {
	font-size: 28px;
	margin: 0;
	white-space: nowrap;
}

.section-heading h2 a:hover {
	color: var(--red-dark);
}

/* ---------- Card grids ---------- */
.posts-grid {
	display: grid;
	gap: 30px;
}

.posts-grid.cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.posts-grid.cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.post-card {
	display: flex;
	flex-direction: column;
}

.card-media {
	position: relative;
	margin-bottom: 14px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.card-media-link {
	display: block;
	height: 100%;
}

.card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.card-title {
	font-size: 22px;
	margin: 0 0 8px;
}

.card-title a:hover {
	color: var(--red-dark);
}

.card-excerpt {
	font-size: 15px;
	color: var(--body);
	margin: 0;
}

/* ---------- Latest News & Load More ---------- */
.latest-section {
	margin-bottom: 20px;
}

.load-more-wrap {
	text-align: center;
	margin: 34px 0 10px;
}

.load-more-btn {
	min-width: 200px;
}

/* ---------- Single article ---------- */
.single-article {
	max-width: 780px;
	margin: 0 auto;
}

.single-article .entry-title {
	font-size: 44px;
	text-align: center;
	margin: 6px 0 14px;
}

.single-article .post-meta {
	text-align: center;
}

.single-featured {
	position: relative;
	margin: 22px 0 28px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.single-featured img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.entry-content {
	font-size: 17.5px;
	line-height: 1.75;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content a {
	color: var(--red-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--ink);
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--red);
	font-family: var(--serif);
	font-size: 21px;
	font-style: italic;
	color: var(--ink);
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1em 1.4em;
	padding: 0;
}

.entry-content figure {
	margin: 1.5em 0;
}

.entry-content img {
	border-radius: 2px;
}

.entry-tags {
	margin: 30px 0 10px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 13px;
}

.entry-tags span {
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-right: 8px;
}

.entry-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 5px 12px;
	border: 1px solid var(--line);
	font-size: 12px;
	letter-spacing: 0.06em;
}

.entry-tags a:hover {
	border-color: var(--red);
	color: var(--red-dark);
}

.author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	max-width: 780px;
	margin: 34px auto 0;
	padding: 22px;
	background: var(--red-pale);
	border: 1px solid var(--line);
}

.author-box img {
	border-radius: 50%;
}

.author-box h3 {
	font-size: 20px;
	margin: 0 0 6px;
}

.author-box p {
	margin: 0;
	font-size: 15px;
}

.related-posts {
	max-width: 1200px;
	margin: 0 auto;
}

.post-navigation {
	max-width: 780px;
	margin: 40px auto 0;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.post-navigation a {
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 700;
}

.post-navigation .nav-next {
	text-align: right;
}

.comments-area {
	max-width: 780px;
	margin: 44px auto 0;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-body {
	margin-bottom: 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line);
}

.comment-author {
	font-family: var(--serif);
	font-size: 17px;
}

.comment-metadata {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 8px;
}

.comment-reply-link {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--red-dark);
}

.comment-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 15px;
	margin-bottom: 14px;
}

.comment-form input[type="submit"] {
	padding: 11px 26px;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.comment-form input[type="submit"]:hover {
	background: var(--red-dark);
	border-color: var(--red-dark);
}

/* ---------- Pages ---------- */
.page-article {
	max-width: 780px;
	margin: 0 auto;
}

.page-article .entry-title {
	font-size: 42px;
	text-align: center;
	margin-bottom: 22px;
}

/* ---------- Archive / search ---------- */
.archive-header {
	text-align: center;
	margin: 8px 0 34px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--line);
}

.archive-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--red-dark);
	margin-bottom: 8px;
}

.archive-header h1 {
	font-size: 42px;
	margin: 0 0 8px;
}

.archive-header p {
	color: var(--muted);
	max-width: 640px;
	margin: 0 auto;
}

.search-results-info {
	text-align: center;
	margin: 8px 0 34px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--line);
}

.search-results-info h1 {
	font-size: 34px;
}

.search-results-info h1 span {
	color: var(--red-dark);
}

.search-results-info p {
	color: var(--muted);
	margin: 0;
}

/* ---------- Pagination ---------- */
.pagination,
.nav-links {
	margin: 40px 0 20px;
	text-align: center;
}

.page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border: 1px solid var(--line);
	font-size: 13px;
	font-weight: 600;
}

.page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.page-numbers:hover {
	border-color: var(--red);
	color: var(--red-dark);
}

/* ---------- No results / 404 ---------- */
.no-results,
.not-found {
	text-align: center;
	max-width: 560px;
	margin: 40px auto 60px;
}

.not-found h1 {
	font-size: 40px;
}

/* ---------- Footer ---------- */
.site-footer {
	margin-top: 60px;
}

.footer-upper {
	background: var(--red-pale);
	border-top: 1px solid var(--line);
	padding: 48px 0 10px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.footer-widgets .widget-title {
	font-size: 19px;
	margin-bottom: 14px;
}

.footer-widgets ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-widgets li {
	margin-bottom: 8px;
	font-size: 14.5px;
}

.footer-widgets li a:hover {
	color: var(--red-dark);
}

.footer-widgets p {
	font-size: 14.5px;
}

/* Footer Categories: parent categories only (see footer.php), shown in
two columns so the list stays short. */
.footer-widgets .widget_categories ul {
	columns: 2;
	column-gap: 28px;
}

.footer-widgets .widget_categories li {
	break-inside: avoid;
}

.footer-bottom {
	background: var(--ink);
	color: #bbb;
	padding: 20px 0;
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-size: 13px;
}

.footer-bottom a {
	color: #ddd;
}

.footer-bottom a:hover {
	color: var(--red);
}

.footer-bottom ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 0;
	padding: 0;
}

.footer-bottom .copyright {
	color: #999;
}

.footer-bottom .search-form {
	max-width: 280px;
	margin: 0;
}

.footer-bottom .search-field {
	background: #222;
	border-color: #444;
	color: #eee;
}

.footer-bottom .search-submit {
	background: var(--red);
	border-color: var(--red);
}

.footer-bottom .search-submit:hover {
	background: var(--red-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.home-top-grid {
		display: flex;
		flex-direction: column;
		gap: 36px;
	}

	/* Mobile order: hero first, then MUST-READS, then THE LATEST,
	then TOP STORIES. The cover promo follows the grid in the DOM,
	so it stacks right after. */
	.hero-col {
		order: 1;
	}

	.rail-must {
		order: 2;
	}

	.rail-latest {
		order: 3;
	}

	.top-stories {
		order: 4;
	}

	.top-stories-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cover-promo-heading {
		font-size: 32px;
	}

	.cover-promo-inner {
		grid-template-columns: 1fr;
	}

	.posts-grid.cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.mag-grid-3,
	.mag-grid-4,
	.trend-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.look-inner {
		flex-wrap: wrap;
	}

	.look-large {
		flex-basis: 220px;
	}

	.wellness-split {
		grid-template-columns: 1fr;
	}

	.more-latest {
		width: 100%;
	}

	.footer-widgets {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 700px) {
	.site-title {
		font-size: 44px;
	}

	.masthead-row {
		flex-wrap: wrap;
		gap: 12px;
	}

	.masthead-links {
		padding-top: 0;
		flex-wrap: wrap;
		gap: 14px;
	}

	.menu-toggle {
		display: block;
		position: absolute;
		left: 10px;
		top: 50%;
		transform: translateY(-50%);
	}

	.nav-inner {
		justify-content: flex-start;
		min-height: 52px;
	}

	.main-nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
		text-align: left;
		padding: 6px 0 12px;
	}

	.main-nav.toggled ul {
		display: flex;
	}

	.main-nav li a {
		padding: 10px 12px;
	}

	.hero-title {
		font-size: 30px;
	}

	.cover-promo {
		padding: 28px 20px 30px;
	}

	.cover-promo-heading {
		font-size: 28px;
	}

	.top-stories {
		padding: 24px 20px 26px;
	}

	.top-stories-grid,
	.mag-grid-3,
	.mag-grid-4,
	.trend-grid {
		grid-template-columns: 1fr;
	}

	.look-inner {
		flex-direction: column;
	}

	.look-thumbs {
		flex-basis: auto;
		width: 100%;
		grid-template-columns: repeat(4, 1fr);
	}

	.look-large {
		flex-basis: auto;
		width: 100%;
		max-width: 320px;
	}

	.look-title,
	.wellness-title {
		font-size: 26px;
	}

	.mens-panel {
		padding: 28px 20px 30px;
	}

	.mens-heading {
		font-size: 28px;
	}

	.more-thumb {
		flex-basis: 160px;
	}

	.more-title {
		font-size: 18px;
	}

	.about-strip {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 20px;
	}

	.single-article .entry-title,
	.page-article .entry-title,
	.archive-header h1 {
		font-size: 30px;
	}

	.posts-grid.cols-3,
	.posts-grid.cols-2 {
		grid-template-columns: 1fr;
	}

	.footer-widgets {
		grid-template-columns: 1fr;
	}

	.section-heading h2 {
		font-size: 23px;
	}

	.post-navigation {
		flex-direction: column;
	}

	.post-navigation .nav-next {
		text-align: left;
	}
}
