/* ==========================================================================
   Barri — memorial theme for saksadogi.com
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Components  6. Header
   7. Home  8. Inner pages  9. Pedigree  10. Standard  11. Gallery & lightbox
   12. Friends  13. Footer  14. Motion  15. Print
   ========================================================================== */

/* 1. Fonts (self-hosted, SIL Open Font License) ---------------------------- */

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/fraunces-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/inter-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/inter-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens -------------------------------------------------------------- */

:root {
	color-scheme: light;

	/* Palette */
	--paper: #f6f0e6;
	--paper-raised: #fdf9f2;
	--paper-sunken: #ece3d4;
	--ink: #1b1815;
	--ink-soft: #564d43;
	--ink-faint: #81766a;
	--gold-ink: #85591a;
	--night: #11100e;
	--night-raised: #1a1815;
	--night-sunken: #0b0a09;
	--moon: #f3ece0;
	--moon-soft: #c3b8a7;
	--moon-faint: #8f8576;
	--ember: #e3b467;
	--flame: #ffcf7a;

	/* Light theme (default) */
	--bg: var(--paper);
	--bg-raised: var(--paper-raised);
	--bg-sunken: var(--paper-sunken);
	--text: var(--ink);
	--text-soft: var(--ink-soft);
	--text-faint: var(--ink-faint);
	--accent: var(--gold-ink);
	--accent-fill: #b98a3e;
	--accent-wash: rgb(185 138 62 / 0.14);
	--line: rgb(27 24 21 / 0.11);
	--line-strong: rgb(27 24 21 / 0.2);
	--sire: #2f5f8c;
	--dam: #a0446a;
	--shadow-sm: 0 1px 2px rgb(27 24 21 / 0.06), 0 2px 8px rgb(27 24 21 / 0.05);
	--shadow-lg: 0 2px 4px rgb(27 24 21 / 0.05), 0 18px 50px rgb(27 24 21 / 0.12);

	/* Type */
	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
	--step-0: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
	--step-1: clamp(1.18rem, 1.08rem + 0.45vw, 1.42rem);
	--step-2: clamp(1.42rem, 1.22rem + 0.95vw, 1.95rem);
	--step-3: clamp(1.75rem, 1.38rem + 1.85vw, 2.85rem);
	--step-4: clamp(2.2rem, 1.55rem + 3.2vw, 4.25rem);
	--step-5: clamp(2.8rem, 1.7rem + 5.5vw, 6.5rem);

	/* Space & shape */
	--gutter: clamp(1.15rem, 0.6rem + 2.6vw, 3rem);
	--section-space: clamp(4.5rem, 2.5rem + 9vw, 10rem);
	--radius-sm: 0.6rem;
	--radius: 1rem;
	--radius-lg: 1.75rem;
	--header-h: 4.5rem;
	--ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);
}

/* Dark tokens: system preference, explicit choice, and "night" sections. */
:root[data-theme="dark"],
.is-night {
	color-scheme: dark;
	--bg: var(--night);
	--bg-raised: var(--night-raised);
	--bg-sunken: var(--night-sunken);
	--text: var(--moon);
	--text-soft: var(--moon-soft);
	--text-faint: var(--moon-faint);
	--accent: var(--ember);
	--accent-fill: var(--ember);
	--accent-wash: rgb(227 180 103 / 0.13);
	--line: rgb(243 236 224 / 0.1);
	--line-strong: rgb(243 236 224 / 0.2);
	--sire: #8db6df;
	--dam: #e7a2bd;
	--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
	--shadow-lg: 0 24px 60px rgb(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: var(--night);
		--bg-raised: var(--night-raised);
		--bg-sunken: var(--night-sunken);
		--text: var(--moon);
		--text-soft: var(--moon-soft);
		--text-faint: var(--moon-faint);
		--accent: var(--ember);
		--accent-fill: var(--ember);
		--accent-wash: rgb(227 180 103 / 0.13);
		--line: rgb(243 236 224 / 0.1);
		--line-strong: rgb(243 236 224 / 0.2);
		--sire: #8db6df;
		--dam: #e7a2bd;
		--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
		--shadow-lg: 0 24px 60px rgb(0 0 0 / 0.45);
	}
}

/* 3. Base ---------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-text);
	font-size: var(--step-0);
	line-height: 1.65;
	font-feature-settings: "cv11", "ss01";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

.is-night {
	background: var(--bg);
	color: var(--text);
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 400;
	font-optical-sizing: auto;
	font-variation-settings: "SOFT" 50;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s, text-decoration-color 0.2s;
}

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

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

::selection {
	background: var(--accent-fill);
	color: var(--night);
}

abbr[title] {
	text-decoration: none;
	cursor: help;
}

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

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
	background: var(--text);
	color: var(--bg);
	font-weight: 600;
	transform: translateY(-200%);
	transition: transform 0.2s;
}

.skip-link:focus {
	transform: none;
	color: var(--bg);
}

.svg-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.silhouette {
	fill: currentColor;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

/* 4. Layout -------------------------------------------------------------- */

.container {
	width: min(100% - 2 * var(--gutter), var(--container, 72rem));
	margin-inline: auto;
}

.container--wide {
	--container: 86rem;
}

.container--narrow {
	--container: 46rem;
}

.section {
	padding-block: var(--section-space);
}

.site-main {
	display: block;
	outline: none;
}

body:not(.has-overlay-header) .site-main {
	padding-top: var(--header-h);
}

/* 5. Components ---------------------------------------------------------- */

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1.1rem;
	color: var(--accent);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.kicker::before {
	content: "";
	width: 2.2rem;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}

.section-title {
	font-size: var(--step-4);
	margin-bottom: 0.35em;
}

.section-lead {
	max-width: 38rem;
	color: var(--text-soft);
	font-size: var(--step-1);
	line-height: 1.55;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.75rem 1.4rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	font: 500 0.95rem/1.2 var(--font-text);
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.button:hover {
	border-color: var(--text);
	color: var(--text);
	transform: translateY(-1px);
}

.button .icon {
	transition: transform 0.25s var(--ease-out);
}

.button:hover .icon-arrow {
	transform: translateX(3px);
}

.button--accent {
	border-color: transparent;
	background: var(--text);
	color: var(--bg);
}

.button--accent:hover {
	background: var(--accent-fill);
	color: var(--night);
	border-color: transparent;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid var(--line-strong);
	padding-bottom: 0.2rem;
}

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

.link-arrow:hover .icon {
	transform: translateX(3px);
}

.link-arrow .icon {
	transition: transform 0.25s var(--ease-out);
}

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.icon-button:hover {
	background: var(--accent-wash);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--text-soft);
	font-size: 0.85rem;
	text-decoration: none;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover,
.chip[aria-pressed="true"],
.chip.is-active {
	border-color: var(--accent-fill);
	background: var(--accent-wash);
	color: var(--text);
}

.chip__count {
	color: var(--text-faint);
	font-variant-numeric: tabular-nums;
}

.notice {
	margin-bottom: 1.5rem;
	padding: 1rem 1.2rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--bg-raised);
}

.notice p:last-child {
	margin-bottom: 0;
}

.notice--success {
	border-color: var(--accent-fill);
	background: var(--accent-wash);
}

.card {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	box-shadow: var(--shadow-sm);
}

/* Prose (page content) */

.prose {
	max-width: 44rem;
}

.prose > * + * {
	margin-top: 0;
}

.prose h2 {
	margin-top: 2.2em;
	font-size: var(--step-3);
}

.prose h3 {
	margin-top: 1.8em;
	font-size: var(--step-2);
}

.prose h2:first-child,
.prose h3:first-child {
	margin-top: 0;
}

.prose ul,
.prose ol {
	margin: 0 0 1.25em;
	padding-left: 1.3em;
}

.prose li {
	margin-bottom: 0.4em;
	padding-left: 0.2em;
}

.prose li::marker {
	color: var(--accent-fill);
}

.prose li > ul {
	margin-top: 0.4em;
	margin-bottom: 0.6em;
}

.prose strong {
	font-weight: 600;
	color: var(--text);
}

.prose blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.4rem;
	border-left: 2px solid var(--accent-fill);
	font-family: var(--font-display);
	font-size: var(--step-2);
	line-height: 1.35;
}

.prose hr {
	margin: 3rem 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.prose .wp-block-details {
	margin: 0 0 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-raised);
}

.prose .wp-block-details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.prose .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.prose .wp-block-details > summary::after {
	content: "";
	width: 0.6rem;
	height: 0.6rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.25s var(--ease-out);
}

.prose .wp-block-details[open] > summary::after {
	transform: rotate(-135deg) translate(-2px, -1px);
}

.prose .wp-block-details > :not(summary) {
	margin-inline: 1.25rem;
}

.prose .wp-block-details > :last-child {
	margin-bottom: 1.25rem;
}

.prose .has-small-font-size,
.prose .is-source {
	color: var(--text-faint);
	font-size: var(--step--1);
}

/* 6. Header -------------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	color: var(--text);
	transition: background-color 0.35s, color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
body:not(.has-overlay-header) .site-header {
	background: color-mix(in srgb, var(--bg) 84%, transparent);
	border-bottom-color: var(--line);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
}

.has-overlay-header .site-header:not(.is-scrolled) {
	color: var(--moon);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	height: 100%;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: inherit;
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 1.4rem;
	letter-spacing: -0.01em;
}

.brand:hover {
	color: inherit;
}

.brand__mark {
	width: 2.6rem;
	view-transition-name: barri-mark;
	transition: transform 0.5s var(--ease-out);
}

.brand:hover .brand__mark {
	transform: translateX(3px);
}

.site-nav {
	margin-left: auto;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: block;
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	color: inherit;
	font-size: 0.93rem;
	text-decoration: none;
	opacity: 0.82;
	transition: opacity 0.2s, background 0.2s;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
	opacity: 1;
	background: color-mix(in srgb, currentColor 9%, transparent);
}

.site-nav .site-nav__lang {
	display: none;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.lang-switch {
	display: inline-flex;
	padding: 0.2rem;
	border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
	border-radius: 999px;
}

.lang-switch__item {
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	color: inherit;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	opacity: 0.7;
}

.lang-switch__item:hover {
	color: inherit;
	opacity: 1;
}

.lang-switch__item.is-active,
.lang-switch__item.is-active:hover {
	background: var(--text);
	color: var(--bg);
	opacity: 1;
}

.has-overlay-header .site-header:not(.is-scrolled) .site-header__lang .lang-switch__item.is-active {
	background: var(--moon);
	color: var(--night);
}

.theme-toggle .theme-toggle__sun {
	display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
	display: block;
}

:root[data-theme="dark"] .theme-toggle__moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle__sun {
		display: block;
	}

	:root:not([data-theme="light"]) .theme-toggle__moon {
		display: none;
	}
}

.menu-toggle {
	display: none;
}

.menu-toggle .icon-close {
	display: none;
}

@media (max-width: 62rem) {
	.menu-toggle {
		display: inline-grid;
	}

	.site-header__lang {
		display: none;
	}

	/* The nav is an overlay here, so push the buttons right ourselves. */
	.site-header__actions {
		margin-left: auto;
	}

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 2.5rem;
		padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
		background: var(--bg);
		color: var(--text);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s, visibility 0.35s;
	}

	.nav-open .site-nav {
		opacity: 1;
		visibility: visible;
	}

	.nav-open .site-header {
		color: var(--text) !important;
		background: transparent !important;
		border-color: transparent !important;
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
	}

	.nav-open .menu-toggle .icon-menu {
		display: none;
	}

	.nav-open .menu-toggle .icon-close {
		display: block;
	}

	.nav-open body {
		overflow: hidden;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.2rem;
	}

	.site-nav__list a {
		padding: 0.2rem 0;
		font-family: var(--font-display);
		font-size: clamp(2rem, 1.4rem + 4vw, 3rem);
		line-height: 1.2;
		opacity: 1;
		background: none !important;
	}

	.site-nav__list .current-menu-item > a,
	.site-nav__list .current_page_item > a {
		color: var(--accent);
	}

	.site-nav .site-nav__lang {
		display: inline-flex;
		align-self: flex-start;
	}

	.site-nav__lang .lang-switch__item {
		padding: 0.4rem 0.9rem;
		font-size: 0.85rem;
	}

	.nav-open .site-nav__list li {
		animation: rise 0.5s var(--ease-out) both;
	}

	.nav-open .site-nav__list li:nth-child(2) { animation-delay: 0.04s; }
	.nav-open .site-nav__list li:nth-child(3) { animation-delay: 0.08s; }
	.nav-open .site-nav__list li:nth-child(4) { animation-delay: 0.12s; }
	.nav-open .site-nav__list li:nth-child(5) { animation-delay: 0.16s; }
	.nav-open .site-nav__list li:nth-child(6) { animation-delay: 0.2s; }
}

/* 7. Home ---------------------------------------------------------------- */

/* Hero */

.hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 64% 38%;
	transform-origin: 64% 40%;
	animation: hero-zoom 28s var(--ease-out) both;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgb(17 16 14 / 0.65) 0%, rgb(17 16 14 / 0) 26%),
		linear-gradient(0deg, var(--night) 0%, rgb(17 16 14 / 0.92) 16%, rgb(17 16 14 / 0.35) 48%, rgb(17 16 14 / 0) 70%),
		radial-gradient(120% 90% at 0% 100%, rgb(17 16 14 / 0.75) 0%, rgb(17 16 14 / 0) 60%);
}

.hero__content {
	padding-top: calc(var(--header-h) + 3rem);
	padding-bottom: clamp(5rem, 12vh, 8rem);
}

.hero__content > * {
	animation: rise 1.1s var(--ease-out) both;
}

.hero__content > :nth-child(1) { animation-delay: 0.15s; }
.hero__content > :nth-child(2) { animation-delay: 0.3s; }
.hero__content > :nth-child(3) { animation-delay: 0.5s; }
.hero__content > :nth-child(4) { animation-delay: 0.62s; }
.hero__content > :nth-child(5) { animation-delay: 0.74s; }

.hero__kicker {
	color: var(--ember);
}

.hero__title {
	margin: 0 0 0.12em -0.04em;
	font-size: clamp(5.5rem, 1.5rem + 17vw, 15.5rem);
	font-weight: 330;
	font-variation-settings: "SOFT" 30;
	line-height: 0.8;
	letter-spacing: -0.045em;
	color: var(--moon);
}

.hero__registered {
	margin: 1.6rem 0 0.6rem;
	color: var(--ember);
	font-size: clamp(0.72rem, 0.66rem + 0.25vw, 0.85rem);
	font-weight: 600;
	letter-spacing: 0.34em;
	text-transform: uppercase;
}

.life-dates {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.6rem;
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-variant-numeric: lining-nums;
}

.life-dates--born {
	display: block;
}

.life-dates__dash {
	width: 2.2rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.hero__dates {
	margin: 0 0 1.6rem;
	color: var(--moon);
}

.hero__epitaph {
	max-width: 30rem;
	margin: 0;
	color: var(--moon-soft);
	font-size: var(--step-1);
	line-height: 1.5;
}

.hero__scroll {
	position: absolute;
	right: var(--gutter);
	bottom: 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
	color: var(--moon-soft);
	font-size: 0.68rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	text-decoration: none;
	writing-mode: vertical-rl;
}

.hero__scroll:hover {
	color: var(--moon);
}

.hero__scroll::after {
	content: "";
	width: 1px;
	height: 4.5rem;
	background: linear-gradient(currentColor, transparent);
	animation: scroll-cue 2.4s ease-in-out infinite;
	transform-origin: top;
}

/* Story */

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

.story__text > .kicker + p {
	font-family: var(--font-display);
	font-size: var(--step-2);
	font-weight: 360;
	line-height: 1.38;
	letter-spacing: -0.01em;
	color: var(--text);
}

.story__text > .kicker + p::first-letter {
	float: left;
	margin: 0.08em 0.12em 0 0;
	font-size: 3.4em;
	line-height: 0.82;
	color: var(--accent);
}

.story__text p:not(.kicker) {
	color: var(--text-soft);
	font-size: var(--step-1);
}

.story__portrait {
	position: relative;
	margin: 0;
}

.story__portrait img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 30% 50%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.story__portrait figcaption {
	margin-top: 0.9rem;
	color: var(--text-faint);
	font-size: var(--step--1);
	text-align: right;
}

.story__portrait::before {
	content: "";
	position: absolute;
	inset: 1.5rem -1.5rem -1.5rem 1.5rem;
	z-index: -1;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-lg);
}

/* Section heads */

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head__text {
	max-width: 44rem;
}

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

/* Chapters */

.chapter-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.9rem, 1.6vw, 1.4rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 62rem) {
	.chapter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 36rem) {
	.chapter-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 4:3 like most of the photos, so covers are barely cropped. */
.chapter-card a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--night);
	color: var(--moon);
	text-decoration: none;
	isolation: isolate;
	aspect-ratio: 4 / 3;
	box-shadow: var(--shadow-sm);
}

.chapter-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 28%;
	transition: transform 1.2s var(--ease-out), filter 0.6s;
	filter: saturate(0.92);
}

.chapter-card a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgb(11 10 9 / 0.88) 0%, rgb(11 10 9 / 0.15) 55%, rgb(11 10 9 / 0) 100%);
}

.chapter-card__body {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	padding: 1.4rem 1.4rem 1.3rem;
}

.chapter-card__title {
	margin: 0 0 0.3rem;
	font-size: var(--step-2);
}

.chapter-card__text {
	margin: 0;
	color: var(--moon-soft);
	font-size: 0.92rem;
	line-height: 1.45;
}

.chapter-card__count {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 1;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: rgb(11 10 9 / 0.45);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--moon);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.chapter-card a:hover img {
	transform: scale(1.06);
	filter: saturate(1.05);
}

/* Breed facts */

.breed__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(3rem, 7vw, 8rem);
	align-items: start;
}

.breed__intro {
	position: sticky;
	top: calc(var(--header-h) + 2rem);
}

.breed__quote {
	margin: 2.5rem 0;
	padding: 0;
	border: 0;
}

.breed__quote p {
	margin: 0 0 0.8rem;
	font-family: var(--font-display);
	font-size: var(--step-3);
	font-style: italic;
	font-weight: 340;
	line-height: 1.15;
	color: var(--text);
}

.breed__quote p::before {
	content: "„";
	color: var(--accent);
}

.lang-en .breed__quote p::before {
	content: "“";
}

.lang-en .breed__quote p::after {
	content: "”";
	color: var(--accent);
}

.lang-et .breed__quote p::after {
	content: "“";
	color: var(--accent);
}

.breed__quote cite {
	color: var(--text-faint);
	font-size: var(--step--1);
	font-style: normal;
	letter-spacing: 0.04em;
}

.fact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--line);
}

.fact {
	padding: clamp(1.5rem, 3vw, 2.4rem);
	background: var(--bg);
}

.fact__value {
	margin: 0 0 0.6rem;
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem);
	font-weight: 320;
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: var(--accent);
	font-variant-numeric: lining-nums;
}

.fact__value small {
	font-size: 0.45em;
	letter-spacing: 0;
	margin-left: 0.15em;
}

.fact__value--text {
	font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
	font-style: italic;
	letter-spacing: -0.02em;
}

.fact__text {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.98rem;
	line-height: 1.55;
}

.fact--wide {
	grid-column: 1 / -1;
}

.breed__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

/* Lineage */

.lineage__inner {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: center;
}

.stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem 3rem;
	margin: 2rem 0 2.5rem;
	padding: 0;
	list-style: none;
}

.stat__value {
	display: block;
	font-family: var(--font-display);
	font-size: var(--step-4);
	line-height: 1;
	color: var(--accent);
	font-variant-numeric: lining-nums;
}

.stat__value small {
	color: var(--text-faint);
	font-size: 0.45em;
}

.stat__label {
	display: block;
	max-width: 14rem;
	margin-top: 0.4rem;
	color: var(--text-soft);
	font-size: 0.92rem;
	line-height: 1.4;
}

/* Candle */

.candle-section {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
	background:
		radial-gradient(80% 60% at 50% 100%, rgb(227 180 103 / 0.1), transparent 70%),
		var(--night-sunken);
}

.sky {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.sky__constellation {
	position: absolute;
	right: max(var(--gutter), 6%);
	top: 12%;
	width: clamp(14rem, 28vw, 26rem);
	fill: none;
	stroke: var(--moon);
	stroke-width: 10;
	stroke-linecap: round;
	stroke-dasharray: 0 46;
	opacity: 0.22;
}

.star {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: calc(var(--s) * 1px);
	height: calc(var(--s) * 1px);
	border-radius: 50%;
	background: #fff6e2;
	opacity: 0.35;
	animation: twinkle var(--d, 4s) ease-in-out infinite alternate;
	animation-delay: var(--delay, 0s);
}

.star--candle {
	background: var(--flame);
	box-shadow: 0 0 8px 2px rgb(255 207 122 / 0.45);
	opacity: 0.85;
}

.star.is-new {
	animation: star-born 2.4s var(--ease-out) both, twinkle var(--d, 4s) ease-in-out 2.4s infinite alternate;
}

.candle {
	max-width: 34rem;
	margin-inline: auto;
}

.candle__art {
	position: relative;
	width: 6rem;
	height: 13rem;
	margin: 0 auto 2.5rem;
}

.candle__glow {
	position: absolute;
	left: 50%;
	bottom: 6.6rem;
	width: 26rem;
	height: 26rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(255 196 110 / 0.33) 0%, rgb(255 170 80 / 0.1) 32%, transparent 68%);
	transform: translate(-50%, 50%);
	opacity: 0;
	transition: opacity 1.6s;
	pointer-events: none;
}

.candle__body {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 3.7rem;
	height: 7.6rem;
	border-radius: 0.7rem 0.7rem 1rem 1rem;
	background: linear-gradient(90deg, #cdbd9f 0%, #f6ecda 42%, #e9dcc3 62%, #bfae8f 100%);
	box-shadow: inset 0 -14px 24px rgb(80 60 30 / 0.18), 0 30px 60px rgb(0 0 0 / 0.5);
	transform: translateX(-50%);
}

.candle__body::before {
	content: "";
	position: absolute;
	inset: -0.35rem 0 auto;
	height: 0.9rem;
	border-radius: 50%;
	background: radial-gradient(ellipse at 50% 60%, #fff8ea 0%, #e6d6b9 70%);
}

.candle__wick {
	position: absolute;
	left: 50%;
	bottom: 7.45rem;
	width: 0.2rem;
	height: 1rem;
	border-radius: 2px;
	background: linear-gradient(#1a1612, #4a3b2b);
	transform: translateX(-50%);
}

.candle__flame {
	position: absolute;
	left: 50%;
	bottom: 7.9rem;
	width: 1.55rem;
	height: 3.6rem;
	margin-left: -0.775rem;
	border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
	background: radial-gradient(ellipse at 50% 78%, #fffdf3 0%, #ffe9a8 22%, #ffbf4d 48%, rgb(255 140 30 / 0.65) 66%, rgb(255 120 0 / 0) 74%);
	box-shadow: 0 0 22px 6px rgb(255 190 90 / 0.35);
	transform-origin: 50% 92%;
	opacity: 0;
	scale: 0.15;
	transition: opacity 0.5s, scale 0.9s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.candle__flame::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0.35rem;
	width: 0.5rem;
	height: 0.9rem;
	border-radius: 50%;
	background: rgb(80 120 255 / 0.55);
	filter: blur(2px);
	transform: translateX(-50%);
}

.candle.is-lit .candle__flame {
	opacity: 1;
	scale: 1;
	animation: flicker 3.2s ease-in-out infinite;
}

.candle.is-lit .candle__glow {
	opacity: 1;
	animation: glow 4.5s ease-in-out infinite;
}

.candle__title {
	font-size: var(--step-4);
}

.candle__text {
	margin-inline: auto;
	max-width: 28rem;
	color: var(--text-soft);
	font-size: var(--step-1);
}

.candle__button {
	margin-top: 1rem;
	min-width: 13rem;
	border-color: rgb(227 180 103 / 0.5);
	color: var(--moon);
}

.candle__button:hover {
	border-color: var(--ember);
	background: rgb(227 180 103 / 0.12);
	box-shadow: 0 0 40px rgb(227 180 103 / 0.25);
	color: var(--moon);
}

.candle.is-lit .candle__button {
	border-color: transparent;
	background: rgb(227 180 103 / 0.14);
	color: var(--ember);
	cursor: default;
	transform: none;
	box-shadow: none;
}

.candle__count {
	margin: 1.4rem 0 0;
	color: var(--text-faint);
	font-size: var(--step--1);
	letter-spacing: 0.02em;
}

/* Memories */

.memories__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: start;
}

.memories__mail {
	display: flex;
	gap: 0.7rem;
	align-items: center;
	margin-top: 1.8rem;
	color: var(--text-soft);
}

.memories__mail .icon {
	color: var(--accent);
}

.memory-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem;
	padding: clamp(1.4rem, 3vw, 2.4rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	box-shadow: var(--shadow-sm);
}

.field {
	display: grid;
	gap: 0.4rem;
}

.field--full {
	grid-column: 1 / -1;
}

.field label {
	font-size: 0.88rem;
	font-weight: 500;
}

.field__hint {
	color: var(--text-faint);
	font-size: 0.82rem;
	font-weight: 400;
}

.field input,
.field textarea {
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
	min-height: 9rem;
	resize: vertical;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent-fill);
	box-shadow: 0 0 0 4px var(--accent-wash);
}

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

.memory-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.4rem;
}

.memory-form__footer .field__hint {
	margin: 0;
}

.memory-list {
	grid-column: 1 / -1;
	columns: 3 18rem;
	column-gap: 1.25rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.memory {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding: 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	break-inside: avoid;
}

.memory__avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: var(--accent-wash);
	color: var(--accent);
	font-family: var(--font-display);
	font-size: 1rem;
}

.memory__body p {
	margin-bottom: 0.7em;
}

.memory__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.8rem;
	margin: 0.8rem 0 0 !important;
	color: var(--text-faint);
	font-size: 0.85rem;
}

.memory__author {
	color: var(--text);
	font-weight: 600;
}

/* 8. Inner pages --------------------------------------------------------- */

.page-hero {
	position: relative;
	padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem);
	overflow: hidden;
}

.page-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2rem 4rem;
	align-items: end;
}

.page-hero__title {
	margin: 0;
	font-size: var(--step-5);
	font-weight: 340;
	letter-spacing: -0.035em;
	line-height: 0.95;
}

.page-hero__lead {
	max-width: 40rem;
	margin: 1.4rem 0 0;
	color: var(--text-soft);
	font-size: var(--step-1);
	line-height: 1.55;
}

.page-hero--rule {
	border-bottom: 1px solid var(--line);
}

.page-body {
	padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section-space);
}

/* 404 */

.not-found {
	display: grid;
	place-items: center;
	min-height: calc(100svh - var(--header-h));
	padding-block: 4rem;
	text-align: center;
}

.not-found .silhouette {
	width: min(22rem, 70vw);
	margin: 0 auto 2.5rem;
	color: var(--text);
	opacity: 0.9;
	animation: sniff 3.6s ease-in-out infinite;
	transform-origin: 70% 100%;
}

.not-found__title {
	font-size: var(--step-4);
}

.not-found p {
	color: var(--text-soft);
	font-size: var(--step-1);
}

/* 9. Pedigree ------------------------------------------------------------ */

.pedigree-head {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 2rem 5rem;
	align-items: end;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.pedigree-head .stat-row {
	margin: 0;
	justify-content: flex-end;
}

.tree-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1.5rem;
	color: var(--text-faint);
	font-size: 0.88rem;
}

.tree-tools__label {
	margin-right: 0.3rem;
}

.tree-tools__hint {
	margin-left: auto;
	color: var(--text-faint);
	font-size: 0.85rem;
}

@media (hover: none), (max-width: 60rem) {
	.tree-tools__hint {
		display: none;
	}
}

.tree-scroller {
	padding: clamp(1rem, 2.5vw, 2rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 22px 22px,
		var(--bg-raised);
	overflow-x: auto;
}

/* Zero-specificity reset, so .tree__parents can set its own padding. */
:where(.tree, .tree ul) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tree {
	--tree-gap: clamp(1.25rem, 2.4vw, 2.5rem);
	--tree-line: var(--line-strong);
	display: flex;
	min-width: min-content;
}

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

.tree__parents {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.6rem;
	padding-left: calc(var(--tree-gap) * 2);
}

/* Line from a dog to its parents' bracket. */
.tree__parents::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: var(--tree-gap);
	border-top: 1px solid var(--tree-line);
}

/* Each parent: horizontal stub, plus half of the bracket. */
.tree__parents > .tree__node::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(var(--tree-gap) * -1);
	width: var(--tree-gap);
	border-top: 1px solid var(--tree-line);
}

.tree__parents > .tree__node::after {
	content: "";
	position: absolute;
	left: calc(var(--tree-gap) * -1);
	border-left: 1px solid var(--tree-line);
}

.tree__parents > .tree__node:first-child::after {
	top: 50%;
	bottom: -0.3rem;
}

.tree__parents > .tree__node:last-child::after {
	top: -0.3rem;
	bottom: 50%;
}

.tree__parents > .tree__node:first-child:last-child::after {
	display: none;
}

.dog {
	position: relative;
	width: 14.5rem;
	padding: 0.9rem 1rem 0.95rem;
	border: 1px solid var(--line);
	border-left: 3px solid var(--sire);
	border-radius: var(--radius-sm);
	background: var(--bg);
	box-shadow: var(--shadow-sm);
	transition: opacity 0.3s, transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.dog--f {
	border-left-color: var(--dam);
}

.dog__relation {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 0.25rem;
	color: var(--text-faint);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.dog__sex {
	color: var(--sire);
	font-size: 0.9rem;
	letter-spacing: 0;
}

.dog--f .dog__sex {
	color: var(--dam);
}

.dog__name {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0;
}

.dog__dates {
	margin: 0.3rem 0 0;
	color: var(--text-soft);
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
}

.dog__titles {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0.6rem 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.dog__titles li {
	margin: 0 !important;
	padding: 0.1rem 0.4rem !important;
	border-radius: 0.3rem;
	background: var(--accent-wash);
	color: var(--accent);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.dog--root {
	width: 15.5rem;
	padding: 1.1rem;
	border: 1px solid var(--accent-fill);
	text-align: center;
	box-shadow: var(--shadow-lg);
}

.dog--root .dog__photo img {
	width: 6.5rem;
	height: 6.5rem;
	margin: 0 auto 0.9rem;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 35%;
	box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent-fill);
}

.dog--root .dog__relation {
	justify-content: center;
	color: var(--accent);
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 400;
	letter-spacing: -0.01em;
	text-transform: none;
}

.dog--root .dog__name {
	font-size: 0.95rem;
	color: var(--text-soft);
}

/* Hover a dog: its line of descent down to Barri stays lit. */
.tree:has(.dog:hover) .dog {
	opacity: 0.45;
}

.tree .tree__node:has(.dog:hover) > .dog {
	opacity: 1;
	border-color: var(--accent-fill);
}

.tree .dog:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

/* Filters */
.tree.is-filter-champions .dog:not(.is-champion, .dog--root),
.tree.is-filter-kingsize .dog:not(.is-kingsize, .dog--root) {
	opacity: 0.3;
}

.tree.is-filter-champions .dog.is-champion,
.tree.is-filter-kingsize .dog.is-kingsize {
	border-color: var(--accent-fill);
	box-shadow: 0 0 0 3px var(--accent-wash), var(--shadow-sm);
}

.tree--compact .dog {
	width: 13rem;
}

.tree--compact .dog--root {
	width: 13.5rem;
}

.titles-legend {
	margin-top: clamp(3rem, 6vw, 5rem);
}

.titles-legend__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: 0.2rem 2rem;
	margin: 1.5rem 0 0;
}

.titles-legend__item {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--line);
}

.titles-legend__item dt {
	flex: none;
	min-width: 5.5rem;
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.titles-legend__item dd {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.92rem;
}

@media (max-width: 60rem) {
	.tree-scroller {
		padding: 1rem;
		background: var(--bg-raised);
		overflow: visible;
	}

	.tree,
	.tree__node {
		display: block;
		min-width: 0;
	}

	/* Indented outline: each parent draws its own stub and vertical line,
	   and the last one stops at its stub. */
	.tree__parents {
		display: block;
		margin-left: 0.9rem;
		padding: 0 0 0 1.1rem;
	}

	.tree__parents::before {
		display: none;
	}

	.tree__parents > .tree__node {
		padding-top: 0.6rem;
	}

	.tree__parents > .tree__node::before {
		top: 2.1rem;
		left: -1.1rem;
		width: 1.1rem;
	}

	.tree__parents > .tree__node::after,
	.tree__parents > .tree__node:first-child::after {
		display: block;
		top: 0;
		bottom: 0;
		left: -1.1rem;
	}

	.tree__parents > .tree__node:last-child::after {
		top: 0;
		bottom: auto;
		height: 2.1rem;
	}

	.dog,
	.dog--root,
	.tree--compact .dog,
	.tree--compact .dog--root {
		width: 100%;
		max-width: 26rem;
	}

	.dog--root {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 0 1rem;
		align-items: center;
		text-align: left;
	}

	.dog--root .dog__photo {
		grid-row: span 3;
	}

	.dog--root .dog__dates {
		grid-column: 2;
	}

	.dog--root .dog__photo img {
		width: 4.5rem;
		height: 4.5rem;
		margin: 0;
	}

	.dog--root .dog__relation {
		justify-content: flex-start;
	}
}

/* 10. Standard ----------------------------------------------------------- */

.standard-hero__figure {
	width: min(32rem, 42vw);
	color: var(--text);
}

.height-chart {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	font-family: var(--font-text);
}

.height-chart__dog {
	fill: currentColor;
}

.height-chart__axis,
.height-chart__tick {
	stroke: var(--text-faint);
	stroke-width: 3;
}

.height-chart__label {
	fill: var(--text-faint);
	font-size: 44px;
}

.height-chart__line {
	stroke-width: 4;
	stroke-dasharray: 16 14;
}

.height-chart__line--male {
	stroke: var(--sire);
}

.height-chart__line--female {
	stroke: var(--dam);
}

.height-chart__mark {
	font-size: 50px;
	font-weight: 600;
}

.height-chart__mark--male {
	fill: var(--sire);
}

.height-chart__mark--female {
	fill: var(--dam);
}

.glance {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 0 0 clamp(3rem, 6vw, 5rem);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--line);
}

.glance__item {
	padding: 1.4rem 1.5rem;
	background: var(--bg-raised);
}

@media (max-width: 62rem) {
	.glance {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 36rem) {
	.glance {
		grid-template-columns: minmax(0, 1fr);
	}
}

.glance__item dt {
	margin-bottom: 0.45rem;
	color: var(--accent);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.glance__item dd {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.22rem;
	line-height: 1.3;
}

.colours {
	margin-bottom: clamp(3rem, 6vw, 5rem);
}

.colour-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.colour {
	position: relative;
	text-align: center;
}

.colour__swatch {
	display: block;
	width: 6.25rem;
	height: 6.25rem;
	margin: 0 auto 0.85rem;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-sm);
	transition: transform 0.4s var(--ease-out);
}

.colour:hover .colour__swatch {
	transform: scale(1.06) rotate(-6deg);
}

.colour__name {
	display: block;
	font-family: var(--font-display);
	font-size: 1.15rem;
}

.colour__note {
	display: block;
	color: var(--text-faint);
	font-size: 0.8rem;
}

.colour__badge {
	position: absolute;
	top: -0.3rem;
	left: 50%;
	margin-left: 1.2rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--accent-fill);
	color: var(--night);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.colour--fawn .colour__swatch {
	background:
		radial-gradient(60% 45% at 50% 18%, rgb(40 26 12 / 0.75), transparent 70%),
		radial-gradient(circle at 35% 30%, #f0c98a, #c98f3f 70%, #a8722c);
}

.colour--brindle .colour__swatch {
	background:
		radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.18), transparent 60%),
		repeating-linear-gradient(104deg, #c48d46 0 7px, #2b1f14 7px 10px, #d39d55 10px 17px, #3a2a1a 17px 19px);
}

.colour--harlequin .colour__swatch {
	background:
		radial-gradient(14px 11px at 30% 30%, #141210 92%, transparent),
		radial-gradient(18px 13px at 68% 40%, #141210 92%, transparent),
		radial-gradient(10px 9px at 42% 70%, #141210 92%, transparent),
		radial-gradient(13px 15px at 74% 76%, #141210 92%, transparent),
		radial-gradient(7px 6px at 20% 58%, #141210 92%, transparent),
		radial-gradient(circle at 35% 30%, #ffffff, #e9e6e0);
}

.colour--merle .colour__swatch {
	background:
		radial-gradient(13px 10px at 32% 34%, #141210 92%, transparent),
		radial-gradient(16px 12px at 66% 46%, #141210 92%, transparent),
		radial-gradient(9px 9px at 44% 72%, #141210 92%, transparent),
		radial-gradient(11px 13px at 72% 74%, #141210 92%, transparent),
		radial-gradient(circle at 35% 30%, #b9bcbf, #8a8e93);
}

.colour--black .colour__swatch {
	background:
		radial-gradient(circle at 35% 28%, rgb(255 255 255 / 0.28), transparent 42%),
		radial-gradient(circle at 50% 50%, #26221e, #0b0a09);
}

.colour--blue .colour__swatch {
	background:
		radial-gradient(circle at 35% 28%, rgb(255 255 255 / 0.3), transparent 45%),
		radial-gradient(circle at 50% 50%, #7a8796, #4c5764);
}

.version-note {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem 1.4rem;
	margin-bottom: clamp(3rem, 6vw, 5rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent-fill);
	border-radius: var(--radius);
	background: var(--bg-raised);
}

.version-note__year {
	font-family: var(--font-display);
	font-size: var(--step-3);
	line-height: 1;
	color: var(--accent);
}

.version-note p {
	margin-bottom: 0.6rem;
	color: var(--text-soft);
}

.version-note__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.4rem;
	margin: 0.8rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.version-note__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

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

.toc {
	position: sticky;
	top: calc(var(--header-h) + 1.5rem);
	max-height: calc(100vh - var(--header-h) - 3rem);
	overflow-y: auto;
	font-size: 0.9rem;
}

.toc__title {
	margin-bottom: 0.9rem;
	color: var(--text-faint);
	font-family: var(--font-text);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--line);
}

.toc a {
	display: block;
	margin-left: -1px;
	padding: 0.32rem 0 0.32rem 1rem;
	border-left: 1px solid transparent;
	color: var(--text-soft);
	text-decoration: none;
	line-height: 1.35;
}

.toc a:hover {
	color: var(--text);
}

.toc a.is-active {
	border-left-color: var(--accent-fill);
	color: var(--text);
	font-weight: 500;
}

.downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

@media (max-width: 60rem) {
	.with-toc {
		grid-template-columns: minmax(0, 1fr);
	}

	.toc {
		position: static;
		max-height: none;
		padding: 1.2rem 1.4rem;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--bg-raised);
	}

	.toc ol {
		columns: 2 11rem;
		border: 0;
	}

	.toc a {
		padding-left: 0;
		border: 0;
	}
}

/* 11. Gallery & lightbox ------------------------------------------------- */

.chapter-nav {
	position: sticky;
	top: var(--header-h);
	z-index: 10;
	margin-bottom: 2rem;
	padding-block: 0.8rem;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

.chapter-nav__list {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.chapter-nav__list::-webkit-scrollbar {
	display: none;
}

.chapter-nav__list .chip {
	white-space: nowrap;
}

.gallery-page h2 {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin: clamp(3rem, 6vw, 5rem) 0 0.4rem;
	font-size: var(--step-3);
	scroll-margin-top: calc(var(--header-h) + 5rem);
}

.gallery-page h2:first-child {
	margin-top: 0;
}

.gallery-page h2 + p {
	max-width: 40rem;
	margin-bottom: 1.6rem;
	color: var(--text-soft);
}

.wp-block-gallery.has-nested-images {
	--gap: clamp(0.5rem, 1vw, 0.85rem);
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	grid-auto-flow: dense;
	gap: var(--gap) !important;
	margin: 0 0 2rem;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	position: relative;
	width: auto !important;
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--bg-sunken);
	aspect-ratio: 4 / 3;
	cursor: zoom-in;
}

.wp-block-gallery.has-nested-images figure.wp-block-image.is-portrait:not(#individual-image) {
	grid-row: span 2;
	aspect-ratio: auto;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.9s var(--ease-out), filter 0.4s;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
	transform: scale(1.045);
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	display: none;
}

@media (min-width: 40rem) {
	.wp-block-gallery.has-nested-images figure.wp-block-image.is-wide:not(#individual-image) {
		grid-column: span 2;
		grid-row: span 2;
		aspect-ratio: auto;
	}
}

/* Barri is left of centre in all three wide (16:9) photos. */
.wp-block-gallery.has-nested-images figure.wp-block-image.is-wide img {
	object-position: 30% 50%;
}

.lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(9 8 7 / 0.96);
	color: var(--moon);
	overflow: hidden;
}

.lightbox::backdrop {
	background: rgb(9 8 7 / 0.9);
}

.lightbox[open] {
	display: grid;
	grid-template-rows: 1fr auto;
	animation: fade-in 0.3s ease both;
}

.lightbox__stage {
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 4.5rem 4.5rem 1rem;
	touch-action: pan-y;
}

.lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: var(--radius-sm);
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.6);
	object-fit: contain;
	animation: zoom-in 0.4s var(--ease-out) both;
}

.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem 1.5rem;
	color: var(--moon-soft);
	font-size: 0.9rem;
}

.lightbox__caption {
	margin: 0;
}

.lightbox__count {
	flex: none;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgb(243 236 224 / 0.18);
	border-radius: 50%;
	background: rgb(9 8 7 / 0.5);
	color: var(--moon);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.lightbox__close:hover,
.lightbox__nav:hover {
	border-color: var(--ember);
	background: rgb(227 180 103 / 0.15);
}

.lightbox__close {
	top: 1rem;
	right: 1rem;
}

.lightbox__nav {
	top: 50%;
	translate: 0 -50%;
}

.lightbox__nav--prev {
	left: 1rem;
}

.lightbox__nav--next {
	right: 1rem;
}

@media (max-width: 40rem) {
	.lightbox__stage {
		padding: 4rem 0.5rem 0.5rem;
	}

	.lightbox__nav {
		top: auto;
		bottom: 4.5rem;
		translate: none;
	}
}

/* 12. Friends ------------------------------------------------------------ */

.friends-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 1.1rem;
}

.friends-grid > .wp-block-group {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 1.6rem 1.6rem 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	box-shadow: var(--shadow-sm);
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.friends-grid > .wp-block-group:has(a:hover) {
	transform: translateY(-3px);
	border-color: var(--accent-fill);
	box-shadow: var(--shadow-lg);
}

.friends-grid h3 {
	margin: 0 0 0.5rem;
	font-size: var(--step-1);
	font-weight: 450;
}

.friends-grid p {
	margin: 0 0 1rem;
	color: var(--text-soft);
	font-size: 0.95rem;
}

.friends-grid p:last-child {
	margin: auto 0 0;
	font-size: 0.9rem;
}

.friends-grid a {
	font-weight: 500;
}

/* Stretched link: the whole card is clickable. */
.friends-grid p:last-child a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* 13. Footer ------------------------------------------------------------- */

.site-footer {
	position: relative;
	overflow: hidden;
	padding-block: clamp(4rem, 8vw, 7rem) 2rem;
	border-top: 1px solid var(--line);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: end;
}

.site-footer__memorial .silhouette {
	width: clamp(8rem, 14vw, 11rem);
	margin-bottom: 1.6rem;
	color: var(--ember);
}

.site-footer__name {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-4);
	line-height: 1;
}

.site-footer__registered {
	margin: 0.8rem 0 0.5rem;
	color: var(--ember);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.site-footer__dates {
	margin-bottom: 1.2rem;
	color: var(--text-soft);
}

.site-footer__epitaph {
	margin: 0;
	color: var(--text-soft);
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-style: italic;
}

.site-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.3rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav a {
	color: var(--text-soft);
	text-decoration: none;
}

.site-footer__nav a:hover {
	color: var(--text);
}

.site-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--text-faint);
	font-size: 0.85rem;
}

.site-footer__meta p {
	margin: 0;
}

.site-footer__meta a {
	color: inherit;
}

.site-footer__meta a:hover {
	color: var(--text);
}

.site-footer__meta-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

/* Responsive layout ------------------------------------------------------- */

@media (max-width: 62rem) {
	.story__inner,
	.breed__inner,
	.lineage__inner,
	.memories__inner,
	.pedigree-head,
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.breed__intro {
		position: static;
	}

	.story__portrait {
		max-width: 28rem;
	}

	.pedigree-head .stat-row {
		justify-content: flex-start;
	}

	.site-footer__nav ul {
		justify-content: flex-start;
	}

	.page-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.standard-hero__figure {
		width: min(24rem, 100%);
	}
}

@media (max-width: 40rem) {
	.fact-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.memory-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__scroll {
		display: none;
	}

	.story__portrait::before {
		inset: 1rem -0.6rem -0.6rem 1rem;
	}
}

/* 14. Motion ------------------------------------------------------------- */

@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.35s;
}

/* Scroll reveal: main.js marks only elements below the fold as pending, so
   nothing is ever hidden when scripts don't run. */
.reveal {
	transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}

.reveal.reveal-pending {
	opacity: 0;
	transform: translateY(1.75rem);
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(1.5rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hero-zoom {
	from {
		transform: scale(1.14);
	}
	to {
		transform: scale(1);
	}
}

@keyframes scroll-cue {
	0% {
		transform: scaleY(0);
		opacity: 1;
	}
	60% {
		transform: scaleY(1);
		opacity: 1;
	}
	100% {
		transform: scaleY(1);
		opacity: 0;
	}
}

@keyframes twinkle {
	from {
		opacity: var(--o1, 0.2);
	}
	to {
		opacity: var(--o2, 0.8);
	}
}

@keyframes star-born {
	0% {
		opacity: 0;
		transform: scale(6);
	}
	40% {
		opacity: 1;
	}
	100% {
		opacity: 0.9;
		transform: scale(1);
	}
}

@keyframes flicker {
	0%,
	100% {
		transform: rotate(-1.2deg) scaleY(1);
	}
	20% {
		transform: rotate(1.6deg) scaleY(1.05);
	}
	45% {
		transform: rotate(-0.4deg) scaleY(0.96);
	}
	70% {
		transform: rotate(1deg) scaleY(1.03);
	}
}

@keyframes glow {
	0%,
	100% {
		opacity: 0.85;
	}
	50% {
		opacity: 1;
	}
}

@keyframes sniff {
	0%,
	100% {
		transform: rotate(0deg);
	}
	30% {
		transform: rotate(2.5deg);
	}
	60% {
		transform: rotate(-1deg);
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes zoom-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	html {
		scroll-behavior: auto;
	}

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

	@view-transition {
		navigation: none;
	}
}

/* 15. Print -------------------------------------------------------------- */

@media print {
	.site-header,
	.site-footer,
	.toc,
	.chapter-nav,
	.downloads,
	.tree-tools,
	.hero__scroll,
	.candle-section,
	.memory-form {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	body:not(.has-overlay-header) .site-main {
		padding-top: 0;
	}

	.with-toc {
		display: block;
	}

	.prose .wp-block-details {
		border: 0;
	}

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

	a {
		color: inherit;
		text-decoration: none;
	}
}
