/*
Theme Name: FirstFormat
Theme URI: https://firstformat.ai
Description: The FirstFormat.ai marketing site. Genesis child theme — Design v1.1, Structured Warmth (Obsidian + Ember). Light-mode default.
Author: Ethos Unlimited
Author URI: https://firstformat.ai
Template: genesis
Version: 2.0.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: firstformat-child
*/

/* =========================================================================
   FirstFormat — CSS Foundation (Design v1.1 Adoption)
   Light-mode default. Structured Warmth. Obsidian + Ember.

   Table of contents
   1.  Design tokens (custom properties)
   2.  Reset & base
   3.  Document + body
   4.  Typography (elements + classes)
   5.  Links
   6.  Lists
   7.  Code & preformatted
   8.  Media
   9.  Forms & buttons
   10. Layout primitives
   11. Genesis structural overrides
   12. Header
   13. Hero
   14. Bands & sections
   15. Diagram
   16. Feature grid
   17. Dark split section
   18. Pullquote
   19. FAQ
   20. CTA
   21. Docs layout
   22. Blog (Field notes)
   23. Footer
   24. Accessibility
   25. Utility classes
   26. Responsive breakpoints
   ========================================================================= */

/* 1. Design tokens ------------------------------------------------------- */

:root {
	/* Core palette (Brand Guide v2.1) */
	--obsidian:    #1C1C1A;
	--smoke:       #3D3D38;
	--stone:       #8A8A82;
	--parchment:   #F5F3EE;
	--ember:       #C4602D;
	--ember-deep:  #A04C1F;
	--ember-tint:  #F3DFCE;

	/* Semantic aliases — light mode default */
	--bg:          var(--parchment);
	--bg-elev:     #FBFAF6;
	--bg-sunk:     #EFECE5;
	--fg:          var(--obsidian);
	--fg-soft:     var(--smoke);
	--fg-quiet:    var(--stone);
	--rule:        #E2DED3;
	--rule-soft:   #EBE7DB;
	--accent:      var(--ember);
	--accent-fg:   #FFFFFF;
	--accent-ink:  var(--ember-deep);

	/* Typography */
	--font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--font-body:    "Work Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Type scale — fluid (clamp: mobile → desktop) */
	--step-0: clamp(1rem, 0.96rem + 0.25vw, 1.0625rem);         /* 16–17 */
	--step-1: clamp(1.125rem, 1.06rem + 0.35vw, 1.25rem);       /* 18–20 */
	--step-2: clamp(1.3125rem, 1.2rem + 0.55vw, 1.5rem);        /* 21–24 */
	--step-3: clamp(1.625rem, 1.4rem + 1vw, 2rem);              /* 26–32 */
	--step-4: clamp(2.125rem, 1.75rem + 1.75vw, 2.75rem);       /* 34–44 */
	--step-5: clamp(2.875rem, 2.2rem + 3vw, 4rem);              /* 46–64 */
	--step-6: clamp(4rem, 3rem + 4.5vw, 5.5rem);                /* 64–88 */

	/* Supplemental sizes (below step-0) */
	--fs-xs:  clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);      /* 12–13 */
	--fs-sm:  clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);      /* 14–15 */

	/* Line heights */
	--lh-tight:    1.1;
	--lh-snug:     1.25;
	--lh-normal:   1.5;
	--lh-relaxed:  1.6;

	/* Letter spacing */
	--tracking-tight:  -0.02em;
	--tracking-snug:   -0.01em;
	--tracking-normal: 0;
	--tracking-wide:   0.02em;
	--tracking-mono:   0.01em;

	/* Spacing scale */
	--space-0:  0;
	--space-1:  0.25rem;
	--space-2:  0.5rem;
	--space-3:  0.75rem;
	--space-4:  1rem;
	--space-5:  1.5rem;
	--space-6:  2rem;
	--space-7:  3rem;
	--space-8:  4rem;
	--space-9:  6rem;
	--space-10: 8rem;

	/* Layout */
	--container-max:  1200px;
	--container-wide: 1320px;
	--gutter:         28px;
	--measure-prose:  65ch;

	/* Radii */
	--radius:      4px;
	--radius-lg:   10px;
	--radius-card: 14px;
	--radius-pill: 999px;

	/* Shadows (light mode — subtle) */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.12);
	--shadow-ember-glow: 0 0 0 3px rgba(196, 96, 45, 0.2);

	/* Motion */
	--ease: cubic-bezier(.2, .6, .2, 1);
	--dur-fast: 120ms;
	--dur-med:  220ms;
	--dur-slow: 400ms;

	/* Z-index */
	--z-base:    1;
	--z-raised:  10;
	--z-sticky:  50;
	--z-overlay: 1000;
	--z-modal:   2000;

	color-scheme: light dark;
}

/* Dark theme variant */
[data-theme="dark"] {
	--bg:        #14140F;
	--bg-elev:   #1C1C1A;
	--bg-sunk:   #0E0E0B;
	--fg:        #F5F3EE;
	--fg-soft:   #D5D1C5;
	--fg-quiet:  #9A9A8F;
	--rule:      #2A2A25;
	--rule-soft: #22221E;
	--accent-fg: #FFFFFF;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
	--shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* Accent intensity */
[data-accent="quiet"]    { --accent: #B5572A; --ember-tint: #F2E2D2; }
[data-accent="balanced"] { --accent: #C4602D; --ember-tint: #F3DFCE; }
[data-accent="bold"]     { --accent: #D7692F; --ember-tint: #F4D5BD; }

/* Display font swap */
[data-display="worksans"] { --font-display: "Work Sans", ui-sans-serif, system-ui, sans-serif; }

/* Density */
[data-density="tight"] { --gutter: 20px; }


/* 2. Reset & base ------------------------------------------------------- */

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

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	scroll-behavior: smooth;
	font-size: 100%;
}

html:focus-within {
	scroll-behavior: smooth;
}


/* 3. Document + body --------------------------------------------------- */

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: var(--step-1);
	font-weight: 400;
	line-height: var(--lh-relaxed);
	letter-spacing: var(--tracking-normal);
	font-feature-settings: "ss01", "kern", "liga";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	overflow-x: hidden;
	transition: background .4s var(--ease), color .4s var(--ease);
}

[data-density="tight"] body {
	font-size: var(--step-0);
	line-height: 1.55;
}

::selection {
	background: var(--ember-tint);
	color: var(--obsidian);
}

[data-theme="dark"] ::selection {
	background: var(--ember);
	color: #fff;
}


/* 4. Typography ------------------------------------------------------- */

/* Element styles (Genesis semantic headings) */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--fg);
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

h1 {
	font-size: var(--step-6);
	letter-spacing: -0.025em;
	margin-block-end: var(--space-5);
}

h2 {
	font-size: var(--step-5);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.08;
	margin-block-start: var(--space-8);
	margin-block-end: var(--space-4);
}

h3 {
	font-size: var(--step-4);
	font-weight: 600;
	letter-spacing: -0.018em;
	line-height: 1.12;
	margin-block-start: var(--space-7);
	margin-block-end: var(--space-4);
}

h4 {
	font-size: var(--step-3);
	font-weight: 600;
	letter-spacing: -0.012em;
	line-height: 1.2;
	margin-block-start: var(--space-6);
	margin-block-end: var(--space-3);
}

h5 {
	font-size: var(--step-2);
	font-weight: 600;
	letter-spacing: -0.008em;
	line-height: 1.25;
	margin-block-start: var(--space-5);
	margin-block-end: var(--space-3);
}

h6 {
	font-size: var(--step-1);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fg-quiet);
	margin-block-start: var(--space-5);
	margin-block-end: var(--space-2);
}

p {
	max-width: var(--measure-prose);
	margin-block-end: var(--space-4);
	text-wrap: pretty;
}

small {
	font-size: var(--fs-sm);
	color: var(--fg-quiet);
}

strong, b {
	font-weight: 600;
	color: var(--fg);
}

em, i {
	font-style: italic;
}

blockquote {
	border-inline-start: 3px solid var(--accent);
	padding: var(--space-3) var(--space-5);
	margin: var(--space-5) 0;
	color: var(--fg-soft);
	font-style: italic;
	max-width: var(--measure-prose);
}

hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: var(--space-7) 0;
}

/* Class-based typography (Design v1.1 component styles) */
.display {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(44px, 6.5vw, var(--step-6));
	line-height: 1.02;
	letter-spacing: -0.025em;
	margin: 0 0 28px;
	text-wrap: balance;
}

.h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(34px, 4.5vw, var(--step-5));
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
	text-wrap: balance;
}

.h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(28px, 3.4vw, var(--step-4));
	line-height: 1.12;
	letter-spacing: -0.018em;
	margin: 0 0 16px;
	text-wrap: balance;
}

.h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--step-3);
	line-height: 1.2;
	letter-spacing: -0.012em;
	margin: 0 0 12px;
}

.h4 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--step-2);
	line-height: 1.25;
	letter-spacing: -0.008em;
	margin: 0 0 10px;
}

.lede {
	font-size: var(--step-2);
	line-height: 1.55;
	color: var(--fg-soft);
	max-width: 56ch;
	margin: 0 0 32px;
	text-wrap: pretty;
}

.body-lg {
	font-size: var(--step-2);
	line-height: 1.55;
	color: var(--fg-soft);
	margin: 0 0 20px;
	max-width: 62ch;
	text-wrap: pretty;
}

.ember-text { color: var(--accent); }

.section-kicker {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	margin: 0 0 14px;
}

.section-kicker-invert {
	color: rgba(245, 243, 238, .55);
}


/* 5. Links ----------------------------------------------------------- */

a {
	color: var(--fg);
	text-decoration: none;
	background-color: transparent;
	transition: color var(--dur-fast) var(--ease);
}

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

a:active {
	color: var(--accent-ink);
}


/* 6. Lists ---------------------------------------------------------- */

ul, ol {
	padding-inline-start: var(--space-5);
	margin-block-end: var(--space-4);
	max-width: var(--measure-prose);
}

li {
	margin-block-end: var(--space-2);
}

li::marker {
	color: var(--fg-quiet);
}

dl {
	margin-block-end: var(--space-4);
	max-width: var(--measure-prose);
}

dt {
	font-weight: 600;
	color: var(--fg);
	margin-block-start: var(--space-3);
}

dd {
	color: var(--fg-soft);
	margin-inline-start: var(--space-4);
}


/* 7. Code & preformatted ------------------------------------------- */

code, kbd, samp, pre {
	font-family: var(--font-mono);
	font-size: 0.92em;
	letter-spacing: var(--tracking-mono);
}

code {
	background-color: var(--bg-sunk);
	color: var(--fg-soft);
	padding: 2px 6px;
	border-radius: 3px;
}

pre {
	background-color: var(--bg-sunk);
	color: var(--fg);
	padding: var(--space-4) var(--space-5);
	border-radius: var(--radius-lg);
	border: 1px solid var(--rule);
	overflow-x: auto;
	line-height: var(--lh-snug);
	margin-block-end: var(--space-5);
	tab-size: 2;
}

pre code {
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

kbd {
	background-color: var(--bg-sunk);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 2px 6px;
	font-size: 0.85em;
	box-shadow: inset 0 -1px 0 var(--rule-soft);
}


/* 8. Media --------------------------------------------------------- */

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

figure {
	margin: var(--space-5) 0;
}

figcaption {
	font-size: var(--fs-sm);
	color: var(--fg-quiet);
	margin-block-start: var(--space-2);
}


/* 9. Forms & buttons ---------------------------------------------- */

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

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
	background-color: var(--bg);
	color: var(--fg);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: var(--space-3) var(--space-4);
	width: 100%;
	max-width: 100%;
	transition: border-color var(--dur-fast) var(--ease),
	            box-shadow var(--dur-fast) var(--ease);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: var(--shadow-ember-glow);
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

label {
	display: inline-block;
	font-weight: 500;
	margin-block-end: var(--space-2);
	color: var(--fg);
}

/* Buttons — Design v1.1 system */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--dur-fast) var(--ease),
	            color var(--dur-fast) var(--ease),
	            border-color var(--dur-fast) var(--ease),
	            transform 0.1s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 22px; font-size: 16px; }

.btn-primary {
	background: var(--fg);
	color: var(--bg);
}

.btn-primary:hover {
	background: var(--accent);
	color: #fff;
}

.btn-ember {
	background: var(--accent);
	color: #fff;
}

.btn-ember:hover {
	background: var(--accent-ink);
	color: #fff;
}

.btn-ghost {
	background: transparent;
	color: var(--fg);
	border-color: var(--rule);
}

.btn-ghost:hover {
	border-color: var(--fg);
}

.btn-outline-invert {
	background: transparent;
	color: var(--parchment);
	border-color: rgba(245, 243, 238, .3);
}

.btn-outline-invert:hover {
	border-color: var(--parchment);
	color: var(--parchment);
}

/* Legacy button selectors (Genesis / WP) */
button[type="submit"],
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-family: var(--font-body);
	font-weight: 500;
	font-size: var(--step-0);
	line-height: 1;
	padding: var(--space-3) var(--space-5);
	min-height: 44px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	background-color: var(--accent);
	color: var(--accent-fg);
	border-color: var(--accent);
	transition: background-color var(--dur-fast) var(--ease),
	            color var(--dur-fast) var(--ease),
	            border-color var(--dur-fast) var(--ease),
	            transform 0.1s var(--ease);
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background-color: var(--accent-ink);
	border-color: var(--accent-ink);
	color: var(--accent-fg);
}


/* 10. Layout primitives ------------------------------------------ */

.container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.stack > * + * {
	margin-block-start: var(--space-4);
}

.stack-lg > * + * {
	margin-block-start: var(--space-6);
}

.cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
}

.grid {
	display: grid;
	gap: var(--space-5);
}

.hidden, [hidden] { display: none !important; }


/* 11. Genesis structural overrides ------------------------------ */

.site-container {
	background-color: var(--bg);
	color: var(--fg);
}

.site-inner {
	max-width: var(--container-max);
	margin-inline: auto;
	padding: var(--space-7) var(--gutter);
}

.site-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--step-2);
	letter-spacing: var(--tracking-tight);
	line-height: 1;
	margin: 0;
}

.site-title a {
	color: var(--fg);
	text-decoration: none;
}

.site-description {
	display: none;
}

/* Genesis nav */
.genesis-nav-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--gutter);
	align-items: center;
}

.genesis-nav-menu li {
	margin: 0;
}

.genesis-nav-menu a {
	color: var(--fg-soft);
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	padding: 6px 0;
	position: relative;
	transition: color var(--dur-fast) var(--ease);
}

.genesis-nav-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}

.genesis-nav-menu a:hover { color: var(--fg); }

.genesis-nav-menu a:hover::after,
.genesis-nav-menu .current-menu-item > a::after,
.genesis-nav-menu .current_page_item > a::after {
	transform: scaleX(1);
}

.genesis-nav-menu .current-menu-item > a,
.genesis-nav-menu .current_page_item > a {
	color: var(--fg);
}

/* Entry styles */
.entry {
	margin-block-end: var(--space-8);
}

.entry-title {
	margin-block-end: var(--space-4);
}

.entry-meta {
	font-size: var(--fs-sm);
	color: var(--fg-quiet);
	margin-block-end: var(--space-5);
}

.entry-content > * + * {
	margin-block-start: var(--space-4);
}

.archive-title,
.entry-title a {
	color: var(--fg);
}


/* 12. Header ------------------------------------------------------- */

/* Beta announcement bar — interim placeholder above the site header. */
.ff-beta-bar {
	background: var(--obsidian);
	color: var(--parchment);
	padding: var(--space-3) var(--gutter);
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	line-height: var(--lh-snug);
	border-bottom: 1px solid var(--smoke);
	position: relative;
	z-index: calc(var(--z-sticky) + 1);
}
.ff-beta-bar__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	flex-wrap: wrap;
	text-align: center;
}
.ff-beta-bar__badge {
	display: inline-block;
	background: var(--accent);
	color: var(--accent-fg);
	text-transform: uppercase;
	font-weight: 700;
	font-size: var(--fs-xs);
	letter-spacing: 0.08em;
	padding: 2px 10px;
	border-radius: var(--radius-pill);
	white-space: nowrap;
}
.ff-beta-bar__text {
	color: var(--parchment);
	opacity: 0.92;
}
.ff-beta-bar__link {
	color: var(--parchment);
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-inline-start: var(--space-2);
	white-space: nowrap;
}
.ff-beta-bar__link:hover,
.ff-beta-bar__link:focus {
	color: var(--ember-tint);
	text-decoration-thickness: 2px;
}

/* Hide the primary-nav slot during beta when no menu items are assigned. */
.primary-nav:empty {
	display: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-sticky);
	background: color-mix(in oklab, var(--bg) 85%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--rule-soft);
	padding-block: 18px;
}

.site-header .wrap {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 32px;
}

/* Brand mark */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--fg);
}

.brand-mark {
	width: 32px;
	height: 32px;
}

.brand-wordmark {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.015em;
}

.wm-first  { color: var(--fg); }
.wm-format { color: var(--accent); }
.wm-ai     { color: var(--smoke); }

/* Site title logo (Genesis filter) */
.site-title--logo {
	margin: 0;
	line-height: 1;
}

.site-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

/* Header actions (right side) */
.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.link-plain {
	color: var(--fg-soft);
	font-size: 15px;
	font-weight: 500;
}

.link-plain:hover { color: var(--fg); }

/* Primary nav (centered) */
.primary-nav ul {
	display: flex;
	gap: var(--gutter);
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.primary-nav a {
	color: var(--fg-soft);
	font-size: 15px;
	font-weight: 500;
	position: relative;
	padding: 6px 0;
	transition: color .2s var(--ease);
}

.primary-nav a:hover { color: var(--fg); }

.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a.is-current::after { transform: scaleX(1); }


/* 13. Hero --------------------------------------------------------- */

.hero {
	padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
	border-bottom: 1px solid var(--rule-soft);
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	background: var(--bg-elev);
	border: 1px solid var(--rule);
	border-radius: var(--radius-pill);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--fg-soft);
	margin-bottom: 28px;
}

.eb-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
	animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: .55; }
}

.hero-ctas {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 44px;
}

.hero-proof {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0;
	padding-top: 26px;
	border-top: 1px solid var(--rule);
}

.hero-proof > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hero-proof dt {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fg-quiet);
}

.hero-proof dd {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 17px;
	color: var(--fg);
	letter-spacing: -0.01em;
}

/* Hero artifact (tabbed code preview) */
.hero-artifact { min-width: 0; }

.artifact-frame {
	background: var(--bg-elev);
	border: 1px solid var(--rule);
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow:
		0 1px 0 rgba(28, 28, 26, .04),
		0 12px 40px -20px rgba(28, 28, 26, .15);
}

[data-theme="dark"] .artifact-frame {
	box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5);
}

.artifact-tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--rule);
	padding: 0 8px;
	background: var(--bg-sunk);
}

.tab {
	padding: 12px 16px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-quiet);
	letter-spacing: 0.02em;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	cursor: pointer;
	transition: color .2s var(--ease), border-color .2s var(--ease);
}

.tab:hover { color: var(--fg-soft); }

.tab.is-active {
	color: var(--fg);
	border-bottom-color: var(--accent);
}

.artifact-body {
	padding: 22px 24px;
	min-height: 340px;
	max-height: 380px;
	overflow: auto;
}

.artifact-pane { display: none; margin: 0; }
.artifact-pane.is-active { display: block; }

.artifact-pane code {
	display: block;
	background: transparent;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--fg);
	white-space: pre;
}

/* Syntax highlighting tokens */
.c-c  { color: var(--fg-quiet); font-style: italic; }
.c-h  { color: var(--accent); font-weight: 500; }
.c-k  { color: var(--accent); }
.c-s  { color: var(--fg-soft); }
.c-v  { color: var(--fg); }
.c-fn { color: var(--accent-ink); }
[data-theme="dark"] .c-fn { color: #E58356; }

.artifact-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	border-top: 1px solid var(--rule);
	background: var(--bg-sunk);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-quiet);
	letter-spacing: 0.02em;
}

.foot-ok::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #4E8A4E;
	margin-right: 6px;
	vertical-align: middle;
	position: relative;
	top: -1px;
}


/* 14. Bands & sections ---------------------------------------------- */

.section {
	padding: clamp(56px, 8vw, 112px) 0;
}

.section-head {
	max-width: 780px;
	margin: 0 0 48px;
}

.section-head-center {
	margin-inline: auto;
	text-align: center;
}

.band {
	padding: 28px 0;
	border-block: 1px solid var(--rule-soft);
	background: var(--bg-elev);
}

.band-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.band-label {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	margin: 0;
	flex: 0 0 auto;
}

.principle-row {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 28px 40px;
	margin: 0;
	padding: 0;
	flex: 1;
}

.principle-row li {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 15px;
	color: var(--fg);
	letter-spacing: -0.005em;
}

.principle-row li span {
	color: var(--accent);
	font-weight: 600;
}

/* Two-column layout */
.two-col {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.section-body {
	padding-top: 6px;
}


/* 15. Diagram ------------------------------------------------------- */

.section-diagram {
	background: var(--bg-elev);
	border-block: 1px solid var(--rule-soft);
}

.diagram {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1fr;
	gap: 16px;
	align-items: center;
	padding: 20px 0;
}

.d-node {
	padding: 28px 24px;
	background: var(--bg);
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
	text-align: center;
}

.d-label {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 20px;
	margin: 0 0 4px;
	letter-spacing: -0.01em;
}

.d-sub {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-quiet);
	margin: 0;
	letter-spacing: 0.02em;
}

.d-path {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: var(--fg-quiet);
}

.d-pathlabel {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	color: var(--accent);
	letter-spacing: -0.01em;
	padding: 4px 12px;
	background: var(--ember-tint);
	border-radius: var(--radius-pill);
}

[data-theme="dark"] .d-pathlabel {
	background: color-mix(in oklab, var(--accent) 25%, transparent);
	color: #F5D4B8;
}

.d-wire {
	width: 100%;
	height: 40px;
	color: var(--fg-quiet);
}

.d-protocols {
	list-style: none;
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: center;
}

.d-protocols li {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-soft);
	padding: 4px 10px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--bg);
}

.diagram-caption {
	text-align: center;
	margin: 30px 0 0;
	font-family: var(--font-display);
	font-size: 17px;
	font-style: italic;
	color: var(--fg-soft);
}


/* 16. Feature grid -------------------------------------------------- */

.feature-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border-top: 1px solid var(--rule);
	border-left: 1px solid var(--rule);
}

.feature {
	padding: 36px 32px 40px;
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	background: var(--bg);
	position: relative;
	transition: background .3s var(--ease);
}

.feature:hover { background: var(--bg-elev); }

.feature-num {
	display: block;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.05em;
	color: var(--accent);
	margin-bottom: 18px;
}

.feature p {
	margin: 0;
	color: var(--fg-soft);
	font-size: 15.5px;
	line-height: 1.55;
}


/* 17. Dark split section -------------------------------------------- */

.section-dark {
	background: var(--obsidian);
	color: var(--parchment);
	border-block: 1px solid #000;
}

[data-theme="dark"] .section-dark { background: #0A0A08; }

.section-dark .h2-invert { color: var(--parchment); }

.body-lg-invert {
	color: rgba(245, 243, 238, .72);
}

.split {
	display: grid;
	grid-template-columns: 1fr 1px 1fr;
	gap: clamp(32px, 5vw, 72px);
}

.split-divider {
	background: linear-gradient(180deg, transparent, #2A2A25 20%, #2A2A25 80%, transparent);
}

.split-col em {
	font-style: normal;
	color: var(--accent);
	font-weight: 500;
}

.check-list {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
	display: grid;
	gap: 10px;
}

.check-list li {
	padding-left: 26px;
	position: relative;
	color: rgba(245, 243, 238, .85);
	font-size: 15.5px;
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 14px;
	height: 1px;
	background: var(--accent);
}

.code-block {
	margin: 0 0 28px;
	padding: 22px 24px;
	background: var(--bg-sunk);
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
	font-size: 13.5px;
	line-height: 1.7;
	overflow-x: auto;
}

.code-block code {
	background: transparent;
	padding: 0;
	color: var(--fg);
	white-space: pre;
}

.code-block-invert {
	background: #0A0A08;
	border-color: #2A2A25;
	color: var(--parchment);
}

.code-block-invert code { color: var(--parchment); }


/* 18. Pullquote ----------------------------------------------------- */

.section-quote {
	padding: clamp(64px, 9vw, 120px) 0;
}

.pullquote {
	margin: 0 auto;
	max-width: 900px;
	text-align: center;
}

.pullquote p {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(26px, 3.6vw, 42px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--fg);
	margin: 0 0 32px;
	text-wrap: balance;
	position: relative;
}

.q-mark {
	color: var(--accent);
	font-family: var(--font-display);
	font-weight: 700;
}

.pullquote-foot {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	color: var(--fg-quiet);
}

.pullquote-foot strong {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--fg);
	font-size: 15px;
}


/* 19. FAQ ----------------------------------------------------------- */

.section-faq {
	background: var(--bg-elev);
	border-block: 1px solid var(--rule-soft);
}

.faq {
	margin: 0;
	max-width: 880px;
}

.faq details {
	border-bottom: 1px solid var(--rule);
	padding: 20px 0;
}

.faq details:first-of-type {
	border-top: 1px solid var(--rule);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
	cursor: pointer;
	gap: 24px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--step-2);
	letter-spacing: -0.008em;
	color: var(--fg);
	padding: 4px 0;
}

.faq summary::-webkit-details-marker { display: none; }

.faq-chev {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--rule);
	color: var(--fg-soft);
	font-size: 18px;
	font-weight: 300;
	flex-shrink: 0;
	transition: transform .3s var(--ease), background .3s var(--ease);
}

.faq details[open] .faq-chev {
	transform: rotate(45deg);
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.faq-a {
	padding-top: 14px;
	max-width: 68ch;
}

.faq-a p {
	margin: 0;
	color: var(--fg-soft);
	font-size: 16.5px;
	line-height: 1.6;
}


/* 20. CTA ----------------------------------------------------------- */

.section-cta {
	padding: clamp(56px, 8vw, 112px) 0;
}

.cta-card {
	background: var(--obsidian);
	color: var(--parchment);
	padding: clamp(40px, 6vw, 72px);
	border-radius: var(--radius-card);
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 40px;
	align-items: end;
	position: relative;
	overflow: hidden;
}

.cta-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 92% 110%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 45%);
	pointer-events: none;
}

.cta-card > * { position: relative; z-index: 1; }

.cta-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}


/* 21. Docs layout --------------------------------------------------- */

.docs-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 64px;
	padding: 48px 0 96px;
	align-items: start;
}

.docs-sidebar {
	position: sticky;
	top: 84px;
	font-size: 14.5px;
}

.docs-sidebar ul {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 2px;
}

.docs-section-label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	margin: 20px 0 10px;
	padding-left: 10px;
}

.docs-sidebar li a {
	display: block;
	padding: 6px 10px;
	color: var(--fg-soft);
	border-left: 2px solid transparent;
	transition: color .2s var(--ease), border-color .2s var(--ease);
}

.docs-sidebar li a:hover { color: var(--fg); }

.docs-sidebar li a.is-active {
	color: var(--fg);
	border-left-color: var(--accent);
	font-weight: 500;
}

/* Breadcrumbs */
.breadcrumbs {
	display: flex;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-quiet);
	margin-bottom: 24px;
	letter-spacing: 0.02em;
}

.breadcrumbs a { color: var(--fg-quiet); }
.breadcrumbs a:hover { color: var(--accent); }
.crumb-current { color: var(--fg); }

.docs-head {
	margin-bottom: 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--rule);
}

.docs-meta {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-quiet);
	margin: 0;
	letter-spacing: 0.02em;
}

/* Prose content area */
.prose { max-width: 68ch; }

.prose h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--step-3);
	margin: 48px 0 14px;
	letter-spacing: -0.015em;
	scroll-margin-top: 100px;
}

.prose h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--step-2);
	margin: 32px 0 10px;
}

.prose p {
	margin: 0 0 16px;
	color: var(--fg-soft);
}

.prose .lede {
	color: var(--fg);
	font-size: var(--step-2);
	margin-bottom: 28px;
}

.prose ul, .prose ol {
	margin: 0 0 20px;
	padding-left: 22px;
	color: var(--fg-soft);
}

.prose li { margin-bottom: 6px; }

.param-list { list-style: none !important; padding: 0 !important; }
.param-list li { padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.param-type {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-quiet);
	padding: 1px 6px;
	border: 1px solid var(--rule);
	border-radius: 3px;
	margin: 0 6px;
}

/* Callout */
.callout {
	margin: 28px 0;
	padding: 18px 20px;
	border-left: 3px solid var(--accent);
	background: var(--ember-tint);
	border-radius: 0 var(--radius) var(--radius) 0;
}

[data-theme="dark"] .callout {
	background: color-mix(in oklab, var(--accent) 14%, transparent);
}

.callout-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin-bottom: 6px;
}

[data-theme="dark"] .callout-label { color: #E58356; }
.callout p { margin: 0; color: var(--obsidian); font-size: 15.5px; }
[data-theme="dark"] .callout p { color: var(--parchment); }

/* Docs footer (prev/next) */
.docs-foot {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--rule);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.docs-next {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 20px;
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
	transition: border-color .2s var(--ease), background .2s var(--ease);
}

.docs-next:hover { border-color: var(--fg); }

.docs-next-label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-quiet);
}

.docs-next-title {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--fg);
}

.docs-edit {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-quiet);
	margin: 0;
}

.docs-edit a { color: var(--fg-quiet); }
.docs-edit a:hover { color: var(--accent); }


/* 22. Blog (Field notes) -------------------------------------------- */

.page-head {
	padding: clamp(48px, 8vw, 88px) 0 32px;
	max-width: 820px;
}

.post-list {
	list-style: none;
	padding: 0;
	margin: 0 0 96px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	border-top: 1px solid var(--rule);
}

.post-card {
	border-bottom: 1px solid var(--rule);
	border-right: 1px solid var(--rule);
}

.post-card:nth-child(2n) { border-right: 0; }

.post-card-lead {
	grid-column: 1 / -1;
	background: var(--bg-elev);
}

.post-card a {
	display: block;
	padding: 32px;
	height: 100%;
	transition: background .2s var(--ease);
}

.post-card a:hover { background: var(--bg-elev); }
.post-card-lead a:hover { background: var(--bg-sunk); }

.post-meta {
	display: flex;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.03em;
	color: var(--fg-quiet);
	text-transform: uppercase;
	margin: 0 0 18px;
}

.post-meta span:nth-child(1) {
	color: var(--accent);
	font-weight: 500;
}

.post-title {
	margin: 0 0 12px;
	color: var(--fg);
}

.post-card-lead .post-title { max-width: 22ch; }

.post-excerpt {
	margin: 0 0 16px;
	color: var(--fg-soft);
	font-size: 16px;
	max-width: 58ch;
	text-wrap: pretty;
}

.post-author {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-quiet);
	letter-spacing: 0.02em;
}


/* 23. Footer -------------------------------------------------------- */

.site-footer {
	background: var(--obsidian);
	color: var(--parchment);
	padding: 64px 0 28px;
	margin-top: 0;
	border-top: none;
	text-align: left;
	font-size: inherit;
}

[data-theme="dark"] .site-footer { background: #0A0A08; }

.site-footer .brand-wordmark .wm-first { color: var(--parchment); }

.footer-inner {
	display: grid;
	grid-template-columns: 1.2fr 2fr;
	gap: 64px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(245, 243, 238, .08);
}

.footer-tagline {
	margin: 18px 0 0;
	color: rgba(245, 243, 238, .55);
	font-family: var(--font-display);
	font-style: italic;
	font-size: 15px;
	max-width: 32ch;
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.footer-col-label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(245, 243, 238, .45);
	margin: 0 0 16px;
}

.footer-cols ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.footer-cols a {
	color: rgba(245, 243, 238, .78);
	font-size: 14.5px;
}

.footer-cols a:hover { color: var(--accent); }

.footer-fine {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-fine p {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	color: rgba(245, 243, 238, .45);
	letter-spacing: 0.02em;
	max-width: none;
}

.footer-meta {
	display: inline-flex;
	gap: 8px;
}

/* Legacy Genesis footer overrides */
.site-footer .wrap {
	display: block;
}

.site-footer p {
	margin: 0;
	max-width: none;
}

.site-footer a {
	color: rgba(245, 243, 238, .78);
}

.site-footer a:hover {
	color: var(--accent);
}


/* 24. Accessibility ------------------------------------------------- */

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

.screen-reader-text,
.screen-reader-shortcut {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.screen-reader-shortcut:focus {
	background-color: var(--bg);
	color: var(--accent);
	clip: auto !important;
	display: block;
	height: auto;
	left: var(--space-3);
	padding: var(--space-3) var(--space-4);
	position: absolute;
	top: var(--space-3);
	text-decoration: underline;
	width: auto;
	z-index: var(--z-modal);
}

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


/* 25. Utility classes ----------------------------------------------- */

.text-center    { text-align: center; }
.text-muted     { color: var(--fg-quiet); }
.text-accent    { color: var(--accent); }
.mono           { font-family: var(--font-mono); letter-spacing: var(--tracking-mono); }

.u-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* 26. Responsive breakpoints --------------------------------------- */

/* 640px — small tablets */
@media (min-width: 40em) {
	.container,
	.wrap,
	.site-inner {
		padding-inline: var(--space-6);
	}
}

/* 768px — tablets */
@media (min-width: 48em) {
	.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 960px — collapse point for complex layouts */
@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-proof { grid-template-columns: repeat(2, 1fr); }
	.two-col { grid-template-columns: 1fr; }
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; }
	.split-divider { display: none; }
	.docs-layout { grid-template-columns: 1fr; gap: 32px; }
	.docs-sidebar { position: static; }
	.cta-card { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr; gap: 40px; }
	.post-list { grid-template-columns: 1fr; }
	.post-card { border-right: 0; }
	.diagram { grid-template-columns: 1fr; }
	.d-wire { transform: rotate(90deg); height: 80px; }
	.primary-nav { display: none; }
}

/* 1024px — laptops */
@media (min-width: 64em) {
	.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 560px — mobile */
@media (max-width: 560px) {
	.feature-grid { grid-template-columns: 1fr; }
	.hero-proof { grid-template-columns: 1fr 1fr; gap: 16px; }
	.header-actions .link-plain { display: none; }
	.principle-row { gap: 14px 24px; }
	.principle-row li { font-size: 14px; }
}

/* 1280px — desktops */
@media (min-width: 80em) {
	.site-inner { padding-inline: var(--space-7); }
}

/* Print */
@media print {
	body {
		background: #fff;
		color: #000;
	}
	a { color: #000; text-decoration: underline; }
	.site-header,
	.site-footer,
	.genesis-nav-menu,
	.primary-nav {
		display: none;
	}
}

/* Phase 2B fix: invert text colors inside CTA card (parallel to .section-dark). */
.cta-card .h2-invert { color: var(--parchment); }
.cta-card .section-kicker-invert { color: rgba(245, 243, 238, 0.55); }
