/*
Theme Name:   Unchained Pulse
Theme URI:    https://theunchainedmind.co/
Description:  Blocksy child theme for The Unchained Mind. Direction "Pulse": bright, coral-to-magenta, product-forward. Adds SEO/GEO building blocks: updated-date byline, automatic table of contents, takeaways box, audio card, FAQ and disclosure patterns. Self-hosted fonts, no theme schema (Yoast owns it).
Author:       The Unchained Mind
Template:     blocksy
Version:      1.1.0
Requires at least: 6.6
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  unchained-pulse
*/

/* ---------- Fonts (self-hosted, variable, latin) ---------- */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	font-weight: 500 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ----------
   html:root outranks Blocksy's own :root palette, whatever the load order. */
html:root {
	--tum-ink: #16121c;
	--tum-ink-2: #3b3445;
	--tum-muted: #6f6779;
	--tum-line: #f0e6e6;
	--tum-bg: #ffffff;
	--tum-panel: #fff6f3;
	--tum-accent: #e2366f;
	--tum-accent-ink: #b8255c;
	--tum-accent-soft: #ffeaf0;
	--tum-gradient: linear-gradient(120deg, #ff7a59, #e2366f 60%, #b4237f);
	--tum-radius: 14px;
	--tum-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tum-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Blocksy palette: 1 accent, 2 accent hover, 3 text, 4 headings, 5 borders, 6 light bg, 7 alt bg, 8 base bg */
	--theme-palette-color-1: var(--tum-accent);
	--theme-palette-color-2: var(--tum-accent-ink);
	--theme-palette-color-3: var(--tum-ink-2);
	--theme-palette-color-4: var(--tum-ink);
	--theme-palette-color-5: var(--tum-line);
	--theme-palette-color-6: var(--tum-panel);
	--theme-palette-color-7: #fffafa;
	--theme-palette-color-8: var(--tum-bg);
	--theme-link-initial-color: var(--tum-accent-ink);
	--theme-link-hover-color: var(--tum-accent);
	--theme-button-background-initial-color: var(--tum-accent);
	--theme-button-background-hover-color: var(--tum-accent-ink);
	--theme-border-radius: var(--tum-radius);
	--theme-font-family: var(--tum-body);
	--theme-content-spacing: 1.4em;
}

html body {
	font-family: var(--tum-body);
	color: var(--tum-ink-2);
	background: var(--tum-bg);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

html body :is(h1, h2, h3, h4, .site-title, .entry-title, .page-title) {
	font-family: var(--tum-display);
	color: var(--tum-ink);
	letter-spacing: -0.015em;
}
html body .entry-header h1, html body .entry-content h1 { font-weight: 800; line-height: 1.12; font-size: clamp(30px, 4.4vw, 46px); }
html body .entry-card .entry-title { font-weight: 800; line-height: 1.25; font-size: clamp(19px, 1.6vw, 22px); }
html body .entry-content h2 { font-weight: 700; line-height: 1.25; font-size: clamp(23px, 2.6vw, 29px); margin-top: 2.2em; scroll-margin-top: 90px; }
html body .entry-content h3 { font-weight: 700; font-size: clamp(19px, 2vw, 22px); margin-top: 1.8em; }

.site-title a { font-weight: 800; letter-spacing: -0.02em; }
.site-title a::after { content: "."; color: var(--tum-accent); }

/* Buttons and links */
.entry-content a:not(.wp-block-button__link) { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wp-block-button__link, .ct-button, button[type="submit"] { border-radius: var(--tum-radius); font-weight: 700; }

/* Blocksy's own date/category line on single posts: the byline below replaces it
   (shows the *updated* date, which is what readers and search engines should see). */
[data-prefix="single_blog_post"] .entry-header .entry-meta { display: none; }

/* ---------- Byline (updated date, read time) ---------- */
.tum-byline { display: flex; gap: 12px; align-items: center; font-size: 15px; margin: 0 0 1.6em; }
.tum-byline__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tum-accent-soft); color: var(--tum-accent-ink); font-weight: 700; font-size: 14px; flex: none; }
.tum-byline__name { font-weight: 700; color: var(--tum-ink); display: block; }
.tum-byline__meta { color: var(--tum-muted); }

/* ---------- Table of contents (native details, no JS) ---------- */
.tum-toc { border: 1px solid var(--tum-line); border-radius: var(--tum-radius); padding: 14px 20px; margin: 0 0 2em; background: var(--tum-bg); }
.tum-toc summary { font-weight: 700; cursor: pointer; color: var(--tum-ink); }
.tum-toc ol { margin: 10px 0 0; padding-left: 22px; font-size: 15px; }
.tum-toc li { margin: 4px 0; }

/* ---------- Patterns ---------- */
.tum-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px !important; font-weight: 700; color: var(--tum-accent-ink); margin: 0 0 8px !important; }

.tum-takeaways { background: var(--tum-panel); border: 1px solid var(--tum-line); border-radius: var(--tum-radius); padding: 18px 22px !important; margin-block: 0 2em !important; }
.tum-takeaways ul { margin: 0; padding-left: 20px; }
.tum-takeaways li { margin: 4px 0; }

.tum-audio-card { background: var(--tum-gradient); color: #fff; border-radius: calc(var(--tum-radius) * 1.6); padding: 24px !important; margin-block: 2.2em !important; }
.tum-audio-card :is(h2, h3, p, .tum-label) { color: #fff; }
.tum-audio-card h3 { margin: 0 0 4px; font-size: 21px; }
.tum-audio-card .tum-label { color: #ffe3ea; }
.tum-audio-card .tum-audio-meta { color: #ffe0e8; font-size: 15px; margin: 0 0 12px; }
.tum-audio-card audio { width: 100%; margin: 6px 0 12px; }
.tum-audio-card .wp-block-button__link { background: #fff !important; color: var(--tum-accent-ink) !important; }
.tum-audio-card .is-style-outline .wp-block-button__link { background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px #fff; border: 0; }

.tum-callout { background: var(--tum-accent-soft); border-radius: var(--tum-radius); padding: 16px 20px !important; margin-block: 1.6em !important; color: var(--tum-ink); }

.tum-faq details { border-bottom: 1px solid var(--tum-line); padding: 12px 0; }
.tum-faq summary { font-weight: 700; cursor: pointer; font-size: 17px; color: var(--tum-ink); }
.tum-faq details > :not(summary) { margin: 8px 0 0; }

.tum-disclosure { font-size: 13px !important; color: var(--tum-muted); border-top: 1px solid var(--tum-line); padding-top: 14px; margin-top: 2.6em !important; }

/* ---------- Footer notice ---------- */
.tum-age-notice { text-align: center; font-size: 13px; color: var(--tum-muted); padding: 14px 20px 22px; }

@media (max-width: 689px) {
	html body { font-size: 16.5px; }
	.tum-audio-card { padding: 20px !important; }
}
