/**
 * Sovereign Terminal — main.css
 *
 * Sticker-pop finance. A paper ground, three loud inks — cobalt, sun and
 * tomato, with pink as the fourth — and black for type, outlines and the hard
 * offset shadows that make a sticker look stuck on. Headlines are Bricolage
 * Grotesque at weight 800 squeezed to 75% width; Permanent Marker writes on
 * the stickers and nowhere else.
 *
 *    1. Tokens
 *    2. Reset & base
 *    3. Primitives — stickers, buttons, pills, tags, doodles
 *    4. Header & navigation
 *    5. Hero
 *    6. Market pulse
 *    7. Bands, desks & section heads
 *    8. Cards & section layouts
 *    9. Quotes
 *   10. Single post, pages & archives
 *   11. Sidebar widgets
 *   12. Forms (Contact Form 7)
 *   13. Newsletter band & modal
 *   14. Footer
 *   15. Trading day
 *   16. Century of decades
 *   17. Compound Interest Playground
 *   18. Utilities & motion
 */

/* ═══ 1. Tokens ═══════════════════════════════════════════════════════════ */
:root {
	--paper: #fdf9f0;
	--card: #ffffff;
	--ink: #0f0f12;
	--ink-2: #3b3a40;
	--ink-3: #6c6a72;
	--line: #e7dfcc;

	--blue: #1f45e6;
	--blue-deep: #1536bd;
	--sun: #ffc81e;
	--tomato: #ef3c14;
	--pink: #ff9ec4;
	--green: #12985a;

	--blue-tint: #e6ebff;
	--sun-tint: #fff1c4;
	--tomato-tint: #ffe2d8;
	--pink-tint: #ffe6f0;

	--display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hand: "Permanent Marker", "Comic Sans MS", cursive;

	--r-s: 12px;
	--r-m: 20px;
	--r-l: 32px;
	--pill: 999px;

	--stroke: 2.5px;
	--hard: 4px 4px 0 var(--ink);
	--hard-lg: 8px 8px 0 var(--ink);

	--max: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--band-y: clamp(52px, 7vw, 96px);

	--logo-h: 40px;
}

/* ═══ 2. Reset & base ═════════════════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
	/* Locking the body for the drawer or modal must not shift the page. */
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	border-radius: 6px;
}

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

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: .75rem 1.25rem;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	border-radius: var(--pill);
}

.skip-link:focus { top: 16px; }

.site-main { display: block; }

/* Components set their own display; the attribute must still win. */
[hidden] { display: none !important; }

/* ═══ 3. Primitives ═══════════════════════════════════════════════════════ */

/* The display voice: weight 800, 75% width, capitals. */
.display,
.hero__title,
.band__title,
.tday__title,
.century__title,
.related__title,
.page-title,
.entry-title,
.feature__title,
.desk__name,
.pulse__title,
.cta-band__title,
.st-modal__title,
.tool-hero__title,
.playground__heading,
.widget-card__title,
.footer-col__heading {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-variation-settings: "opsz" 96;
	text-transform: uppercase;
	letter-spacing: -.005em;
	line-height: .94;
}

/* Stickers: hand-lettered, outlined, tilted, stuck on with a hard shadow. */
.sticker {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	width: max-content;
	max-width: 100%;
	padding: .3em .85em .25em;
	font-family: var(--hand);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: .01em;
	color: var(--ink);
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--pill);
	box-shadow: 3px 3px 0 var(--ink);
	transform: rotate(-4deg);
}

.sticker svg { width: 1em; height: 1em; }

.sticker--blue { background: var(--blue); color: #fff; }
.sticker--sun { background: var(--sun); }
.sticker--tomato { background: var(--tomato); color: #fff; }
.sticker--pink { background: var(--pink); }
.sticker--ink { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--sun); }
.sticker--paper { background: var(--card); }

/* Buttons: a pill with a round arrow badge at the end. */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .85rem;
	min-height: 52px;
	padding: .35rem .4rem .35rem 1.4rem;
	font-family: var(--body);
	font-size: .9rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1;
	border: var(--stroke) solid var(--ink);
	border-radius: var(--pill);
	box-shadow: var(--hard);
	transition: transform .15s ease, box-shadow .15s ease;
	white-space: nowrap;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--blue { background: var(--blue); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--small { min-height: 44px; font-size: .8rem; padding-left: 1.1rem; }
.btn--block { width: 100%; justify-content: space-between; }

.btn__circle {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	border: 2px solid var(--ink);
}

.btn--small .btn__circle { width: 32px; height: 32px; }
.btn__circle--sun { background: var(--sun); }
.btn__circle svg { width: 18px; height: 18px; }

.arrow-icon {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The quieter link: underlined pill text with an arrow. */
.pill-link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem 1rem;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--blue);
	border: 2px solid currentColor;
	border-radius: var(--pill);
	background: transparent;
	transition: background .15s ease, color .15s ease;
}

.pill-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pill-link--ink { color: var(--ink); }
.pill-link--ink:hover { background: var(--ink); border-color: var(--ink); }

.round-btn {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	border: var(--stroke) solid var(--ink);
	transition: transform .2s ease;
}

.round-btn:hover { transform: rotate(-45deg); }

/* The desk tag on every card. */
.tag {
	display: inline-block;
	padding: .28em .75em .24em;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: var(--pill);
}

a.tag:hover { background: var(--sun); }

.doodle { pointer-events: none; }

/* ═══ 4. Header & navigation ══════════════════════════════════════════════ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 14px var(--gutter);
	background: rgba(253, 249, 240, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: padding .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
	padding-top: 8px;
	padding-bottom: 8px;
	box-shadow: 0 2px 0 var(--ink);
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

.masthead {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: var(--max);
	margin: 0 auto;
}

.masthead__brand { flex: none; }

.custom-logo-link { display: block; }

.custom-logo {
	width: auto;
	max-width: min(260px, 52vw);
	max-height: var(--logo-h);
	object-fit: contain;
}

.site-logo {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 1.9rem;
	line-height: 1;
	text-transform: uppercase;
}

.masthead__nav { flex: 1; display: flex; justify-content: center; min-width: 0; }

.nav-primary .nav-list {
	display: flex;
	/* Never a second row: when the desks stop fitting, main.js switches the
	   masthead to the burger instead (.is-compact). */
	flex-wrap: nowrap;
	justify-content: center;
	gap: .25rem;
}

.nav-primary .nav-list > li { position: relative; }

.nav-primary .nav-list a {
	display: block;
	padding: .5rem .8rem;
	font-size: .8rem;
	white-space: nowrap;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	border-radius: var(--pill);
	transition: background .15s ease;
}

.nav-primary .nav-list a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current-menu-parent > a {
	background: var(--sun);
}

/* One level of drop-down. */
.nav-primary .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	padding: .5rem;
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-m);
	box-shadow: var(--hard);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.masthead__cta { flex: none; }

.menu-toggle {
	display: none;
	flex: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 48px;
	height: 48px;
	margin-left: auto;
	padding: 0 12px;
	background: var(--sun);
	border: var(--stroke) solid var(--ink);
	border-radius: 50%;
	box-shadow: 3px 3px 0 var(--ink);
}

.menu-toggle span {
	display: block;
	height: 2.5px;
	background: var(--ink);
	border-radius: 2px;
}

.menu-toggle span:nth-child(2) { width: 70%; }

/* Drawer */
.nav-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 300;
	display: flex;
	flex-direction: column;
	width: min(400px, 100%);
	padding: 18px 22px 26px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--paper);
	border-left: var(--stroke) solid var(--ink);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
}

.nav-drawer.is-open { transform: none; visibility: visible; }

.nav-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 18px;
	border-bottom: 2px dashed var(--line);
}

.nav-drawer__brand .custom-logo { max-height: 34px; max-width: 220px; }

.nav-close {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	padding: 0;
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: 50%;
}

.nav-close svg,
.st-modal__close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
}

.nav-drawer__nav { padding: 18px 0; }

.nav-drawer__nav .nav-list > li + li { margin-top: 10px; }

.nav-drawer__nav .nav-list > li > a {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: .6rem 1.1rem;
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 1.6rem;
	line-height: 1;
	text-transform: uppercase;
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-m);
	background: var(--card);
}

.nav-drawer__nav .nav-list > li:nth-child(4n+1) > a { background: var(--blue); color: #fff; }
.nav-drawer__nav .nav-list > li:nth-child(4n+2) > a { background: var(--sun); }
.nav-drawer__nav .nav-list > li:nth-child(4n+3) > a { background: var(--tomato); color: #fff; }
.nav-drawer__nav .nav-list > li:nth-child(4n+4) > a { background: var(--pink); }

.nav-drawer__nav .sub-menu { padding: 8px 0 0 18px; }
.nav-drawer__nav .sub-menu a { display: block; padding: .45rem 0; font-weight: 700; }

.nav-drawer__foot { margin-top: auto; padding-top: 12px; }

.nav-drawer__pitch {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-bottom: 14px;
	font-weight: 600;
	color: var(--ink-2);
}

.nav-drawer__spark { flex: none; width: 26px; color: var(--sun); }

.nav-scrim {
	position: fixed;
	inset: 0;
	z-index: 250;
	background: rgba(15, 15, 18, .45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s;
}

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

/* Compact masthead: the desks move into the drawer, the subscribe button
   stays beside the burger. Set by main.js whenever the desks no longer fit
   on one row; the media query is the fallback before the script runs. */
.site-header.is-compact .masthead__nav { display: none; }
.site-header.is-compact .masthead__cta { margin-left: auto; }
.site-header.is-compact .menu-toggle { display: flex; margin-left: 0; }

@media (max-width: 1080px) {
	.masthead__nav { display: none; }
	.masthead__cta { margin-left: auto; }
	.menu-toggle { display: flex; margin-left: 0; }
}

/* On a phone the burger alone; the drawer carries the subscribe button. */
@media (max-width: 640px) {
	.masthead__cta { display: none !important; }
	.menu-toggle { margin-left: auto; }
}

/* ═══ 5. Hero ═════════════════════════════════════════════════════════════ */
.hero {
	padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(36px, 5vw, 64px);
	overflow: hidden;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	align-items: center;
	gap: clamp(28px, 4vw, 64px);
	max-width: var(--max);
	margin: 0 auto;
}

.hero__copy { position: relative; }

.hero__hello { margin-bottom: 1.4rem; font-size: 1.15rem; }

.hero__burst {
	position: absolute;
	top: -14px;
	left: 230px;
	width: 44px;
	color: var(--ink);
}

.hero__title {
	font-size: clamp(2.7rem, 6.4vw, 5.6rem);
	text-wrap: balance;
}

.lead--medium .hero__title { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
.lead--long .hero__title { font-size: clamp(2.1rem, 4.2vw, 3.7rem); }

.hero__title a {
	background-image: linear-gradient(var(--sun), var(--sun));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 0 .22em;
	transition: background-size .35s ease;
}

.hero__title a:hover { background-size: 100% .22em; }

.hero__excerpt {
	max-width: 34em;
	margin-top: 1.4rem;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	color: var(--ink-2);
}

.hero__actions {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 1.4rem;
	margin-top: 2rem;
}

.hero__readtime {
	font-family: var(--hand);
	font-size: 1.05rem;
	color: var(--ink-2);
}

.hero__curl { width: 70px; color: var(--ink); transform: rotate(-8deg); }

.hero__art {
	position: relative;
	aspect-ratio: 1 / 1.02;
	max-width: 580px;
	width: 100%;
	justify-self: center;
}

.hero__blob {
	position: absolute;
	inset: 2% 0 0 6%;
	background: var(--blue);
	border-radius: 58% 42% 55% 45% / 46% 52% 48% 54%;
}

.hero__blob--sun {
	inset: auto -8% -2% auto;
	width: 34%;
	height: 34%;
	background: var(--sun);
	border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
}

.hero__photo {
	position: absolute;
	inset: 9% 7% 7% 13%;
	overflow: hidden;
	border: 4px solid var(--ink);
	border-radius: 46% 54% 44% 56% / 52% 44% 56% 48%;
	background: var(--card);
}

.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.hero__photo:hover img { transform: scale(1.04); }

.hero__stack {
	position: absolute;
	top: 2%;
	right: -2%;
	display: grid;
	justify-items: end;
	gap: 6px;
	transform: rotate(-7deg);
}

.hero__stack li {
	padding: .2em .7em .15em;
	font-family: var(--hand);
	font-size: clamp(.95rem, 1.5vw, 1.2rem);
	color: #fff;
	background: var(--tomato);
	border: var(--stroke) solid var(--ink);
	border-radius: 10px;
	box-shadow: 3px 3px 0 var(--ink);
}

.hero__stamp {
	position: absolute;
	left: -2%;
	bottom: 8%;
	display: grid;
	gap: .35rem;
	justify-items: start;
	padding: .8rem 1rem;
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-m);
	box-shadow: var(--hard);
	transform: rotate(3deg);
}

.hero__stamp time {
	font-family: var(--hand);
	font-size: 1rem;
	line-height: 1.1;
}

.hero__spark { position: absolute; top: 30%; left: -4%; width: 38px; color: var(--tomato); }
.hero__bolt { position: absolute; bottom: 26%; right: -5%; width: 40px; color: var(--sun); stroke: var(--ink); }
.hero__eyes { position: absolute; top: 38%; right: -3%; width: 64px; color: var(--ink); stroke: var(--ink); }
.hero__squiggle { position: absolute; bottom: -1%; left: 30%; width: 110px; color: var(--ink); }

/* ═══ 6. Market pulse ═════════════════════════════════════════════════════ */
.pulse-wrap { padding: 0 var(--gutter); }

.pulse {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .8fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(22px, 3vw, 36px);
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-l);
	box-shadow: var(--hard-lg);
}

.pulse__intro { display: grid; gap: .9rem; justify-items: start; }

.pulse__badge {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	background: var(--blue);
	color: #fff;
	border: var(--stroke) solid var(--ink);
	border-radius: 18px;
	transform: rotate(-6deg);
}

.pulse__badge svg { width: 30px; }

.pulse__title { font-size: clamp(2rem, 3.4vw, 2.8rem); }

.pulse__text { color: var(--ink-2); font-size: 1rem; }

.pulse__figures {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 22px;
	padding: 0 clamp(0px, 2vw, 28px);
	border-left: 2px dashed var(--line);
	border-right: 2px dashed var(--line);
}

.pulse-fig {
	display: grid;
	grid-template-columns: 46px 1fr;
	column-gap: 12px;
	align-items: center;
}

.pulse-fig__icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid var(--ink);
}

.pulse-fig__icon svg { width: 24px; }
.pulse-fig__icon--blue { background: var(--blue); color: #fff; }
.pulse-fig__icon--tomato { background: var(--tomato); color: #fff; }
.pulse-fig__icon--sun { background: var(--sun); }
.pulse-fig__icon--pink { background: var(--pink); }

.pulse-fig__value {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: clamp(1.7rem, 2.6vw, 2.2rem);
	line-height: 1;
}

.pulse-fig__value--pos { color: var(--green); }
.pulse-fig__value--neg { color: var(--tomato); }

.pulse-fig__label {
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink-3);
}

.pulse__note {
	position: relative;
	padding: 1.3rem 1.2rem 1.1rem;
	background: var(--sun-tint);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-m);
	transform: rotate(2.5deg);
}

.pulse__coffee {
	position: absolute;
	top: -26px;
	right: 14px;
	width: 50px;
	padding: 6px;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 50%;
}

.pulse__note blockquote p {
	font-family: var(--hand);
	font-size: 1.25rem;
	line-height: 1.25;
}

.pulse__note figcaption {
	margin-top: .6rem;
	font-size: .78rem;
	font-weight: 700;
	color: var(--ink-3);
}

.pulse__squiggle { width: 70px; margin-top: .4rem; color: var(--tomato); }

/* ═══ 7. Bands, desks & section heads ═════════════════════════════════════ */
.band { padding: var(--band-y) var(--gutter); }

/* Two bands meeting share one gap rather than stacking two. */
.band + .band { padding-top: 0; }

.band__inner { max-width: var(--max); margin: 0 auto; }

.band--tinted .band__inner {
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--r-l);
	background: var(--blue-tint);
}

.band--tinted-sun .band__inner { background: var(--sun-tint); }
.band--tinted-tomato .band__inner { background: var(--tomato-tint); }
.band--tinted-pink .band__inner { background: var(--pink-tint); }

.band--hero { padding-top: clamp(28px, 4vw, 56px); }

.band__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	margin-bottom: clamp(24px, 3vw, 40px);
}

.band__title,
.tday__title,
.century__title,
.related__title {
	position: relative;
	display: inline-block;
	padding-bottom: .3em;
	font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

.band__underline {
	position: absolute;
	left: 0;
	bottom: -.12em;
	width: min(100%, 260px);
	height: .4em;
	color: var(--blue);
}

.band__title--sun .band__underline { color: var(--sun); }
.band__title--tomato .band__underline { color: var(--tomato); }
.band__title--pink .band__underline { color: var(--pink); }

.band__title a:hover { color: var(--blue); }

/* Desk cards */
.desks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
}

.desk {
	display: flex;
	flex-direction: column;
	gap: .9rem;
	min-height: 250px;
	padding: 22px;
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-m);
	background: var(--blue);
	color: #fff;
}

.desk--sun { background: var(--sun); color: var(--ink); }
.desk--tomato { background: var(--tomato); color: #fff; }
.desk--pink { background: var(--pink); color: var(--ink); }

.desk__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	background: var(--card);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 16px;
	transform: rotate(-6deg);
}

.desk__icon svg { width: 30px; }

.desk__name { font-size: clamp(1.9rem, 2.6vw, 2.3rem); }

.desk__latest {
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.desk__latest a:hover { text-decoration: underline; text-underline-offset: 3px; }

.desk__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
}

.desk__count { font-family: var(--hand); font-size: 1rem; }

/* ═══ 8. Cards & section layouts ══════════════════════════════════════════ */
.grid { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; gap: 1rem; }

.card__media {
	display: block;
	padding: 10px;
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-m);
	background: var(--blue);
	transition: transform .2s ease, box-shadow .2s ease;
}

.card--sun .card__media { background: var(--sun); }
.card--tomato .card__media { background: var(--tomato); }
.card--pink .card__media { background: var(--pink); }

.card:hover .card__media { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: var(--hard); }

.card__media img,
.card__placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
	background: var(--card);
}

.card__placeholder {
	display: grid;
	place-items: center;
	color: var(--ink);
}

.card__placeholder svg { width: 25%; }

.card__body { display: grid; gap: .6rem; }

.card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem .8rem;
}

.card__date {
	font-size: .8rem;
	font-weight: 600;
	color: var(--ink-3);
}

.card__title {
	font-size: clamp(1.12rem, 1.5vw, 1.3rem);
	font-weight: 750;
	line-height: 1.22;
	letter-spacing: -.01em;
	text-wrap: pretty;
}

.card__title a {
	background-image: linear-gradient(var(--sun), var(--sun));
	background-repeat: no-repeat;
	background-position: 0 92%;
	background-size: 0 .35em;
	transition: background-size .3s ease;
}

.card__title a:hover { background-size: 100% .35em; }

.card__excerpt { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }

/* Spotlight */
.spotlight {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 36px);
	align-items: start;
}

.feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(18px, 2.6vw, 30px);
	align-items: center;
	padding: clamp(14px, 2vw, 20px);
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-l);
	box-shadow: var(--hard-lg);
}

.feature__media {
	display: block;
	overflow: hidden;
	border: var(--stroke) solid var(--ink);
	border-radius: 24px 60px 24px 60px;
	background: var(--blue);
}

.feature__media img,
.feature__media .card__placeholder {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 0;
}

.feature__body { display: grid; gap: 1rem; justify-items: start; padding-right: clamp(0px, 1vw, 12px); }

.feature__title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); text-wrap: balance; }

.feature__title a:hover { color: var(--blue); }

.feature__excerpt { font-size: .98rem; color: var(--ink-2); }

.rail { display: grid; gap: 14px; }

.rowcard {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-m);
	transition: transform .2s ease, box-shadow .2s ease;
}

.rowcard:hover { transform: translate(-2px, -2px); box-shadow: var(--hard); }

.rowcard__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: 14px;
	background: var(--sun);
	border: 2px solid var(--ink);
}

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

.rowcard__body { display: grid; gap: .35rem; }

.rowcard__title {
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rowcard__title a:hover { color: var(--blue); }

/* ═══ 9. Quotes ═══════════════════════════════════════════════════════════ */
.quotes { padding: clamp(20px, 3vw, 36px) var(--gutter); overflow-x: clip; }

.quotes__inner {
	position: relative;
	max-width: calc(var(--max) + 80px);
	margin: 0 auto;
	padding: clamp(48px, 5vw, 64px) clamp(22px, 4vw, 56px) clamp(32px, 4vw, 48px);
	background: var(--blue);
	color: #fff;
	border: var(--stroke) solid var(--ink);
	border-radius: 48px 28px 52px 30px;
	transform: rotate(-1deg);
}

.quotes__label {
	position: absolute;
	top: -22px;
	left: clamp(20px, 4vw, 56px);
	margin: 0;
	font-size: 1.15rem;
}

.quotes__label svg { color: var(--sun); }

.quotes__list {
	display: grid;
	grid-template-columns: 1fr 70px 1fr 70px 1fr;
	align-items: center;
	gap: 12px;
	transform: rotate(1deg);
}

.quote blockquote p {
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	font-weight: 600;
	line-height: 1.4;
}

.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }

.quote figcaption {
	margin-top: .8rem;
	font-family: var(--hand);
	font-size: 1.05rem;
	color: var(--sun);
}

.quotes__curl { width: 64px; color: var(--sun); }

.quotes__smile {
	position: absolute;
	right: -16px;
	bottom: -22px;
	width: 64px;
	color: var(--sun);
	transform: rotate(12deg);
}

/* ═══ 10. Single post, pages & archives ═══════════════════════════════════ */
.content-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(32px, 4vw, 64px);
	align-items: start;
}

.entry-header { margin-bottom: clamp(24px, 3vw, 36px); }

.entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .6rem;
	margin-bottom: 1.3rem;
}

.entry-meta .sticker { font-size: .92rem; }
.entry-meta .sticker:nth-child(3) { transform: rotate(3deg); }

.entry-title { font-size: clamp(2.3rem, 5vw, 4.2rem); text-wrap: balance; }

.lead--medium .entry-title { font-size: clamp(2.1rem, 4.3vw, 3.6rem); }
.lead--long .entry-title { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.entry-media {
	margin: 0 0 clamp(28px, 3.5vw, 44px);
	padding: 12px;
	background: var(--blue);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-l);
	box-shadow: var(--hard-lg);
}

.entry-media img {
	width: 100%;
	max-height: 620px;
	object-fit: cover;
	border-radius: 22px;
}

.entry-content {
	max-width: 70ch;
	font-size: 1.12rem;
	line-height: 1.75;
	color: var(--ink-2);
}

.entry-content > * + * { margin-top: 1.25em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.8em;
	color: var(--ink);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
}

.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content h4 { font-size: 1.15rem; }

.entry-content a {
	color: var(--blue);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.entry-content a:hover { background: var(--sun-tint); }

.entry-content strong { color: var(--ink); }

.entry-content ul,
.entry-content ol { padding-left: 1.4em; }

.entry-content ul { list-style: none; }

.entry-content ul > li { position: relative; }

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.15em;
	top: .62em;
	width: .5em;
	height: .5em;
	border-radius: 50%;
	background: var(--tomato);
	border: 1.5px solid var(--ink);
}

.entry-content ol { list-style: decimal; }
.entry-content ol > li::marker { font-weight: 800; color: var(--blue); }

.entry-content li + li { margin-top: .5em; }

.entry-content blockquote {
	position: relative;
	padding: 1.4em 1.6em;
	background: var(--sun-tint);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-m);
	color: var(--ink);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.5;
}

.entry-content blockquote p + p { margin-top: .8em; }
.entry-content blockquote cite { display: block; margin-top: .6em; font-family: var(--hand); font-style: normal; font-size: 1rem; }

.entry-content figure img,
.entry-content .wp-block-image img,
.entry-content p > img {
	border-radius: var(--r-m);
	border: var(--stroke) solid var(--ink);
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: .6em;
	font-size: .88rem;
	color: var(--ink-3);
}

.entry-content .wp-caption { max-width: 100%; }

.entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: .95rem;
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-s);
	overflow: hidden;
	display: block;
	overflow-x: auto;
}

.entry-content th,
.entry-content td { padding: .7em .9em; text-align: left; border-bottom: 1px solid var(--line); }

.entry-content th { background: var(--sun); color: var(--ink); font-weight: 800; }

.entry-content hr { border: 0; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M0 6c7.5-6 7.5 6 15 0s7.5 6 15 0 7.5 6 15 0 7.5 6 15 0' fill='none' stroke='%23ef3c14' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x center / 60px 12px; }

.entry-content iframe,
.entry-content embed,
.entry-content video { max-width: 100%; }

.entry-content .alignleft { float: left; margin: .4em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.4em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

.entry-content--intro { margin-bottom: 2.5rem; }

/* Share */
.share-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: 2.6rem;
	padding-top: 1.6rem;
	border-top: 2px dashed var(--line);
}

.share-row__label { margin-right: .4rem; font-family: var(--hand); font-size: 1.15rem; }

.share-row__link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: var(--stroke) solid var(--ink);
	border-radius: 50%;
	background: var(--card);
	transition: transform .15s ease, background .15s ease;
}

.share-row__link:nth-of-type(1):hover { background: var(--blue); color: #fff; }
.share-row__link:nth-of-type(2):hover { background: var(--sun); }
.share-row__link:nth-of-type(3):hover { background: var(--tomato); color: #fff; }
.share-row__link:nth-of-type(4):hover { background: var(--pink); }
.share-row__link:hover { transform: rotate(-8deg); }

.share-row__link svg { width: 18px; height: 18px; fill: currentColor; }

/* Previous / next */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 2.4rem;
}

.post-nav__item {
	display: grid;
	gap: .4rem;
	align-content: start;
	padding: 1.2rem 1.3rem;
	background: var(--blue);
	color: #fff;
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-m);
}

.post-nav__item--next { background: var(--sun); color: var(--ink); text-align: right; grid-column: 2; }

.post-nav__label { font-family: var(--hand); font-size: 1rem; }

.post-nav__title { font-weight: 750; line-height: 1.3; }

.post-nav__title::after { content: ""; position: absolute; inset: 0; }

.post-nav__item { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.post-nav__item:hover { transform: translate(-2px, -2px); box-shadow: var(--hard); }

/* Related */
.related { margin-top: clamp(48px, 6vw, 72px); }
.related__title { margin-bottom: 1.8rem; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

/* Page heads */
.page-header {
	display: grid;
	justify-items: start;
	gap: 1rem;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.page-header__sticker { font-size: 1.05rem; }

.page-title { font-size: clamp(2.6rem, 6vw, 4.8rem); text-wrap: balance; }

.page-article .page-title { font-size: clamp(2.4rem, 5vw, 4rem); }

.page-article { max-width: 860px; margin: 0 auto; }

.archive-description { max-width: 60ch; font-size: 1.1rem; color: var(--ink-2); }

.archive-list { min-width: 0; }

.page-actions { margin-top: 2.6rem; }

.no-results {
	padding: 2rem;
	background: var(--card);
	border: var(--stroke) dashed var(--ink);
	border-radius: var(--r-m);
	font-weight: 600;
}

/* Pagination */
.pagination { margin-top: 3rem; }

.pagination .nav-links,
nav.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
}

.pagination .page-numbers,
.pagination .post-page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 1rem;
	font-weight: 800;
	border: var(--stroke) solid var(--ink);
	border-radius: var(--pill);
	background: var(--card);
}

.pagination .page-numbers.current,
.pagination .post-page-numbers.current { background: var(--ink); color: #fff; }

.pagination a.page-numbers:hover,
.pagination a.post-page-numbers:hover { background: var(--sun); }

.pagination .dots { border: 0; background: none; }

/* Tool hero (Playground page) */
.tool-hero {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 1.2rem;
	max-width: 900px;
	margin: 0 auto clamp(32px, 5vw, 56px);
	text-align: center;
}

.tool-hero__sticker { font-size: 1.15rem; }

.tool-hero__title { font-size: clamp(2.8rem, 7.5vw, 6rem); text-wrap: balance; }

.tool-hero__lede { max-width: 40em; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); }

.tool-hero__doodle { position: absolute; }
.tool-hero__doodle--spark { top: 0; left: 4%; width: 44px; color: var(--sun); }
.tool-hero__doodle--bolt { top: 18%; right: 2%; width: 44px; color: var(--tomato); }
.tool-hero__doodle--curl { bottom: -8%; left: 8%; width: 90px; color: var(--blue); }
.tool-hero__doodle--coin { bottom: 4%; right: 10%; width: 50px; color: var(--ink); }

/* ═══ 11. Sidebar widgets ═════════════════════════════════════════════════ */
.sidebar {
	display: grid;
	gap: 30px;
	padding-top: 14px;
}

/* The rail is too narrow for the email field and button side by side. */
.sidebar .st-form__row { flex-direction: column; align-items: stretch; }
.sidebar .st-form .wpcf7-submit { width: 100%; }

.widget-card {
	position: relative;
	display: grid;
	gap: .9rem;
	padding: 24px 22px;
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-l);
	background: var(--card);
	box-shadow: var(--hard);
}

.widget-card--sun { background: var(--sun); }
.widget-card--blue { background: var(--blue); color: #fff; }

.widget-card__icon {
	position: absolute;
	top: -20px;
	right: 18px;
	width: 50px;
	padding: 8px;
	background: var(--card);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 50%;
	transform: rotate(10deg);
}

.widget-card__title { font-size: 2rem; padding-right: 40px; }

.widget-card__text { font-size: .95rem; line-height: 1.5; }

.widget-card--sun .widget-card__text { color: var(--ink-2); }

.cat-list { display: grid; gap: 8px; }

.cat-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .65rem .65rem .65rem 1.1rem;
	font-weight: 800;
	border: 2px solid var(--ink);
	border-radius: var(--pill);
	background: var(--blue);
	color: #fff;
	transition: transform .15s ease;
}

.cat-pill--sun { background: var(--sun); color: var(--ink); }
.cat-pill--tomato { background: var(--tomato); color: #fff; }
.cat-pill--pink { background: var(--pink); color: var(--ink); }

.cat-pill:hover { transform: translateX(4px); }

.cat-pill__count {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 30px;
	padding: 0 .5rem;
	font-size: .8rem;
	background: var(--card);
	color: var(--ink);
	border-radius: var(--pill);
}

/* Rule of 72 */
.rule72__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 800;
	font-size: .85rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.rule72__rate {
	padding: .1em .6em;
	font-size: 1.1rem;
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: var(--pill);
}

.rule72__answer {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	flex-wrap: wrap;
}

.rule72__answer strong {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 3.6rem;
	line-height: .9;
}

.rule72__answer span { font-family: var(--hand); font-size: 1.15rem; }

.rule72__stacks {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 96px;
	padding: 0 4px;
	border-bottom: 2.5px solid var(--ink);
}

.rule72__stack {
	position: relative;
	flex: 1;
	height: var(--h);
	min-height: 10px;
	background: repeating-linear-gradient(0deg, var(--card) 0 6px, var(--ink) 6px 8px);
	border: 2px solid var(--ink);
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	transition: height .3s ease;
}

.rule72__stack i {
	position: absolute;
	bottom: calc(100% + 4px);
	left: 50%;
	transform: translateX(-50%);
	font-size: .62rem;
	font-weight: 800;
	font-style: normal;
	white-space: nowrap;
}

.rule72__foot { font-size: .88rem; font-weight: 600; color: var(--ink-2); }

.rule72 .pill-link { justify-self: start; }

/* Range inputs share one skin. */
input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	--fill: 50%;
}

input[type="range"]::-webkit-slider-runnable-track {
	height: 12px;
	border: 2px solid var(--ink);
	border-radius: var(--pill);
	background: linear-gradient(90deg, var(--ink) var(--fill), var(--card) var(--fill));
}

input[type="range"]::-moz-range-track {
	height: 8px;
	border: 2px solid var(--ink);
	border-radius: var(--pill);
	background: var(--card);
}

input[type="range"]::-moz-range-progress {
	height: 8px;
	border-radius: var(--pill);
	background: var(--ink);
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 26px;
	height: 26px;
	margin-top: -9px;
	border: 2.5px solid var(--ink);
	border-radius: 50%;
	background: var(--tomato);
	box-shadow: 2px 2px 0 var(--ink);
	cursor: grab;
}

input[type="range"]::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border: 2.5px solid var(--ink);
	border-radius: 50%;
	background: var(--tomato);
	box-shadow: 2px 2px 0 var(--ink);
	cursor: grab;
}

/* ═══ 12. Forms (Contact Form 7) ══════════════════════════════════════════ */
.st-form { display: grid; gap: .9rem; }

.st-form .wpcf7 { margin: 0; }

.st-form .hidden-fields-container { display: none; }

.st-form .wpcf7-form { display: grid; gap: .9rem; }

.st-form__row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.st-form__field { flex: 1; min-width: 0; display: block; }

.st-form .wpcf7-form-control-wrap { position: relative; display: block; }

.st-form input[type="email"],
.st-form input[type="text"] {
	width: 100%;
	height: 56px;
	padding: 0 1.2rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--ink);
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--pill);
	outline: none;
	transition: box-shadow .15s ease;
}

.st-form input[type="email"]::placeholder { color: var(--ink-3); font-weight: 500; }

.st-form input[type="email"]:focus { box-shadow: 0 0 0 4px var(--sun); }

.st-form .wpcf7-submit {
	flex: none;
	height: 56px;
	padding: 0 1.5rem;
	font-size: .9rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--blue);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--pill);
	box-shadow: var(--hard);
	transition: transform .15s ease, box-shadow .15s ease;
}

.st-form .wpcf7-submit:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.st-form .wpcf7-submit:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.st-form .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.st-form--dark .wpcf7-submit { background: var(--sun); color: var(--ink); }

/* The consent checkbox, drawn as a sticker-style tick box. */
.st-form__consent { font-size: .8rem; line-height: 1.45; }

.st-form .wpcf7-list-item { display: block; margin: 0; }

.st-form .wpcf7-acceptance label {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 10px;
	align-items: start;
	cursor: pointer;
}

.st-form .wpcf7-acceptance input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin: 0;
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 7px;
	cursor: pointer;
}

.st-form .wpcf7-acceptance input[type="checkbox"]::after {
	content: "";
	width: 6px;
	height: 11px;
	margin-top: -3px;
	border: solid var(--ink);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .12s ease;
}

.st-form .wpcf7-acceptance input[type="checkbox"]:checked { background: var(--sun); }
.st-form .wpcf7-acceptance input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }

.st-form .wpcf7-list-item-label a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.st-form--dark .st-form__consent,
.st-form--dark .wpcf7-list-item-label { color: rgba(255, 255, 255, .92); }

/* Validation: the tip hangs under its field as a small tomato sticker. */
.st-form .wpcf7-not-valid-tip {
	display: inline-block;
	margin-top: 8px;
	padding: .3em .8em;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	background: var(--tomato);
	border: 2px solid var(--ink);
	border-radius: var(--pill);
	transform: rotate(-1.5deg);
}

.st-form input.wpcf7-not-valid { border-color: var(--tomato); box-shadow: 0 0 0 3px var(--tomato-tint); }

.st-form .wpcf7-not-valid .wpcf7-acceptance input[type="checkbox"],
.st-form .wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"] { border-color: var(--tomato); box-shadow: 0 0 0 3px var(--tomato-tint); }

/* The response line: hidden until the form has something to say. */
.st-form .wpcf7-response-output {
	margin: 0;
	padding: .8rem 1rem;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ink);
	background: var(--sun-tint);
	border: 2px solid var(--ink);
	border-radius: var(--r-s);
}

.st-form form.init .wpcf7-response-output,
.st-form form.resetting .wpcf7-response-output,
.st-form form.submitting .wpcf7-response-output { display: none; }

.st-form form.invalid .wpcf7-response-output,
.st-form form.unaccepted .wpcf7-response-output,
.st-form form.payment-required .wpcf7-response-output { background: var(--sun-tint); }

.st-form form.failed .wpcf7-response-output,
.st-form form.aborted .wpcf7-response-output,
.st-form form.spam .wpcf7-response-output { background: var(--tomato); color: #fff; }

.st-form form.sent .wpcf7-response-output {
	position: relative;
	padding: 1rem 1rem 1rem 3.2rem;
	background: #d9f5e6;
	font-size: 1rem;
}

.st-form form.sent .wpcf7-response-output::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border-radius: 50%;
	background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
	border: 2px solid var(--ink);
}

/* Once sent, the fields step aside and the confirmation takes their place. */
.st-form form.sent .st-form__row,
.st-form form.sent .st-form__consent { display: none; }

.st-form .st-form__submit-wrap { position: relative; flex: none; }

/* No spinner: while the form sends, the button itself fades and stops
   taking clicks, which is all the feedback a one-field form needs. */
.st-form .wpcf7-spinner { display: none !important; }

.st-form form.submitting .wpcf7-submit {
	opacity: .6;
	cursor: wait;
	pointer-events: none;
	transform: none;
	box-shadow: 2px 2px 0 var(--ink);
}

/* The reCAPTCHA v3 badge is hidden; Google's terms then require the notice
   that st_newsletter_form() prints under each form instead. */
.grecaptcha-badge { visibility: hidden !important; }

/* One running sentence, not the stacked lines of the company block. */
.st-form .st-form__recaptcha { display: block; white-space: normal; }
.st-form__recaptcha a { text-decoration: underline; text-underline-offset: 2px; }

.st-form .wpcf7 [inert] { opacity: .6; }

.st-form__legal {
	display: grid;
	gap: .1rem;
	font-size: .72rem;
	line-height: 1.45;
	color: var(--ink-3);
	white-space: pre-line;
}

.st-form__company { font-weight: 800; }

.st-form--dark .st-form__legal { color: rgba(255, 255, 255, .75); }

/* ═══ 13. Newsletter band & modal ═════════════════════════════════════════ */
.cta-band {
	position: relative;
	margin-top: var(--band-y);
	padding: clamp(56px, 7vw, 96px) var(--gutter);
	background: var(--tomato);
	color: #fff;
	border-top: var(--stroke) solid var(--ink);
	border-radius: 56px 56px 0 0;
	overflow: hidden;
}

.cta-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	max-width: var(--max);
	margin: 0 auto;
}

.cta-band__pitch { position: relative; display: grid; gap: 1.4rem; justify-items: start; }

.cta-band__sticker { font-size: 1.1rem; }

.cta-band__title {
	font-size: clamp(2.6rem, 6vw, 5rem);
	text-shadow: 4px 4px 0 var(--ink);
	text-wrap: balance;
}

.cta-band__points { display: grid; gap: .7rem; }

.cta-band__points li {
	display: flex;
	align-items: center;
	gap: .8rem;
	font-weight: 700;
	font-size: 1.05rem;
}

.cta-band__points svg {
	flex: none;
	width: 38px;
	height: 38px;
	padding: 6px;
	background: var(--card);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 50%;
}

.cta-band__bolt { position: absolute; top: -10px; right: 6%; width: 56px; color: var(--sun); stroke: var(--ink); transform: rotate(14deg); }
.cta-band__burst { position: absolute; bottom: -18px; right: 22%; width: 50px; color: var(--ink); }

.cta-band__card {
	position: relative;
	padding: clamp(24px, 3vw, 36px);
	background: var(--card);
	color: var(--ink);
	border: 3px solid var(--ink);
	border-radius: var(--r-l);
	box-shadow: 10px 10px 0 var(--ink);
	transform: rotate(1.2deg);
}

.cta-band__smile { position: absolute; top: -30px; left: -24px; width: 64px; color: var(--sun); transform: rotate(-14deg); }

/* Modal */
.st-modal {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: grid;
	place-items: center;
	padding: 20px;
	overflow-y: auto;
}

.st-modal[hidden] { display: none; }

.st-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 18, .6);
	opacity: 0;
	transition: opacity .25s ease;
}

.st-modal__dialog {
	position: relative;
	width: min(520px, 100%);
	margin: auto;
	padding: 56px clamp(22px, 4vw, 40px) clamp(24px, 4vw, 36px);
	background: var(--paper);
	border: 3px solid var(--ink);
	border-radius: var(--r-l);
	box-shadow: 10px 10px 0 var(--blue);
	opacity: 0;
	transform: translateY(24px) rotate(-1.5deg) scale(.97);
	transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.3, .4, 1);
}

.st-modal.is-open .st-modal__backdrop { opacity: 1; }
.st-modal.is-open .st-modal__dialog { opacity: 1; transform: none; }

.st-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: 50%;
}

.st-modal__close:hover { background: var(--sun); }

.st-modal__art {
	position: absolute;
	top: -34px;
	left: clamp(18px, 4vw, 36px);
	display: flex;
	align-items: center;
	gap: 10px;
}

.st-modal__bell {
	width: 64px;
	height: 64px;
	padding: 12px;
	background: var(--sun);
	color: var(--ink);
	border: 3px solid var(--ink);
	border-radius: 50%;
	transform: rotate(-12deg);
}

.st-modal__spark { width: 26px; color: var(--tomato); }

.st-modal__sticker { font-size: .95rem; transform: rotate(4deg); }

.st-modal__title { font-size: clamp(2.2rem, 6vw, 3rem); padding-right: 30px; }

.st-modal__sub { margin: .9rem 0 1.4rem; color: var(--ink-2); }

/* ═══ 14. Footer ══════════════════════════════════════════════════════════ */
.site-footer {
	padding: clamp(48px, 6vw, 72px) var(--gutter) 28px;
	background: var(--ink);
	color: #fff;
}

.cta-band + .site-footer { margin-top: 0; }

.site-footer__inner { max-width: var(--max); margin: 0 auto; }

.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px);
}

.footer-brand { display: grid; gap: 1.2rem; justify-items: start; align-content: start; }

.footer-brand__plate {
	padding: 14px 18px;
	background: var(--paper);
	border-radius: var(--r-m);
	box-shadow: 5px 5px 0 var(--sun);
	transform: rotate(-2deg);
}

.footer-brand__plate .custom-logo { max-height: 44px; max-width: 220px; }
.footer-brand__plate .site-logo { color: var(--ink); }

.footer-brand__text { max-width: 30em; font-size: .95rem; color: rgba(255, 255, 255, .72); }

.footer-col__heading {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	color: var(--sun);
}

.footer-links { display: grid; gap: .55rem; }

.footer-links a {
	justify-self: start;
	font-size: .95rem;
	font-weight: 600;
	color: rgba(255, 255, 255, .85);
}

.footer-links a:hover { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }

.footer-col--tool { position: relative; }

.footer-tool {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	padding: .7rem 1rem .7rem .7rem;
	font-weight: 700;
	font-size: .92rem;
	line-height: 1.25;
	color: var(--ink);
	background: var(--sun);
	border-radius: var(--r-m);
	transform: rotate(-1.5deg);
	transition: transform .2s ease;
}

.footer-tool:hover { transform: rotate(0); }

.footer-tool__icon { flex: none; width: 40px; padding: 6px; background: var(--card); border: 2px solid var(--ink); border-radius: 50%; }

.footer-eyes { width: 70px; margin-top: 1.4rem; color: var(--ink); stroke: var(--ink); }

.footer-base {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .6rem 2rem;
	margin-top: clamp(36px, 5vw, 56px);
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .18);
	font-size: .82rem;
	color: rgba(255, 255, 255, .6);
}

.footer-note { font-family: var(--hand); font-size: .95rem; color: var(--sun); }

.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	background: var(--sun);
	border: var(--stroke) solid var(--ink);
	border-radius: 50%;
	box-shadow: 3px 3px 0 var(--ink);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ 15. Trading day ═════════════════════════════════════════════════════ */
.tday__head { margin-bottom: clamp(28px, 4vw, 44px); }

.tday__sub { margin-top: 1rem; color: var(--ink-2); }

.tday__steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 28px);
	counter-reset: none;
}

.tday-step {
	position: relative;
	display: grid;
	justify-items: center;
	align-content: start;
	gap: .55rem;
	padding: 1.2rem .8rem 1.3rem;
	text-align: center;
	border: var(--stroke) solid transparent;
	border-radius: var(--r-m);
}

/* The arrow that joins one phase to the next. */
.tday-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 64px;
	right: calc(clamp(14px, 2vw, 28px) / -2 - 14px);
	width: 28px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath d='M2 7h22M18 2l6 5-6 5' fill='none' stroke='%230f0f12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tday-step__time {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 1.5rem;
	line-height: 1;
}

.tday-step__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: var(--stroke) solid var(--ink);
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
}

.tday-step--sun .tday-step__icon { background: var(--sun); color: var(--ink); }
.tday-step--tomato .tday-step__icon { background: var(--tomato); }
.tday-step--pink .tday-step__icon { background: var(--pink); color: var(--ink); }

.tday-step__icon svg { width: 32px; }

.tday-step__name { font-size: 1.05rem; font-weight: 800; line-height: 1.2; }

.tday-step__text { font-size: .88rem; line-height: 1.45; color: var(--ink-2); }

.tday-step.is-now {
	background: var(--card);
	border-color: var(--ink);
	box-shadow: var(--hard);
}

.tday-step__now { position: absolute; top: -16px; right: -8px; font-size: .85rem; transform: rotate(6deg); }

/* ═══ 16. Century of decades ══════════════════════════════════════════════ */
.century {
	padding: clamp(24px, 4vw, 48px);
	background: var(--card);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-l);
	box-shadow: var(--hard-lg);
}

.century__head { display: grid; gap: 1rem; justify-items: start; margin-bottom: clamp(28px, 4vw, 44px); }

.century__standfirst { max-width: 58ch; color: var(--ink-2); }

.century__chart {
	display: grid;
	grid-template-columns: repeat(11, minmax(0, 1fr));
	gap: clamp(6px, 1vw, 14px);
}

.century-col { display: grid; grid-template-rows: auto 260px auto; gap: 8px; text-align: center; }

.century-col__value { order: 0; font-size: .82rem; font-weight: 800; }

.century-col--down .century-col__value { color: var(--tomato); }

.century-col__track {
	position: relative;
	order: 1;
	background: linear-gradient(var(--ink), var(--ink)) 0 80% / 100% 2.5px no-repeat;
}

.century-col__bar {
	position: absolute;
	left: 8%;
	right: 8%;
	height: var(--bar);
	background: var(--blue);
	border: 2px solid var(--ink);
}

.century-col--up .century-col__bar { bottom: 20%; border-radius: 12px 12px 0 0; border-bottom: 0; }
.century-col--down .century-col__bar { top: 80%; border-radius: 0 0 12px 12px; border-top: 0; }

.century-col--sun .century-col__bar { background: var(--sun); }
.century-col--pink .century-col__bar { background: var(--pink); }
.century-col--tomato .century-col__bar { background: var(--tomato); }

.century-col__label {
	order: 2;
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 1.1rem;
}

.century-col__note {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.century__foot {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: clamp(28px, 4vw, 40px);
}

.century-fact {
	display: grid;
	gap: .35rem;
	align-content: start;
	padding: 1.1rem 1.2rem;
	border: 2px solid var(--ink);
	border-radius: var(--r-m);
	background: var(--blue-tint);
}

.century-fact--worst { background: var(--tomato-tint); }
.century-fact--cta { background: var(--sun-tint); justify-items: start; }

.century-fact__label { font-family: var(--hand); font-size: 1rem; }

.century-fact__value {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 1.9rem;
	line-height: 1;
}

.century-fact--best .century-fact__value { color: var(--blue); }
.century-fact--worst .century-fact__value { color: var(--tomato); }

.century-fact__note { font-size: .88rem; color: var(--ink-2); }

.century__disclaimer { margin-top: 1.2rem; font-size: .78rem; color: var(--ink-3); }

/* ═══ 17. Compound Interest Playground ════════════════════════════════════ */
.playground {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
	grid-template-areas:
		"controls results"
		"wait wait"
		"note note";
	gap: clamp(18px, 2.6vw, 32px);
}

.playground__controls,
.playground__results,
.playground__wait {
	padding: clamp(20px, 3vw, 32px);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-l);
	background: var(--card);
}

.playground__controls { grid-area: controls; background: var(--blue); color: #fff; box-shadow: var(--hard-lg); display: grid; gap: 1.4rem; align-content: start; }
.playground__results { grid-area: results; display: grid; gap: 1.4rem; align-content: start; }
.playground__wait { grid-area: wait; background: var(--sun-tint); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.playground__note { grid-area: note; font-size: .82rem; color: var(--ink-3); max-width: 80ch; }

.playground__heading { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.pg-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem 1rem; }

.pg-field__label { font-weight: 700; font-size: .95rem; }

.pg-field__value {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	padding: .2rem .8rem;
	font-weight: 800;
	background: var(--card);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: var(--pill);
}

.pg-field__number {
	width: 6.5ch;
	padding: .25rem 0;
	font-weight: 800;
	text-align: right;
	background: transparent;
	border: 0;
	outline: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.pg-field__number::-webkit-outer-spin-button,
.pg-field__number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pg-field__value:focus-within { box-shadow: 0 0 0 4px var(--sun); }

.pg-field__range { grid-column: 1 / -1; }

.playground__controls input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--sun) var(--fill), var(--card) var(--fill)); }
.playground__controls input[type="range"]::-moz-range-progress { background: var(--sun); }

.pg-presets { display: flex; flex-wrap: wrap; gap: 8px; }

.pg-preset {
	padding: .5rem .9rem;
	font-size: .8rem;
	font-weight: 800;
	color: #fff;
	background: transparent;
	border: 2px solid #fff;
	border-radius: var(--pill);
}

.pg-preset:hover,
.pg-preset.is-active { background: var(--sun); color: var(--ink); border-color: var(--ink); }

.pg-total { position: relative; display: grid; gap: .3rem; justify-items: start; }

.pg-total__label { font-family: var(--hand); font-size: 1.2rem; }

.pg-total__value {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: clamp(3rem, 7vw, 5.2rem);
	line-height: .9;
	color: var(--blue);
	word-break: break-word;
}

.pg-total__sticker { margin-top: .5rem; font-size: 1rem; }

.pg-total__spark { position: absolute; top: 0; right: 4%; width: 46px; color: var(--sun); }

.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pg-split__item {
	display: grid;
	gap: .2rem;
	padding: .9rem 1rem;
	border: 2px solid var(--ink);
	border-radius: var(--r-m);
	background: var(--blue-tint);
}

.pg-split__item--sun { background: var(--sun-tint); }

.pg-split__label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }

.pg-split__item strong { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 1.7rem; line-height: 1.05; }

.pg-chart { position: relative; margin: 0; }

.pg-chart__caption {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem 1rem;
	margin-bottom: .8rem;
	font-weight: 700;
	font-size: .9rem;
}

.pg-legend { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--ink-2); }

.pg-legend__dot { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); background: var(--blue); }
.pg-legend__dot--sun { background: var(--sun); }

.pg-chart__plot { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 240px; }

.pg-axis {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-bottom: 22px;
	font-size: .7rem;
	font-weight: 700;
	color: var(--ink-3);
	text-align: right;
}

/* Each label centred on the gridline it names. */
.pg-axis span { line-height: 1; transform: translateY(50%); }
.pg-axis span:first-child { transform: none; }

.pg-bars {
	display: grid;
	grid-template-columns: repeat(var(--n), minmax(0, 1fr));
	gap: clamp(1px, .4vw, 4px);
	align-items: end;
	border-bottom: 2.5px solid var(--ink);
	background: repeating-linear-gradient(0deg, transparent 0 calc(50% - 1px), var(--line) calc(50% - 1px) 50%) 0 0 / 100% calc(100% - 22px) no-repeat;
}

.pg-bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: calc(100% + 22px); margin-bottom: -22px; padding-bottom: 22px; cursor: crosshair; }

.pg-bar__stack {
	display: flex;
	flex-direction: column;
	min-height: 2px;
	overflow: hidden;
	border: 1.5px solid var(--ink);
	border-bottom: 0;
	border-radius: 5px 5px 0 0;
	transition: height .25s ease;
}

.pg-bar__growth { background: var(--sun); flex-basis: 0; }
.pg-bar__put { background: var(--blue); flex-basis: 0; }

.pg-bar:hover .pg-bar__stack { filter: brightness(1.08); box-shadow: 0 0 0 2px var(--ink); }

.pg-bar__year {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	font-size: .66rem;
	font-weight: 700;
	color: var(--ink-3);
	line-height: 22px;
}

.pg-chart__tip {
	position: absolute;
	top: 34px;
	z-index: 2;
	display: grid;
	gap: .1rem;
	padding: .55rem .8rem;
	font-size: .78rem;
	line-height: 1.35;
	color: #fff;
	background: var(--ink);
	border-radius: var(--r-s);
	transform: translateX(-50%);
	pointer-events: none;
	white-space: nowrap;
}

.pg-chart__tip[hidden] { display: none; }

.pg-rule {
	padding: .8rem 1rem;
	font-weight: 700;
	background: var(--pink-tint);
	border: 2px dashed var(--ink);
	border-radius: var(--r-m);
}

.pg-wait__head { display: grid; gap: .8rem; }

.pg-wait__text { font-weight: 600; color: var(--ink-2); }

.pg-wait__bars { display: grid; gap: 12px; }

.pg-wait__row {
	display: grid;
	grid-template-columns: 8.5em minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
}

.pg-wait__row[hidden] { display: none; }

.pg-wait__label { font-weight: 800; font-size: .9rem; }

.pg-wait__track {
	height: 30px;
	padding: 3px;
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: var(--pill);
}

.pg-wait__bar {
	display: block;
	height: 100%;
	min-width: 6px;
	background: var(--blue);
	border-radius: var(--pill);
	transition: width .3s ease;
}

.pg-wait__row--sun .pg-wait__bar { background: var(--sun); }
.pg-wait__row--tomato .pg-wait__bar { background: var(--tomato); }

.pg-wait__value { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 1.3rem; min-width: 6.5ch; text-align: right; }

.pg-milestones {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pg-milestones[hidden] { display: none; }

.pg-milestones li {
	display: inline-flex;
	align-items: baseline;
	gap: .4rem;
	padding: .4rem .9rem;
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: var(--pill);
	font-size: .85rem;
}

.pg-milestones li:nth-child(3n+1) { transform: rotate(-2deg); }
.pg-milestones li:nth-child(3n+2) { transform: rotate(1.5deg); }

.pg-milestones strong { font-family: var(--display); font-stretch: 75%; font-size: 1.15rem; font-weight: 800; }

/* ═══ 18. Responsive, utilities & motion ══════════════════════════════════ */
@media (max-width: 1180px) {
	.pulse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
	.pulse__note { grid-column: 1 / -1; justify-self: start; max-width: 460px; transform: rotate(1.5deg); }
	.pulse__figures { border-right: 0; padding-right: 0; }

	.footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
	.content-sidebar { grid-template-columns: minmax(0, 1fr); }
	.sidebar { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }

	.spotlight { grid-template-columns: minmax(0, 1fr); }
	.rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rowcard { grid-template-columns: minmax(0, 1fr); }
	.rowcard__media { aspect-ratio: 16 / 10; }

	.quotes__list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.quotes__curl { justify-self: center; transform: rotate(90deg); width: 48px; }

	.tday__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
	.tday-step:nth-child(3)::after { display: none; }

	.playground { grid-template-columns: minmax(0, 1fr); grid-template-areas: "controls" "results" "wait" "note"; }
	.playground__wait { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
	.hero__art { order: -1; max-width: 480px; width: 92%; }
	.hero__burst { display: none; }

	/* One column again, so the headline can take the width back. */
	.hero__title { font-size: clamp(2.4rem, 7.4vw, 4.2rem); }
	.lead--medium .hero__title { font-size: clamp(2.2rem, 6.4vw, 3.6rem); }
	.lead--long .hero__title { font-size: clamp(1.9rem, 5.4vw, 3rem); }

	.pulse { grid-template-columns: minmax(0, 1fr); }
	.pulse__figures { padding: 20px 0; border-left: 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }

	.grid--3,
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* Two columns would orphan the last of an odd row; it runs the full
	   width instead, photograph beside text. */
	.grid--3 > .card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		gap: 24px;
	}

	.feature { grid-template-columns: minmax(0, 1fr); }
	.feature__media img { aspect-ratio: 16 / 10; }

	.cta-band__inner { grid-template-columns: minmax(0, 1fr); }
	.cta-band { border-radius: 36px 36px 0 0; }

	.century__chart { grid-template-columns: minmax(0, 1fr); gap: 8px; }

	/* The chart turns on its side: one row per decade. */
	.century-col {
		grid-template-columns: 3.4em minmax(0, 1fr) 4.2em;
		grid-template-rows: 26px;
		align-items: center;
		gap: 10px;
		text-align: left;
	}

	.century-col__label { order: 0; }
	.century-col__track { order: 1; height: 26px; background: linear-gradient(var(--ink), var(--ink)) 20% 0 / 2.5px 100% no-repeat; }
	.century-col__value { order: 2; text-align: right; }

	.century-col__bar { left: auto; right: auto; top: 3px; bottom: 3px; height: auto; width: var(--bar); }
	.century-col--up .century-col__bar { left: 20%; border: 2px solid var(--ink); border-left: 0; border-radius: 0 8px 8px 0; }
	.century-col--down .century-col__bar { right: 80%; top: 3px; border: 2px solid var(--ink); border-right: 0; border-radius: 8px 0 0 8px; }

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

	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.post-nav__item--next { grid-column: auto; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }

	.site-header { padding-top: 10px; padding-bottom: 10px; }
	.custom-logo { max-height: min(var(--logo-h), 34px); }

	.hero__title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
	.lead--medium .hero__title { font-size: clamp(2.1rem, 9.6vw, 2.8rem); }
	.lead--long .hero__title { font-size: clamp(1.85rem, 8.2vw, 2.4rem); }
	.hero__art { width: 100%; }
	.hero__stack { right: 0; }
	.hero__stack li { font-size: .9rem; }
	.hero__stamp { left: 0; bottom: 4%; padding: .6rem .8rem; }
	.hero__eyes { width: 50px; right: 0; }
	.hero__spark { left: 0; }
	.hero__curl { display: none; }

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

	.desks { grid-template-columns: minmax(0, 1fr); }
	.desk { min-height: 0; }

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

	.grid--3 > .card:last-child:nth-child(odd) { display: flex; gap: 1rem; }

	.rail { grid-template-columns: minmax(0, 1fr); }
	.rowcard { grid-template-columns: 84px minmax(0, 1fr); }
	.rowcard__media { aspect-ratio: 1; }

	.band--tinted { padding-left: 10px; padding-right: 10px; }
	.band--tinted .band__inner { padding: 22px 14px; border-radius: 24px; }

	.quotes { padding-left: 10px; padding-right: 10px; }
	.quotes__inner { border-radius: 30px; transform: none; }
	.quotes__list { transform: none; }

	.tday__steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tday-step {
		grid-template-columns: 64px minmax(0, 1fr);
		grid-template-areas: "icon time" "icon name" "icon text";
		justify-items: start;
		column-gap: 16px;
		row-gap: .25rem;
		margin-bottom: 26px;
		padding: 14px 10px;
		text-align: left;
	}
	.tday-step__icon { grid-area: icon; }
	.tday-step__time { grid-area: time; font-size: 1.3rem; }
	.tday-step__name { grid-area: name; }
	.tday-step__text { grid-area: text; }
	.tday-step:not(:last-child)::after { display: block; top: auto; bottom: -22px; left: 28px; right: auto; transform: rotate(90deg); }
	.tday-step:nth-child(3)::after { display: block; }
	.tday-step__now { top: 6px; right: 6px; }

	.century { padding: 20px 16px; }

	.st-form__row { flex-direction: column; align-items: stretch; }
	.st-form .wpcf7-submit { width: 100%; }

	.cta-band__card { transform: none; box-shadow: 6px 6px 0 var(--ink); }
	.cta-band__smile { left: auto; right: -8px; top: -26px; width: 54px; }
	.cta-band__title { text-shadow: 3px 3px 0 var(--ink); }

	.st-modal { padding: 12px; align-items: start; padding-top: 48px; }
	.st-modal__dialog { box-shadow: 6px 6px 0 var(--blue); }

	.footer__grid { grid-template-columns: 1fr 1fr; }
	.footer-col--tool { grid-column: 1 / -1; }
	/* Room for the back-to-top button, which sits over the last line. */
	.site-footer { padding-bottom: 88px; }

	.entry-content { font-size: 1.05rem; }
	.entry-media { padding: 8px; border-radius: 24px; box-shadow: var(--hard); }
	.entry-media img { border-radius: 16px; }

	.pg-split { grid-template-columns: minmax(0, 1fr); }
	.pg-chart__plot { height: 200px; }
	.pg-wait__row { grid-template-columns: minmax(0, 1fr) auto; }
	.pg-wait__track { grid-column: 1 / -1; grid-row: 2; }
	.pg-field__number { width: 7ch; }
}

@media (max-width: 380px) {
	.footer__grid { grid-template-columns: minmax(0, 1fr); }
	.btn { padding-left: 1.1rem; font-size: .82rem; }
}

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