/*
Theme Name: Robin Amanda
Theme URI: https://alligatordesign.net/
Author: Alligator Design (Geert Valère Allegaert)
Author URI: https://alligatordesign.net/
Description: Site copy of the Alligator base theme for robinamanda.co.uk: mindfulness, therapeutic practice, artistic research and journalism. Created and maintained by Alligator Design. This theme never receives updates from wordpress.org.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0.23-robinamanda
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: robin-amanda
Update URI: https://alligatordesign.net/alligator-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, wide-blocks, block-styles, accessibility-ready, portfolio
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* ============================================================
   Sticky footer — the footer sits at the bottom of the window on a
   page that is shorter than the screen, and simply follows the content
   on a page that is longer. Added 4 Oct 2026, for every site.

   How it works: WordPress wraps everything in .wp-site-blocks, whose
   children are the header, the main element and the footer. Making
   that wrapper a vertical flex container and letting <main> take the
   leftover space pushes the footer down. The rule is tied to <main>
   and not to a child count, so a template with an extra top-level
   block keeps working.

   100dvh rather than 100vh: on a phone, 100vh is the height of the
   window with the browser chrome hidden, which is taller than what you
   can actually see, so a short page would hide the footer below the
   fold — the opposite of the intention. 100vh stays as the fallback
   for the few browsers that do not know dvh.
   ============================================================ */
html {
	min-height: 100%;
}
body {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
}
.wp-site-blocks > main {
	flex: 1 0 auto;
}
/* Logged in, WordPress pushes the whole document down by the height of its
   admin bar (html { margin-top: 32px !important }). Without this the page
   would be exactly that much too tall for the window and scroll by a sliver
   — which only you would ever see, every single day. */
body.admin-bar {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar {
		min-height: calc(100vh - 46px);
		min-height: calc(100dvh - 46px);
	}
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}


/* ============================================================
   Alligator sticky header — position, glass, edge.
   ============================================================ */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* The page's own base colour, translucent — not white, so the header
	   belongs to the palette instead of floating on top of it. */
	background-color: color-mix(in srgb, var(--wp--preset--color--base, #fff) 88%, transparent);
	backdrop-filter: blur(8px);
	pointer-events: none;
}

/* Header hide-on-scroll (variant B): assets/js/header-hide.js sets an
   inline "top" (minus the header's own height) when you scroll down past
   the first screen and clears it the moment you scroll up. Only "top"
   moves — never "transform", which would break the fixed mobile-menu
   overlay. Without JavaScript the header simply stays sticky. */
header.wp-block-template-part {
	transition: top 0.35s ease;
}
header.wp-block-template-part:has(.is-menu-open) {
	top: var(--wp-admin--admin-bar--height, 0px) !important;
}
/* ============================================================
   Alligator edge shadows — header casts down, footer casts up.
   One token, two directions, always in sync.
   ============================================================ */
:root {
	--alligator-edge-shadow: 24px rgb(0 0 0 / 0.08);
}
header.wp-block-template-part {
	box-shadow: 0 8px var(--alligator-edge-shadow);
}
footer.wp-block-template-part {
	box-shadow: 0 -8px var(--alligator-edge-shadow);
}

/* ============================================================
   Alligator mono — systeemstack, geen bestanden, geen download.
   ============================================================ */
code, kbd, pre, samp {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.9em;
}

/* Intro paragraph, a size larger (class alligator-lead; used on Colofon). */
.alligator-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

/* ============================================================
   Alligator pull quote — magazine style. One sentence lifted out of the
   text, set large, hanging into the margin with the body text flowing
   around it. Use the core "Pull quote" block and give it left or right
   alignment in the toolbar; without an alignment it centres in the
   column, which is the safe fallback for narrow screens.

   The breakout is done with a negative margin that grows with the
   viewport: at 60rem the quote leans a little into the white space, on a
   wide screen it sits almost entirely in the margin. Below 60rem there
   is no margin to hang in, so the float is dropped entirely — a floated
   quote on a phone would leave a two-word-wide column beside it.

   Convention: a pull quote REPEATS a sentence from the text around it.
   It is a signpost for whoever is scanning, not new information.
   ============================================================ */
.wp-block-pullquote,
.alligator-pull {
	margin-block: var(--wp--preset--spacing--60);
}
.wp-block-pullquote blockquote {
	margin: 0;
}
.wp-block-pullquote p,
.alligator-pull {
	margin: 0;
	/* Regular and italic rather than bold: at this size weight shouts,
	   and a quote should invite rather than interrupt. Lora's lightest
	   weight is 400; its italic is already in the two files the page
	   loads. */
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 400;
	font-style: italic;
	/* Between the body text and the x-large preset: big enough to read as a
	   highlight, small enough to stay comfortable in a narrow floating
	   column. Fluid, so it never overwhelms a phone. */
	font-size: clamp(1.5rem, 1.15rem + 0.9vw, 1.85rem);
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--wp--preset--color--contrast, currentColor);
	text-wrap: balance;
}
/* A light box instead of a rule: it holds the quote together as an object
   on the page, which a floating block needs, and the tinted ground keeps
   it from reading as a form field. Kept deliberately soft — a hard border
   would compete with the text it is quoting. */
.wp-block-pullquote,
.alligator-pull {
	padding: var(--wp--preset--spacing--40);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-1, currentColor) 28%, transparent);
	border-radius: 0.5rem;
	background: color-mix(in srgb, var(--wp--preset--color--accent-1, currentColor) 5%, transparent);
}
.wp-block-pullquote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--accent-4, currentColor);
}
/* No alignment: centred in the column. */
.wp-block-pullquote:not(.alignleft):not(.alignright),
.alligator-pull:not(.alignleft):not(.alignright) {
	text-align: center;
}

/* Narrow screens: no floating at all. An aligned quote is reset to the full
   column and centred, exactly like an unaligned one — a floating block beside
   a phone column would leave a ribbon of two words. */
@media (max-width: 65.99rem) {
	.wp-block-pullquote.alignleft,
	.wp-block-pullquote.alignright,
	.alligator-pull.alignleft,
	.alligator-pull.alignright {
		float: none;
		width: auto;
		max-width: 100%;
		margin-inline: 0;
		text-align: center;
	}
}

/* From 66rem there is room for a float AND a readable column beside it.
   The rule behind every step below: whatever the quote takes from the
   42rem text column, at least 24rem of text must remain — about eleven
   words a line, the point where prose still reads as prose. So the quote
   grows only as fast as the margin it can hang in. */
@media (min-width: 66rem) {
	.wp-block-pullquote.alignright,
	.wp-block-pullquote.alignleft,
	.alligator-pull.alignright,
	.alligator-pull.alignleft {
		width: min(20rem, 45%);
		text-align: left;
		margin-block: 0.4rem 1.8rem;
	}
	.wp-block-pullquote.alignright,
	.alligator-pull.alignright {
		float: right;
		margin-left: 2.25rem;
		margin-right: -5rem;
	}
	.wp-block-pullquote.alignleft,
	.alligator-pull.alignleft {
		float: left;
		margin-right: 2.25rem;
		margin-left: -5rem;
	}
}

@media (min-width: 80rem) {
	.wp-block-pullquote.alignright,
	.wp-block-pullquote.alignleft,
	.alligator-pull.alignright,
	.alligator-pull.alignleft {
		width: min(22rem, 45%);
	}
	.wp-block-pullquote.alignright,
	.alligator-pull.alignright {
		margin-right: -9rem;
	}
	.wp-block-pullquote.alignleft,
	.alligator-pull.alignleft {
		margin-left: -9rem;
	}
}

@media (min-width: 95rem) {
	.wp-block-pullquote.alignright,
	.wp-block-pullquote.alignleft,
	.alligator-pull.alignright,
	.alligator-pull.alignleft {
		width: min(24rem, 48%);
	}
	.wp-block-pullquote.alignright,
	.alligator-pull.alignright {
		margin-right: -13rem;
	}
	.wp-block-pullquote.alignleft,
	.alligator-pull.alignleft {
		margin-left: -13rem;
	}
}

/* A heading never starts beside a floating quote. */
h2.wp-block-heading,
h3.wp-block-heading {
	clear: both;
}

/* ============================================================
   Alligator typographic refinements — magazine details that make a page
   feel looked-after without anyone being able to say why.
   ============================================================ */

/* Hanging punctuation: quotation marks and dashes sit a fraction outside
   the column, so the left edge of the text looks straight instead of
   nibbled. Supported in Safari today, ignored elsewhere — a refinement
   that costs nothing when it is missing. */
html {
	hanging-punctuation: first last;
}

/* Abbreviations in small capitals: WCAG, PDF, CMS and their kind stop
   shouting in the middle of a sentence. Applies to <abbr> — which is
   also where the expansion belongs, in its title attribute. */
abbr {
	font-variant-caps: all-small-caps;
	letter-spacing: 0.04em;
	text-decoration: none;
}
abbr[title] {
	cursor: help;
	border-bottom: 1px dotted color-mix(in srgb, currentColor 35%, transparent);
}

/* Page metadata — "Last updated: …" on legal pages. Quieter and smaller than
   body text, so it reads as a note about the document rather than as part of
   it. Add the class to the paragraph: block sidebar → Advanced →
   Additional CSS class(es) → alligator-update. */
.alligator-update {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--accent-4, #807D7A);
}
/* Email addresses from [alligator_email]. The plain class is the DEFAULT and
   deliberately quiet: in body text an address should run along with the
   sentence, not shout. Only a long address gets permission to break. */
.alligator-email a {
	word-break: break-word;
}
/* The display version — [alligator_email size=big] — for a contact section
   where the address IS the call to action. The class also works by hand on a
   paragraph, for an address typed without the shortcode. */
.alligator-email--big a,
p.alligator-email--big a {
	font-family: var(--wp--preset--font-family--readex);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: -0.02em;
	text-decoration: none;
}
.alligator-email--big a:hover {
	text-decoration: underline;
}

/* ============================================================
   Alligator in-page navigation helpers (one-pager).
   ============================================================ */
/* Jumping to a section lands on its top edge, flush with the top of the
   window: the texture of the section you are going to starts exactly where
   the window starts, with no sliver of the previous one left above it.
   No allowance is made for the header, for two reasons: it hides itself on
   the way down (so any allowance would show up as an empty strip), and
   every section carries enough padding of its own to keep its heading clear
   of the header on the way up. Other anchor targets — a heading inside an
   article, say — do need the allowance, hence the second rule. */
section.wp-block-group[id] {
	scroll-margin-top: 0;
}

:where(h1, h2, h3, h4)[id],
.wp-block-group:not(section)[id] {
	scroll-margin-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ============================================================
   ROBIN AMANDA — site-specific styles. Everything below belongs
   to robinamanda.co.uk only; everything above comes from the base.
   Colours come from theme.json: warm paper, ink, the teal of the
   old site made darker (#0C7D88 was 4.0:1 on the paper, below
   WCAG AA; #0A6A74 is 5.5:1), and the blossom colour for small
   accents. Fonts: Readex Pro for titles and navigation, Lora for
   reading (see docs/robinamanda-site.md for why).
   ============================================================ */

/* Header and footer in the colours and letter of the old site
   (robinamanda.co.uk, until Oct 2026): a pale mint bar with a soft
   shadow, the name spaced wide, the sections as pills in spaced
   capitals. The old site used Outfit for the name and Figtree in the
   footer; both are now Readex Pro, so the site loads two typefaces
   (docs/ontwerp-regel.md in the base: two typefaces, two main colours).
   The old pills were pink (#FFF3F9), a third hue; they are now a light
   tint of the blossom colour, with the deeper teal for 4.5:1.
   Two footer colours are darkened to pass WCAG AA (4.5:1): the
   turquoise #14C8BF (2.0:1) → #0B726D, the orange #FF6900 (2.8:1)
   → #AD4700. Header and footer only, so not in the theme.json palette. */
:root {
	--ra-header-bg: #F5FDFD;
	--ra-pill-bg: #FFF1EA; /* blossom tint */
	--ra-pill-bg-hover: #FFE6D9;
	--ra-teal-bright: #0C7D88; /* 4.7:1 on the header, 4.5:1 on a pill */
	--ra-footer-text: #0B726D;
	--ra-footer-link: #AD4700;
}

header.wp-block-template-part::before {
	background-color: var(--ra-header-bg);
	backdrop-filter: none;
}
header.wp-block-template-part {
	box-shadow: 6px 6px 9px rgb(0 0 0 / 0.2);
}

/* Plain HTML in patterns/header-robinamanda.php. No hamburger: the
   pills wrap under the name on a phone and stay one tap away. */
.ra-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding: 1.25rem var(--wp--style--root--padding-right, 1.5rem) 1.25rem var(--wp--style--root--padding-left, 1.5rem);
	font-family: var(--wp--preset--font-family--readex);
}
.ra-header a {
	color: var(--ra-teal-bright);
	text-decoration: none;
}
.ra-site-title {
	font-size: 1.5rem;
	font-weight: 300;
	letter-spacing: 0.25em;
	line-height: 1.2;
}
.ra-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.ra-nav a {
	color: var(--wp--preset--color--accent-1); /* 5.7:1 on the pill */
	padding: 0.4rem 0.8rem;
	background-color: var(--ra-pill-bg);
}
.ra-nav a:hover,
.ra-nav a:focus-visible {
	background-color: var(--ra-pill-bg-hover);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent-3);
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.35em;
}
.ra-header a:focus-visible {
	outline: 2px solid var(--ra-teal-bright);
	outline-offset: 3px;
}
@media (max-width: 700px) {
	.ra-header { flex-direction: column; align-items: flex-start; }
	.ra-site-title { font-size: 1.25rem; letter-spacing: 0.18em; }
	.ra-nav { letter-spacing: 0.12em; }
}

/* Footer (patterns/footer-robinamanda.php): the old site's soft gradient,
   small spaced letters. No edge shadow, as on the old site. */
footer.wp-block-template-part {
	box-shadow: none;
}
.ra-footer {
	/* The grey-to-light fade is finished in the top quarter, above the
	   text, so the text itself stands on the calm, light part. (The old
	   site reached the light tone only at 49%, behind the text.) */
	background: linear-gradient(#E9E9E9 0%, #FFFBFB 26%, #FFF5F0 100%);
	color: var(--ra-footer-text);
	font-family: var(--wp--preset--font-family--readex);
	letter-spacing: 0.2em;
}
.ra-footer p {
	font-size: 0.8rem;
}
/* A taller footer, so the gradient has room to show. The extra height is
   all ABOVE the text: the text keeps its place at the bottom of the page,
   and the gradient starts higher up, behind the space over it.
   (!important because the block sets its own padding inline.) */
.ra-footer {
	padding-top: 3.5rem !important;
}
@media (max-width: 700px) {
	.ra-footer { padding-top: 2.5rem !important; }
}
.ra-footer a {
	color: var(--ra-footer-link);
}
.ra-footer a:hover,
.ra-footer a:focus-visible {
	color: var(--ra-footer-text);
}

/* Homepage (main.ra-home, set in templates/front-page.html). */
.ra-home h1 {
	margin-bottom: 0.4rem;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 300;
	letter-spacing: 0.02em;
}
/* The roles under the name: quiet, spaced, in the title letter. */
.ra-roles {
	margin-top: 0;
	font-family: var(--wp--preset--font-family--readex);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4);
}

/* The four sections on the homepage: a grid of light frames in the
   house form language (hairline, 8px rounding), each with a short
   blossom-coloured rule above its heading. The heading is the link. */
.ra-strands {
	margin-block: var(--wp--preset--spacing--60);
}
/* From 900px the frames step out of the 42rem text column on both sides:
   up to 54rem wide, centred on the window (as the video rows do). */
@media (min-width: 900px) {
	.ra-home .ra-strands {
		width: min(54rem, calc(100vw - 4rem));
		max-width: none !important;
		margin-left: 50% !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
	}
}
.ra-strand {
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--accent-5);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-1) 25%, transparent);
	border-radius: 8px;
}
.ra-strand h2 {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--large);
}
.ra-strand h2::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2px;
	margin-bottom: 0.9rem;
	background: var(--wp--preset--color--accent-3);
}
.ra-strand h2 a {
	text-decoration: none;
}
.ra-strand h2 a:hover,
.ra-strand h2 a:focus-visible {
	text-decoration: underline;
}
.ra-strand p {
	font-size: 1.02rem;
}

/* Video on a click — [ra_video], inc/robinamanda.php. A 16:9 frame with a
   still from this site and a play button; the player only arrives after
   the click (assets/js/ra-video.js). Without a still: a plain teal panel. */
.ra-video {
	margin: 0;
}
.ra-video__link,
.ra-video__frame {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--wp--preset--color--accent-2);
}
.ra-video__link img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* The play button: a light disc with a teal triangle, large enough to hit
   with a thumb (4rem), centred on the still. */
.ra-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4rem;
	height: 4rem;
	margin: -2rem 0 0 -2rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--accent-5) 92%, transparent);
	box-shadow: 0 2px 12px rgb(0 0 0 / 0.3);
	transition: transform 0.15s ease;
}
.ra-video__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 0.75rem 0 0.75rem 1.2rem;
	border-color: transparent transparent transparent var(--wp--preset--color--accent-1);
}
.ra-video__link:hover .ra-video__play,
.ra-video__link:focus-visible .ra-video__play {
	transform: scale(1.08);
}
.ra-video__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.ra-video__play { transition: none; }
}
.ra-video__caption {
	margin-top: 0.5rem;
	font-family: var(--wp--preset--font-family--readex);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast);
}
/* Several videos side by side (a group with the class ra-videos).
   Always three across, from a large phone upwards; below 520px they stack,
   because three stills of a thumb's width are no use to anyone.
   The grid is set here in full (display, columns, gap) instead of relying
   on the block's own layout setting, so the row looks the same whatever
   WordPress generates for it.
   From 900px the row steps out of the 40rem text column (templates/
   page.html): up to 72rem wide, centred on the window. The transform is
   safe here: nothing inside the row is position: fixed. */
.wp-block-post-content .ra-videos {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 1.25rem;
	margin-block: var(--wp--preset--spacing--40);
}
.ra-videos > * {
	min-width: 0;
	margin: 0 !important;
}
/* Belt and braces: an empty paragraph left by a shortcode block never takes
   a place in the row (see the render_block filter in inc/robinamanda.php). */
.ra-videos > p:empty {
	display: none;
}
@media (min-width: 520px) {
	.wp-block-post-content .ra-videos {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 1rem;
	}
}
@media (min-width: 900px) {
	.wp-block-post-content .ra-videos {
		width: min(72rem, calc(100vw - 4rem));
		max-width: none !important;
		margin-left: 50% !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
		gap: 1.5rem;
	}
}

/* Footer at the bottom of the window on a short page (Colophon on a large
   screen, the 404 page). The page becomes a column at least as tall as the
   window, and the main part takes up whatever is left, pushing the footer
   down. On a long page nothing changes. The admin bar's height is taken
   off, so a logged-in author gets no needless scrollbar. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
.wp-site-blocks > main {
	flex: 1 0 auto;
}
.wp-site-blocks > header,
.wp-site-blocks > footer {
	flex: 0 0 auto;
}
/* WordPress puts the block gap (1.2rem) above <main>. With a banner that
   shows as a strip of page colour between header and picture. */
.wp-site-blocks > main.ra-page:has(.ra-banner) {
	margin-block-start: 0;
}

/* Page top (templates/page.html): title, introduction and, if the page
   has a featured image, a banner the full width of the window.

   Without a banner, or on a screen narrower than 1000px: title and
   introduction stand in the 40rem text column, above the text (under the
   banner, if there is one).

   With a banner, from 1000px: title and introduction stand over the left
   side of the picture. A soft veil in the page colour lies under them,
   fading out to the right, so the ink text keeps its contrast whatever the
   picture is (ink on the veil: well above 4.5:1). The banner gets a fixed
   height that grows with the window instead of the 7:2 strip, so the text
   always fits. */
.ra-banner {
	margin: 0 !important;
	max-width: none !important;
	width: 100%;
}
.ra-banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}
@media (max-width: 700px) {
	.ra-banner { aspect-ratio: 2 / 1 !important; }
}
.ra-hero {
	position: relative;
	margin: 0 !important;
}
.ra-hero__text {
	max-width: 40rem;
	margin: 0 auto !important;
	padding: var(--wp--preset--spacing--50) var(--wp--style--root--padding-right, 1.5rem) 0 var(--wp--style--root--padding-left, 1.5rem);
	box-sizing: content-box;
}
.ra-hero__text h1 {
	margin: 0;
}
.ra-intro {
	margin-top: 0.75rem;
}
/* Each sentence of the introduction is a short paragraph of its own
   (see the render_block filter in inc/robinamanda.php). */
.ra-intro p {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}
.ra-intro p + p {
	margin-top: 0.6em;
}
.ra-page__body {
	margin-top: 0 !important;
}

/* Quotes in the text (core Quote block): long passages in someone's own
   words, so they keep the size of the text and get air above and below
   to set them apart. */
.wp-block-post-content .wp-block-quote {
	margin-block: var(--wp--preset--spacing--60);
}
@media (min-width: 1000px) {
	.ra-hero:has(.ra-banner) .ra-banner,
	.ra-hero:has(.ra-banner) .ra-banner img {
		aspect-ratio: auto !important;
		height: clamp(24rem, 34vw, 32rem);
	}
	.ra-hero:has(.ra-banner)::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg,
			color-mix(in srgb, var(--wp--preset--color--base) 94%, transparent) 0%,
			color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent) 36%,
			transparent 60%);
		pointer-events: none;
	}
	.ra-hero:has(.ra-banner) .ra-hero__text {
		position: absolute;
		z-index: 1;
		top: 50%;
		left: 0;
		transform: translateY(-50%);
		width: min(34rem, 40%);
		max-width: none;
		margin: 0 !important;
		padding-top: 0;
		padding-left: max(var(--wp--style--root--padding-left, 1.5rem), 4vw);
	}
	.ra-hero:has(.ra-banner) .ra-intro p {
		font-size: clamp(1.1rem, 1.35vw, 1.35rem);
	}
}

/* Photo series (gallery with class ra-gallery): five across, wider than the
   text column on large screens, like the video rows. */
.wp-block-post-content .ra-gallery.wp-block-gallery {
	gap: .5rem;
}
@media (max-width: 599px) {
	.wp-block-post-content .ra-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: calc(50% - .25rem);
	}
}
@media (min-width: 900px) {
	.wp-block-post-content .ra-gallery.wp-block-gallery {
		width: min(72rem, calc(100vw - 4rem));
		max-width: none;
		margin-left: 50% !important;
		transform: translateX(-50%);
	}
}
