/*!
 * Dr Hoa — global design system (parent theme).
 *
 * Ported from the approved design prototype. Token values are copied
 * verbatim so the theme cannot drift from the approved design.
 *
 * Table of contents
 *  1. Design tokens
 *  2. Reset & base
 *  3. Typography
 *  4. Layout — site frame, containers, grid
 *  5. Accessibility helpers
 *  6. Links & buttons
 *  7. Forms
 *  8. Tags & separators
 *  9. Header & primary navigation
 * 10. Footer
 * 11. Content — entries, archives, pagination
 * 12. WordPress core classes
 * 13. Paper grain overlay
 * 14. Reduced motion
 *
 * Breakpoints (from the approved prototype): 1180 / 1024 / 960 / 768 / 480.
 * Below 960: burger navigation. Below 768: single-column layout, frame borders removed.
 */

/* --------------------------------------------------------------------------
 * 1. Design tokens
 * ----------------------------------------------------------------------- */

:root {
	/* Colour — verbatim from the approved prototype. */
	--ivory: #FAF7F2;
	--paper: #FFFFFF;
	--charcoal: #1E2223;
	--ink-muted: #5C6467;
	--teal: #2F5E5C;
	--teal-deep: #1F4442;
	--teal-tint: #EDF2F1;
	--gold: #B4924F;
	--rule: #E4DED4;
	--sketch: rgba(176, 148, 100, .42);
	--sketch-soft: rgba(176, 148, 100, .3);

	/* Shadows — verbatim from the approved prototype. */
	--shadow: 0 22px 80px rgba(31, 68, 66, .10);
	--ios-shadow: 0 1px 2px rgba(30, 34, 35, .04), 0 14px 38px rgba(31, 68, 66, .09);

	/* Typography. */
	--font-serif: "Source Serif 4", Georgia, serif;
	--font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Spacing scale. */
	--space-3xs: 4px;
	--space-2xs: 8px;
	--space-xs: 12px;
	--space-sm: 16px;
	--space-md: 24px;
	--space-lg: 32px;
	--space-xl: 48px;
	--space-2xl: 64px;
	--space-3xl: 96px;

	/* Layout. */
	--container-max: 1440px;
	--content-narrow: 768px;
	--gutter: clamp(20px, 4.5vw, 48px);
	--header-h: 61px;

	/* Motion — the slow editorial easing used across the prototype. */
	--ease-out-soft: cubic-bezier(.25, 1, .25, 1);
}

/* --------------------------------------------------------------------------
 * 2. Reset & base
 * ----------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ivory);
	color: var(--charcoal);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--teal-deep);
	color: var(--ivory);
}

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

figure {
	margin: 0;
}

/* Anchored sections land clear of the sticky header. */
[id] {
	scroll-margin-top: calc(var(--header-h) + 16px);
}

/* --------------------------------------------------------------------------
 * 3. Typography
 * ----------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-sm);
	font-family: var(--font-serif);
	font-weight: 500;
	line-height: 1.15;
	color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: .875rem; }

p {
	margin: 0 0 var(--space-sm);
}

/*
 * Full-width section lede paragraph. Shared on purpose: width limits
 * kept creeping back as per-section inline max-widths (How We Treat,
 * then Patient Stories) — ledes always run the full content width.
 */
.lede-text {
	font-size: .8125rem;
	line-height: 1.75;
	color: var(--ink-muted);
}

/*
 * Reading-measure cap — the shared line-length limit, so per-section
 * max-widths never creep back. Pairs with .lede-text (which stays
 * width-free on purpose for full-width ledes): add .text-measure where
 * running text sits in a column and the measure must stay comfortable.
 * ch tracks the element's own font-size, so it works at any type size.
 */
.text-measure {
	max-width: 65ch;
}

/*
 * Section numbering — ONE shared counter. Partials render an empty
 * <span class="num-i"> inside the medallion (its own ::before/::after
 * draw the sketched rings); the digit is drawn here in document order, so
 * reordering sections on the front page costs exactly one moved
 * get_template_part() line and nothing else.
 */
.site-main {
	counter-reset: drhoa-sec;
}
.site-main .num {
	counter-increment: drhoa-sec;
}
.site-main .num .num-i::before {
	content: counter(drhoa-sec);
}

/* Uppercase serif section heading — the prototype's `.section-title`. */
.section-title {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	line-height: 1.06;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

/* Italic serif subtitle in teal. */
.subtitle {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	color: var(--teal);
}

/* Small gold uppercase kicker. */
.eyebrow {
	margin: 0 0 var(--space-2xs);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold);
}

/* Large serif lead paragraph. */
.lead {
	font-family: var(--font-serif);
	font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem);
	line-height: 1.4;
}

blockquote {
	margin: var(--space-md) 0;
	padding-left: var(--space-md);
	border-left: 2px solid var(--gold);
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--teal-deep);
}

blockquote cite {
	display: block;
	margin-top: var(--space-2xs);
	font-family: var(--font-sans);
	font-style: normal;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold);
}

code,
kbd,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: .875rem;
	background: var(--paper);
	border: 1px solid var(--rule);
}

code,
kbd {
	padding: .1em .35em;
}

pre {
	padding: var(--space-sm);
	overflow-x: auto;
}

pre code {
	padding: 0;
	border: 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 var(--space-md);
}

th,
td {
	padding: .6em .8em;
	border: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

th {
	font-family: var(--font-sans);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
 * 4. Layout — site frame, containers, grid
 * ----------------------------------------------------------------------- */

/* The framed 1440px canvas with side rules, as in the prototype. */
.site {
	max-width: var(--container-max);
	margin-inline: auto;
	background: var(--ivory);
	border-left: 1px solid var(--rule);
	border-right: 1px solid var(--rule);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	/* Clips decorative construction shapes at the frame edge.
	   `clip` (not `hidden`) keeps the sticky header working. */
	overflow: clip;
}

.site-main {
	flex: 1 0 auto;
	padding-block: clamp(var(--space-xl), 7vw, var(--space-2xl));
}

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

.container--narrow {
	max-width: calc(var(--content-narrow) + 2 * 48px);
}

.grid {
	display: grid;
	gap: var(--space-lg);
}

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

@media (max-width: 960px) {
	.grid--3,
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.site {
		border-left: 0;
		border-right: 0;
	}

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

@media (max-width: 480px) {
	.grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
 * 5. Accessibility helpers
 * ----------------------------------------------------------------------- */

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

.screen-reader-text:focus {
	position: absolute !important;
	left: 8px;
	top: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip-path: none;
	background: var(--teal-deep);
	color: var(--ivory);
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--teal-deep);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
 * 6. Links & buttons
 * ----------------------------------------------------------------------- */

a {
	color: var(--teal-deep);
	text-decoration: none;
	transition: color .3s ease;
}

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

/* Prose links stay visibly underlined for accessibility. */
.entry-content a,
.page-content a,
.archive-description a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--sketch);
}

.entry-content a:hover,
.page-content a:hover,
.archive-description a:hover {
	text-decoration-color: var(--gold);
}

/*
 * Buttons — ported from the prototype `.btn`.
 * `.secondary` and `.small` variants keep the prototype class names.
 */
.btn,
.wp-element-button,
.wp-block-button__link,
input[type="submit"],
input[type="button"] {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 0 28px;
	border: 1px solid var(--teal-deep);
	border-radius: 0;
	background: linear-gradient(180deg, #356B68, #24504D);
	color: #FDFCF9;
	font-family: var(--font-sans);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	isolation: isolate;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 28px rgba(31, 68, 66, .18);
	transition:
		transform .38s var(--ease-out-soft),
		box-shadow .38s var(--ease-out-soft),
		background .38s ease,
		border-color .38s ease;
}

/* Fine inner hairline. */
.btn::before,
.wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 3px;
	border: .5px solid rgba(250, 247, 242, .3);
	pointer-events: none;
	transition: border-color .38s ease;
}

/* Gold hairline that lights up along the bottom edge on hover. */
.btn::after,
.wp-block-button__link::after {
	content: "";
	position: absolute;
	left: 14%;
	right: 14%;
	bottom: 6px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(180, 146, 79, .95), transparent);
	opacity: 0;
	transform: scaleX(.4);
	transition: opacity .38s ease, transform .38s var(--ease-out-soft);
	pointer-events: none;
}

.btn:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	color: #FDFCF9;
	transform: translateY(-1px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 16px 38px rgba(31, 68, 66, .24);
}

.btn:hover::after,
.wp-block-button__link:hover::after {
	opacity: 1;
	transform: scaleX(1);
}

.btn:active,
input[type="submit"]:active {
	transform: translateY(0);
	box-shadow: inset 0 2px 8px rgba(14, 36, 34, .32), 0 6px 16px rgba(31, 68, 66, .14);
}

.btn:focus-visible,
input[type="submit"]:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.btn.secondary {
	background: rgba(255, 255, 255, .52);
	color: var(--teal-deep);
	border-color: rgba(47, 94, 92, .42);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 18px rgba(31, 68, 66, .07);
}

.btn.secondary::before {
	border-color: rgba(47, 94, 92, .16);
}

.btn.secondary:hover {
	color: var(--teal-deep);
	background: var(--teal-tint);
	border-color: var(--teal);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 12px 28px rgba(31, 68, 66, .12);
}

.btn.small {
	min-height: 36px;
	padding: 0 18px;
	font-size: .625rem;
}

/* Inline text link with a travelling arrow — the prototype `.learn` pattern. */
.entry-more {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--teal-deep);
}

.entry-more .arrow {
	display: inline-block;
	color: var(--gold);
	transition: transform .34s var(--ease-out-soft);
}

.entry-more:hover .arrow,
.entry-more:focus-visible .arrow {
	transform: translateX(5px);
}

/* --------------------------------------------------------------------------
 * 7. Forms
 * ----------------------------------------------------------------------- */

label {
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .02em;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
textarea,
select {
	width: 100%;
	min-height: 44px;
	padding: .55em .9em;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 0;
	color: var(--charcoal);
	font-family: var(--font-sans);
	font-size: .9375rem;
	line-height: 1.5;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
	transition: border-color .2s ease;
}

textarea {
	min-height: 8em;
	resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	border-color: var(--teal);
	outline: 2px solid var(--teal-deep);
	outline-offset: 2px;
}

::placeholder {
	color: var(--ink-muted);
	opacity: 1;
}

fieldset {
	border: 1px solid var(--rule);
	padding: var(--space-sm) var(--space-md);
	margin: 0 0 var(--space-md);
}

legend {
	padding: 0 .5em;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--teal-deep);
}

.search-form {
	display: flex;
	gap: var(--space-2xs);
	align-items: stretch;
	max-width: 480px;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
}

/* --------------------------------------------------------------------------
 * 8. Tags & separators
 * ----------------------------------------------------------------------- */

/* Bordered chip — the prototype `.glass-tag`. */
.tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 11px;
	border: 1px solid rgba(228, 222, 212, .8);
	background: rgba(255, 255, 255, .36);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
	font-size: .625rem;
	color: var(--teal-deep);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

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

/* Dashed "sketch" rule. */
.rule-dashed {
	border: 0;
	border-top: 1px dashed var(--sketch);
	margin: var(--space-lg) 0;
}

/* Centred gold gradient hairline. */
.hairline-gold {
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: .45;
	border: 0;
	margin: var(--space-lg) 0;
}

/* The 1px gold line across the very top of the page frame. */
.top-hairline {
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: .42;
}

/* --------------------------------------------------------------------------
 * 9. Header & primary navigation
 * ----------------------------------------------------------------------- */

.site-header {
	min-height: var(--header-h);
	position: sticky;
	top: 0;
	z-index: 30;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 30px;
	align-items: center;
	padding: 0 var(--gutter);
	border-bottom: 1px solid var(--rule);
	background: rgba(250, 247, 242, .78);
	backdrop-filter: blur(18px) saturate(1.12);
	-webkit-backdrop-filter: blur(18px) saturate(1.12);
	transition: box-shadow .24s ease, background .24s ease;
}

body.is-scrolled .site-header {
	background: rgba(250, 247, 242, .88);
	box-shadow: 0 1px 0 rgba(228, 222, 212, .78), 0 14px 42px rgba(31, 68, 66, .08);
}

/* Wordmark: serif site title with an italic teal descriptor. */
.wordmark {
	display: inline-block;
	font-family: var(--font-serif);
	line-height: 1;
	color: var(--charcoal);
	text-decoration: none;
}

.wordmark .site-title {
	display: block;
	margin: 0;
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: .01em;
	text-transform: uppercase;
}

.wordmark .site-description {
	display: block;
	margin-top: 3px;
	font-size: .75rem;
	font-style: italic;
	color: var(--teal-deep);
}

/* Brand lock-up: clinic emblem + serif wordmark in one link. */
.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--charcoal);
	text-decoration: none;
}

.site-logo {
	display: block;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
}

@media (max-width: 768px) {
	.site-logo {
		width: 36px;
		height: 36px;
	}
}

.site-nav {
	display: flex;
	justify-content: center;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu a {
	position: relative;
	display: inline-block;
	padding: 7px 1px;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--charcoal);
	transition: color .3s ease;
}

/* Gold underline that draws itself from left to right. */
.nav-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 2px;
	height: 1px;
	background: var(--gold);
	transition: right .34s var(--ease-out-soft);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
	color: var(--teal-deep);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
	right: 0;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Header CTA — hidden until the visitor scrolls past the opening screen. */
.header-cta {
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
	transition: opacity .24s ease, transform .24s ease;
}

body.is-scrolled .header-cta {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Burger toggle — hidden on desktop. */
.menu-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--rule);
	border-radius: 0;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
}

.menu-toggle-icon {
	position: absolute;
	left: 13px;
	right: 13px;
	top: 50%;
	height: 1px;
	background: var(--charcoal);
	transition: background .28s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--charcoal);
	transition: transform .32s var(--ease-out-soft);
}

.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
	transform: translateY(-6px) rotate(-45deg);
}

.menu-toggle:focus-visible {
	outline: 2px solid var(--teal-deep);
	outline-offset: 2px;
}

/* Mobile navigation panel. */
@media (max-width: 960px) {
	.site-header {
		grid-template-columns: 1fr auto;
		gap: 14px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	/* On small screens the fixed bottom bar carries the CTA instead. */
	.header-cta {
		display: none;
	}

	.site-nav {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		z-index: 29;
		display: block;
		background: var(--ivory);
		border-bottom: 1px solid var(--rule);
		box-shadow: 0 24px 60px rgba(31, 68, 66, .14);
		padding: 8px 26px 18px;
		transform: translateY(-10px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
			opacity .32s ease,
			transform .32s var(--ease-out-soft),
			visibility .32s;
	}

	.site-nav.is-open {
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-menu a {
		display: block;
		font-size: .8125rem;
		letter-spacing: .1em;
		padding: 14px 2px;
		border-bottom: 1px solid rgba(228, 222, 212, .65);
	}

	.nav-menu li:last-child a {
		border-bottom: 0;
	}

	.nav-menu a::after {
		bottom: 8px;
	}
}

@media (max-width: 768px) {
	:root {
		--header-h: 56px;
	}

	.wordmark .site-title {
		font-size: .9375rem;
	}

	.wordmark .site-description {
		font-size: .625rem;
	}
}

/* --------------------------------------------------------------------------
 * 10. Footer
 * ----------------------------------------------------------------------- */

.site-footer {
	position: relative;
	background: linear-gradient(135deg, var(--teal-deep), var(--teal));
	color: var(--paper);
	padding: var(--space-xl) var(--gutter) var(--space-lg);
	font-size: .8125rem;
	line-height: 1.65;
}

/* Gold hairline along the footer's top edge. */
.site-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: .65;
}

.site-footer a {
	color: rgba(255, 255, 255, .88);
	transition: color .3s ease;
}

.site-footer a:hover {
	color: #FFFFFF;
}

.site-footer .wordmark {
	color: var(--paper);
}

.site-footer .wordmark .site-description {
	color: rgba(255, 255, 255, .88);
}

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

.footer-widgets .widget {
	margin: 0 0 var(--space-md);
}

.widget-title {
	margin: 0 0 var(--space-2xs);
	font-family: var(--font-sans);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--paper);
}

.footer-rule {
	height: 0;
	border-top: 1px dashed rgba(255, 255, 255, .38);
	margin: var(--space-sm) 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm) var(--space-md);
	margin: var(--space-md) 0 0;
	padding: 0;
	list-style: none;
	font-size: .75rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.site-info {
	margin-top: var(--space-lg);
	font-size: .75rem;
	color: rgba(255, 255, 255, .7);
}

.site-info p {
	margin: 0;
}

@media (max-width: 768px) {
	.footer-widgets {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}
}

/* Fixed mobile call-to-action bar — visible below 768px only. */
.mobile-cta {
	display: none;
}

@media (max-width: 768px) {
	body {
		padding-bottom: 76px;
	}

	.mobile-cta {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(250, 247, 242, .92);
		backdrop-filter: blur(16px) saturate(1.1);
		-webkit-backdrop-filter: blur(16px) saturate(1.1);
		border-top: 1px solid var(--rule);
		box-shadow: 0 -12px 34px rgba(31, 68, 66, .1);
	}

	.mobile-cta .btn {
		flex: 1;
	}
}

/* --------------------------------------------------------------------------
 * 11. Content — entries, archives, pagination
 * ----------------------------------------------------------------------- */

.page-header {
	margin-bottom: var(--space-xl);
}

.page-title {
	margin-bottom: var(--space-2xs);
}

.archive-description {
	color: var(--ink-muted);
	max-width: 60ch;
}

.entry {
	margin-bottom: var(--space-2xl);
}

.entry--teaser {
	padding-bottom: var(--space-lg);
	margin-bottom: var(--space-lg);
	border-bottom: 1px dashed var(--sketch);
}

.entry--teaser:last-of-type {
	border-bottom: 0;
}

.entry-title a {
	color: inherit;
}

.entry-title a:hover {
	color: var(--teal-deep);
}

.entry-meta {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-muted);
	margin-bottom: var(--space-sm);
}

.entry-thumbnail {
	margin: 0 0 var(--space-md);
}

.entry-thumbnail img {
	display: block;
	box-shadow: var(--ios-shadow);
}

.entry-content > * + *,
.page-content > * + * {
	margin-top: var(--space-sm);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content li {
	margin-bottom: .35em;
}

/* Paged-post links. */
.page-links {
	margin-top: var(--space-md);
	font-size: .8125rem;
	color: var(--ink-muted);
}

/* Archive pagination. */
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	align-items: center;
	margin-top: var(--space-xl);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rule);
	background: rgba(255, 255, 255, .48);
	font-size: .8125rem;
	color: var(--teal-deep);
	transition: background .3s ease, border-color .3s ease;
}

.pagination .page-numbers:hover {
	background: var(--teal-tint);
	border-color: var(--teal);
}

.pagination .page-numbers.current {
	background: var(--teal-deep);
	border-color: var(--teal-deep);
	color: var(--ivory);
}

.pagination .page-numbers.dots {
	border: 0;
	background: none;
	color: var(--ink-muted);
}

/* Previous / next post navigation on single posts. */
.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: var(--space-md);
	margin-top: var(--space-xl);
	padding-top: var(--space-md);
	border-top: 1px dashed var(--sketch);
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold);
}

.post-navigation .nav-title {
	font-family: var(--font-serif);
	font-size: 1rem;
}

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

/* --------------------------------------------------------------------------
 * 12. WordPress core classes
 * ----------------------------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0 var(--space-md) var(--space-sm) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--space-sm) var(--space-md);
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 480px) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 var(--space-sm);
	}
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
figcaption {
	margin-top: var(--space-2xs);
	font-family: var(--font-serif);
	font-style: italic;
	font-size: .8125rem;
	color: var(--ink-muted);
}

/* Required theme-check classes. */
.sticky {
	display: block;
}

.gallery-caption {
	display: block;
}

.bypostauthor {
	display: block;
}

/* --------------------------------------------------------------------------
 * 13. Paper grain overlay
 * ----------------------------------------------------------------------- */

/* Fine photographic grain across the whole page — part of the approved visual language. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 90;
	pointer-events: none;
	opacity: .035;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --------------------------------------------------------------------------
 * 14. Reduced motion
 * ----------------------------------------------------------------------- */

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

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