/*
Theme Name:   Cornelius Clay
Theme URI:    https://corneliusclay.com/
Description:  Author platform for corneliusclay.com: a GeneratePress child theme with the home page, The Inquiry (essays), a press page, coming-soon book pages, a newsletter signup component and WooCommerce styling.
Author:       Black Sage Press
Author URI:   https://corneliusclay.com/
Template:     generatepress
Version:      1.6.5
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  corneliusclay
*/

/* ==========================================================================
   1. Design tokens
   Every colour, font and size used by the theme is defined here, once.
   Book palettes (assets/css/book-palettes.css) override these inside the
   page content only.
   ========================================================================== */

:root {
	color-scheme: dark;

	/* Surfaces */
	--cc-bg: #20211F;        /* charcoal */
	--cc-surface: #282926;
	--cc-surface-2: #31322E; /* product images, raised panels */
	--cc-line: #3D3E39;      /* hairlines (decorative) */
	--cc-field-line: #7E7F77; /* form field borders: 3:1 against --cc-bg and --cc-surface */

	/* Text */
	--cc-text: #E9E6DF;
	--cc-text-muted: #ABA9A1;

	/* Stone: the fine-line motif and quiet details (never text). */
	--cc-motif: #777568;

	/* Accent: links, buttons, focus rings, nothing else.
	   (Can also be set in Appearance > Customize > Cornelius Clay.) */
	--cc-accent: #8FA6B8;
	--cc-accent-hover: #B3C5D3;

	--cc-link: var(--cc-accent);             /* link text colour */
	--cc-link-hover: var(--cc-accent-hover);
	--cc-on-accent: #20211F;                 /* text on solid accent buttons */
	--cc-focus: var(--cc-accent-hover);
	--cc-danger: #E8998D;
	--cc-success: #9CC5A1;

	/* Type */
	--cc-font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
	--cc-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--cc-step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
	--cc-step-0: clamp(1.05rem, 1rem + 0.25vw, 1.125rem);  /* body ~17-18px */
	--cc-step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.45rem);
	--cc-step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.95rem);
	--cc-step-3: clamp(1.85rem, 1.5rem + 1.6vw, 2.65rem);
	--cc-step-4: clamp(2.25rem, 1.7rem + 2.6vw, 3.6rem);

	--cc-leading: 1.65;
	--cc-leading-tight: 1.15;
	--cc-measure: 68ch;

	/* Layout */
	--cc-container: 1140px;
	--cc-gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
	--cc-space-1: 0.5rem;
	--cc-space-2: 1rem;
	--cc-space-3: 1.5rem;
	--cc-space-4: 2.5rem;
	--cc-space-5: clamp(3rem, 2rem + 4vw, 5.5rem);
	--cc-radius: 3px;

	/* GeneratePress global colours, mapped onto ours so any GP output
	   (dynamic CSS, blocks using GP colour slugs) stays in the palette. */
	--contrast: var(--cc-text);
	--contrast-2: var(--cc-text-muted);
	--contrast-3: var(--cc-line);
	--base: var(--cc-line);
	--base-2: var(--cc-bg);
	--base-3: var(--cc-bg);
	--accent: var(--cc-accent);
}

/* ==========================================================================
   2. Fonts (self-hosted, OFL; see assets/fonts/OFL-*.txt)
   ========================================================================== */

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations"),
		url("assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Source Serif 4";
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url("assets/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2-variations"),
		url("assets/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
}

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

@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-wght-italic.woff2") format("woff2-variations"),
		url("assets/fonts/inter-latin-wght-italic.woff2") format("woff2");
}

/* ==========================================================================
   3. Base
   ========================================================================== */

html {
	background-color: var(--cc-bg);
}

body,
button,
input,
select,
textarea {
	font-family: var(--cc-font-sans);
}

body {
	background-color: var(--cc-bg);
	color: var(--cc-text);
	font-size: var(--cc-step-0);
	font-weight: 400;
	line-height: var(--cc-leading);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.cc-serif {
	font-family: var(--cc-font-serif);
	font-optical-sizing: auto;
	font-weight: 600;
	line-height: var(--cc-leading-tight);
	letter-spacing: -0.01em;
	color: var(--cc-text);
	text-wrap: balance;
}

h1 {
	font-size: var(--cc-step-4);
	font-weight: 700;
	margin-bottom: 0.5em;
}

h2 {
	font-size: var(--cc-step-3);
	margin-bottom: 0.6em;
}

h3 {
	font-size: var(--cc-step-2);
	margin-bottom: 0.6em;
}

h4 {
	font-size: var(--cc-step-1);
	margin-bottom: 0.6em;
}

h5,
h6 {
	font-size: var(--cc-step-0);
	margin-bottom: 0.6em;
}

p {
	margin-bottom: 1.25em;
}

a {
	color: var(--cc-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.15s ease;
}

a:hover,
a:focus {
	color: var(--cc-link-hover);
}

h1 a,
h2 a,
h3 a,
h4 a {
	color: inherit;
	text-decoration: none;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover {
	color: var(--cc-link-hover);
}

/* One focus style, everywhere. */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--cc-focus);
	outline-offset: 3px;
	box-shadow: none;
}

::selection {
	background: var(--cc-accent);
	color: var(--cc-on-accent);
}

hr,
.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--cc-line);
	margin: var(--cc-space-4) 0;
	opacity: 1;
}

blockquote,
.wp-block-quote {
	border-left: 2px solid var(--cc-accent);
	margin: 1.75em 0;
	padding: 0.25em 0 0.25em 1.25em;
	font-family: var(--cc-font-serif);
	font-size: var(--cc-step-1);
	font-style: normal;
	line-height: 1.45;
	color: var(--cc-text);
}

blockquote cite,
.wp-block-quote cite {
	display: block;
	margin-top: 0.75em;
	font-family: var(--cc-font-sans);
	font-size: var(--cc-step--1);
	font-style: normal;
	color: var(--cc-text-muted);
}

code,
kbd,
pre,
tt {
	background: var(--cc-surface);
	color: var(--cc-text);
	border-radius: var(--cc-radius);
}

table,
th,
td {
	border-color: var(--cc-line);
}

figcaption,
.wp-caption-text,
.wp-element-caption {
	color: var(--cc-text-muted);
	font-size: var(--cc-step--1);
}

img {
	height: auto;
}

.screen-reader-text:focus {
	background: var(--cc-surface);
	color: var(--cc-text);
}

/* ==========================================================================
   4. Buttons and form fields
   ========================================================================== */

.cc-button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button,
a.button,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 2.9rem;
	padding: 0.7em 1.4em;
	border: 1px solid var(--cc-accent);
	border-radius: var(--cc-radius);
	background: var(--cc-accent);
	color: var(--cc-on-accent);
	font-family: var(--cc-font-sans);
	font-size: var(--cc-step--1);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cc-button:hover,
.cc-button:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus,
.button:hover,
.button:focus,
a.button:hover,
a.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-element-button:hover,
.wp-element-button:focus {
	background: var(--cc-accent-hover);
	border-color: var(--cc-accent-hover);
	color: var(--cc-on-accent);
}

.cc-button--secondary,
.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--cc-link);
	border-color: var(--cc-accent);
}

.cc-button--secondary:hover,
.cc-button--secondary:focus,
.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: transparent;
	color: var(--cc-link-hover);
	border-color: var(--cc-accent-hover);
}

button[disabled],
button[disabled]:hover,
.cc-button[disabled],
.cc-button[aria-disabled="true"],
input[type="submit"][disabled] {
	background: transparent;
	border-color: var(--cc-line);
	color: var(--cc-text-muted);
	cursor: not-allowed;
}

/* GeneratePress's own buttons (mobile menu toggle etc.) are reset in section 6. */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
	width: 100%;
	max-width: 100%;
	min-height: 2.9rem;
	padding: 0.65em 0.85em;
	background-color: var(--cc-surface);
	color: var(--cc-text);
	border: 1px solid var(--cc-field-line);
	border-radius: var(--cc-radius);
	font-size: 1rem; /* never below 16px: avoids iOS zoom */
	line-height: 1.4;
	box-shadow: none;
}

input::placeholder,
textarea::placeholder {
	color: var(--cc-text-muted);
	opacity: 1;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
	background-color: var(--cc-surface);
	color: var(--cc-text);
	border-color: var(--cc-accent);
	outline: 2px solid var(--cc-focus);
	outline-offset: 1px;
}

input[disabled],
select[disabled],
textarea[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

select {
	color-scheme: dark;
}

label {
	color: var(--cc-text);
	font-weight: 500;
}

/* ==========================================================================
   5. Layout: GeneratePress containers
   ========================================================================== */

.grid-container,
.site.grid-container,
.inside-header.grid-container,
.inside-navigation.grid-container,
.inside-site-info.grid-container {
	max-width: var(--cc-container);
}

.site,
.one-container .container,
body .site.container,
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header,
.site-main > * {
	background-color: transparent;
	color: inherit;
}

.one-container .site-content,
.separate-containers .site-main {
	padding: var(--cc-space-5) var(--cc-gutter);
}

.separate-containers .inside-article {
	padding: 0;
}

.one-container.right-sidebar .site-main,
.one-container.left-sidebar .site-main,
.one-container.both-sidebars .site-main {
	margin: 0;
}

.entry-meta,
.entry-meta a,
.cat-links,
.tags-links,
.comments-link {
	color: var(--cc-text-muted);
	font-size: var(--cc-step--1);
}

.entry-meta a:hover {
	color: var(--cc-link-hover);
}

/* ==========================================================================
   6. Header and navigation
   The header is always neutral, even on book pages.
   ========================================================================== */

.site-header {
	background-color: var(--cc-bg);
	color: var(--cc-text);
	border-bottom: 1px solid var(--cc-line);
}

.site-header .inside-header {
	padding: 1.25rem var(--cc-gutter);
}

.main-title {
	font-family: var(--cc-font-serif);
	font-optical-sizing: auto;
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
}

.main-title a,
.main-title a:hover,
.main-title a:visited {
	color: var(--cc-text);
	text-decoration: none;
}

.main-title a:hover {
	color: var(--cc-link-hover);
}

.site-description {
	display: none;
}

.main-navigation,
.main-navigation ul ul,
.main-navigation .main-nav ul ul {
	background-color: var(--cc-bg);
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
	color: var(--cc-text);
	font-family: var(--cc-font-sans);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.main-navigation .main-nav ul li a {
	padding-left: 1rem;
	padding-right: 1rem;
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a,
.main-navigation .main-nav ul li a:focus {
	color: var(--cc-link-hover);
	background-color: transparent;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li[class*="current-menu-"]:hover > a {
	color: var(--cc-text);
	background-color: transparent;
	text-decoration: underline;
	text-decoration-color: var(--cc-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.45em;
}

/* Dropdown (Books) */
.main-navigation ul ul {
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	box-shadow: none;
	padding: 0.35rem 0;
	width: 16.5rem;
}

.main-navigation .main-nav ul ul li a {
	font-size: 0.9rem;
	line-height: 1.4;
	padding: 0.6rem 1rem;
}

.main-navigation .main-nav ul ul li[class*="current-menu-"] > a {
	text-underline-offset: 0.3em;
}

.main-navigation .dropdown-menu-toggle {
	padding-left: 0.35rem;
}

/* Mobile toggle (GeneratePress's own), restyled */
.main-navigation .menu-toggle,
.main-navigation .menu-toggle:hover,
.main-navigation .menu-toggle:focus,
.main-navigation.toggled .menu-toggle {
	min-height: 2.75rem;
	padding: 0 0.9rem;
	background: transparent;
	color: var(--cc-text);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.main-navigation .menu-toggle:hover,
.main-navigation .menu-toggle:focus {
	border-color: var(--cc-accent);
	color: var(--cc-link-hover);
}

@media (max-width: 768px) {
	.site-header .inside-header {
		padding-top: 0.9rem;
		padding-bottom: 0.9rem;
	}

	.main-navigation.toggled .main-nav > ul,
	.main-navigation.toggled .main-nav ul ul {
		border: 0;
		background: var(--cc-bg);
	}

	.main-navigation.toggled .main-nav > ul {
		border-top: 1px solid var(--cc-line);
		margin-top: 0.9rem;
	}

	.main-navigation.toggled .main-nav ul li a {
		padding: 0.8rem 0;
		font-size: 1rem;
	}

	.main-navigation.toggled .main-nav ul ul li a {
		padding-left: 1rem;
	}

	.main-navigation.toggled .main-nav li {
		border-bottom: 1px solid var(--cc-line);
	}

	.main-navigation.toggled .main-nav ul ul li:last-child {
		border-bottom: 0;
	}

	.main-navigation ul ul {
		width: auto;
		padding: 0;
	}

	/* The toggle stays beside the wordmark; the open menu drops down as a
	   full-width panel beneath the header instead of reflowing it. */
	.site-header .inside-header {
		position: relative;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		text-align: left;
	}

	.site-header .main-navigation,
	.site-header .main-navigation.toggled,
	.site-header .main-navigation .inside-navigation {
		position: static;
		flex-basis: auto;
		width: auto;
		margin-left: auto;
		order: 0;
	}

	.site-header .main-navigation.toggled .main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 100;
		padding: 0 var(--cc-gutter) 0.5rem;
		background: var(--cc-bg);
		border-bottom: 1px solid var(--cc-line);
	}

	.main-navigation.toggled .main-nav > ul {
		margin-top: 0;
		border-top: 0;
	}

	.main-navigation.toggled .main-nav li:last-child {
		border-bottom: 0;
	}
}

.main-navigation .menu-toggle .gp-icon + .mobile-menu,
.main-navigation .menu-toggle .mobile-menu {
	margin-left: 0.5em;
}

/* ==========================================================================
   7. Footer (neutral, always)
   ========================================================================== */

.site-footer,
.site-info {
	background-color: var(--cc-bg);
	color: var(--cc-text-muted);
	font-size: var(--cc-step--1);
}

.site-info {
	border-top: 1px solid var(--cc-line);
}

.inside-site-info {
	padding: var(--cc-space-4) var(--cc-gutter);
}

.site-info a {
	color: var(--cc-text-muted);
}

.site-info a:hover,
.site-info a:focus {
	color: var(--cc-link-hover);
}

.copyright-bar {
	width: 100%;
	text-align: left;
}

.cc-footer {
	display: grid;
	gap: var(--cc-space-3);
	grid-template-columns: 1fr;
	align-items: start;
	width: 100%;
}

.cc-footer__wordmark {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--cc-text);
	font-family: var(--cc-font-serif);
	font-optical-sizing: auto;
	font-size: 1.15rem;
	font-weight: 600;
	text-decoration: none;
}

.site-info .cc-footer__wordmark {
	color: var(--cc-text);
	text-decoration: none;
}

.cc-footer__line {
	margin: 0;
	line-height: 1.6;
}

.cc-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-footer__menu a {
	text-decoration: none;
}

.cc-footer__menu a:hover,
.cc-footer__menu a:focus {
	text-decoration: underline;
}

.cc-footer__copyright {
	margin: 0;
	padding-top: var(--cc-space-3);
	border-top: 1px solid var(--cc-line);
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.cc-footer {
		grid-template-columns: 1fr auto;
	}

	.cc-footer__nav {
		justify-self: end;
	}
}

/* ==========================================================================
   8. Shared components
   ========================================================================== */

.cc-eyebrow,
.cc-tag {
	font-family: var(--cc-font-sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cc-text-muted);
}

.cc-tag {
	display: inline-block;
	padding: 0.15em 0.6em;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	line-height: 1.6;
	font-size: 0.7rem;
}

.cc-section {
	margin-top: var(--cc-space-5);
}

.cc-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--cc-space-1) var(--cc-space-3);
	padding-bottom: var(--cc-space-2);
	margin-bottom: var(--cc-space-4);
	border-bottom: 1px solid var(--cc-line);
}

.cc-section__title {
	margin: 0;
	font-size: var(--cc-step-2);
}

.cc-section__link {
	font-size: var(--cc-step--1);
	font-weight: 500;
}

.cc-prose {
	max-width: var(--cc-measure);
}

.cc-prose > *:last-child {
	margin-bottom: 0;
}

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

.cc-prose h3 {
	font-size: var(--cc-step-1);
	margin-top: 1.6em;
}

.cc-lead {
	font-size: var(--cc-step-1);
	line-height: 1.5;
	color: var(--cc-text-muted);
}

.cc-admin-notice {
	margin: 0 0 var(--cc-space-2);
	padding: 0.6em 0.9em;
	border: 1px dashed var(--cc-field-line);
	border-radius: var(--cc-radius);
	color: var(--cc-text);
	font-size: var(--cc-step--1);
}

/* Books grid */
.cc-books {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cc-space-4) var(--cc-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

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

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

.cc-book-card {
	margin: 0;
}

.cc-book-card__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.cc-book-card__cover {
	order: -1;
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--cc-surface);
	border-radius: 2px;
	max-width: 22rem;
}

@media (min-width: 600px) {
	.cc-book-card__cover {
		max-width: none;
	}
}

.cc-book-card__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.cc-book-card__inner:hover .cc-book-card__cover img {
	opacity: 0.9;
}

.cc-book-card__title {
	margin: var(--cc-space-2) 0 0.2rem;
	font-size: var(--cc-step-1);
	line-height: 1.25;
}

/* The whole card is clickable through the title link. */
.cc-book-card__link {
	color: var(--cc-text);
	text-decoration: none;
}

.cc-book-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cc-book-card__link:hover,
.cc-book-card__link:focus-visible {
	color: var(--cc-link-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.cc-book-card__link:focus-visible {
	outline: none;
}

.cc-book-card__link:focus-visible::after {
	outline: 2px solid var(--cc-focus);
	outline-offset: 4px;
}

.cc-book-card__subtitle {
	margin: 0 0 0.6rem;
	font-family: var(--cc-font-serif);
	font-style: italic;
	color: var(--cc-text-muted);
	line-height: 1.4;
}

.cc-book-card__summary {
	margin: 0 0 0.6rem;
	line-height: 1.5;
}

.cc-book-card__status,
.cc-book-card__more {
	margin: 0;
	color: var(--cc-text-muted);
	font-size: var(--cc-step--1);
}

.cc-book-card__more {
	margin-top: auto;
	padding-top: 0.6rem;
}

/* Descriptive link under the description: sits above the card-wide link. */
.cc-book-card__cta {
	position: relative;
	z-index: 1;
	font-size: var(--cc-step-0);
	font-weight: 600;
	color: var(--cc-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.cc-book-card__cta:hover,
.cc-book-card__cta:focus-visible {
	color: var(--cc-accent-hover);
}

/* Signup */
.cc-signup {
	padding: var(--cc-space-4) var(--cc-gutter);
	background: var(--cc-surface);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
}

.cc-signup__heading {
	margin: 0 0 0.4rem;
	font-size: var(--cc-step-2);
}

.cc-signup__text {
	margin: 0 0 var(--cc-space-3);
	max-width: 52ch;
	color: var(--cc-text-muted);
}

.cc-signup__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	max-width: 36rem;
}

.cc-signup__row input[type="email"] {
	flex: 1 1 16rem;
	width: auto;
}

.cc-signup__row .cc-button {
	flex: 0 0 auto;
}

.cc-signup__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cc-signup__status {
	max-width: 36rem;
	margin: 0;
	padding: var(--cc-space-2) 0;
	border-top: 1px solid var(--cc-line);
	border-bottom: 1px solid var(--cc-line);
	color: var(--cc-text);
}

.cc-signup__status:focus {
	outline: none;
}

@media (max-width: 480px) {
	.cc-signup__row .cc-button {
		flex: 1 1 100%;
	}
}

/* Shop teaser */
.cc-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--cc-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.cc-product a {
	display: block;
	color: var(--cc-text);
	text-decoration: none;
}

.cc-product__image {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--cc-surface-2);
	border-radius: var(--cc-radius);
}

.cc-product__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cc-product__title {
	display: block;
	margin-top: 0.75rem;
	font-size: var(--cc-step--1);
	font-weight: 500;
	line-height: 1.4;
}

.cc-product a:hover .cc-product__title {
	color: var(--cc-link-hover);
	text-decoration: underline;
}

.cc-product__price {
	display: block;
	color: var(--cc-text-muted);
	font-size: var(--cc-step--1);
}

/* About */
.cc-about-head {
	padding-bottom: var(--cc-space-3);
	border-bottom: 1px solid var(--cc-line);
}

.cc-about-head h1 {
	font-size: var(--cc-step-4);
	line-height: 1.1;
}

.cc-about-head__role {
	margin: 0.6rem 0 0;
	font-family: var(--cc-font-serif);
	font-size: var(--cc-step-1);
	font-style: italic;
	color: var(--cc-text-muted);
}

.cc-about {
	display: grid;
	gap: var(--cc-space-4);
	grid-template-columns: minmax(0, 1fr);
}

.cc-about__photo {
	margin: 0;
}

.cc-about__photo img {
	display: block;
	width: 100%;
	max-width: 22rem;
	height: auto;
	border-radius: 2px;
}

/* The opening paragraph: larger serif. */
.cc-about__lede {
	font-family: var(--cc-font-serif);
	font-size: var(--cc-step-1);
	line-height: 1.5;
	color: var(--cc-text);
}

/* Pull quote. */
.cc-about__quote {
	margin: var(--cc-space-4) 0;
	padding: var(--cc-space-3) 0;
	border-top: 1px solid var(--cc-line);
	border-bottom: 1px solid var(--cc-line);
}

.cc-about__quote::before {
	content: "";
	display: block;
	width: 64px;
	height: 16px;
	margin-bottom: var(--cc-space-2);
	background-color: var(--cc-text-muted);
	-webkit-mask: var(--cc-motif-sm) left center / 64px 16px no-repeat;
	mask: var(--cc-motif-sm) left center / 64px 16px no-repeat;
}

.cc-about__quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--cc-step-3);
	font-style: italic;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.cc-about__quote blockquote p {
	margin: 0;
}

/* "At a glance" and the books: boxes in the column. */
.cc-about__facts,
.cc-about__books {
	margin: var(--cc-space-4) 0;
}

.cc-prose .cc-about__facts h2,
.cc-prose .cc-about__books h2 {
	margin: 0 0 var(--cc-space-2);
	font-size: 0.78rem;
	line-height: 1.4;
}

.cc-about__facts {
	padding: var(--cc-space-3);
	border: 1px solid var(--cc-line);
	border-left: 3px solid var(--cc-accent);
	border-radius: var(--cc-radius);
	background: var(--cc-surface);
}

.cc-about__facts dl {
	display: grid;
	gap: var(--cc-space-2);
	margin: 0;
}

.cc-about__fact {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.15rem;
}

.cc-about__fact + .cc-about__fact {
	padding-top: var(--cc-space-2);
	border-top: 1px solid var(--cc-line);
}

.cc-about__fact dt {
	font-family: var(--cc-font-sans);
	font-size: var(--cc-step--1);
	font-weight: 600;
}

.cc-about__fact dd {
	margin: 0;
	font-family: var(--cc-font-serif);
}

.cc-about__books ul {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-about__book {
	position: relative;
	margin: 0;
	padding: var(--cc-space-2) var(--cc-space-2) var(--cc-space-3);
	border: 1px solid var(--cc-line);
	border-top: 3px solid var(--cc-text);
	border-radius: var(--cc-radius);
	background: var(--cc-surface);
	transition: border-color 0.15s ease;
}

.cc-about__book:hover,
.cc-about__book:focus-within {
	border-color: var(--cc-accent);
}

.cc-about__book p {
	margin: 0;
}

.cc-about__book-status,
.cc-about__book-tags {
	font-family: var(--cc-font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cc-text-muted);
}

.cc-prose .cc-about__book-title {
	margin: 0.5rem 0 0.25rem;
	font-size: var(--cc-step-1);
	line-height: 1.25;
}

.cc-about__book-title a {
	color: var(--cc-text);
	text-decoration: none;
}

/* The whole card is the link. */
.cc-about__book-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cc-about__book-title a:focus-visible {
	outline: none;
}

.cc-about__book:focus-within {
	outline: 2px solid var(--cc-focus);
	outline-offset: 2px;
}

.cc-about__book-title cite {
	font-style: italic;
}

.cc-about__book-sub {
	font-family: var(--cc-font-serif);
	font-size: var(--cc-step--1);
	color: var(--cc-text-muted);
}

.cc-about__book-tags {
	margin-top: 0.75rem !important;
	font-size: 0.66rem;
}

.cc-about__more {
	margin-top: var(--cc-space-4);
	padding-top: var(--cc-space-4);
	border-top: 1px solid var(--cc-line);
}

.cc-about__next {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--cc-space-2);
	max-width: var(--cc-measure);
	margin-top: var(--cc-space-4);
	padding-top: var(--cc-space-4);
	border-top: 1px solid var(--cc-line);
}

.cc-about__kit {
	font-size: var(--cc-step--1);
	font-weight: 600;
}

@media (min-width: 640px) {
	.cc-about__books ul {
		grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	}

	.cc-about__fact {
		grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
		gap: var(--cc-space-2);
		align-items: baseline;
	}
}

@media (min-width: 768px) {
	.cc-about:not(.cc-about--no-photo) {
		grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
		gap: var(--cc-space-5);
		align-items: start;
	}

	.cc-about__photo {
		position: sticky;
		top: var(--cc-space-4);
	}
}

@media (min-width: 1024px) {
	.cc-about:not(.cc-about--no-photo) {
		grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
	}
}

/* Press */
.cc-press-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cc-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

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

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

.cc-press-item a {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--cc-space-2);
	background: var(--cc-surface);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	color: var(--cc-text);
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.cc-press-item a:hover,
.cc-press-item a:focus {
	border-color: var(--cc-accent);
}

.cc-press-item__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	margin-bottom: var(--cc-space-2);
	overflow: hidden;
	background: var(--cc-surface-2);
	border-radius: 2px;
}

.cc-press-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cc-press-item__type {
	font-family: var(--cc-font-sans);
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--cc-text-muted);
}

.cc-press-item__label {
	font-weight: 600;
	line-height: 1.35;
}

.cc-press-item__meta {
	margin-top: 0.2rem;
	color: var(--cc-text-muted);
	font-size: var(--cc-step--1);
}

.cc-press-item__action {
	margin-top: auto;
	padding-top: var(--cc-space-2);
	color: var(--cc-link);
	font-size: var(--cc-step--1);
	font-weight: 600;
}

.cc-press-item a:hover .cc-press-item__action {
	color: var(--cc-link-hover);
	text-decoration: underline;
}

.cc-press-enquiries {
	margin-top: var(--cc-space-4);
	color: var(--cc-text-muted);
}

/* Contact */
.cc-contact-block {
	margin-top: var(--cc-space-4);
	padding: var(--cc-space-4) var(--cc-gutter);
	background: var(--cc-surface);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	max-width: var(--cc-measure);
}

.cc-contact-block__label {
	margin: 0 0 0.35rem;
}

.cc-contact-block__email {
	display: inline-block;
	margin-bottom: var(--cc-space-3);
	font-family: var(--cc-font-serif);
	font-optical-sizing: auto;
	font-size: var(--cc-step-2);
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

/* Template page header */
.cc-page-header {
	margin-bottom: var(--cc-space-4);
	max-width: var(--cc-measure);
}

.cc-page-header h1 {
	margin: 0;
}

/* ==========================================================================
   9. Reading layout: default pages and posts (no custom template)
   ========================================================================== */

.cc-reading .inside-article,
.cc-reading .comments-area,
.cc-reading .post-navigation {
	max-width: calc(var(--cc-measure) + 2rem);
	margin-left: auto;
	margin-right: auto;
}

.cc-reading .entry-header {
	margin-bottom: var(--cc-space-4);
}

.cc-reading .entry-title {
	font-size: var(--cc-step-4);
}

.cc-reading .entry-content > .alignwide {
	max-width: min(100vw - 2 * var(--cc-gutter), 60rem);
	margin-left: 50%;
	transform: translateX(-50%);
}

.cc-reading .featured-image,
.cc-reading .post-image {
	margin-bottom: var(--cc-space-4);
}

.cc-reading .entry-content h2 {
	font-size: var(--cc-step-2);
	margin-top: 1.8em;
}

.cc-reading .entry-content h3 {
	font-size: var(--cc-step-1);
	margin-top: 1.6em;
}

/* Blog archives stay in the same measure. */
.blog .site-main,
.archive:not(.woocommerce) .site-main,
.search .site-main {
	max-width: calc(var(--cc-measure) + 2rem);
	margin-left: auto;
	margin-right: auto;
}

.blog .site-main article,
.archive:not(.woocommerce) .site-main article,
.search .site-main article {
	padding-bottom: var(--cc-space-4);
	margin-bottom: var(--cc-space-4);
	border-bottom: 1px solid var(--cc-line);
}

.comment-content,
.comment-body {
	border-color: var(--cc-line);
}

.paging-navigation a,
.nav-links a {
	color: var(--cc-link);
}

/* ==========================================================================
   9b. Pass 1 structure: front page and book page components
   Functional layout only; the visual system comes in Pass 2.
   ========================================================================== */

.cc-section__title + .cc-prose,
.cc-section__title + .cc-lead {
	margin-top: var(--cc-space-3);
}

.cc-section__cta {
	margin: var(--cc-space-3) 0 0;
}

[id="books"]:focus {
	outline: none;
}

html {
	scroll-behavior: smooth;
}

/* Hero: text beside a large author photograph; stacked on phones. */
.cc-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cc-space-4);
	align-items: center;
}

@media (min-width: 768px) {
	.cc-hero:not(.cc-hero--no-photo) {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--cc-space-5);
	}
}

.cc-hero .cc-eyebrow {
	margin: 0 0 var(--cc-space-2);
}

.cc-hero__title {
	margin: 0 0 var(--cc-space-3);
	max-width: 22ch;
	font-size: var(--cc-step-4);
	line-height: var(--cc-leading-tight);
}

.cc-hero__subhead {
	max-width: 52ch;
	margin: 0 0 var(--cc-space-4);
	font-size: var(--cc-step-1);
	line-height: 1.5;
	color: var(--cc-text-muted);
}

.cc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

.cc-hero__photo {
	margin: 0;
	order: -1;
}

@media (min-width: 768px) {
	.cc-hero__photo {
		order: 0;
	}
}

.cc-hero__photo img {
	display: block;
	width: 100%;
	max-height: 80vh;
	object-fit: cover;
	border-radius: 2px;
}

/* Author section */
.cc-author {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cc-space-4);
	align-items: start;
	padding-top: var(--cc-space-4);
	border-top: 1px solid var(--cc-line);
}

@media (min-width: 768px) {
	.cc-author:not(.cc-author--no-photo) {
		grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
		gap: var(--cc-space-5);
	}
}

.cc-author__photo {
	margin: 0;
}

.cc-author__photo img {
	display: block;
	width: 100%;
	max-width: 22rem;
	border-radius: 2px;
}

/* ==========================================================================
   10. Motion
   ========================================================================== */

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

.cc-contact-block > :last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   11. Tones (Pass 1: minimal)
   The hero is dark and cinematic; the sections below it get progressively
   lighter so long-form reading is comfortable: charcoal › olive-black ›
   stone › parchment › ivory. Each tone only redefines the design tokens,
   so every component inside it follows. Long-form pages (The Inquiry,
   essays, About, Press, Contact, policies) use the light "paper" tone; shop
   pages and Coming soon pages keep the dark shell. Pass 2 refines values.
   ========================================================================== */

.cc-tone-charcoal {
	--cc-bg: #20211F;
	--cc-surface: #282926;
	--cc-surface-2: #31322E;
	--cc-line: #3D3E39;
}

.cc-tone-olive {
	--cc-bg: #34372E;
	--cc-surface: #3C3F35;
	--cc-surface-2: #45483D;
	--cc-line: #4E5146;
	--cc-field-line: #8A8D80;
	--cc-text: #ECE9E1;
	--cc-text-muted: #BDBBB1;
}

/* Light tones share text, accent and control colours. */
.cc-tone-stone,
.cc-tone-parchment,
.cc-tone-ivory,
.cc-tone-paper .site {
	color-scheme: light;
	--cc-text: #1E201C;
	--cc-text-muted: #4D4D46;
	--cc-field-line: #77736A;
	--cc-accent: #34495A;        /* dark slate: links, buttons, focus */
	--cc-accent-hover: #1F2E3A;
	--cc-link: #34495A;          /* set here too: :root resolved it to the dark-tone slate */
	--cc-link-hover: #1F2E3A;
	--cc-on-accent: #F7F4ED;
	--cc-focus: #34495A;
	--cc-danger: #8E2F22;
	--cc-success: #2F5E36;
}

.cc-tone-stone {
	--cc-bg: #D9D5CB;
	--cc-surface: #E5E1D8;
	--cc-surface-2: #CEC9BE;
	--cc-line: #BAB5A9;
}

.cc-tone-parchment {
	--cc-bg: #E8E0D2;
	--cc-surface: #F0EADF;
	--cc-surface-2: #DED5C5;
	--cc-line: #CFC5B3;
}

.cc-tone-ivory,
.cc-tone-paper .site {
	--cc-bg: #F7F4ED;
	--cc-surface: #FFFDF8;
	--cc-surface-2: #EEEAE1;
	--cc-line: #DDD7CB;
}

.cc-tone-stone select,
.cc-tone-parchment select,
.cc-tone-ivory select,
.cc-tone-paper .site select {
	color-scheme: light;
}

/* Full-width bands on the front page. The background reaches the window
   edges (box-shadow + clip-path) while the content stays in the container,
   without causing sideways scrolling. */
.cc-band {
	padding-top: var(--cc-space-5);
	padding-bottom: var(--cc-space-5);
	background-color: var(--cc-bg);
	color: var(--cc-text);
	box-shadow: 0 0 0 100vmax var(--cc-bg);
	clip-path: inset(0 -100vmax);
}

.cc-front.one-container .site-content,
.cc-front.separate-containers .site-main {
	padding-top: 0;
	padding-bottom: 0;
}

.cc-band.cc-tone-ivory + .cc-band.cc-tone-ivory {
	border-top: 1px solid var(--cc-line);
}

/* Light long-form pages. The id outranks GeneratePress's saved container
   colour (.one-container .container), which would otherwise paint white. */
.cc-tone-paper .site,
body.cc-tone-paper #page.site {
	background-color: var(--cc-bg);
	color: var(--cc-text);
	box-shadow: 0 0 0 100vmax var(--cc-bg);
	clip-path: inset(0 -100vmax);
}

/* Hero: larger photograph, more height. */
.cc-hero {
	min-height: min(88vh, 54rem);
}

@media (min-width: 768px) {
	.cc-hero:not(.cc-hero--no-photo) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.cc-hero__photo img {
	max-height: 82vh;
}

/* Hero with a landscape photograph: the photo fills the whole band behind
   the text, darkened on the left so the headline stays readable. Below
   1024px the photo sits above the text instead. */
.cc-front {
	overflow-x: clip;
}

.cc-hero--wide {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
	.cc-hero.cc-hero--wide {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}
}

.cc-hero--wide .cc-hero__photo img {
	max-height: none;
	border-radius: 0;
}

@media (max-width: 1023px) {
	.cc-hero.cc-hero--wide {
		padding-top: 0;
	}

	.cc-hero--wide .cc-hero__photo {
		order: -1;
		margin-inline: calc(-1 * var(--cc-gutter));
	}

	.cc-hero--wide .cc-hero__photo img {
		aspect-ratio: 4 / 3;
		object-fit: cover;
		object-position: 62% 30%;
	}
}

@media (min-width: 1024px) {
	.cc-hero.cc-hero--wide {
		position: relative;
		isolation: isolate;
		min-height: min(92vh, 58rem);
	}

	.cc-hero--wide .cc-hero__text {
		max-width: 34rem;
	}

	.cc-hero--wide .cc-hero__photo {
		position: absolute;
		z-index: -1;
		top: 0;
		bottom: 0;
		left: 50%;
		width: 100vw;
		transform: translateX(-50%);
	}

	.cc-hero--wide .cc-hero__photo img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 72% 15%;
	}

	.cc-hero--wide .cc-hero__photo::after {
		content: "";
		position: absolute;
		inset: 0;
		background:
			linear-gradient(90deg, rgb(32 33 31 / 0.94) 0%, rgb(32 33 31 / 0.82) 28%, rgb(32 33 31 / 0.25) 55%, rgb(32 33 31 / 0) 70%),
			linear-gradient(0deg, rgb(32 33 31 / 0.6) 0%, rgb(32 33 31 / 0) 25%);
	}
}

/* Method statement */
.cc-method__body {
	margin-top: var(--cc-space-3);
	font-size: var(--cc-step-1);
	line-height: 1.6;
}

/* Section headings inside bands */
.cc-band > .cc-section__title,
.cc-home-inquiry__intro .cc-section__title {
	margin-bottom: var(--cc-space-3);
}

.cc-home-books .cc-books {
	margin-top: var(--cc-space-4);
}

/* The Inquiry: intro, essay cards */
.cc-home-inquiry__intro .cc-lead,
.cc-inquiry .cc-page-header .cc-lead {
	max-width: 60ch;
	margin-bottom: 0;
}

.cc-essays {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cc-space-3);
	margin: var(--cc-space-4) 0 0;
	padding: 0;
	list-style: none;
}

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

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

	/* One or two essays: keep cards at a readable width, no empty slots. */
	.cc-essays--count-1 {
		grid-template-columns: minmax(0, 40rem);
	}

	.cc-essays--count-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.cc-essay-card {
	margin: 0;
}

.cc-essay-card__inner {
	position: relative;
	height: 100%;
	padding: var(--cc-space-3);
	background: var(--cc-surface);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
}

.cc-essay-card__meta {
	margin: 0 0 0.5rem;
	color: var(--cc-text-muted);
	font-size: var(--cc-step--1);
}

.cc-essay-card__title {
	margin: 0 0 0.5rem;
	font-size: var(--cc-step-1);
	line-height: 1.3;
}

.cc-essay-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cc-essay-card__title a:hover,
.cc-essay-card__title a:focus-visible {
	color: var(--cc-link-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.cc-essay-card__excerpt {
	margin: 0;
	color: var(--cc-text-muted);
	font-size: var(--cc-step--1);
	line-height: 1.55;
}

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

.cc-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: var(--cc-space-4) 0 0;
	padding: 0;
	list-style: none;
}

.cc-essay-back {
	margin: var(--cc-space-4) 0 0;
	padding-top: var(--cc-space-3);
	border-top: 1px solid var(--cc-line);
	font-weight: 500;
}

/* Evidence component: "What the evidence shows / What remains open".
   Insert with the block pattern, or the [cc_evidence] shortcode. */
.cc-evidence {
	margin: var(--cc-space-4) 0;
}

.cc-evidence .cc-evidence__columns,
.cc-evidence .wp-block-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cc-space-3);
	margin: 0;
}

@media (min-width: 700px) {
	.cc-evidence .cc-evidence__columns,
	.cc-evidence .wp-block-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.cc-evidence__col {
	padding: var(--cc-space-3);
	background: var(--cc-surface);
	border: 1px solid var(--cc-line);
	border-top-width: 3px;
	border-radius: var(--cc-radius);
}

.cc-evidence__col--shows {
	border-top-color: var(--cc-text);
}

.cc-evidence__col--open {
	border-top-style: dashed;
	border-top-color: var(--cc-text-muted);
}

.cc-evidence__heading,
.cc-evidence h3 {
	margin: 0 0 0.75rem;
	font-family: var(--cc-font-sans);
	font-size: var(--cc-step--1);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cc-text);
}

.cc-evidence ul {
	margin: 0 0 0 1.1em;
	padding: 0;
}

.cc-evidence li {
	margin-bottom: 0.4em;
}

.cc-evidence li:last-child {
	margin-bottom: 0;
}

/* Author section */
.cc-author {
	padding-top: var(--cc-space-5);
	border-top: 0;
}

.cc-author__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: var(--cc-space-3) 0 0;
	padding: 0;
	list-style: none;
	font-weight: 500;
}

/* Shop teaser and Letters on light bands */
.cc-shop-teaser .cc-section__head {
	margin-bottom: var(--cc-space-3);
}

.cc-letters .cc-signup {
	background: transparent;
	border: 0;
	padding: 0;
}

/* Press page */
.cc-press .cc-section {
	margin-top: var(--cc-space-4);
	padding-top: var(--cc-space-4);
	border-top: 1px solid var(--cc-line);
}

.cc-press .cc-section__title {
	margin-bottom: var(--cc-space-3);
}

.cc-press__bios {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cc-space-3) var(--cc-space-5);
}

.cc-press__bios > .cc-section__title {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

@media (min-width: 900px) {
	.cc-press__bios {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}
}

.cc-press__subhead,
.cc-themes__title {
	margin: 0 0 0.5rem;
	font-size: var(--cc-step-1);
}

.cc-press__count {
	color: var(--cc-text-muted);
	font-family: var(--cc-font-sans);
	font-size: var(--cc-step--1);
	font-weight: 400;
}

.cc-press-item--empty .cc-admin-notice {
	height: 100%;
	margin: 0;
}

.cc-details {
	display: grid;
	gap: 0;
	max-width: 46rem;
	margin: 0;
}

.cc-details__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 var(--cc-space-3);
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--cc-line);
}

@media (min-width: 600px) {
	.cc-details__row {
		grid-template-columns: 12rem minmax(0, 1fr);
	}
}

.cc-details dt {
	color: var(--cc-text-muted);
	font-weight: 500;
}

.cc-details dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.cc-themes {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cc-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.cc-themes p {
	margin: 0;
	color: var(--cc-text-muted);
}

.cc-questions {
	max-width: var(--cc-measure);
	margin: 0 0 0 1.4em;
	padding: 0;
}

.cc-questions li {
	margin-bottom: 0.6em;
	padding-left: 0.3em;
}

.cc-press__email {
	font-size: var(--cc-step-1);
	font-weight: 500;
}

/* Navigation: six items fit beside the wordmark from 769px up. */
@media (min-width: 769px) and (max-width: 1100px) {
	.main-navigation .main-nav ul li a {
		padding-left: 0.6rem;
		padding-right: 0.6rem;
	}

	.main-navigation .main-nav > ul > li > a {
		font-size: 0.9rem;
	}
}

/* ==========================================================================
   12. Art direction: motif, Selected works, Letters, media invitation
   One recurring fine-line motif (strata, pathways, intersecting lines of
   inquiry), drawn in Stone (--cc-motif). It marks section eyebrows,
   separates bands of the same tone, frames images, heads essay cards and
   sits faintly behind "The Question That Remained". It suggests investigation,
   not any one book's subject.
   ========================================================================== */

:root {
	--cc-motif-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M0 1.5H26M8 5H40M3 8.5H32M13 10L23 0'/%3E%3C/svg%3E");
	--cc-motif-lg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 32' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M0 6.5H112M24 13.5H160M8 20.5H132M40 27.5H148M52 31.5L100 0.5'/%3E%3Ccircle cx='80.8' cy='13.5' r='2'/%3E%3Ccircle cx='58.4' cy='27.5' r='2'/%3E%3C/svg%3E");
	--cc-motif-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 120' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M0 10.5H300M60 22.5H480M20 34.5H380M120 46.5H460M0 58.5H260M80 70.5H420M30 82.5H340M150 94.5H480M10 106.5H300M140 120L260 0M300 120L420 0'/%3E%3Ccircle cx='228' cy='34.5' r='2.5'/%3E%3Ccircle cx='352' cy='70.5' r='2.5'/%3E%3C/svg%3E");
}

.cc-tone-charcoal,
.cc-tone-olive {
	--cc-motif: #8E8C7F;
}

/* Eyebrow with the small motif mark. */
.cc-eyebrow--motif {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
}

.cc-eyebrow--motif::before {
	content: "";
	flex: none;
	width: 40px;
	height: 10px;
	background-color: var(--cc-motif);
	-webkit-mask: var(--cc-motif-sm) center / 40px 10px no-repeat;
	mask: var(--cc-motif-sm) center / 40px 10px no-repeat;
}

/* Divider between two bands of the same light tone. */
.cc-band.cc-tone-ivory + .cc-band.cc-tone-ivory,
.cc-band.cc-tone-parchment + .cc-band.cc-tone-parchment {
	position: relative;
	border-top: 0;
}

.cc-band.cc-tone-ivory + .cc-band.cc-tone-ivory::before,
.cc-band.cc-tone-parchment + .cc-band.cc-tone-parchment::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 32px;
	background:
		linear-gradient(var(--cc-line), var(--cc-line)) left center / calc(50% - 100px) 1px no-repeat,
		linear-gradient(var(--cc-line), var(--cc-line)) right center / calc(50% - 100px) 1px no-repeat;
	pointer-events: none;
}

.cc-band.cc-tone-ivory + .cc-band.cc-tone-ivory::after,
.cc-band.cc-tone-parchment + .cc-band.cc-tone-parchment::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 160px;
	height: 32px;
	margin-left: -80px;
	background-color: var(--cc-motif);
	opacity: 0.8;
	-webkit-mask: var(--cc-motif-lg) center / 160px 32px no-repeat;
	mask: var(--cc-motif-lg) center / 160px 32px no-repeat;
	pointer-events: none;
}

/* Image frame: a fine line set just inside the picture. */
.cc-frame {
	position: relative;
}

.cc-frame::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid var(--cc-frame, rgb(247 244 237 / 0.42));
	pointer-events: none;
}

.cc-author__photo.cc-frame {
	max-width: 22rem;
}

/* Faint strata behind "The Question That Remained". */
.cc-motif-field {
	position: relative;
	isolation: isolate;
}

.cc-motif-field::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: 0;
	bottom: 10%;
	width: min(46vw, 560px);
	height: min(11.5vw, 140px);
	background-color: var(--cc-motif);
	opacity: 0.4;
	-webkit-mask: var(--cc-motif-field) right center / contain no-repeat;
	mask: var(--cc-motif-field) right center / contain no-repeat;
	pointer-events: none;
}

/* Section heading block. */
.cc-section-head {
	max-width: 46rem;
}

.cc-section-head .cc-section__title {
	margin-bottom: 0.5rem;
}

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

/* Selected works: the featured band (The Divine Serpent). The photograph
   runs edge to edge; the text sits on the plain wall to its left. */
.cc-feature {
	position: relative;
	margin-top: var(--cc-space-4);
}

.cc-feature__media {
	margin: 0 calc(-1 * var(--cc-gutter));
}

.cc-feature__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 52% 60%;
}

.cc-feature__body {
	padding-top: var(--cc-space-3);
}

.cc-feature__title {
	margin: 0 0 0.35rem;
	font-size: var(--cc-step-3);
	line-height: var(--cc-leading-tight);
}

.cc-feature__subtitle {
	margin: 0 0 1rem;
	font-family: var(--cc-font-serif);
	font-style: italic;
	font-size: var(--cc-step-1);
	color: var(--cc-text-muted);
	line-height: 1.35;
}

.cc-feature__description {
	margin: 0 0 1rem;
	line-height: 1.6;
}

.cc-feature__status {
	margin: 0 0 var(--cc-space-3);
	font-size: var(--cc-step--1);
	color: var(--cc-text-muted);
}

.cc-feature__actions {
	margin: 0;
}

@media (min-width: 960px) {
	.cc-feature {
		display: flex;
		align-items: center;
		min-height: clamp(30rem, 62vw, 46rem);
		isolation: isolate;
	}

	.cc-feature__media {
		position: absolute;
		z-index: -1;
		top: 0;
		bottom: 0;
		left: 50%;
		width: 100vw;
		margin: 0;
		overflow: hidden;
		transform: translateX(-50%);
	}

	/* Wider than the window and anchored left, so the book sits right of
	   centre and the wall on the left stays clear for the text. */
	.cc-feature__media img {
		position: absolute;
		top: 0;
		left: 0;
		width: 118%;
		max-width: none;
		height: 100%;
		aspect-ratio: auto;
		object-fit: cover;
		object-position: 0% 55%;
	}

	.cc-feature__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgb(232 224 210 / 0.86) 0%, rgb(232 224 210 / 0.62) 26%, rgb(232 224 210 / 0) 46%);
	}

	.cc-feature__body {
		max-width: min(25rem, 36vw);
		padding-block: var(--cc-space-5);
	}

	.cc-feature--no-photo {
		min-height: 0;
	}
}

/* Upcoming works: a sub-heading between the featured book and the cards. */
.cc-works-head {
	max-width: 46rem;
	margin-top: var(--cc-space-5);
	padding-top: var(--cc-space-4);
	border-top: 1px solid var(--cc-line);
}

.cc-works-head__title {
	margin: 0 0 0.5rem;
	font-size: var(--cc-step-3);
	line-height: var(--cc-leading-tight);
}

.cc-works-head__text {
	margin: 0;
	font-size: var(--cc-step-1);
	line-height: 1.5;
	color: var(--cc-text-muted);
}

.cc-works-head + .cc-works {
	margin-top: var(--cc-space-4);
}

/* Selected works: the other books, each with its own art direction. */
.cc-works {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--cc-space-4);
	margin: var(--cc-space-5) 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.cc-works--count-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cc-works--count-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.cc-work {
	margin: 0;
}

.cc-work__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0.75rem;
	background: var(--cc-work-surface, var(--cc-surface-2));
	border-radius: 6px;
}

.cc-work__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--cc-work-media, var(--cc-surface));
	border-radius: 4px;
}

.cc-work__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s ease;
}

.cc-work__inner:hover .cc-work__media img {
	transform: scale(1.02);
}

/* No image yet: a quiet fine-line panel instead of a grey box. */
.cc-work__media--motif::before {
	content: "";
	position: absolute;
	inset: 22% 12%;
	background-color: var(--cc-work-motif, var(--cc-motif));
	-webkit-mask: var(--cc-motif-field) center / contain no-repeat;
	mask: var(--cc-motif-field) center / contain no-repeat;
}

.cc-work__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1rem 0.5rem 0.5rem;
}

.cc-work__tags {
	margin: 0 0 0.5rem;
	font-family: var(--cc-font-sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cc-text-muted);
}

.cc-work__title {
	margin: 0 0 0.25rem;
	font-size: var(--cc-step-2);
	line-height: var(--cc-leading-tight);
}

.cc-work__link {
	color: var(--cc-text);
	text-decoration: none;
}

.cc-work__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 6px;
}

.cc-work__link:hover,
.cc-work__link:focus-visible {
	color: var(--cc-link-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.cc-work__link:focus-visible {
	outline: none;
}

.cc-work__link:focus-visible::after {
	outline: 2px solid var(--cc-focus);
	outline-offset: 3px;
}

.cc-work__status {
	margin: 0 0 0.75rem;
	font-size: var(--cc-step--1);
	font-style: italic;
	color: var(--cc-text-muted);
}

.cc-work__description {
	margin: 0 0 1rem;
	line-height: 1.55;
}

.cc-work__more {
	margin: auto 0 0;
}

.cc-work__cta {
	position: relative;
	z-index: 1;
}

/* The Simple Way: rice paper, ink, empty space. */
.cc-work--simple-way {
	--cc-work-surface: #EFEAE0;
	--cc-work-media: #F5F2EB;
	--cc-work-motif: #3A3A36;
	--cc-frame: rgb(32 33 31 / 0.2);
}

/* The Divine Serpent, Vol. 2: stone and earth, kept quieter than the
   published book above it. */
.cc-work--divine-serpent-2 {
	--cc-work-surface: #DED6C7;
	--cc-work-media: #2C2B27;
	--cc-work-motif: #8E8C7F;
	--cc-frame: rgb(247 244 237 / 0.32);
}

.cc-work--divine-serpent-2 .cc-work__media img {
	filter: grayscale(0.35) brightness(0.92) contrast(0.96);
}

/* Essay cards: a strip of the motif in place of a thumbnail. */
.cc-essay-card__inner::before {
	content: "";
	display: block;
	height: 44px;
	margin-bottom: 1rem;
	background-color: var(--cc-motif);
	opacity: 0.75;
	-webkit-mask: var(--cc-motif-field) 0 50% / 220px 55px no-repeat;
	mask: var(--cc-motif-field) 0 50% / 220px 55px no-repeat;
}

.cc-essay-card:nth-child(3n+2) .cc-essay-card__inner::before {
	-webkit-mask-position: 50% 50%;
	mask-position: 50% 50%;
}

.cc-essay-card:nth-child(3n+3) .cc-essay-card__inner::before {
	-webkit-mask-position: 100% 50%;
	mask-position: 100% 50%;
}

/* Letters from the Study: a destination, not a footer form. */
.cc-letters__panel {
	position: relative;
	display: grid;
	gap: var(--cc-space-4);
	overflow: hidden;
	padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	background: #EFE8DB;
	border: 1px solid var(--cc-line);
	border-radius: 4px;
}

.cc-letters__panel::after {
	content: "";
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	width: min(40%, 320px);
	height: 80px;
	background-color: var(--cc-motif);
	opacity: 0.35;
	-webkit-mask: var(--cc-motif-field) right top / contain no-repeat;
	mask: var(--cc-motif-field) right top / contain no-repeat;
	pointer-events: none;
}

@media (min-width: 900px) {
	.cc-letters__panel {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		align-items: end;
		gap: var(--cc-space-5);
	}
}

/* Letters with a photograph (Customize › Home page › Letters from the
   Study: band photograph): the photo fills the band, darkened on the left,
   with the text and form over it. */
.cc-letters--photo {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: clamp(30rem, 48vw, 42rem);
}

.cc-letters__media {
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin: 0;
	overflow: hidden;
	transform: translateX(-50%);
}

.cc-letters__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 50%;
}

.cc-letters__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(32 33 31 / 0.84);
}

@media (min-width: 960px) {
	.cc-letters__media::after {
		background: linear-gradient(90deg, rgb(32 33 31 / 0.95) 0%, rgb(32 33 31 / 0.86) 38%, rgb(32 33 31 / 0.3) 68%, rgb(32 33 31 / 0.1) 100%);
	}
}

.cc-letters--photo .cc-letters__panel {
	width: 100%;
	max-width: 36rem;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-3);
	align-items: start;
}

.cc-letters--photo .cc-letters__panel::after {
	content: none;
}

.cc-letters__heading {
	margin: 0 0 0.75rem;
	font-size: var(--cc-step-3);
	line-height: var(--cc-leading-tight);
}

.cc-letters__promise {
	max-width: 40ch;
	margin: 0 0 1rem;
	font-size: var(--cc-step-1);
	line-height: 1.5;
}

.cc-letters__frequency,
.cc-letters__sample {
	margin: 0 0 0.5rem;
}

.cc-letters__label {
	font-weight: 600;
}

.cc-letters__sample a {
	font-weight: 500;
}

.cc-letters__form {
	position: relative;
	z-index: 1;
}

.cc-letters__note {
	margin: 0.75rem 0 0;
	font-size: var(--cc-step--1);
	color: var(--cc-text-muted);
}

/* Media and speaking invitation. */
.cc-media-invite__inner {
	max-width: 46rem;
}

.cc-media-invite .cc-section__title {
	margin-bottom: 0.75rem;
}

.cc-media-invite__text {
	max-width: 60ch;
	margin: 0;
	font-size: var(--cc-step-1);
	line-height: 1.5;
	color: var(--cc-text-muted);
}

.cc-media-invite__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin: var(--cc-space-3) 0 0;
}

.cc-media-invite__kit {
	font-weight: 600;
}

/* Restrained fade-in (theme.js adds .cc-motion only when the visitor has
   not asked for reduced motion). Nothing is hidden without JavaScript. */
html.cc-motion .cc-reveal {
	transition: opacity 0.8s ease, transform 0.8s ease;
}

html.cc-motion .cc-reveal:not(.is-visible) {
	opacity: 0;
	transform: translateY(14px);
}

@media (max-width: 599px) {
	.cc-letters__panel::after {
		display: none;
	}
}

/* ==========================================================================
   Inquiry essay components (.inq-)
   For essays pasted into one Custom HTML block. Colours come from the
   theme's tokens, so they follow the page's tone (light paper or dark):
   text uses --cc-text / --cc-text-muted; rules and the callout's tint are
   semi-transparent mixes of --cc-text over the page background.
   ========================================================================== */

/* Set on the components (not :root) so they mix the tone's own text colour. */
.inq-pullquote,
.inq-callout {
	--inq-rule: color-mix(in srgb, var(--cc-text) 28%, transparent);
	--inq-tint: color-mix(in srgb, var(--cc-text) 5%, transparent);
}

/* Small-caps label above the essay or a section (as on the home page). */
.inq-eyebrow {
	margin: 0 0 var(--cc-space-2);
	font-family: var(--cc-font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cc-text-muted);
}

/* Pull quote: a break across the measure with hairlines above and below;
   the text is centred and held to about 34 characters. */
.inq-pullquote,
.entry-content .inq-pullquote {
	max-width: none;
	margin: var(--cc-space-4) 0;
	padding: var(--cc-space-3) 0;
	border: 0;
	border-top: 1px solid var(--inq-rule);
	border-bottom: 1px solid var(--inq-rule);
	background: none;
	text-align: center;
}

/* Stronger than GeneratePress's "blockquote p:last-child { margin: 0 }",
   which would otherwise pin the text to the left. */
.inq-pullquote p,
.entry-content .inq-pullquote p {
	max-width: 34ch;
	margin: 0 auto;
	font-family: var(--cc-font-serif);
	font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
	font-style: italic;
	line-height: 1.45;
	color: var(--cc-text);
}

/* Callout: the closing "shows / remains open" pair that ends every essay.
   Stacked on small screens, two columns from 640px. */
.inq-callout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: var(--cc-space-4) 0;
	border: 1px solid var(--inq-rule);
	border-radius: var(--cc-radius);
	background: var(--inq-tint);
}

.inq-callout__col {
	padding: var(--cc-space-3);
}

.inq-callout__col + .inq-callout__col {
	border-top: 1px solid var(--inq-rule);
}

.inq-callout .inq-callout__heading,
.entry-content .inq-callout .inq-callout__heading {
	margin: 0 0 0.75rem;
	font-family: var(--cc-font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cc-text-muted);
}

.inq-callout p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--cc-text);
}

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

	.inq-callout__col + .inq-callout__col {
		border-top: 0;
		border-left: 1px solid var(--inq-rule);
	}
}

/* Sources list at the foot of an essay. */
.inq-sources {
	padding-left: 0;
	list-style: none;
	font-size: var(--cc-step--1);
}

.inq-sources li {
	margin-bottom: var(--cc-space-2);
}

.inq-sources a {
	overflow-wrap: anywhere;
}

/* Figure: simple horizontal bars drawn from figures in the text.
   <figure class="inq-figure"> › <p class="inq-figure__title"> + <ul class="inq-bars">,
   each <li> holding a label, the value, and a <span class="inq-bar"> whose
   width is set inline (style="--w:50%"). A <span class="inq-bar__part">
   inside a bar marks a highlighted share of it (style="--w:38.5%"). */
.inq-figure {
	margin: var(--cc-space-4) 0;
	padding: var(--cc-space-3);
	border: 1px solid color-mix(in srgb, var(--cc-text) 28%, transparent);
	border-radius: var(--cc-radius);
}

.inq-figure__title {
	margin: 0 0 var(--cc-space-2);
	font-family: var(--cc-font-sans);
	font-size: var(--cc-step--1);
	font-weight: 600;
	line-height: 1.4;
	color: var(--cc-text);
}

.inq-bars {
	display: grid;
	gap: var(--cc-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.inq-bars li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.35rem var(--cc-space-2);
	align-items: baseline;
	margin: 0;
	font-family: var(--cc-font-sans);
	font-size: var(--cc-step--1);
	line-height: 1.4;
	color: var(--cc-text);
}

.inq-bars__value {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.inq-bar {
	grid-column: 1 / -1;
	display: flex;
	width: var(--w, 100%);
	min-width: 6px;
	height: 12px;
	border-radius: 0 4px 4px 0;
	background: color-mix(in srgb, var(--cc-text) 50%, transparent);
	overflow: hidden;
}

.inq-bar__part {
	flex: none;
	width: var(--w, 0%);
	height: 100%;
	background: var(--cc-text);
	box-shadow: 2px 0 0 var(--cc-bg);
}

.inq-figure__key,
.inq-figure__note {
	margin: var(--cc-space-2) 0 0;
	font-family: var(--cc-font-sans);
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--cc-text-muted);
}

.inq-figure__swatch {
	display: inline-block;
	width: 0.9em;
	height: 0.6em;
	margin-right: 0.4em;
	border-radius: 2px;
	background: var(--cc-text);
	vertical-align: 0.05em;
}

@media (forced-colors: active) {
	.inq-bar { background: CanvasText; }
	.inq-bar__part { background: Highlight; }
	.inq-figure__swatch { background: Highlight; }
}
