/*
Theme Name: StyleAndDaily
Theme URI: https://styleanddaily.local
Author: StyleAndDaily
Description: A considered daily journal of personal style, slow living, travel dispatches, and mindful beauty. Warm sand and caramel, Newsreader headlines over Plus Jakarta Sans. Hand coded classic theme, no page builder.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: styleanddaily
Tags: blog, editorial, one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Fonts (self hosted, variable)
   ========================================================================== */

@font-face {
	font-family: 'Newsreader';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/newsreader-latin.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: 'Newsreader';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/newsreader-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Newsreader';
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/newsreader-italic-latin.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: 'Newsreader';
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/newsreader-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/jakarta-latin.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: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/jakarta-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: #F7F3EC;
	--bg-2: #E8DED0;
	--card: #FFFCF7;
	--header-bg: #EFE5D8;
	--ink: #302B27;
	--muted: #746B62;
	--accent: #A66F45;
	--accent-hover: #895A38;
	--link: #76523A;
	--border: #D5C8B9;

	--footer-bg: #3E352F;
	--footer-surface: #483F38;
	--footer-input: #322A25;
	--footer-border: #554A43;
	--footer-rule: #4E443D;
	--footer-ink: #F7F3EC;
	--footer-muted: #D8CEC4;
	--footer-dim: #C4B8AC;

	--font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
	--font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--r-thumb: 8px;
	--r-card: 12px;
	--r-panel: 24px;
	--r-pill: 999px;

	--sp-xs: 4px;
	--sp-sm: 8px;
	--sp-md: 16px;
	--sp-lg: 24px;
	--sp-xl: 40px;
	--sp-2xl: 64px;

	--container: 1280px;
	--gutter: 16px;

	--shadow-xs: 0 1px 2px rgba(48, 43, 39, 0.05);
	--shadow-sm: 0 2px 8px rgba(48, 43, 39, 0.06);
	--shadow-md: 0 6px 20px rgba(48, 43, 39, 0.08);
	--shadow-lg: 0 14px 40px rgba(48, 43, 39, 0.12);

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
	:root { --gutter: 24px; }
}

@media (min-width: 1024px) {
	:root { --gutter: 32px; }
}

/* ==========================================================================
   3. Reset and base
   ========================================================================== */

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

:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) {
	margin: 0;
	padding: 0;
}

:where(ul, ol) { list-style: none; }

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

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: var(--accent);
	color: #fff;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.015em;
	line-height: 1.18;
	text-wrap: balance;
	color: var(--ink);
}

a {
	color: var(--link);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

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

button { font: inherit; color: inherit; cursor: pointer; }

input, textarea, select { font: inherit; color: inherit; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-lg) 0; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--accent);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 var(--r-thumb) 0;
	font-size: 13px;
	font-weight: 700;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main { flex: 1 1 auto; }

.stack { display: flex; flex-direction: column; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-sm);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--link);
}

.eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	flex: none;
}

.eyebrow--plain::before { display: none; }

.cat-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--link);
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-sm);
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--accent {
	background: var(--accent);
	color: #fff;
}

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

.btn--quiet {
	background: var(--bg-2);
	color: var(--ink);
	border-color: var(--border);
}

.btn--quiet:hover { background: var(--border); color: var(--ink); }

.btn .icon { width: 14px; height: 14px; flex: none; }

.btn--accent:hover .icon--arrow,
.readmore:hover .icon--arrow { transform: translateX(3px); }

.icon--arrow { transition: transform 0.2s ease; }

.readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--link);
}

.readmore .icon { width: 14px; height: 14px; }

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--header-bg);
	border-bottom: 1px solid var(--border);
	box-shadow: var(--shadow-xs);
}

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 72px;
}

@media (min-width: 640px) {
	.header-bar { min-height: 80px; }
}

.brand {
	display: inline-flex;
	align-items: baseline;
	flex: none;
	color: var(--ink);
}

.brand__name {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--ink);
	transition: color 0.2s ease;
}

@media (min-width: 640px) {
	.brand__name { font-size: 30px; }
}

.brand__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	margin-left: 6px;
	opacity: 0.9;
	transition: transform 0.2s ease;
	align-self: flex-end;
	margin-bottom: 4px;
	flex: none;
}

.brand:hover .brand__name { color: var(--link); }
.brand:hover .brand__dot { transform: scale(1.25); }

.nav-primary { display: none; }

@media (min-width: 900px) {
	.nav-primary { display: block; }
}

.nav-primary ul {
	display: flex;
	align-items: center;
	gap: 26px;
}

.nav-primary a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav-primary a:hover { color: var(--ink); }

.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a,
.nav-primary .current-menu-parent > a,
.nav-primary .current-post-ancestor > a {
	color: var(--link);
	font-weight: 700;
}

.nav-primary .current-menu-item > a::after,
.nav-primary .current_page_item > a::after,
.nav-primary .current-menu-parent > a::after,
.nav-primary .current-post-ancestor > a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--link);
}

/* Header search */

.header-search { position: relative; display: flex; align-items: center; }

.search-desktop { display: none; }

@media (min-width: 640px) {
	.search-desktop { display: block; position: relative; width: 260px; }
}

@media (min-width: 900px) {
	.search-desktop { width: 320px; }
}

@media (min-width: 1150px) {
	.search-desktop { width: 380px; }
}

.search-field {
	width: 100%;
	background: var(--card);
	color: var(--ink);
	font-size: 12px;
	font-weight: 500;
	padding: 10px 60px 10px 36px;
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	box-shadow: var(--shadow-xs);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field::placeholder { color: var(--muted); }

/* The theme draws its own clear button, so suppress the one WebKit adds to
   input[type=search] rather than showing two crosses in the same field. */
.search-field::-webkit-search-cancel-button,
.search-field::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.search-field:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

.search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: var(--link);
	pointer-events: none;
}

.search-kbd {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-body);
	font-size: 9px;
	font-weight: 700;
	color: var(--muted);
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 2px 6px;
	pointer-events: none;
}

@media (max-width: 1149px) {
	.search-kbd { display: none; }
}

.search-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: none;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
}

.search-clear:hover { background: var(--bg-2); color: var(--ink); }
.search-clear .icon { width: 13px; height: 13px; }
.search-desktop.is-filled .search-clear { display: inline-flex; }
.search-desktop.is-filled .search-kbd { display: none; }

/* Live results dropdown */

.search-results {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	width: min(440px, calc(100vw - 2 * var(--gutter)));
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	z-index: 50;
	display: none;
}

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

@media (max-width: 639px) {
	.search-results { display: none !important; }
}

.search-results__list {
	max-height: 340px;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.search-results__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.search-hint {
	padding: 24px 8px;
	text-align: center;
	color: var(--muted);
	font-size: 12px;
}

.search-hint strong {
	display: block;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 6px;
}

.search-hint p { max-width: 20rem; margin-inline: auto; }

.search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid transparent;
	border-radius: var(--r-card);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.search-item:hover {
	background: var(--bg-2);
	border-color: var(--border);
}

.search-item__thumb {
	width: 48px;
	height: 48px;
	flex: none;
	border-radius: var(--r-thumb);
	overflow: hidden;
	background: var(--bg-2);
}

.search-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.search-item__body {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

/* These are spans in the script-built markup, so each needs an explicit
   display: block. text-overflow only clips a block box, and without it the
   title runs past the panel and the excerpt collapses onto the same line. */
.search-item__cat,
.search-item__title,
.search-item__excerpt {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-item__cat {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--link);
	margin-bottom: 1px;
}

.search-item__title {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink);
}

.search-item:hover .search-item__title { color: var(--link); }

.search-item__excerpt {
	margin-top: 2px;
	font-size: 11px;
	font-weight: 300;
	line-height: 1.4;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-item .icon--arrow { width: 15px; height: 15px; color: var(--muted); flex: none; }
.search-item:hover .icon--arrow { color: var(--link); }

.search-results__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 16px;
	background: var(--bg-2);
	border-top: 1px solid var(--border);
	font-size: 10px;
	color: var(--muted);
}

.search-results__foot kbd {
	background: var(--card);
	color: var(--ink);
	border-radius: 3px;
	padding: 1px 5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.search-results__close {
	border: 0;
	background: none;
	padding: 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--link);
}

.search-results__close:hover { text-decoration: underline; }

/* Mobile header controls */

.header-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: var(--r-thumb);
	background: transparent;
	color: var(--ink);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.header-toggle:hover { background: var(--bg-2); color: var(--link); }
.header-toggle .icon { width: 20px; height: 20px; }

@media (min-width: 900px) {
	.header-toggle--menu { display: none; }
}

.search-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	background: var(--card);
	color: var(--link);
	font-size: 12px;
	font-weight: 600;
	box-shadow: var(--shadow-xs);
}

.search-toggle .icon { width: 14px; height: 14px; }

@media (min-width: 640px) {
	.search-toggle { display: none; }
}

.mobile-search {
	display: none;
	border-top: 1px solid var(--border);
	padding: 12px 0;
	gap: 8px;
	flex-direction: column;
}

.mobile-search.is-open { display: flex; }

@media (min-width: 640px) {
	.mobile-search { display: none !important; }
}

.mobile-search .search-desktop { display: block; width: 100%; position: relative; }

.topic-pills {
	display: flex;
	align-items: center;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}

.topic-pills::-webkit-scrollbar { display: none; }

.topic-pills__label {
	flex: none;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--link);
}

.topic-pill {
	flex: none;
	padding: 3px 10px;
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	background: var(--card);
	color: var(--ink);
	font-size: 10px;
	font-weight: 500;
}

.topic-pill:hover { background: var(--bg-2); color: var(--ink); }

.mobile-menu {
	display: none;
	border-top: 1px solid var(--border);
	background: var(--bg-2);
	box-shadow: var(--shadow-md);
}

.mobile-menu.is-open { display: block; }

@media (min-width: 900px) {
	.mobile-menu { display: none !important; }
}

.mobile-menu ul {
	display: flex;
	flex-direction: column;
	padding: 20px 0;
}

.mobile-menu a {
	display: block;
	padding: 9px 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
}

.mobile-menu a:hover { color: var(--link); }

.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a { color: var(--link); font-weight: 700; }

.mobile-menu .menu-secondary {
	border-top: 1px solid var(--border);
	margin-top: 10px;
	padding-top: 14px;
}

.mobile-menu .menu-secondary a {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--muted);
}

.mobile-menu .menu-secondary a:hover { color: var(--link); }

/* ==========================================================================
   6. Cards
   ========================================================================== */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 14px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r-card);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
	.card { padding: 16px; }
}

.card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.card__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--r-thumb);
	background: var(--bg-2);
	margin-bottom: var(--sp-md);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.card:hover .card__media img { transform: scale(1.035); }

.ratio-portrait { aspect-ratio: 3 / 4; }
.ratio-landscape { aspect-ratio: 16 / 10; }
.ratio-square { aspect-ratio: 1 / 1; }
.ratio-wide { aspect-ratio: 16 / 9; }

.card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.card__title {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.28;
	margin: 6px 0 10px;
}

.card__title a { color: var(--ink); }
.card:hover .card__title a { color: var(--link); }

.card__excerpt {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--muted);
	margin-bottom: var(--sp-md);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-top: 12px;
	margin-top: auto;
	border-top: 1px solid var(--border);
}

/* Cover link keeps the whole card clickable without nesting anchors */
.card__link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--r-card);
}

.card .readmore,
.card .cat-label { position: relative; z-index: 2; }

/* Horizontal card */

.card--horizontal { flex-direction: column; gap: var(--sp-lg); padding: 16px; }

@media (min-width: 640px) {
	.card--horizontal { flex-direction: row; padding: 20px; }
	.card--horizontal .card__media { width: 41.666%; flex: none; margin-bottom: 0; }
	.card--horizontal .card__body { width: 58.333%; }
}

.card--horizontal .card__title { font-size: 24px; }

.card--horizontal .card__excerpt {
	font-size: 14px;
	-webkit-line-clamp: 3;
}

/* Lead card */

.card--lead {
	display: grid;
	gap: var(--sp-lg);
	padding: 24px;
	border-radius: var(--r-panel);
}

@media (min-width: 1024px) {
	.card--lead {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--sp-xl);
		padding: 32px;
	}
}

.card--lead .card__media { margin-bottom: 0; border-radius: var(--r-card); }
.card--lead .card__title { font-size: 28px; margin-bottom: var(--sp-md); }

@media (min-width: 640px) {
	.card--lead .card__title { font-size: 34px; }
}

@media (min-width: 1024px) {
	.card--lead .card__title { font-size: 38px; }
}

.card--lead .card__excerpt { font-size: 16px; -webkit-line-clamp: 4; }

/* ==========================================================================
   7. Homepage
   ========================================================================== */

.home-main { padding-block: var(--sp-lg) var(--sp-xl); }

@media (min-width: 640px) {
	.home-main { padding-block: var(--sp-xl) var(--sp-2xl); }
}

.hero {
	display: grid;
	gap: var(--sp-xl);
	margin-bottom: 56px;
	align-items: start;
}

@media (min-width: 1024px) {
	.hero {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 48px;
		margin-bottom: 72px;
	}
}

.hero__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r-card);
	margin-bottom: 20px;
}

@media (min-width: 640px) {
	.hero__media { aspect-ratio: 16 / 11; }
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hero__lead:hover .hero__media img { transform: scale(1.02); }

.badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 4px 12px;
	background: var(--accent);
	color: #fff;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* The hero headline deliberately breaks to the sans face with a rule under it.
   Carried over from the prototype as a news-desk note against the editorial serif. */
.hero__title {
	font-family: var(--font-body);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.015em;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-decoration-color: var(--ink);
}

@media (min-width: 640px) {
	.hero__title { font-size: 30px; }
}

@media (min-width: 1024px) {
	.hero__title { font-size: 32px; }
}

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

.hero__lead:hover .hero__title a,
.hero__title a:hover {
	color: var(--link);
	text-decoration-color: var(--link);
}

.hero__rail-head {
	padding-bottom: 12px;
	margin-bottom: var(--sp-lg);
	border-bottom: 1px solid var(--border);
}

.hero__rail-title {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--ink);
}

@media (min-width: 640px) {
	.hero__rail-title { font-size: 24px; }
}

.hero__rail-list { display: flex; flex-direction: column; gap: var(--sp-lg); }

.rail-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--sp-md);
}

@media (min-width: 640px) {
	.rail-item { gap: 20px; }
}

.rail-item__thumb {
	width: 96px;
	height: 96px;
	flex: none;
	overflow: hidden;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r-thumb);
}

@media (min-width: 640px) {
	.rail-item__thumb { width: 112px; height: 112px; }
}

.rail-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.rail-item:hover .rail-item__thumb img { transform: scale(1.05); }

.rail-item__body { flex: 1 1 auto; min-width: 0; }

.rail-item__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 10px;
	background: var(--accent);
	color: #fff;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.rail-item__title {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 640px) {
	.rail-item__title { font-size: 16px; }
}

.rail-item__title a { color: var(--ink); }
.rail-item:hover .rail-item__title a { color: var(--link); }

/* Category sections */

.section { margin-bottom: 64px; }

@media (min-width: 640px) {
	.section { margin-bottom: 96px; }
}

.section__head {
	display: flex;
	flex-direction: column;
	gap: var(--sp-md);
	padding-bottom: 20px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
	.section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.section__title {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 400;
	letter-spacing: -0.025em;
	margin-top: 6px;
}

@media (min-width: 640px) {
	.section__title { font-size: 36px; }
}

.section__desc {
	max-width: 36rem;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--muted);
}

.section__actions { display: flex; flex-wrap: wrap; gap: 10px; align-self: flex-start; }

@media (min-width: 640px) {
	.section__actions { align-self: auto; }
}

.pill-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	background: var(--bg-2);
	color: var(--link);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pill-link:hover { background: var(--accent); color: #fff; }
.pill-link .icon { width: 14px; height: 14px; transition: transform 0.2s ease; }
.pill-link:hover .icon { transform: translateX(2px); }

.grid { display: grid; gap: var(--sp-lg); }
.grid > * { min-width: 0; }
.hero > *, .article-layout > *, .footer-grid > * { min-width: 0; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.section__body { display: flex; flex-direction: column; gap: var(--sp-lg); }

/* ==========================================================================
   8. Archive and search
   ========================================================================== */

.page-main { padding-block: var(--sp-xl) var(--sp-2xl); }

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: var(--sp-md);
	margin-bottom: var(--sp-lg);
	border-bottom: 1px solid var(--border);
}

.crumbs__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.crumbs__meta { font-size: 12px; font-weight: 500; color: var(--muted); }
.crumbs__meta strong { color: var(--ink); font-weight: 600; }

.archive-banner {
	position: relative;
	overflow: hidden;
	padding: 28px var(--sp-lg);
	margin-bottom: 32px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	text-align: center;
}

@media (min-width: 640px) {
	.archive-banner { padding: 36px var(--sp-xl); }
}

.archive-banner__title {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 400;
	letter-spacing: -0.025em;
}

@media (min-width: 640px) { .archive-banner__title { font-size: 40px; } }
@media (min-width: 1024px) { .archive-banner__title { font-size: 48px; } }

.archive-banner__desc {
	max-width: 44rem;
	margin: 10px auto 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--muted);
}

.archive-spread { display: flex; flex-direction: column; gap: 48px; }

.archive-split { display: grid; gap: var(--sp-xl); align-items: stretch; }

/* minmax(0, ...) rather than a bare fr: an fr track floors at min-content, and
   the horizontal cards in the right column are wide enough to blow the track
   out and scroll the whole page sideways. */
@media (min-width: 1024px) {
	.archive-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.archive-split > * { min-width: 0; }

.archive-split__stack { display: flex; flex-direction: column; gap: 20px; }

.empty-state {
	padding: 72px var(--sp-lg);
	text-align: center;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	color: var(--muted);
}

.empty-state__title {
	font-family: var(--font-display);
	font-size: 24px;
	color: var(--ink);
	margin-bottom: var(--sp-sm);
}

/* Pagination */

.pagination {
	display: flex;
	justify-content: center;
	margin-top: 48px;
	padding-top: var(--sp-lg);
	border-top: 1px solid var(--border);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	color: var(--ink);
	font-size: 13px;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover { background: var(--bg-2); border-color: var(--accent); }

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

.pagination .page-numbers.dots { background: none; border-color: transparent; }

/* ==========================================================================
   9. Single post
   ========================================================================== */

.article-layout { display: grid; gap: var(--sp-xl); align-items: start; }

@media (min-width: 1024px) {
	.article-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
}

.article-aside { display: flex; flex-direction: column; gap: var(--sp-lg); }

@media (min-width: 1024px) {
	.article-aside { position: sticky; top: 112px; }
}

.author-card {
	padding: 28px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-sm);
	text-align: center;
}

@media (min-width: 640px) { .author-card { padding: 32px; } }

.author-card__photo {
	width: 112px;
	height: 112px;
	margin: 0 auto var(--sp-md);
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--card);
	box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
}

@media (min-width: 640px) {
	.author-card__photo { width: 128px; height: 128px; }
}

.author-card__name {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	margin-bottom: var(--sp-md);
}

@media (min-width: 640px) { .author-card__name { font-size: 28px; } }

.author-card__bio {
	padding-top: var(--sp-md);
	border-top: 1px solid var(--border);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--muted);
}

.partners {
	padding: 40px var(--sp-lg);
	background: #F6F1E9;
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-xs);
	text-align: center;
	user-select: none;
}

@media (min-width: 640px) { .partners { padding: 40px 32px; } }

.partners__list {
	display: flex;
	flex-direction: column;
	gap: 36px;
	align-items: center;
	color: var(--ink);
}

.partners__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--ink);
}

.partner-glossier {
	font-family: var(--font-body);
	font-size: 24px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: -0.02em;
}

.partner-glossier span { font-style: normal; }

.partner-zara {
	font-family: var(--font-display);
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.14em;
	text-transform: uppercase;
	line-height: 1;
	transform: scaleY(1.05);
}

@media (min-width: 640px) { .partner-zara { font-size: 48px; } }

.partner-aesop {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.partner-aesop sup { font-size: 12px; margin-left: 2px; }

.partner-revolve {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	text-indent: 0.35em;
}

.partner-goop {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}

@media (min-width: 640px) { .partner-goop { font-size: 36px; } }

.partner-away {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0.45em;
	text-transform: uppercase;
	text-indent: 0.45em;
}

.article-head { margin-bottom: 32px; }

.article-head__cat {
	display: inline-block;
	margin-bottom: var(--sp-md);
	padding: 6px 16px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--link);
}

.article-head__cat:hover { background: var(--border); color: var(--accent-hover); }

.article-title {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.15;
	margin-bottom: 20px;
}

@media (min-width: 640px) { .article-title { font-size: 40px; } }
@media (min-width: 768px) { .article-title { font-size: 48px; } }

.article-dek {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--muted);
	margin-bottom: var(--sp-lg);
	max-width: 42rem;
}

@media (min-width: 640px) { .article-dek { font-size: 20px; } }

.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-md);
	font-size: 12px;
	color: var(--muted);
}

.article-meta__sep { color: var(--border); }

.article-hero { margin-bottom: 40px; }

.article-hero__frame {
	overflow: hidden;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-xs);
	aspect-ratio: 16 / 9;
	max-height: 440px;
}

@media (min-width: 640px) { .article-hero__frame { aspect-ratio: 2 / 1; } }

.article-hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.article-hero figcaption,
.entry-content figcaption {
	margin-top: 10px;
	font-size: 12px;
	font-style: italic;
	text-align: center;
	color: var(--muted);
}

/* Prose */

/* 40rem measures at roughly 70 characters per line at 17px in this face.
   The prototype ran to 84, which is past comfortable reading. */
.entry-content {
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink);
	max-width: 40rem;
}

.entry-content > * + * { margin-top: var(--sp-lg); }

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

.entry-content h2 {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 400;
	padding-top: var(--sp-lg);
	padding-bottom: 4px;
	border-bottom: 1px solid var(--border);
	margin-top: var(--sp-xl);
}

@media (min-width: 640px) { .entry-content h2 { font-size: 30px; } }

.entry-content h3 {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 500;
	margin-top: var(--sp-lg);
}

.entry-content a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--accent-hover); }

.entry-content strong { font-weight: 700; }

.entry-content blockquote {
	margin-block: var(--sp-xl);
	padding: var(--sp-md) 28px;
	background: rgba(232, 222, 208, 0.8);
	border-left: 2px solid var(--accent);
	border-radius: 0 var(--r-card) var(--r-card) 0;
}

.entry-content blockquote p {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 20px;
	line-height: 1.35;
	color: var(--ink);
}

@media (min-width: 640px) {
	.entry-content blockquote p { font-size: 24px; }
}

.entry-content ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-left: var(--sp-sm);
	list-style: none;
}

.entry-content ul li {
	position: relative;
	padding-left: 20px;
	font-size: 16px;
}

.entry-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 11px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

.entry-content ol {
	list-style: decimal;
	padding-left: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.entry-content figure { margin-block: var(--sp-lg); max-width: 36rem; margin-inline: auto; }

.entry-content figure img {
	width: 100%;
	max-height: 340px;
	object-fit: cover;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r-card);
}

.entry-content .wp-caption-text { margin-top: 8px; }

.article-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-md);
	margin-top: var(--sp-xl);
	padding-top: var(--sp-lg);
	border-top: 1px solid var(--border);
}

.article-foot__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-lg); }

.tag-list__item {
	padding: 4px 12px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	font-size: 11px;
	font-weight: 600;
	color: var(--link);
}

.tag-list__item:hover { background: var(--accent); color: #fff; }

.related { margin-top: 64px; }

.related__head {
	padding-bottom: var(--sp-md);
	margin-bottom: var(--sp-lg);
	border-bottom: 1px solid var(--border);
}

.related__title { font-family: var(--font-display); font-size: 28px; font-weight: 400; }

/* ==========================================================================
   10. Static pages
   ========================================================================== */

.narrow { max-width: 896px; margin-inline: auto; }

.page-head { text-align: center; max-width: 48rem; margin: 0 auto 48px; }

.page-head__title {
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 400;
	letter-spacing: -0.025em;
	margin-bottom: var(--sp-md);
}

@media (min-width: 640px) { .page-head__title { font-size: 48px; } }
@media (min-width: 1024px) { .page-head__title { font-size: 56px; } }

.page-head__kicker {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--link);
}

@media (min-width: 640px) { .page-head__kicker { font-size: 20px; } }

.page-head__intro {
	max-width: 40rem;
	margin: 20px auto 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.75;
	color: var(--muted);
}

@media (min-width: 640px) { .page-head__intro { font-size: 18px; } }

.page-hero {
	overflow: hidden;
	margin-bottom: 56px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-sm);
	aspect-ratio: 16 / 8;
}

@media (min-width: 640px) { .page-hero { aspect-ratio: 16 / 7; } }

.page-hero img { width: 100%; height: 100%; object-fit: cover; }

.panel {
	padding: 28px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-xs);
	transition: border-color 0.3s ease;
}

@media (min-width: 640px) { .panel { padding: 40px; } }

.panel:hover { border-color: rgba(166, 111, 69, 0.4); }

.panel--fill { background: var(--bg-2); }
.panel--fill:hover { border-color: var(--border); }

.panel__title {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 400;
	margin: 12px 0 14px;
}

@media (min-width: 640px) { .panel__title { font-size: 30px; } }

.panel__text { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--muted); }
.panel--fill .panel__text { color: var(--ink); }

.panel-stack { display: flex; flex-direction: column; gap: var(--sp-lg); margin-bottom: 56px; }

/* Legal */

.legal-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 32px;
}

.legal-tab {
	padding: 8px 20px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--link);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-tab:hover { background: var(--border); color: var(--accent-hover); }

.legal-tab.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.legal-doc {
	padding: 32px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-xs);
	font-size: 15px;
	line-height: 1.75;
	color: var(--ink);
}

@media (min-width: 640px) { .legal-doc { padding: 48px; } }

.legal-doc > * + * { margin-top: var(--sp-lg); }

.legal-doc h1 {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 400;
}

@media (min-width: 640px) { .legal-doc h1 { font-size: 36px; } }

.legal-doc h2,
.legal-doc h3 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 600;
	padding-top: var(--sp-md);
}

@media (min-width: 640px) { .legal-doc h2, .legal-doc h3 { font-size: 24px; } }

.legal-doc ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.legal-doc ol { list-style: decimal; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.legal-doc a { color: var(--link); text-decoration: underline; }

/* Contact */

.contact-photo {
	overflow: hidden;
	margin-bottom: 40px;
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-lg);
	background: var(--bg-2);
	aspect-ratio: 16 / 8;
}

@media (min-width: 640px) { .contact-photo { aspect-ratio: 16 / 7; } }

.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.form-panel {
	padding: 24px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-xs);
}

@media (min-width: 640px) { .form-panel { padding: 40px; } }

.form { display: flex; flex-direction: column; gap: 20px; }

.form__row { display: grid; gap: 20px; }

@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form__label {
	display: block;
	margin-bottom: var(--sp-sm);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.form__input,
.form__textarea {
	width: 100%;
	padding: 12px var(--sp-md);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--r-card);
	font-size: 14px;
	color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--muted); }

.form__input:focus,
.form__textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

.form__textarea { resize: vertical; min-height: 140px; }

.form__submit { align-self: flex-start; padding: 14px 32px; }

.form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px var(--sp-md);
	border-radius: var(--r-card);
	font-size: 14px;
	margin-bottom: var(--sp-lg);
}

.notice--error {
	background: rgba(166, 111, 69, 0.08);
	border: 1px solid var(--accent);
	color: var(--accent-hover);
}

.notice__icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.form-success { padding: 48px var(--sp-lg); text-align: center; }

.form-success__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto var(--sp-md);
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 50%;
	color: var(--accent);
}

.form-success__icon .icon { width: 32px; height: 32px; }

.form-success__title {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 400;
	margin-bottom: 12px;
}

.form-success__text {
	max-width: 28rem;
	margin: 0 auto var(--sp-lg);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--muted);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
	background: var(--footer-bg);
	color: var(--footer-ink);
	border-top: 1px solid var(--footer-rule);
	padding-block: 56px 48px;
}

.footer-grid {
	display: grid;
	gap: var(--sp-xl);
	padding-bottom: 48px;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: var(--sp-xl); } }

.footer-col { display: flex; flex-direction: column; gap: 20px; }

.footer-brand { display: inline-flex; align-items: baseline; }

.footer-brand__name {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--footer-ink);
	transition: color 0.2s ease;
}

.footer-brand:hover .footer-brand__name { color: var(--accent); }

.footer-brand__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	margin-left: 6px;
	margin-bottom: 4px;
	align-self: flex-end;
	flex: none;
	transition: transform 0.2s ease;
}

.footer-brand:hover .footer-brand__dot { transform: scale(1.25); }

.footer-bio {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--footer-muted);
}

.footer-social { display: flex; align-items: center; gap: 12px; }

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--footer-surface);
	border: 1px solid var(--footer-border);
	border-radius: 50%;
	color: var(--bg-2);
	box-shadow: var(--shadow-xs);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	transform: scale(1.05);
}

.footer-social a:active { transform: scale(0.95); }
.footer-social .icon { width: 16px; height: 16px; }

.footer-heading {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a { font-size: 14px; color: var(--footer-muted); }
.footer-links a:hover { color: #fff; }

.subscribe-box {
	display: flex;
	flex-direction: column;
	gap: var(--sp-md);
	padding: 20px;
	background: var(--footer-surface);
	border: 1px solid var(--footer-border);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) { .subscribe-box { padding: 24px; } }

.subscribe-box__head {
	display: flex;
	align-items: center;
	gap: var(--sp-sm);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--footer-ink);
}

.subscribe-box__head .icon { width: 16px; height: 16px; color: var(--accent); }

.subscribe-box__text {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--footer-muted);
}

@media (min-width: 640px) { .subscribe-box__text { font-size: 14px; } }

.subscribe-form { display: flex; flex-direction: column; gap: 12px; }

.subscribe-field { position: relative; }

.subscribe-field .icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: var(--footer-dim);
	pointer-events: none;
}

.subscribe-input {
	width: 100%;
	padding: 11px var(--sp-md) 11px 40px;
	background: var(--footer-input);
	border: 1px solid var(--footer-border);
	border-radius: var(--r-card);
	font-size: 13px;
	color: var(--footer-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-input::placeholder { color: var(--footer-dim); }

.subscribe-input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

.subscribe-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-sm);
	width: 100%;
	padding: 12px var(--sp-md);
	background: var(--accent);
	border: 0;
	border-radius: var(--r-card);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	box-shadow: var(--shadow-sm);
	transition: background-color 0.2s ease;
}

.subscribe-submit:hover { background: var(--accent-hover); }
.subscribe-submit .icon { width: 14px; height: 14px; }

.subscribe-submit__idle,
.subscribe-submit__done {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-sm);
}

/* Only one state shows at a time; the other stays in the DOM so the swap is
   instant and the button never changes width mid-transition. */
.subscribe-submit__done { display: none; }
.subscribe-submit.is-done .subscribe-submit__idle { display: none; }
.subscribe-submit.is-done .subscribe-submit__done { display: flex; }

/* The confirmed button keeps the accent fill, as in the design: only the label
   and icon change. */

.subscribe-submit[disabled] { opacity: 0.75; cursor: default; }
.subscribe-submit.is-busy { opacity: 0.75; cursor: progress; }

.subscribe-note { font-size: 12px; color: var(--footer-muted); }
.subscribe-note--ok { color: #fff; }

.footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-lg);
	padding-top: 32px;
	border-top: 1px solid var(--footer-rule);
	font-size: 12px;
	color: var(--footer-dim);
}

@media (min-width: 768px) {
	.footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-md); justify-content: center; }
.footer-legal-links a { color: var(--footer-dim); }
.footer-legal-links a:hover { color: #fff; }

/* Trustpilot badge ---------------------------------------------------- */

.trustpilot-badge {
	width: 136px;
	height: auto;
	display: block;
}

@media (max-width: 767px) {
	.trustpilot-badge { margin-inline: auto; }
}

/* ==========================================================================
   12. Toast
   ========================================================================== */

.toast-region {
	position: fixed;
	right: var(--sp-lg);
	bottom: var(--sp-lg);
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: var(--sp-sm);
	align-items: flex-end;
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: min(24rem, calc(100vw - 2 * var(--sp-lg)));
	padding: 12px 20px;
	background: var(--accent);
	border: 1px solid var(--accent-hover);
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	color: #fff;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.toast__text {
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 1.45;
}

.toast .icon {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--bg);
}

@media (max-width: 639px) {
	.toast-region {
		right: var(--sp-md);
		bottom: var(--sp-md);
		left: var(--sp-md);
		align-items: stretch;
	}

	.toast { max-width: none; }
}

/* ==========================================================================
   13. Utilities
   ========================================================================== */

.is-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.card:hover .card__media img,
	.hero__lead:hover .hero__media img,
	.rail-item:hover .rail-item__thumb img { transform: none; }

	/* The toast still has to arrive, it just arrives without sliding. */
	.toast { transform: none; }
}

/* Scrollbar */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* WordPress core alignment and caption classes */

.alignleft { float: left; margin: 0 var(--sp-lg) var(--sp-md) 0; }
.alignright { float: right; margin: 0 0 var(--sp-md) var(--sp-lg); }
.aligncenter { margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-caption { max-width: 100%; }
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* Admin bar offset for the sticky header */

body.admin-bar .site-header { top: 32px; }

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

@media (min-width: 1024px) {
	body.admin-bar .article-aside { top: 144px; }
}
