/*
 * Content column typography. Loaded on the front AND as an editor style,
 * so the canvas matches the front. Token defaults live here; per-site values
 * are injected inline as html:root{} from theme_mods (inc/helpers.php).
 */

:root {
	--fp-paper: #f7f3ea;
	--fp-card: #ffffff;
	--fp-ink: #26221a;
	--fp-muted: #6f6759;
	--fp-accent: #2b6e4f;
	--fp-on-accent: #ffffff;
	--fp-highlight: #c98a2c;
	--fp-chrome: #1d2a24;
	--fp-chrome-text: #f2efe6;
	--fp-line: #e3dcca;
	--fp-radius: 12px;
	--fp-shadow: 6px 6px 0 rgba(38, 34, 26, 0.09);
	--fp-container: 1180px;
	--fp-content: 1000px;
	--fp-narrow: 820px;
	--fp-font-heading: 'Spectral', georgia, serif;
	--fp-font-body: 'Karla', 'Segoe UI', sans-serif;
}

@font-face {
	font-family: Spectral;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/spectral-700-latin.woff2') format('woff2');
}

@font-face {
	font-family: Karla;
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/karla-latin.woff2') format('woff2');
}

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

body {
	margin: 0;
	background: var(--fp-paper);
	color: var(--fp-ink);
	font-family: var(--fp-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--fp-font-heading);
	font-weight: 700;
	line-height: 1.18;
	margin: 1.7em 0 0.5em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(1.9rem, 4.5vw, 2.7rem);
	margin-top: 0;
}

h2 {
	font-size: clamp(1.45rem, 3vw, 1.85rem);
}

h3 {
	font-size: 1.3rem;
}

h4 {
	font-size: 1.1rem;
}

p,
ul,
ol {
	margin: 0 0 1.4em;
}

a {
	color: var(--fp-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--fp-highlight);
}

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

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

hr {
	border: 0;
	border-top: 1px solid var(--fp-line);
	margin: 2.5rem 0;
}

blockquote {
	margin: 1.75rem 0;
	padding: 0.75rem 1.5rem;
	border-left: 4px solid var(--fp-highlight);
	background: var(--fp-card);
	border-radius: 0 var(--fp-radius) var(--fp-radius) 0;
}

/* --- Lists: diamond markers (distinct from any check/dot reference) --- */

.post-entry ul,
.editor-styles-wrapper ul {
	list-style: none;
	padding-left: 1.5em;
}

.post-entry ul > li,
.editor-styles-wrapper ul > li {
	position: relative;
	margin: 0.45em 0;
}

.post-entry ul > li::before,
.editor-styles-wrapper ul > li::before {
	content: '';
	position: absolute;
	left: -1.25em;
	top: 0.62em;
	width: 8px;
	height: 8px;
	background: var(--fp-highlight);
	transform: rotate(45deg);
	border-radius: 1px;
}

.post-entry ol {
	padding-left: 1.5em;
}

.post-entry ol > li {
	margin: 0.45em 0;
}

.post-entry ol > li::marker {
	color: var(--fp-accent);
	font-weight: 700;
}

/* --- Tables --- */

.wp-block-table {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	background: var(--fp-card);
	border: 1px solid var(--fp-line);
	border-radius: var(--fp-radius);
	font-size: 0.97rem;
}

th,
td {
	padding: 0.65em 0.9em;
	text-align: left;
	border-bottom: 1px solid var(--fp-line);
}

thead th {
	background: var(--fp-accent);
	color: var(--fp-on-accent);
	font-family: var(--fp-font-body);
	font-weight: 700;
}

/* --- Buttons (content + chrome share .fp-btn) --- */

.fp-btn,
.wp-block-button__link {
	display: inline-block;
	background: var(--fp-accent);
	color: var(--fp-on-accent);
	font-family: var(--fp-font-body);
	font-weight: 700;
	text-decoration: none;
	border: 0;
	border-radius: 8px;
	padding: 0.7em 1.5em;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.fp-btn:hover,
.wp-block-button__link:hover {
	background: var(--fp-accent);
	color: var(--fp-on-accent);
	transform: translate(-2px, -2px);
	box-shadow: var(--fp-shadow);
}

/*
 * --- Bold-only label paragraphs (trust pages, the key feature) ---
 *
 * inc/labels.php classifies a paragraph consisting entirely of one <strong>
 * as `.fp-label` server-side (no :has() false positives). Rendered as a
 * visual heading: serif, larger, generous top margin, highlight dash.
 */

.post-entry .fp-label {
	margin: 2.4rem 0 0.85rem;
	font-family: var(--fp-font-heading);
	font-size: 1.35rem;
	line-height: 1.25;
}

.post-entry .fp-label > strong {
	font-weight: 700;
	display: inline-block;
}

.post-entry .fp-label::before {
	content: '';
	display: block;
	width: 2.2rem;
	height: 4px;
	margin-bottom: 0.55rem;
	background: var(--fp-highlight);
	border-radius: 2px;
}

.post-entry .fp-label:first-child {
	margin-top: 0;
}

/* Frame the content column itself (lesson learned: geometry by DOM). */
.post-entry {
	max-width: 100%;
	overflow-x: clip;
}
