/* Oslo Registry Landing — layout & component styles.
   Structure and feel mimic monarch.com (sticky slim header, centered nav +
   pill CTAs, warm alternating sections, large rounded media frames, generous
   spacing, fat multi-column footer). Brand stays Oslo: Inter/Rubik fonts and
   the app's blue as the accent — see the tokens lifted from src/index.css.
   Light theme only; the landing site has no dark mode. */

:root {
	/* --- Brand palette (from the app, light theme) --- */
	--primary-color: #0099dd;
	--primary-color-hover: #0085c2;
	--primary-color-lightened: #e6f7ff;
	--secondary-color: #63372c;

	/* --- Ink / text (Monarch-style dark headings) --- */
	--ink: #1b2027;              /* headings */
	--text-primary: #222526;
	--text-secondary: #55595c;   /* body copy */
	--text-muted: #85898c;       /* captions, legal */

	/* --- Surfaces: warm neutrals for the Monarch feel --- */
	--page-background: #fdfbf7;   /* barely-off warm white, a touch darker than pure #fff */
	--surface-cream: #faf6ef;    /* alternating section panels */
	--surface-sand: #f4efe6;     /* footer / trust strip */
	--container-background: #ffffff;
	--ink-band: #171b22;         /* dark closing CTA band */

	/* --- Borders --- */
	--border-color: #e9e3d8;     /* warm hairline */
	--card-border: #ece7dd;

	/* --- Spacing --- */
	--spacing-small: 0.25rem;
	--spacing-standard: 0.5rem;
	--spacing-large: 1rem;
	--section-spacing: clamp(3.5rem, 8vw, 6.5rem);
	--container-max: 1140px;

	/* --- Radius (Monarch = soft/rounded; pills for buttons) --- */
	--radius-pill: 999px;
	--radius-card: 1.25rem;      /* feature cards */
	--radius-media: 1.5rem;      /* screenshot frames */
	--radius-standard: 0.5rem;
	--radius-button: 0.85rem;    /* rounded-rect buttons — bigger than the app's 0.5rem */

	/* --- Type --- */
	--body-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--heading-font: 'Rubik', sans-serif;
	--font-size-small: 0.85rem;

	--header-height: 4.25rem;
	--header-margin: 0.75rem;   /* gap between the floating header pill and the viewport edges */
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Keep #anchor jumps clear of the floating header (JS keeps --top-offset
	   in sync with the actual promo+header height). */
	scroll-padding-top: calc(var(--top-offset, 6.75rem) + 0.5rem);
}

body {
	margin: 0;
	font-family: var(--body-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-secondary);
	background: var(--page-background);
	/* Sticky footer: a full-height flex column so a short page's main content
	   grows to fill the viewport and the footer sits at the bottom rather than
	   leaving whitespace below it. The fixed .site-top is out of flow, so only
	   .site-main and .site-footer are flex items. */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* --- Typography: Rubik headings in deep ink; blue reserved for accents. --- */
h1, h2, h3 {
	font-family: var(--heading-font);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: 0;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--primary-color);
	text-decoration: none;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

/* Small blue label above a heading — Monarch's section eyebrow. */
.eyebrow,
.section__eyebrow {
	font-family: var(--heading-font);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary-color);
	margin: 0 0 var(--spacing-standard);
}

.text-link {
	font-weight: 500;
	color: var(--primary-color);
}
.text-link:hover {
	color: var(--primary-color-hover);
}

/* ============================ BUTTONS ============================
   Pill-shaped, Monarch-style. Primary = Oslo blue with hover-darken. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--heading-font);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	padding: 0.65rem 1.35rem;
	/* Rounded rectangle (not a full pill) — a touch rounder than the app. */
	border-radius: var(--radius-button);
	border: 0.0625rem solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn--lg {
	padding: 0.85rem 1.7rem;
	font-size: 1rem;
}

.btn--primary {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #ffffff;
}
.btn--primary:hover {
	background: var(--primary-color-hover);
	border-color: var(--primary-color-hover);
}

.btn--ghost {
	background: transparent;
	border-color: var(--border-color);
	color: var(--ink);
}
.btn--ghost:hover {
	border-color: var(--ink);
	background: rgba(0, 0, 0, 0.02);
}


/* Unavailable action — e.g. the "Coming soon" buttons on the Download page.
   Reads as a flat, muted chip so it's clearly not a target. Applies to a
   disabled <button> and to an <a> marked aria-disabled. */
.btn:disabled,
.btn[aria-disabled="true"] {
	background: var(--surface-sand);
	border-color: var(--card-border);
	color: var(--text-muted);
	cursor: not-allowed;
	pointer-events: none;
}
/* =========================== HEADER ============================= */
/* A detached, rounded pill that floats over the page, inset from the top and
   sides so the full-bleed hero shows above/beside/below it (Monarch-style).
   Fixed → content scrolls underneath. The pill spans the full viewport width,
   inset by --header-margin on every side for even spacing all around. */
.site-top {
	position: fixed;
	top: var(--header-margin);
	left: 0;
	right: 0;
	z-index: 100;
}
/* Full-bleed the header's container: instead of the centered, max-width content
   column (which left wide gutters beside the pill on large screens), stretch the
   pill edge-to-edge and inset it by --header-margin so the left/right gap matches
   the top/bottom gap. */
.site-top .container {
	max-width: none;
	padding-inline: var(--header-margin);
}

/* Interior pages (no full-bleed hero) reserve the pill's height so their
   content clears it. The front page opts out (body.home) — its hero runs
   full-bleed to the very top, behind the pill, and pads its own content.
   --top-offset (pill bottom edge) is measured in main.js; fallback ≈ margin +
   header height. */
.site-main {
	padding-top: var(--top-offset, 5.5rem);
	/* Grow to absorb any leftover viewport height so the footer is pushed to the
	   bottom on short pages (see body flex column above). */
	flex: 1 0 auto;
}
body.home .site-main {
	padding-top: 0;
}

.site-header {
	/* The visible pill. Translucent + blur so the hero shows through. */
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: saturate(180%) blur(12px);
	border: 0.0625rem solid rgba(255, 255, 255, 0.6);
	border-radius: var(--radius-card);
	box-shadow: 0 0.75rem 2rem rgba(23, 27, 34, 0.12);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--spacing-large);
	min-height: 3.75rem;
	padding-left: 1.25rem;
	/* Tighter on the right so the Sign-up button nests in the corner with even
	   spacing on all sides — it sits ~0.6rem from the pill's top/bottom, so the
	   right inset matches rather than the wider brand-side 1.25rem. */
	padding-right: 0.6rem;
}
.site-header__brand {
	font-family: var(--heading-font);
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--ink);
	text-decoration: none;
	flex-shrink: 0;
}
/* Site Identity logo (the_custom_logo). Constrain to the pill height so the
   header fits the logo rather than growing to the image's natural size. */
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}
.custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 2.3rem;
	max-width: 13rem;
}

/* Centered nav between brand and CTAs. */
.site-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}
.site-nav__list {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav__list a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-primary);
	text-decoration: none;
	padding: 0.4rem 0.75rem;
	border-radius: 0.5rem;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav__list a:hover {
	color: var(--primary-color);
	background: var(--primary-color-lightened);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--spacing-large);
	flex-shrink: 0;
}
.nav-signin {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
}
.nav-signin:hover {
	color: var(--primary-color);
}

/* Hamburger — hidden on desktop. */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 0.3rem;
	width: 2.5rem;
	height: 2.5rem;
	margin-left: auto;
	background: none;
	border: none;
	cursor: pointer;
}
.nav-toggle__bar {
	display: block;
	width: 1.35rem;
	height: 0.125rem;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav__actions-mobile {
	display: none;
}

/* =========================== HERO ============================== */
/* Full-bleed: the background runs to the very top of the page, behind the
   floating header pill. Content is padded down past the pill (--top-offset =
   pill's bottom edge, measured in main.js). */
.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: min(92vh, 860px);
	padding-top: calc(var(--top-offset, 5.5rem) + clamp(1.5rem, 4vw, 3rem));
	padding-bottom: var(--section-spacing);
}
/* Base layer: warm gradient by default, or the Customizer poster (set inline).
   Kept light so the dark hero text stays legible; also the mobile /
   reduced-motion fallback behind the video. */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -3;
	background:
		radial-gradient(120% 120% at 15% 8%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
		linear-gradient(135deg, #eaf6fc 0%, #f7efe4 45%, #efe6d8 100%);
	background-size: cover;
	background-position: center;
}
/* Video layer, sits above the base layer and below the scrim. */
.hero__video {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Skip the video on phones (data/battery) and for reduced-motion visitors —
   the poster/gradient base layer shows through instead. */
@media (max-width: 48rem) {
	.hero__video { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hero__video { display: none; }
}
.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Lifts text contrast over a busy video; barely visible over the placeholder. */
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.34) 100%);
}
.hero__inner {
	display: flex;
	width: 100%;
}
/* Frosted panel behind the hero copy so it stays legible over any hero
   image/video. Anchored bottom-left by the flex container above. */
.hero__content {
	max-width: 42rem;
	padding: clamp(1.75rem, 3vw, 2.75rem);
	border-radius: var(--radius-media);
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(0.75rem);
	-webkit-backdrop-filter: blur(0.75rem);
	border: 0.0625rem solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 0.75rem 2rem rgba(23, 27, 34, 0.12);
}
.hero__title {
	font-size: clamp(2.25rem, 5vw, 3.4rem);
	margin: 0 0 1.25rem;
	max-width: 16ch;
}
.hero__lede {
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--text-secondary);
	max-width: 46ch;
	margin: 0 0 1.75rem;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ==================== SCREENSHOT MOCKUPS ======================= */
.mockup {
	background: var(--container-background);
	border: 0.0625rem solid var(--card-border);
	border-radius: var(--radius-media);
	overflow: hidden;
	box-shadow: 0 1.5rem 3rem rgba(23, 27, 34, 0.08);
}
.mockup__bar {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.75rem 1rem;
	background: var(--surface-cream);
	border-bottom: 0.0625rem solid var(--card-border);
}
.mockup__bar span {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: #d9d2c6;
}
.mockup__body {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 15rem;
	color: var(--text-muted);
	font-family: var(--heading-font);
	font-size: 0.95rem;
	background:
		repeating-linear-gradient(
			-45deg,
			var(--surface-cream) 0 12px,
			#ffffff 12px 24px
		);
}
.mockup__image {
	display: block;
	width: 100%;
	height: auto;
}

/* ========================= TRUST STRIP ========================= */
.logo-strip {
	background: var(--surface-sand);
	border-block: 0.0625rem solid var(--border-color);
}
.logo-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2.5rem;
	padding-block: 1.5rem;
}
.logo-strip__label {
	font-size: var(--font-size-small);
	color: var(--text-muted);
}
.logo-strip__stat {
	font-size: 1rem;
	color: var(--text-secondary);
}
.logo-strip__stat strong {
	font-family: var(--heading-font);
	font-weight: 600;
	color: var(--ink);
}

/* =========================== SECTIONS ========================== */
.section {
	padding-block: var(--section-spacing);
}
.section--cream {
	background: var(--surface-cream);
}
.section__head {
	max-width: 42rem;
	margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
	text-align: center;
}
.section__title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	margin: 0 0 var(--spacing-large);
}
.section__lede {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin: 0;
}

/* ======================= FEATURE CARDS ========================= */
.feature-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}
.feature-card {
	background: var(--container-background);
	border: 0.0625rem solid var(--card-border);
	border-radius: var(--radius-card);
	padding: 1.75rem;
}
.feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.9rem;
	background: var(--primary-color-lightened);
	color: var(--primary-color);
	margin-bottom: 1.1rem;
}
.feature-card__icon svg {
	width: 1.4rem;
	height: 1.4rem;
}
.feature-card__title {
	font-size: 1.15rem;
	margin: 0 0 0.5rem;
}
.feature-card p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--text-secondary);
}

/* ==================== ALTERNATING ROWS ========================= */
.feature-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.feature-row + .feature-row {
	margin-top: var(--section-spacing);
}
/* Reverse: media on the left. Source order keeps content first for a11y. */
.feature-row--reverse .feature-row__content {
	order: 2;
}
.feature-row__content h2 {
	font-size: clamp(1.6rem, 3vw, 2.15rem);
	margin: 0 0 1rem;
}
.feature-row__content p {
	font-size: 1.05rem;
	color: var(--text-secondary);
	margin: 0 0 1.25rem;
}

/* ======================= TESTIMONIALS ========================== */
.testimonials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.testimonial {
	background: var(--container-background);
	border: 0.0625rem solid var(--card-border);
	border-radius: var(--radius-card);
	padding: 1.75rem;
	margin: 0;
}
.testimonial__quote {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--ink);
}
.testimonial__author {
	font-size: var(--font-size-small);
	color: var(--text-muted);
}

/* ========================= PRESS STRIP ========================= */
.press {
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 0.0625rem solid var(--border-color);
}
.press__label {
	text-align: center;
	font-size: var(--font-size-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 1.5rem;
}
.press__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem 2.75rem;
}
.press__logo {
	font-family: var(--heading-font);
	font-weight: 600;
	font-size: 1.15rem;
	color: #b7b0a4;
	letter-spacing: -0.01em;
}

/* ========================== CTA BAND =========================== */
.cta-band {
	background: var(--ink-band);
	color: #fff;
	margin-block: 0;
}
.cta-band__inner {
	text-align: center;
	padding-block: var(--section-spacing);
}
.cta-band__title {
	color: #fff;
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	margin: 0 0 0.75rem;
}
.cta-band__text {
	color: rgba(255, 255, 255, 0.75);
	font-size: 1.15rem;
	margin: 0 0 1.75rem;
}
.cta-band__actions {
	display: flex;
	justify-content: center;
}

/* ======================= DOWNLOAD CARDS ========================
   The Download page template (template-download.php): one card per platform,
   equal height, CTA pinned to the bottom edge so the three buttons line up
   however long the copy runs. */
.download-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	align-items: stretch;
}
.download-card {
	display: flex;
	flex-direction: column;
	text-align: center;
	background: var(--container-background);
	border: 0.0625rem solid var(--card-border);
	border-radius: var(--radius-card);
	padding: 1.75rem;
}
/* Placeholder art panel — swap the glyph for a real screenshot <img>. */
.download-card__art {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 11rem;
	margin-bottom: 1.5rem;
	border-radius: var(--radius-media);
	border: 0.0625rem solid var(--card-border);
	background: linear-gradient(160deg, var(--primary-color-lightened), var(--surface-cream));
	color: var(--primary-color);
	overflow: hidden;
}
.download-card__art svg {
	width: 3.25rem;
	height: 3.25rem;
}
.download-card__art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.download-card__title {
	font-size: 1.3rem;
	margin: 0 0 0.6rem;
}
/* Grows to fill the card so the CTA below it sits at a common baseline. */
.download-card__text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 0.95rem;
	color: var(--text-secondary);
}
.download-card__cta {
	width: 100%;
	margin-top: 1.5rem;
}

/* ========================= SOCIAL CARDS ========================
   Socials page (template-socials.php): one card per Social entry, three
   across, same bones as the download cards — art panel, title, handle, blurb,
   and a CTA pinned to the bottom edge so the buttons line up across a row. */
.social-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	align-items: stretch;
}
.social-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--container-background);
	border: 0.0625rem solid var(--card-border);
	border-radius: var(--radius-card);
	padding: 1.75rem;
}
/* Glyph badge — a round, tinted disc rather than the download card's wide
   panel, since a platform mark reads as an avatar, not a screenshot. */
.social-card__art {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	height: 5.5rem;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var(--primary-color-lightened);
	color: var(--primary-color);
	overflow: hidden;
}
.social-card__art .social-icon {
	width: 2.5rem;
	height: 2.5rem;
}
/* With a featured image set, the disc becomes the image, cropped to fit. */
.social-card__art--image {
	border: 0.0625rem solid var(--card-border);
	background: var(--surface-cream);
}
.social-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.social-card__title {
	font-size: 1.3rem;
	margin: 0 0 0.25rem;
}
.social-card__handle {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-muted);
	word-break: break-word;
}
/* Always rendered so the line is reserved on every card; an empty one gets
   a non-breaking space so it takes exactly one line's height. */
.social-card__handle:empty::before {
	content: "\00a0";
}
/* Grows to fill the card so the CTA below it sits at a common baseline. */
.social-card__text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 0.95rem;
	color: var(--text-secondary);
}
.social-card__cta {
	width: 100%;
	margin-top: 1.5rem;
}

/* ========================== BLOG LIST ==========================
   Blog page (template-blog.php): one row per post in a single column — date,
   title, excerpt, and a "Read more" link on the left, with the cover image in
   a fixed panel on the right. A post without a cover renders no media panel
   at all (the template omits it), so the copy simply spans the row. */
.blog-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.blog-row {
	display: flex;
	align-items: flex-start;
	gap: 2rem;
	background: var(--container-background);
	border: 0.0625rem solid var(--card-border);
	border-radius: var(--radius-card);
	padding: 1.75rem;
}
.blog-row__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 1 auto;
	min-width: 0;
}
.blog-row__meta {
	margin: 0 0 0.5rem;
	font-size: var(--font-size-small);
	font-weight: 500;
	color: var(--text-muted);
}
.blog-row__title {
	font-size: 1.4rem;
	margin: 0 0 0.6rem;
}
.blog-row__title a {
	color: inherit;
}
.blog-row__title a:hover {
	color: var(--primary-color);
}
/* the_excerpt() wraps in a <p>. */
.blog-row__text {
	font-size: 0.95rem;
	color: var(--text-secondary);
}
.blog-row__text p {
	margin: 0;
}
.blog-row__cta {
	margin-top: 1.25rem;
}
/* Cover: a fixed-width 16:10 window on the right so every row's image is the
   same size whatever the source shape. The whole panel is a (redundant,
   hidden-from-AT) link to the post. */
.blog-row__media {
	display: block;
	flex: 0 0 15rem;
	width: 15rem;
	aspect-ratio: 16 / 10;
	border-radius: calc(var(--radius-card) / 2);
	overflow: hidden;
	background: var(--surface-cream);
}
.blog-row__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Page links under the list (paginate_links, type=list). */
.pagination {
	margin-top: clamp(2rem, 4vw, 3rem);
}
.pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pagination .page-numbers li {
	margin: 0;
}
.pagination a.page-numbers,
.pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.4rem 0.9rem;
	border-radius: var(--radius-button);
	border: 0.0625rem solid var(--border-color);
	color: var(--ink);
	font-family: var(--heading-font);
	font-weight: 500;
	font-size: 0.95rem;
}
.pagination a.page-numbers:hover {
	border-color: var(--ink);
}
.pagination .page-numbers.current {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #ffffff;
}
.pagination .page-numbers.dots {
	border-color: transparent;
	color: var(--text-muted);
}

/* ========================== BLOG POST ==========================
   Single post (single-oslo_blog_post.php), on the long-form .entry column. */
.blog-post__meta {
	margin: 0 0 0.75rem;
	font-size: var(--font-size-small);
	font-weight: 500;
	color: var(--text-muted);
}
.blog-post__eyebrow {
	font-family: var(--heading-font);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary-color);
}
.blog-post__sep {
	margin-inline: 0.5rem;
}
/* Cover image sits on the same 68ch measure as the copy, rounded like media. */
.blog-post__media {
	max-width: 68ch;
	margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--radius-media);
	overflow: hidden;
	border: 0.0625rem solid var(--card-border);
}
.blog-post__image {
	display: block;
	width: 100%;
	height: auto;
}
.blog-post__nav {
	max-width: 68ch;
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
	padding-top: 1.75rem;
	border-top: 0.0625rem solid var(--border-color);
}
.blog-post__adjacent {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.blog-post__adjacent-link {
	display: flex;
	flex-direction: column;
	max-width: 48%;
	font-weight: 500;
}
.blog-post__adjacent-link--next {
	margin-left: auto;
	text-align: right;
}
.blog-post__adjacent-label {
	font-size: var(--font-size-small);
	font-weight: 500;
	color: var(--text-muted);
	margin-bottom: 0.15rem;
}

/* ========================= DOMAIN TILES ========================
   Features page (template-features.php). One horizontal card per app domain,
   stacked: icon badge on the left, copy + button on the right. */
.domain-tiles {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	max-width: 56rem;
	margin-inline: auto;
}
.domain-tile {
	display: flex;
	align-items: flex-start;
	gap: 1.75rem;
	background: var(--container-background);
	border: 0.0625rem solid var(--card-border);
	border-radius: var(--radius-card);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.domain-tile__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1.1rem;
	background: var(--primary-color-lightened);
	color: var(--primary-color);
}
.domain-tile__icon svg {
	width: 1.75rem;
	height: 1.75rem;
}
.domain-tile__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 1 auto;
	min-width: 0;
}
.domain-tile__title {
	font-size: 1.35rem;
	margin: 0 0 0.5rem;
}
/* The tile body is the child page's rendered block content, so it's a <div>
   of paragraphs (and maybe a list) rather than one <p>. */
.domain-tile__text {
	font-size: 1rem;
	color: var(--text-secondary);
	max-width: 60ch;
}
.domain-tile__text > * {
	margin: 0 0 0.75em;
}
.domain-tile__text > :last-child {
	margin-bottom: 0;
}
.domain-tile__text ul,
.domain-tile__text ol {
	padding-left: 1.3em;
}
.domain-tile__text a {
	color: var(--primary-color);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.domain-tile__cta {
	margin-top: 1.25rem;
}
/* Optional featured image: a fixed square on the right, cropped to fit. */
.domain-tile__media {
	flex-shrink: 0;
	width: 11rem;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-media);
	overflow: hidden;
	border: 0.0625rem solid var(--card-border);
}
.domain-tile__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Editor-only hint shown in place of the grid when the page has no children. */
.domain-tiles__empty {
	max-width: 40rem;
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
	border: 0.0625rem dashed var(--border-color);
	border-radius: var(--radius-card);
	color: var(--text-secondary);
	text-align: center;
}

/* ============================ FORMS ============================
   Contact page (template-contact.php). One narrow column — a contact form is
   a sequence, not a grid, and a single column keeps the tab order obvious. */
.contact-form {
	max-width: 34rem;
	margin-inline: auto;
}
.form-field + .form-field {
	margin-top: 1.25rem;
}
.form-field__label {
	display: block;
	font-family: var(--heading-font);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--ink);
	margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	font-family: var(--body-font);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--text-primary);
	background: var(--container-background);
	padding: 0.7rem 0.9rem;
	border: 0.0625rem solid var(--border-color);
	border-radius: var(--radius-standard);
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.form-field textarea {
	resize: vertical;
	min-height: 9rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.1875rem var(--primary-color-lightened);
}
/* Invalid state is carried by color *and* the message below it — color alone
   would be invisible to anyone who can't distinguish it. */
.form-field--invalid input,
.form-field--invalid select,
.form-field--invalid textarea {
	border-color: #c0392b;
}
.form-field__error {
	margin: 0.4rem 0 0;
	font-size: var(--font-size-small);
	color: #c0392b;
}
/* Cloudflare Turnstile. The widget is a fixed 300x65 third-party iframe, so the
   wrapper hugs it rather than stretching across the form, and reserves its
   height up front — otherwise the form shifts under the visitor's cursor when
   the script finishes loading. */
.cf-turnstile {
	display: inline-block;
	min-height: 4.0625rem;
}
/* The invalid-state border the other fields get can't reach inside an iframe,
   so mark the widget's box instead. The message below it does the real work. */
.form-field--invalid .cf-turnstile {
	border-radius: var(--radius-standard);
	box-shadow: 0 0 0 0.125rem #c0392b;
}

.contact-form__submit {
	width: 100%;
	margin-top: 1.75rem;
}

/* In-flight submit state. The form is a plain POST — the browser navigates and
   the page is replaced — so this exists to answer "did my click register?"
   during the round trip. assets/js/main.js adds .btn--loading on submit.

   The label stays visible and the spinner sits after it, rather than the app's
   transparent-label-with-centred-spinner treatment: that variant exists to stop
   a button changing width, and this one is already width:100%. Keeping the text
   also means the frozen-spinner case below still reads as a button. */
.btn__loader {
	display: none;
}
.btn--loading .btn__loader {
	display: inline-block;
	width: 1rem;
	aspect-ratio: 1;
	margin-left: 0.5rem;
	border-radius: 50%;
	vertical-align: middle;
	/* Same construction as the app's `button div.loader` (src/index.css): a
	   conic sweep masked into a ring, with a round cap at the top. White, which
	   is the primary button's text colour. */
	background:
		radial-gradient(farthest-side, #ffffff 94%, #0000) top/0.25rem 0.25rem no-repeat,
		conic-gradient(#0000 30%, #ffffff);
	-webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 0.25rem), #000 0);
	mask: radial-gradient(farthest-side, #0000 calc(100% - 0.25rem), #000 0);
	animation: loader-spin 1.25s infinite linear;
}
/* No second click while the first is in flight. This also keeps the hover
   colour off, since the pointer is still over the button right after clicking
   and :hover can't match an element that ignores the pointer. */
.btn--loading {
	pointer-events: none;
}

/* Reduced motion: slow the sweep rather than freezing it. A stopped spinner
   is indistinguishable from a stuck one, and this is the only cue that the
   submission is on its way. */
@media (prefers-reduced-motion: reduce) {
	.btn--loading .btn__loader {
		animation-duration: 3s;
	}
}

@keyframes loader-spin {
	100% {
		transform: rotate(1turn);
	}
}

/* Honeypot — hidden from people, still reachable by a bot parsing the HTML.
   Not display:none, which some bots skip; pulled off-canvas instead. */
.form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Form-level banners: delivery failure, expired nonce, rate limit, success. */
.form-notice {
	max-width: 34rem;
	margin: 0 auto 1.5rem;
	padding: 0.9rem 1.1rem;
	border: 0.0625rem solid var(--card-border);
	border-radius: var(--radius-standard);
	font-size: 0.95rem;
}
.form-notice--success {
	border-color: var(--primary-color);
	background: var(--primary-color-lightened);
	color: var(--ink);
	text-align: center;
}
.form-notice--error {
	border-color: #c0392b;
	background: #fdf0ee;
	color: #8e2b20;
}

/* =========================== FOOTER ============================ */
.site-footer {
	background: var(--surface-sand);
	border-top: 0.0625rem solid var(--border-color);
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
	/* Never let the footer be squeezed when .site-main grows to fill the page. */
	flex-shrink: 0;
}
.site-footer__top {
	display: grid;
	grid-template-columns: 1.4fr 3fr;
	gap: clamp(2rem, 5vw, 4rem);
	padding-bottom: 2.5rem;
	border-bottom: 0.0625rem solid var(--border-color);
}
/* Every link column hidden: the brand column takes the whole row. */
.site-footer__top--nocols {
	grid-template-columns: 1fr;
}
.site-footer__brand {
	display: inline-block;
	font-family: var(--heading-font);
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--ink);
	text-decoration: none;
}
/* Site Identity logo in the brand column — same image as the header, sized for
   the footer. Only the site-title fallback uses the type styles above. */
.site-footer__brand-logo {
	display: block;
	width: auto;
	height: 3rem;
}
.site-footer__tagline {
	margin: 0.75rem 0 1.25rem;
	max-width: 26ch;
	color: var(--text-secondary);
	font-size: 0.95rem;
}
.site-footer__social {
	display: flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	border: 0.0625rem solid var(--border-color);
	color: var(--text-secondary);
	background: var(--container-background);
	transition: color 0.12s ease, border-color 0.12s ease;
}
.site-footer__social a:hover {
	color: var(--primary-color);
	border-color: var(--primary-color);
}
.social-icon {
	width: 1.15rem;
	height: 1.15rem;
}

.site-footer__cols {
	display: grid;
	/* Track count follows however many columns are switched on in Customize →
	   Footer, so hiding one closes the gap instead of leaving an empty track. */
	grid-template-columns: repeat(var(--footer-cols, 4), minmax(0, 1fr));
	gap: 1.5rem;
}
.site-footer__cols--1 { --footer-cols: 1; }
.site-footer__cols--2 { --footer-cols: 2; }
.site-footer__cols--3 { --footer-cols: 3; }
.footer-col__title {
	font-family: var(--heading-font);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	margin: 0 0 1rem;
}
.footer-col__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}
.footer-col__list a {
	font-size: 0.95rem;
	color: var(--text-secondary);
	text-decoration: none;
}
.footer-col__list a:hover {
	color: var(--primary-color);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing-large);
	padding-top: 1.5rem;
}
.site-footer__legal {
	margin: 0;
	font-size: var(--font-size-small);
	color: var(--text-muted);
}
.site-footer__legal a {
	color: var(--text-muted);
	text-decoration: none;
}
.site-footer__legal a:hover {
	color: var(--text-primary);
}
.site-footer__legal span {
	margin-inline: 0.5rem;
}
.site-footer__logo-wrap {
	display: inline-flex;
	align-items: center;
}
.site-footer__logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 1.4rem;
	max-width: 7rem;
	opacity: 0.85;
}

/* ========================= GENERIC PAGE ========================
   Fallback template (index.php) for ordinary WordPress Pages/Posts, plus the
   block-editor content appended below the landing sections. Gives long-form
   content a readable measure, vertical rhythm, and styled block elements so an
   un-templated page reads as intentional rather than raw browser defaults. */
.page-content {
	padding-block: clamp(2rem, 4vw, 3.25rem) var(--section-spacing);
}

/* Title, aligned to the same measure and inset as the body copy below it. */
.entry__header {
	max-width: 68ch;
	margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}
.entry__title {
	font-size: clamp(2rem, 4vw, 2.9rem);
	margin: 0;
}

/* Long-form content column. */
.entry-content {
	max-width: 68ch;
	margin-inline: auto;
	color: var(--text-primary);
	font-size: 1.05rem;
}
.entry-content > :first-child {
	margin-top: 0;
}

/* Headings: Rubik/ink like the rest of the theme, spaced off the text above. */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--heading-font);
	color: var(--ink);
	line-height: 1.2;
	margin: 2.25em 0 0.75em;
}
.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h4 { font-size: 1.1rem; }

.entry-content p {
	margin: 0 0 1.25em;
}

.entry-content a {
	color: var(--primary-color);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.entry-content a:hover {
	color: var(--primary-color-hover);
}

/* Lists. */
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25em;
	padding-left: 1.4em;
}
.entry-content li {
	margin-bottom: 0.4em;
}
.entry-content li::marker {
	color: var(--text-muted);
}

/* Blockquote — soft blue-accented callout. */
.entry-content blockquote {
	margin: 1.75em 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 0.2rem solid var(--primary-color);
	color: var(--text-secondary);
	font-size: 1.1rem;
}
.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Media: rounded frames matching the theme; muted, centered captions. */
.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-standard);
}
.entry-content figure {
	margin: 1.75em 0;
}
.entry-content figcaption {
	margin-top: 0.6em;
	font-size: var(--font-size-small);
	color: var(--text-muted);
	text-align: center;
}

.entry-content hr {
	margin: 2.5em 0;
	border: 0;
	border-top: 0.0625rem solid var(--border-color);
}

/* Inline code + fenced blocks. */
.entry-content code {
	font-family: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
	font-size: 0.9em;
	background: var(--surface-cream);
	border: 0.0625rem solid var(--card-border);
	border-radius: 0.35rem;
	padding: 0.1em 0.35em;
}
.entry-content pre {
	margin: 1.5em 0;
	padding: 1rem 1.25rem;
	overflow-x: auto;
	background: var(--surface-cream);
	border: 0.0625rem solid var(--card-border);
	border-radius: var(--radius-standard);
}
.entry-content pre code {
	background: none;
	border: 0;
	padding: 0;
	font-size: 0.9rem;
}

/* Tables. */
.entry-content table {
	width: 100%;
	margin: 1.75em 0;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.entry-content th,
.entry-content td {
	padding: 0.6rem 0.8rem;
	border: 0.0625rem solid var(--border-color);
	text-align: left;
}
.entry-content th {
	background: var(--surface-cream);
	font-family: var(--heading-font);
	font-weight: 600;
	color: var(--ink);
}

/* WordPress editor alignment helpers. */
.entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}
.entry-content .alignright {
	float: right;
	margin: 0.25em 0 1em 1.5em;
}
.entry-content .alignleft {
	float: left;
	margin: 0.25em 1.5em 1em 0;
}
.entry-content .wp-caption {
	max-width: 100%;
}

/* ========================== RESPONSIVE ========================= */
@media (max-width: 60rem) {
	.feature-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Three download cards stack to one readable column rather than 2 + 1. */
	.download-cards {
		grid-template-columns: 1fr;
		max-width: 30rem;
		margin-inline: auto;
	}
	/* Social cards are short, so two-up still reads well at tablet widths. */
	.social-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Blog rows: a narrower cover keeps room for the copy beside it. */
	.blog-row__media {
		flex-basis: 11rem;
		width: 11rem;
	}
	.site-footer__top {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 48rem) {
	.social-cards {
		grid-template-columns: 1fr;
		max-width: 30rem;
		margin-inline: auto;
	}
	/* Blog rows stack on phones: the cover moves above the copy and spans the row. */
	.blog-row {
		flex-direction: column;
		gap: 1.25rem;
		padding: 1.25rem;
	}
	.blog-row__media {
		order: -1;
		flex-basis: auto;
		width: 100%;
	}
	.blog-post__adjacent {
		flex-direction: column;
	}
	.blog-post__adjacent-link,
	.blog-post__adjacent-link--next {
		max-width: none;
		margin-left: 0;
		text-align: left;
	}
	/* Domain tiles stack icon-over-copy once there's no room beside the icon;
	   the featured image moves up under the icon and spans the card. */
	.domain-tile {
		flex-direction: column;
		gap: 1rem;
	}
	.domain-tile__media {
		order: -1;
		width: 100%;
		max-width: 18rem;
	}
	/* Header collapses to a hamburger + dropdown panel. */
	.nav-toggle {
		display: flex;
	}
	.site-header__actions {
		display: none;
	}
	/* Sign-up button is hidden here; restore the right inset so the hamburger
	   (now the rightmost element) keeps even spacing from the pill edge. */
	.site-header__inner {
		padding-right: 1.25rem;
	}
	/* Dropdown reads as its own floating panel just below the pill. */
	.site-nav {
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--container-background);
		border: 0.0625rem solid var(--border-color);
		border-radius: var(--radius-card);
		box-shadow: 0 0.75rem 2rem rgba(23, 27, 34, 0.14);
		padding: 1rem 1.25rem 1.25rem;
		display: none;
	}
	.site-header.is-nav-open .site-nav {
		display: flex;
	}
	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.25rem;
		width: 100%;
	}
	.site-nav__list a {
		display: block;
		padding: 0.6rem 0.75rem;
	}
	.site-nav__actions-mobile {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
		margin-top: 1rem;
		padding-top: 1rem;
		border-top: 0.0625rem solid var(--border-color);
	}
	.site-nav__actions-mobile .btn,
	.site-nav__actions-mobile .nav-signin {
		width: 100%;
		text-align: center;
	}

	/* Stack feature rows. */
	.feature-row,
	.feature-row--reverse {
		grid-template-columns: 1fr;
	}
	.feature-row--reverse .feature-row__content {
		order: 0;
	}
	.feature-row__media {
		margin-top: 0;
	}

	.feature-cards,
	.testimonials {
		grid-template-columns: 1fr;
	}
	.site-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.site-footer__cols--1 {
		grid-template-columns: minmax(0, 1fr);
	}
	/* Keep the pill's side inset equal to its top/bottom gap on phones too. */
	.site-top .container {
		padding-inline: var(--header-margin);
	}
}
