/*
Theme Name: Nothando Netangle
Theme URI: https://www.nothandonetangle.com
Author: Nothando Netangle
Author URI: https://www.nothandonetangle.com
Description: An elegant, editorial WordPress theme for author Nothando Netangle. The whole site is a single one-page landing page — hero, the book, about, quotes, news and enquiries — with a built-in "Books" post type and a working contact form. Midnight-dark hero, warm paper interiors, serif typography. Ready to grow into a full site when the catalogue does.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nothando
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks, custom-colors, editor-style, full-width-template, theme-options, featured
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */

:root {
	/* Night */
	--ink:          #090b0f;
	--ink-soft:     #10141b;
	--ink-raise:    #171d26;
	--on-ink:       #ece8e0;
	--on-ink-mute:  #9aa4b0;
	--ink-line:     rgba(236, 232, 224, 0.13);

	/* Paper */
	--paper:        #f6f3ed;
	--paper-soft:   #ede8de;
	--paper-raise:  #fffdf9;
	--text:         #15181e;
	--text-mute:    #5d6570;
	--paper-line:   rgba(21, 24, 30, 0.12);

	/* Accents */
	--beam:         #e8b64a;
	--beam-deep:    #bd8a24;
	--ember:        #a8412a;
	--beam-glow:    rgba(232, 182, 74, 0.35);

	/* Type */
	--font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--font-body:    "Lora", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--font-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Rhythm */
	--measure:      68ch;
	--wrap:         1240px;
	--wrap-wide:    1500px;
	--gutter:       clamp(1.25rem, 4vw, 3rem);
	--section-y:    clamp(4rem, 9vw, 8rem);

	--radius:       2px;
	--shadow-lift:  0 24px 60px -28px rgba(0, 0, 0, 0.55);
	--ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.72;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

svg { fill: currentColor; }

a {
	color: inherit;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: 0.18em;
	transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover { color: var(--beam-deep); }

hr {
	border: 0;
	height: 1px;
	background: var(--paper-line);
	margin: 3rem 0;
}

::selection {
	background: var(--beam);
	color: var(--ink);
}

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

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

p { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

blockquote {
	margin: 2.5rem 0;
	padding-left: 1.75rem;
	border-left: 2px solid var(--beam);
	font-family: var(--font-display);
	font-size: 1.25em;
	font-style: italic;
	line-height: 1.45;
	color: var(--text);
}

blockquote cite,
blockquote .wp-block-quote__citation {
	display: block;
	margin-top: 0.9rem;
	font-family: var(--font-ui);
	font-size: 0.62em;
	font-style: normal;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-mute);
}

blockquote cite::before { content: "\2014\00a0"; }

code, pre, kbd, samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	background: var(--ink-soft);
	color: var(--on-ink);
	padding: 1.5rem;
	overflow-x: auto;
	border-radius: var(--radius);
}

/* Small caps eyebrow / kicker used throughout */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-family: var(--font-ui);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--beam-deep);
	margin-bottom: 1.15rem;
}

.eyebrow::before {
	content: "";
	width: 2rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
	content: "";
	width: 2rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.on-dark .eyebrow,
.section--dark .eyebrow { color: var(--beam); }

.lede {
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
	line-height: 1.6;
	color: var(--text-mute);
	max-width: 58ch;
}

.dropcap::first-letter {
	float: left;
	font-family: var(--font-display);
	font-size: 3.9em;
	line-height: 0.82;
	padding: 0.06em 0.1em 0 0;
	color: var(--ember);
	font-weight: 600;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

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

.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper-soft { background: var(--paper-soft); }
.section--dark { background: var(--ink); color: var(--on-ink); }
.section--dark .lede,
.section--dark .muted { color: var(--on-ink-mute); }

.muted { color: var(--text-mute); }

.stack > * + * { margin-top: var(--stack-gap, 1.25rem); }

.section-head {
	max-width: 62ch;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.section-head p { margin-bottom: 0; }

.rule {
	border-top: 1px solid var(--paper-line);
}

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.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)); }

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.9rem 1.4rem;
	background: var(--beam);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	color: var(--ink);
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
	--btn-bg: transparent;
	--btn-fg: currentColor;
	--btn-bd: currentColor;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.95rem 1.7rem;
	background: var(--btn-bg);
	color: var(--btn-fg);
	border: 1px solid var(--btn-bd);
	border-radius: 999px;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
		color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.btn svg { width: 1em; height: 1em; flex: none; }

.btn--beam {
	--btn-bg: var(--beam);
	--btn-fg: var(--ink);
	--btn-bd: var(--beam);
	font-weight: 600;
}

.btn--beam:hover {
	--btn-bg: #f2c662;
	--btn-bd: #f2c662;
	box-shadow: 0 12px 34px -14px var(--beam-glow);
	color: var(--ink);
}

.btn--solid {
	--btn-bg: var(--ink);
	--btn-fg: var(--paper);
	--btn-bd: var(--ink);
}

.btn--solid:hover { --btn-bg: #1c222c; --btn-bd: #1c222c; color: var(--paper); }

.btn--ghost-dark {
	--btn-fg: var(--on-ink);
	--btn-bd: rgba(236, 232, 224, 0.45);
}

.btn--ghost-dark:hover { --btn-bd: var(--beam); --btn-fg: var(--beam); }

.btn--ghost {
	--btn-fg: var(--text);
	--btn-bd: rgba(21, 24, 30, 0.28);
}

.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--sm { padding: 0.7rem 1.25rem; font-size: 0.7rem; }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: center;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-ui);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--beam-deep);
}

.link-arrow::after {
	content: "\2192";
	transition: transform 0.3s var(--ease);
}

.link-arrow:hover::after { transform: translateX(5px); }

/* ==========================================================================
   5. Notice bar
   ========================================================================== */

.notice-bar {
	background: var(--ember);
	color: #fff;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	letter-spacing: 0.02em;
}

.notice-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	padding-block: 0.7rem;
	text-align: center;
}

.notice-bar svg { width: 1.05rem; height: 1.05rem; flex: none; opacity: 0.9; }
.notice-bar a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   6. Header / navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--ink) 88%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--ink-line);
	transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header--solid {
	background: var(--ink);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 3rem);
	min-height: 78px;
	padding-block: 0.9rem;
}

.site-branding { flex: 1 1 auto; min-width: 0; }

.site-branding a {
	text-decoration: none;
	display: inline-block;
	color: var(--on-ink);
}

/* Wordmark: first name light, last name bold â€” set in Playfair */
.wordmark {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1rem + 0.9vw, 1.7rem);
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.wordmark__given { font-weight: 400; opacity: 0.78; }
.wordmark__family { font-weight: 700; }

.wordmark__tag {
	display: block;
	margin-top: 0.45rem;
	font-family: var(--font-ui);
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--beam);
}

.custom-logo-link img,
.custom-logo {
	max-height: 62px;
	width: auto;
}

/* Primary nav */
.nav-primary { display: flex; align-items: center; }

.nav-primary ul {
	display: flex;
	align-items: center;
	gap: clamp(1.1rem, 2.2vw, 2.1rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-primary a {
	position: relative;
	display: inline-block;
	padding-block: 0.35rem;
	color: var(--on-ink);
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
}

.nav-primary a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--beam);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s var(--ease);
}

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

.nav-primary a.is-current { color: var(--beam); }

.nav-primary .sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 50%;
	transform: translate(-50%, 8px);
	min-width: 13rem;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0.55rem;
	background: var(--ink-raise);
	border: 1px solid var(--ink-line);
	box-shadow: var(--shadow-lift);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.nav-primary li { position: relative; }
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.nav-primary .sub-menu a {
	display: block;
	padding: 0.6rem 0.8rem;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
}

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

.nav-primary .sub-menu a:hover { background: rgba(232, 182, 74, 0.1); color: var(--beam); }

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: none;
}

/* Social icons */
.social-row { display: flex; align-items: center; gap: 0.6rem; }

.social-row a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--ink-line);
	border-radius: 50%;
	color: var(--on-ink-mute);
	transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-row a:hover {
	color: var(--beam);
	border-color: var(--beam);
	transform: translateY(-2px);
}

.social-row svg { width: 15px; height: 15px; }
.social-row--footer a { border-color: rgba(236, 232, 224, 0.16); }

/* Burger */
.nav-toggle {
	display: none;
	position: relative;
	width: 46px;
	height: 46px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--ink-line);
	border-radius: 50%;
	color: var(--on-ink);
	cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	transform: translateX(-50%);
	transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle::before { top: 17px; }
.nav-toggle span { top: 22px; }
.nav-toggle::after { top: 27px; }

.nav-toggle[aria-expanded="true"]::before { top: 22px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { top: 22px; transform: translateX(-50%) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
	position: fixed;
	inset: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6rem var(--gutter) 3rem;
	background: var(--ink);
	color: var(--on-ink);
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform 0.55s var(--ease), visibility 0.55s;
	overflow-y: auto;
}

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

.nav-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-drawer a {
	display: block;
	padding: 0.55rem 0;
	font-family: var(--font-display);
	font-size: clamp(1.7rem, 7vw, 2.6rem);
	color: var(--on-ink);
	text-decoration: none;
}

.nav-drawer .sub-menu { padding-left: 1rem; }
.nav-drawer .sub-menu a { font-size: 1.1rem; opacity: 0.7; }

.nav-drawer__foot {
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--ink-line);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: center;
	justify-content: space-between;
}

body.nav-open { overflow: hidden; }

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
	position: relative;
	isolation: isolate;
	background: var(--ink);
	color: var(--on-ink);
	overflow: hidden;
	padding-block: clamp(4rem, 9vw, 8rem) clamp(4.5rem, 10vw, 9rem);
}

.hero::before {
	/* flashlight beam */
	content: "";
	position: absolute;
	z-index: -2;
	inset: -30% -10% auto auto;
	width: min(58vw, 780px);
	height: 160%;
	background:
		radial-gradient(ellipse 60% 42% at 62% 30%, rgba(232, 182, 74, 0.22), transparent 68%),
		conic-gradient(from 168deg at 62% 26%,
			transparent 0deg,
			rgba(232, 182, 74, 0.14) 16deg,
			rgba(232, 182, 74, 0.05) 30deg,
			transparent 46deg);
	filter: blur(14px);
	transform: rotate(-8deg);
	pointer-events: none;
}

.hero::after {
	/* dust + grain */
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image:
		radial-gradient(1.4px 1.4px at 18% 32%, rgba(236, 232, 224, 0.16), transparent),
		radial-gradient(1.2px 1.2px at 72% 18%, rgba(236, 232, 224, 0.13), transparent),
		radial-gradient(1px 1px at 42% 78%, rgba(236, 232, 74, 0.12), transparent),
		radial-gradient(1.6px 1.6px at 88% 62%, rgba(236, 232, 224, 0.1), transparent),
		radial-gradient(1px 1px at 8% 88%, rgba(236, 232, 224, 0.12), transparent);
	opacity: 0.75;
	pointer-events: none;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2.5rem, 6vw, 5.5rem);
	align-items: center;
}

.hero__title { margin-bottom: 1.5rem; }

.hero__title .line {
	display: block;
}

.hero__title .given {
	font-weight: 400;
	color: color-mix(in srgb, var(--on-ink) 82%, transparent);
}

.hero__title .family {
	font-weight: 700;
	letter-spacing: -0.025em;
	position: relative;
}

.hero__title .family::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.12em;
	width: 3.5rem;
	height: 2px;
	background: var(--beam);
}

.hero__tagline {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.9rem);
	font-style: italic;
	line-height: 1.35;
	color: color-mix(in srgb, var(--on-ink) 90%, transparent);
	max-width: 30ch;
	margin-bottom: 1.25rem;
}

.hero__lede {
	color: var(--on-ink-mute);
	max-width: 52ch;
	margin-bottom: 2.25rem;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin-top: 2.5rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--ink-line);
	font-family: var(--font-ui);
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--on-ink-mute);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--beam);
}

/* Book cover in hero */
.hero-cover {
	position: relative;
	justify-self: center;
	width: min(100%, 380px);
}

.hero-cover__frame {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 3px;
	background: var(--ink-raise);
	box-shadow:
		0 40px 90px -30px rgba(0, 0, 0, 0.85),
		0 0 0 1px rgba(236, 232, 224, 0.09),
		-14px 0 40px -28px var(--beam-glow);
	transform: rotate(-1.6deg);
	transition: transform 0.7s var(--ease);
}

.hero-cover:hover .hero-cover__frame { transform: rotate(0deg) translateY(-6px); }

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

.hero-cover__caption {
	margin-top: 1.35rem;
	text-align: center;
	font-family: var(--font-ui);
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--on-ink-mute);
}

/* Cover placeholder when no image set */
.cover-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	gap: 1rem;
	padding: 2rem;
	text-align: center;
	background:
		linear-gradient(150deg, #1b2029, #0d1116 60%),
		var(--ink-raise);
	color: var(--on-ink);
}

.cover-placeholder__title {
	font-family: var(--font-display);
	font-size: 1.9rem;
	line-height: 1.15;
	font-weight: 700;
}

.cover-placeholder__author {
	font-family: var(--font-ui);
	font-size: 0.62rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--beam);
}

/* ==========================================================================
   8. Book feature
   ========================================================================== */

.book-feature {
	display: grid;
	grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
}

.book-feature--reverse .book-feature__art { order: 2; }

.book-cover {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: 3px;
	overflow: hidden;
	background: var(--ink-soft);
	box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(21, 24, 30, 0.08);
}

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

.book-feature__label {
	display: inline-block;
	margin-bottom: 1.1rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-family: var(--font-ui);
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ember);
}

.book-feature__title { margin-bottom: 0.35rem; }

.book-feature__subtitle {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem);
	color: var(--text-mute);
	margin-bottom: 1.5rem;
}

.book-feature__body { max-width: 60ch; }

.book-feature__pull {
	margin: 2rem 0;
	padding: 1.5rem 0 1.5rem 1.5rem;
	border-left: 2px solid var(--beam);
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
	font-style: italic;
	line-height: 1.4;
	color: var(--text);
}

.spec-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1px;
	margin: 2rem 0;
	background: var(--paper-line);
	border: 1px solid var(--paper-line);
}

.spec-list__item { background: var(--paper); padding: 1rem 1.1rem; }

.spec-list__key {
	display: block;
	font-family: var(--font-ui);
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-mute);
	margin-bottom: 0.35rem;
}

.spec-list__val {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
}

/* Book grid card */
.book-card {
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
}

.book-card__art {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 3px;
	background: var(--ink-soft);
	box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.55);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.book-card__art img { width: 100%; height: 100%; object-fit: cover; }

.book-card:hover .book-card__art {
	transform: translateY(-6px);
	box-shadow: 0 36px 60px -28px rgba(0, 0, 0, 0.6);
}

.book-card__title { font-size: 1.4rem; margin-bottom: 0.3rem; }
.book-card__title a { text-decoration: none; }
.book-card__title a:hover { color: var(--ember); }

.book-card__meta {
	font-family: var(--font-ui);
	font-size: 0.66rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-mute);
	margin-bottom: 0.85rem;
}

.book-card__excerpt { font-size: 0.98rem; color: var(--text-mute); margin-bottom: 1.25rem; }

.badge {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: var(--beam);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.badge--soon { background: var(--ember); color: #fff; }

/* ==========================================================================
   9. News / post cards
   ========================================================================== */

.news-card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--paper-line);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
	border-color: transparent;
}

.news-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--paper-soft);
}

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

.news-card:hover .news-card__media img { transform: scale(1.05); }

.news-card__body { padding: clamp(1.35rem, 2.5vw, 2rem); display: flex; flex-direction: column; flex: 1; }

.news-card__date {
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ember);
	margin-bottom: 0.9rem;
}

.news-card__title { font-size: 1.45rem; margin-bottom: 0.8rem; }
.news-card__title a { text-decoration: none; }
.news-card__title a:hover { color: var(--ember); }

.news-card__excerpt { font-size: 0.98rem; color: var(--text-mute); margin-bottom: 1.4rem; }
.news-card .link-arrow { margin-top: auto; }

/* Text-only news item */
.news-row {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr) auto;
	gap: clamp(1rem, 3vw, 2.5rem);
	align-items: center;
	padding-block: 1.6rem;
	border-top: 1px solid var(--paper-line);
	transition: padding-left 0.35s var(--ease), background-color 0.35s var(--ease);
}

.news-row:hover { padding-left: 0.75rem; }

.news-row__date {
	font-family: var(--font-ui);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-mute);
}

.news-row__title { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); margin: 0; }
.news-row__title a { text-decoration: none; }
.news-row__title a:hover { color: var(--ember); }

/* ==========================================================================
   10. Quotes
   ========================================================================== */

.quote-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

.quote-card {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	background: var(--ink-soft);
	border: 1px solid var(--ink-line);
	border-radius: var(--radius);
}

.quote-card__mark {
	font-family: var(--font-display);
	font-size: 3rem;
	line-height: 0.6;
	color: var(--beam);
}

.quote-card blockquote { margin: 0; padding: 0; border: 0; font-size: 1.1rem; }

.quote-card__attr {
	margin-top: auto;
	font-family: var(--font-ui);
	font-size: 0.64rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--on-ink-mute);
}

/* ==========================================================================
   11. Author / about split
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.portrait {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--ink-soft);
	box-shadow: var(--shadow-lift);
}

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

.portrait::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(200deg, transparent 55%, rgba(9, 11, 15, 0.45));
	pointer-events: none;
}

/* Fact list */
.facts { list-style: none; margin: 2rem 0 0; padding: 0; }

.facts li {
	display: grid;
	grid-template-columns: minmax(7rem, 9rem) 1fr;
	gap: 1rem;
	padding-block: 0.85rem;
	border-top: 1px solid var(--paper-line);
	font-size: 0.97rem;
}

.facts dt,
.facts__key {
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-mute);
	padding-top: 0.25rem;
}

/* ==========================================================================
   12. CTA band
   ========================================================================== */

.cta-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--ink);
	color: var(--on-ink);
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
	text-align: center;
}

.cta-band::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: auto -20% -80% -20%;
	height: 150%;
	background: radial-gradient(ellipse 50% 50% at 50% 60%, rgba(232, 182, 74, 0.16), transparent 70%);
	pointer-events: none;
}

.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--on-ink-mute); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2.25rem; }

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer {
	background: var(--ink);
	color: var(--on-ink-mute);
	border-top: 1px solid var(--ink-line);
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
	font-size: 0.94rem;
}

.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--beam); }

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

.footer-brand .wordmark { color: var(--on-ink); }
.footer-brand p { margin-top: 1.25rem; max-width: 34ch; }

.footer-col h3 {
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--beam);
	margin-bottom: 1.15rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 0.6rem; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ink-line);
	font-family: var(--font-ui);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   14. Page header (inner pages)
   ========================================================================== */

.page-hero {
	position: relative;
	isolation: isolate;
	background: var(--ink);
	color: var(--on-ink);
	padding-block: clamp(3.5rem, 8vw, 6rem);
	overflow: hidden;
}

.page-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -60% -10% auto auto;
	width: min(52vw, 620px);
	height: 220%;
	background: radial-gradient(ellipse 50% 40% at 60% 40%, rgba(232, 182, 74, 0.16), transparent 70%);
	pointer-events: none;
}

.page-hero h1 { margin-bottom: 0; }
.page-hero .lede { color: var(--on-ink-mute); margin-top: 1.25rem; }

.breadcrumb {
	font-family: var(--font-ui);
	font-size: 0.66rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--on-ink-mute);
	margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--on-ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--beam); }

/* ==========================================================================
   15. Content / prose
   ========================================================================== */

.prose {
	max-width: var(--measure);
	margin-inline: auto;
	font-size: 1.09rem;
	line-height: 1.78;
}

.prose > * + * { margin-top: 1.35em; }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose img { margin-block: 2rem; }
.prose figure { margin: 2.5rem 0; }
.prose figcaption {
	font-family: var(--font-ui);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--text-mute);
	text-align: center;
	margin-top: 0.85rem;
}

.prose--wide { max-width: 82ch; }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--paper-line);
	font-family: var(--font-ui);
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-mute);
}

.entry-meta a { text-decoration: none; }
.entry-meta a:hover { color: var(--ember); }

/* Article header on light background */
.entry-header { margin-bottom: clamp(2rem, 4vw, 3rem); }
.entry-header h1 { margin-bottom: 0.75rem; }

.entry-featured {
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--paper-soft);
}

.entry-featured img { width: 100%; height: 100%; object-fit: cover; }

/* Pagination */
.pagination { margin-top: clamp(2.5rem, 5vw, 4rem); }

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 0.7rem;
	border: 1px solid var(--paper-line);
	border-radius: 999px;
	font-family: var(--font-ui);
	font-size: 0.8rem;
	text-decoration: none;
}

.pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }

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

/* Post nav */
.post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 1.5rem;
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--paper-line);
}

.post-nav__label {
	font-family: var(--font-ui);
	font-size: 0.62rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-mute);
	margin-bottom: 0.6rem;
}

/* Comments */
.comments-area { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--paper-line); }

.comment-list { list-style: none; margin: 0 0 3rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: clamp(1rem, 4vw, 3rem); }

.comment-body {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--paper-line);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	align-items: baseline;
	margin-bottom: 0.65rem;
	font-family: var(--font-ui);
	font-size: 0.75rem;
}

.comment-author { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.comment-metadata a { color: var(--text-mute); text-decoration: none; }
.comment-metadata a:hover { color: var(--ember); }

.comment-respond {
	font-family: var(--font-ui);
	font-size: 0.9rem;
}

.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	background: var(--paper-raise);
	border: 1px solid var(--paper-line);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--text);
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--ink); outline: none; }

.comment-form .form-submit .submit {
	padding: 0.9rem 1.8rem;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	border-radius: 999px;
	font-family: var(--font-ui);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}

.comment-form .form-submit .submit:hover { background: #1c222c; }

/* Sidebar / widgets */
.sidebar { display: grid; gap: 2rem; align-content: start; }

.widget {
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--paper-raise);
	border: 1px solid var(--paper-line);
}

.widget-title,
.widget h2 {
	font-family: var(--font-ui);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--beam-deep);
	margin-bottom: 1.1rem;
}

.widget ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.widget li + li { margin-top: 0.6rem; }

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

/* Search form */
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.search-form label { flex: 1 1 12rem; }

.search-form .search-field {
	width: 100%;
	padding: 0.95rem 1.1rem;
	background: var(--paper-raise);
	border: 1px solid var(--paper-line);
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--text);
}

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

/* 404 */
.error-404 { text-align: center; }
.error-404 .code {
	font-family: var(--font-display);
	font-size: clamp(5rem, 18vw, 11rem);
	line-height: 0.9;
	color: var(--paper-soft);
	margin-bottom: -0.15em;
}

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

.screen-reader-text:focus {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 0.85rem 1.35rem;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-ui);
	font-size: 0.85rem;
	text-decoration: none;
}

.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.alignleft { float: left; margin: 0.35em 1.5em 1em 0; }
.alignright { float: right; margin: 0.35em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-family: var(--font-ui); font-size: 0.75rem; color: var(--text-mute); }

.sticky .news-card__title::before { content: "\2605\00a0"; color: var(--beam); }

.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.gallery-caption { display: none; }

.bypostauthor > .comment-body .comment-author::after {
	content: " \00b7 Author";
	color: var(--ember);
	font-weight: 400;
}

/* ==========================================================================
   16. Landing page & enquiry form
   ========================================================================== */

/* Anchor targets clear the sticky header. */
section[id] { scroll-margin-top: 7rem; }

/* Scroll hint at the foot of the hero */
.hero__scroll {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: 1.5rem;
	font-family: var(--font-ui);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--on-ink-mute);
}

.hero__scroll-line {
	display: block;
	width: 3.5rem;
	height: 1px;
	background: linear-gradient(90deg, var(--beam), transparent);
	animation: nothando-slide 2.6s var(--ease) infinite;
	transform-origin: left;
}

@keyframes nothando-slide {
	0%, 100% { transform: scaleX(0.4); opacity: 0.5; }
	50%      { transform: scaleX(1);   opacity: 1; }
}

/* Enquiry section: give the form the wider column */
.split--enquiry { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

.enquiry-form {
	padding: clamp(1.5rem, 3.5vw, 2.75rem);
	background: var(--paper-raise);
	border: 1px solid var(--paper-line);
}

.form-notice {
	padding: 1.1rem 1.35rem;
	margin-bottom: 1.75rem;
	background: var(--paper);
	border-left: 3px solid var(--beam);
	font-size: 0.95rem;
}

.form-notice--bad { border-left-color: var(--ember); }

.enquiry-form .form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 0 1.5rem;
}

.enquiry-form p { margin-bottom: 1.35rem; }
.enquiry-form .form-row p { margin-bottom: 1.35rem; }
.enquiry-form textarea { resize: vertical; }

/* Footer widgets above the columns */
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

@media (max-width: 1080px) {
	.split--enquiry { grid-template-columns: 1fr; }
}

/* ==========================================================================
   17. Reveal on scroll
   ========================================================================== */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

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

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

	.js [data-reveal] { opacity: 1; transform: none; }
	.btn:hover, .news-card:hover, .book-card__art, .hero-cover__frame { transform: none !important; }
}

/* ==========================================================================
   18. Print
   ========================================================================== */

@media print {
	.site-header, .site-footer, .notice-bar, .cta-band, .btn, .nav-drawer, .hero::before, .hero::after { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	a::after { content: " (" attr(href) ")"; font-size: 9pt; }
	.section { padding-block: 1rem; }
}

/* ==========================================================================
   19. Responsive
   ========================================================================== */

@media (max-width: 1080px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero-cover { order: -1; width: min(72%, 320px); }
	.book-feature { grid-template-columns: 1fr; }
	.book-feature--reverse .book-feature__art { order: 0; }
	.book-feature__art { width: min(60%, 300px); }
	.layout-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.nav-primary { display: none; }
	.nav-toggle { display: block; }
	.site-header__inner { min-height: 68px; }
	.news-row { grid-template-columns: 1fr; gap: 0.4rem; }
	.news-row__arrow { display: none; }
}

@media (max-width: 560px) {
	.hero-cover { width: 82%; }
	.book-feature__art { width: 74%; }
	.header-actions .social-row { display: none; }
	.btn-row .btn { width: 100%; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.facts li { grid-template-columns: 1fr; gap: 0.25rem; }
}
