/*
Theme Name: Sundial Accounting
Theme URI: https://example.com/
Author: Sundial Accounting
Description: A lightweight custom classic theme for Sundial Accounting. Warm editorial "aged-bronze sundial" aesthetic, hardcoded static-page templates, WordPress-managed blog.
Version: 0.1.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sundial
Tags: custom-theme, accessibility-ready, responsive
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1.  Fonts
   2.  Design tokens
   3.  Reset & base
   4.  Typography
   5.  Layout: containers, sections, grids
   6.  Components: eyebrow, rules, buttons, cards
   7.  Site header & navigation
   8.  Site footer
   9.  Utilities & accessibility
   10. Motion & reduced motion
   ========================================================================== */


/* ==========================================================================
   1. FONTS
   Place the .woff2 files in /assets/fonts/ (see assets/fonts/README.txt).
   ========================================================================== */

@font-face {
	font-family: "Marcellus";
	src: url("assets/fonts/marcellus-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-variable.woff2") format("woff2-variations"),
	     url("assets/fonts/archivo-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Spline Sans Mono";
	src: url("assets/fonts/spline-sans-mono-variable.woff2") format("woff2-variations"),
	     url("assets/fonts/spline-sans-mono-variable.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}


/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */

:root {
	/* --- Brand palette --- */
	--green: #16302B;          /* deep verdigris */
	--green-deep: #0C1B18;     /* darkest sections */
	--gold: #D9A441;           /* brass */
	--gold-bright: #EDC15A;    /* highlights */
	--gold-ink: #8A5F1B;       /* brass darkened for TEXT on light backgrounds */
	--limestone: #EFEDE3;      /* warm page background */
	--paper: #FBFAF4;          /* cards / elevated surfaces */
	--ink: #1D2B27;            /* primary text on light */
	--ink-muted: #5A6862;      /* secondary text on light */
	--bone: #F4F1E8;           /* primary text on dark */
	--bone-muted: rgba(244, 241, 232, 0.72);

	/* --- Derived surface tokens (set per section in §5) --- */
	--surface: var(--limestone);
	--surface-raised: var(--paper);
	--text: var(--ink);
	--text-muted: var(--ink-muted);
	--accent: var(--gold-ink);         /* accent used for TEXT */
	--accent-line: rgba(217, 164, 65, 0.55); /* accent used for RULES/BORDERS */
	--line: rgba(29, 43, 39, 0.12);
	--focus: #8A5F1B;

	/* --- Typography --- */
	--font-display: "Marcellus", "Times New Roman", Georgia, serif;
	--font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--font-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--text-xs:  clamp(0.75rem, 0.74rem + 0.05vw, 0.78rem);
	--text-sm:  clamp(0.875rem, 0.86rem + 0.08vw, 0.925rem);
	--text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--text-lg:  clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	--h4:       clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
	--h3:       clamp(1.3rem, 1.15rem + 0.75vw, 1.75rem);
	--h2:       clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
	--h1:       clamp(2.25rem, 1.65rem + 2.8vw, 3.9rem);

	--leading-tight: 1.15;
	--leading-snug: 1.35;
	--leading-body: 1.65;
	--tracking-label: 0.18em;

	/* --- Spacing --- */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--space-9: 6rem;
	--section-y: clamp(3.75rem, 8vw, 7rem);
	--gutter: clamp(1.25rem, 5vw, 2.5rem);

	/* --- Layout --- */
	--container: 1160px;
	--container-narrow: 720px;
	--header-height: 4.5rem;

	/* --- Shape --- */
	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 20px;
	--radius-pill: 999px;

	/* --- Motion --- */
	--ease: cubic-bezier(0.22, 0.61, 0.24, 1);
	--dur-fast: 220ms;
	--dur: 380ms;
	--dur-slow: 700ms;

	/* --- Elevation --- */
	--shadow-card: 0 18px 40px -26px rgba(12, 27, 24, 0.45);
}


/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

body {
	margin: 0;
	background-color: var(--limestone);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* clip, not hidden: `hidden` creates a scroll container and breaks
	   position: sticky on the header. */
	overflow-x: clip;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

img {
	border-style: none;
}

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

button {
	cursor: pointer;
}

ul,
ol {
	padding-inline-start: 1.25em;
}

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

::selection {
	background-color: var(--gold);
	color: var(--green-deep);
}


/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--space-4);
	font-family: var(--font-display);
	font-weight: 400;
	line-height: var(--leading-tight);
	letter-spacing: -0.005em;
	text-wrap: balance;
	color: var(--text);
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: var(--leading-snug); }
h4 { font-size: var(--h4); line-height: var(--leading-snug); }
h5, h6 {
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

p {
	margin: 0 0 var(--space-4);
	text-wrap: pretty;
}

p:last-child,
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child {
	margin-bottom: 0;
}

a {
	color: var(--text);
	text-decoration-color: var(--accent-line);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color var(--dur-fast) var(--ease),
	            text-decoration-color var(--dur-fast) var(--ease);
}

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

strong,
b {
	font-weight: 600;
}

small {
	font-size: var(--text-sm);
}

blockquote {
	margin: var(--space-6) 0;
	padding-inline-start: var(--space-5);
	border-inline-start: 2px solid var(--accent-line);
	font-family: var(--font-display);
	font-size: var(--text-lg);
	line-height: var(--leading-snug);
}

code,
kbd,
pre,
samp {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

/* The classical-serif / modern-mono pairing is the brand signature.
   Numerals in Marcellus carry prices, dates and figures. */
.numeral {
	font-family: var(--font-display);
	font-variant-numeric: lining-nums tabular-nums;
	letter-spacing: 0.01em;
}

.lede {
	font-size: var(--text-lg);
	line-height: 1.55;
	color: var(--text-muted);
	max-width: 58ch;
}

.meta {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}


/* ==========================================================================
   5. LAYOUT
   ========================================================================== */

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

.container--narrow {
	max-width: var(--container-narrow);
}

.section {
	position: relative;
	padding-block: var(--section-y);
	background-color: var(--surface);
	color: var(--text);
}

/* --- Section themes: each one re-points the shared surface tokens --- */

.section--light {
	--surface: var(--limestone);
	--surface-raised: var(--paper);
	--text: var(--ink);
	--text-muted: var(--ink-muted);
	--accent: var(--gold-ink);
	--accent-line: rgba(217, 164, 65, 0.55);
	--line: rgba(29, 43, 39, 0.12);
	--focus: #8A5F1B;
}

.section--paper {
	--surface: var(--paper);
	--surface-raised: #FFFFFF;
	--text: var(--ink);
	--text-muted: var(--ink-muted);
	--accent: var(--gold-ink);
	--accent-line: rgba(217, 164, 65, 0.55);
	--line: rgba(29, 43, 39, 0.1);
	--focus: #8A5F1B;
}

.section--dark,
.section--deep {
	--surface-raised: rgba(244, 241, 232, 0.06);
	--text: var(--bone);
	--text-muted: var(--bone-muted);
	--accent: var(--gold-bright);
	--accent-line: rgba(217, 164, 65, 0.45);
	--line: rgba(244, 241, 232, 0.14);
	--focus: #EDC15A;
	color: var(--bone);
}

.section--dark {
	--surface: var(--green);
	background-color: var(--green);
	/* Soft brass and green glows: atmospheric, never bright. */
	background-image:
		radial-gradient(70% 55% at 12% 0%, rgba(217, 164, 65, 0.10), transparent 68%),
		radial-gradient(60% 60% at 92% 100%, rgba(60, 122, 108, 0.22), transparent 70%);
}

.section--deep {
	--surface: var(--green-deep);
	background-color: var(--green-deep);
	background-image:
		radial-gradient(65% 50% at 50% -10%, rgba(217, 164, 65, 0.08), transparent 70%);
}

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* --- Section headers --- */

.section__head {
	max-width: 62ch;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__head--center {
	margin-inline: auto;
	text-align: center;
}

/* --- Grids --- */

.grid {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.stack > * + * { margin-top: var(--space-4); }


/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* --- Eyebrow label: mono, uppercase, tracked, with a leading brass dash --- */

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 var(--space-3);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--accent);
}

.eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1px;
	background-color: currentColor;
	opacity: 0.7;
}

.section__head--center .eyebrow {
	justify-content: center;
}

/* --- Brass rules --- */

.rule {
	height: 1px;
	border: 0;
	margin: 0;
	background-image: linear-gradient(90deg, var(--accent-line), rgba(217, 164, 65, 0));
}

.rule--full {
	background-image: linear-gradient(90deg,
		rgba(217, 164, 65, 0), var(--accent-line) 20%, var(--accent-line) 80%, rgba(217, 164, 65, 0));
}

/* Gnomon divider: a hairline with a small brass marker, echoing the dial's shadow-caster. */
.rule--gnomon {
	position: relative;
	overflow: visible;
}

.rule--gnomon::after {
	content: "";
	position: absolute;
	top: -3px;
	left: 0;
	width: 7px;
	height: 7px;
	background-color: var(--gold);
	transform: rotate(45deg);
}

/* --- Buttons --- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 3rem;
	padding: 0.8rem 1.75rem;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background-color: transparent;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--dur) var(--ease),
	            border-color var(--dur) var(--ease),
	            color var(--dur) var(--ease),
	            transform var(--dur) var(--ease),
	            box-shadow var(--dur) var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn__icon {
	flex: 0 0 auto;
	transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__icon {
	transform: translateX(3px);
}

.btn--primary {
	background-color: var(--gold);
	color: var(--green-deep);
}

.btn--primary:hover {
	background-color: var(--gold-bright);
	color: var(--green-deep);
	box-shadow: 0 14px 28px -18px rgba(12, 27, 24, 0.7);
}

.btn--secondary {
	border-color: var(--line);
	color: var(--text);
}

.btn--secondary:hover {
	border-color: var(--accent-line);
	background-color: rgba(217, 164, 65, 0.1);
	color: var(--text);
}

.btn--sm {
	min-height: 2.5rem;
	padding: 0.5rem 1.25rem;
	font-size: var(--text-xs);
}

/* Text link with a moving arrow, for card footers and inline calls to action. */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
}

.link-arrow svg {
	transition: transform var(--dur) var(--ease);
}

.link-arrow:hover {
	color: var(--accent);
}

.link-arrow:hover svg {
	transform: translateX(4px);
}

/* --- Cards --- */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface-raised);
	transition: transform var(--dur) var(--ease),
	            border-color var(--dur) var(--ease),
	            box-shadow var(--dur) var(--ease);
}

/* Restrained gold accent revealed on hover. */
.card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: clamp(1.5rem, 3vw, 2rem);
	right: clamp(1.5rem, 3vw, 2rem);
	height: 1px;
	background-color: var(--gold);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--dur-slow) var(--ease);
}

.card:hover,
.card:focus-within {
	transform: translateY(-4px);
	border-color: var(--accent-line);
	box-shadow: var(--shadow-card);
}

.card:hover::before,
.card:focus-within::before {
	transform: scaleX(1);
}

/* Forces the off-white surface, including inside dark sections. */
.card--paper {
	--text: var(--ink);
	--text-muted: var(--ink-muted);
	--accent: var(--gold-ink);
	--accent-line: rgba(217, 164, 65, 0.55);
	--line: rgba(29, 43, 39, 0.12);
	--focus: #8A5F1B;
	background-color: var(--paper);
	color: var(--ink);
}

.card__title {
	font-size: var(--h4);
	margin-bottom: var(--space-2);
}

.card__text {
	color: var(--text-muted);
	margin-bottom: var(--space-4);
}

.card__foot {
	margin-top: auto;
	padding-top: var(--space-4);
}

/* Card whose whole area is clickable via a stretched link. */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}


/* ==========================================================================
   7. SITE HEADER & NAVIGATION
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--limestone);
	border-bottom: 1px solid rgba(29, 43, 39, 0.1);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	min-height: var(--header-height);
}

/* --- Logo --- */

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--ink);
}

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

.site-logo__mark {
	flex: 0 0 auto;
	width: 2.1rem;
	height: 2.1rem;
}

.site-logo__name {
	font-family: var(--font-display);
	font-size: 1.3rem;
	line-height: 1.1;
	letter-spacing: 0.01em;
}

.site-logo__name span {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-ink);
}

/* --- Navigation --- */

.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.2vw, 1.85rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu a {
	position: relative;
	display: inline-block;
	padding-block: 0.35rem;
	font-size: var(--text-sm);
	font-weight: 500;
	text-decoration: none;
	color: var(--ink);
}

.nav-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background-color: var(--gold);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform var(--dur) var(--ease);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current-menu-parent > a::after {
	transform: scaleX(1);
}

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

/* Sub-menus stay simple: a single level, revealed on hover and focus. */
.nav-menu .sub-menu {
	position: absolute;
	z-index: 10;
	min-width: 12rem;
	margin: 0;
	padding: var(--space-3);
	list-style: none;
	background-color: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity var(--dur-fast) var(--ease),
	            transform var(--dur-fast) var(--ease),
	            visibility var(--dur-fast) var(--ease);
}

.nav-menu .menu-item-has-children {
	position: relative;
}

.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu a {
	display: block;
	padding: 0.45rem 0.5rem;
}

.nav-menu .sub-menu a::after {
	display: none;
}

/* --- Mobile toggle --- */

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background-color: transparent;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
	transition: border-color var(--dur) var(--ease),
	            background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
	border-color: var(--accent-line);
	background-color: rgba(217, 164, 65, 0.1);
}

.nav-toggle__bars {
	position: relative;
	width: 1rem;
	height: 0.625rem;
	flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background-color: currentColor;
	transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { top: calc(100% - 1.5px); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	top: calc(50% - 0.75px);
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	top: calc(50% - 0.75px);
	transform: rotate(-45deg);
}

@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: block;
		padding: var(--space-5) var(--gutter) var(--space-6);
		background-color: var(--limestone);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -28px rgba(12, 27, 24, 0.6);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity var(--dur) var(--ease),
		            transform var(--dur) var(--ease),
		            visibility var(--dur) var(--ease);
	}

	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-menu {
		display: block;
		margin-bottom: var(--space-5);
	}

	.nav-menu > li + li {
		border-top: 1px solid var(--line);
	}

	.nav-menu a {
		padding-block: 0.85rem;
		font-family: var(--font-display);
		font-size: 1.2rem;
	}

	.nav-menu a::after {
		display: none;
	}

	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 var(--space-3) var(--space-4);
		background-color: transparent;
	}

	.nav-menu .sub-menu a {
		font-family: var(--font-body);
		font-size: var(--text-sm);
		padding-block: 0.5rem;
	}

	.site-nav .btn {
		width: 100%;
	}
}


/* ==========================================================================
   8. SITE FOOTER
   ========================================================================== */

.site-footer {
	background-color: var(--green-deep);
	color: var(--bone);
	--text: var(--bone);
	--text-muted: var(--bone-muted);
	--accent: var(--gold-bright);
	--accent-line: rgba(217, 164, 65, 0.4);
	--line: rgba(244, 241, 232, 0.14);
	--focus: #EDC15A;
	padding-block: clamp(3rem, 6vw, 4.5rem) var(--space-6);
}

.site-footer a {
	color: var(--bone);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--gold-bright);
}

.site-footer__grid {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.site-footer__brand {
	max-width: 26rem;
}

.site-footer .site-logo,
.site-footer .site-logo:hover {
	color: var(--bone);
}

.site-footer__tagline {
	margin-top: var(--space-4);
	color: var(--bone-muted);
	font-size: var(--text-sm);
}

.footer-heading {
	margin-bottom: var(--space-4);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--gold-bright);
}

.footer-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--text-sm);
}

.footer-list li + li {
	margin-top: 0.6rem;
}

.footer-list .meta {
	display: block;
	margin-bottom: 0.15rem;
	color: var(--bone-muted);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
	color: var(--bone-muted);
}


/* ==========================================================================
   9. UTILITIES & ACCESSIBILITY
   ========================================================================== */

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

.skip-link {
	position: absolute;
	left: var(--space-4);
	top: -100%;
	z-index: 200;
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius-pill);
	background-color: var(--green);
	color: var(--bone);
	font-size: var(--text-sm);
	text-decoration: none;
	transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
	top: var(--space-3);
	color: var(--bone);
}

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

:focus:not(:focus-visible) {
	outline: none;
}

.text-center { text-align: center; }
.measure { max-width: 62ch; }
.mx-auto { margin-inline: auto; }
.mt-6 { margin-top: var(--space-6); }
.no-scroll { overflow: hidden; }

/* WordPress core alignment/caption classes, kept minimal. */
.alignleft { float: left; margin: 0 var(--space-5) var(--space-4) 0; }
.alignright { float: right; margin: 0 0 var(--space-4) var(--space-5); }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption {
	margin-top: var(--space-2);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	color: var(--text-muted);
}


/* ==========================================================================
   10. MOTION
   ========================================================================== */

/* Gentle fade-and-rise entrance. JS adds .is-visible when the element
   scrolls into view; without JS or with reduced motion, content is visible. */
.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity var(--dur-slow) var(--ease),
	            transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

	.reveal {
		opacity: 1;
		transform: none;
	}

	.btn:hover,
	.card:hover {
		transform: none;
	}
}


/* ==========================================================================
   11. SHARED COMPONENTS ADDED IN THE HOMEPAGE PHASE
   These live here rather than in front-page.css because the blog
   templates and the contact page reuse them.
   ========================================================================== */

/* --- Sundial graphic --- */

.sundial__numeral {
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: 0.04em;
	fill: #D9A441;
	fill-opacity: 0.75;
}

/* --- Section head with an action on the right --- */

.section__head--between {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-5);
	max-width: none;
}

/* --- Checklist --- */

.checklist {
	display: grid;
	gap: 0.75rem;
	margin: var(--space-5) 0 0;
	padding: 0;
	list-style: none;
}

.checklist li {
	position: relative;
	padding-inline-start: 1.85rem;
}

.checklist li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0.15rem;
	top: 0.5em;
	width: 0.65rem;
	height: 0.32rem;
	border-inline-start: 1.5px solid var(--accent);
	border-bottom: 1.5px solid var(--accent);
	transform: rotate(-45deg);
}

/* --- Post card (homepage journal + every blog template) --- */

.post-card {
	padding: 0;
	overflow: hidden;
}

.post-card::before {
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
}

.post-card__media {
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background-color: rgba(29, 43, 39, 0.06);
}

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

.post-card:hover .post-card__media img,
.post-card:focus-within .post-card__media img {
	transform: scale(1.03);
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: var(--space-3);
}

.post-card__title {
	margin-bottom: var(--space-2);
}

.post-card .card__foot {
	padding-top: var(--space-3);
}

@media (prefers-reduced-motion: reduce) {
	.post-card:hover .post-card__media img,
	.post-card:focus-within .post-card__media img {
		transform: none;
	}
}


/* ==========================================================================
   12. SHARED COMPONENTS ADDED IN THE BLOG PHASE
   Page heads, long-form prose, pagination and the search form are used by
   the blog templates, page.php and 404.php alike, so they live here.
   ========================================================================== */

/* --- Page head band --- */

.page-head {
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.page-head__title {
	margin-bottom: var(--space-3);
}

.page-head .lede {
	margin-bottom: 0;
}

/* --- Long-form prose (post content, page content) --- */

.prose {
	max-width: 68ch;
}

.prose > * + * {
	margin-top: var(--space-5);
}

.prose h2 {
	margin-top: clamp(2.25rem, 5vw, 3.25rem);
	margin-bottom: 0;
	font-size: var(--h3);
}

.prose h3 {
	margin-top: clamp(1.75rem, 4vw, 2.5rem);
	margin-bottom: 0;
	font-size: var(--h4);
}

.prose h2 + *,
.prose h3 + * {
	margin-top: var(--space-4);
}

.prose p,
.prose li {
	line-height: var(--leading-body);
}

.prose ul,
.prose ol {
	padding-inline-start: 1.35em;
}

.prose li + li {
	margin-top: 0.5rem;
}

.prose img,
.prose figure {
	border-radius: var(--radius);
}

.prose figure {
	margin-inline: 0;
}

.prose a {
	text-decoration: underline;
}

.prose hr {
	margin-block: clamp(2rem, 4vw, 3rem);
	border-top-color: var(--accent-line);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-sm);
}

.prose th,
.prose td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: start;
}

.prose th {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

/* --- Pagination --- */

.pagination {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	text-decoration: none;
	color: var(--text);
	transition: border-color var(--dur) var(--ease),
	            background-color var(--dur) var(--ease);
}

.pagination a.page-numbers:hover {
	border-color: var(--accent-line);
	background-color: rgba(217, 164, 65, 0.1);
}

.pagination .page-numbers.current {
	border-color: var(--accent-line);
	background-color: rgba(217, 164, 65, 0.16);
	color: var(--text);
}

.pagination .page-numbers.dots {
	min-width: 1.5rem;
	padding: 0;
	color: var(--text-muted);
}

/* --- Search form --- */

.search-form {
	display: flex;
	gap: var(--space-2);
	max-width: 30rem;
}

.search-form__field {
	flex: 1;
	min-width: 0;
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	color: var(--text);
	font-size: var(--text-sm);
	transition: border-color var(--dur) var(--ease);
}

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

.search-form__field:focus {
	border-color: var(--accent-line);
	outline-offset: 2px;
}

/* --- Empty state --- */

.empty-state {
	max-width: 46ch;
}

.empty-state .search-form {
	margin-top: var(--space-5);
}

/* --- Featured media (single posts and default pages) --- */

.single__media {
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	overflow: hidden;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	/* Pulls up into the dark head band above, so the image bridges the two. */
	margin-top: calc(-1 * clamp(2.5rem, 6vw, 5rem));
}

.single__media img {
	width: 100%;
}

/* Default pages have no extra head padding, so no overlap. */
.single__media--flush {
	margin-top: 0;
}
