/*
Theme Name: Rachel Waugh
Theme URI: https://joebunting.com/websites/
Author: Joe Bunting
Description: rachelwaugh.com. From the starter theme: the refinery almost black and white, touches of red, yellow and aqua, Inter only (clients/rachelwaugh/design.md, mockup C4).
Version: 0.1.20
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rachelwaugh
*/

/* ==========================================================================
   1. Tokens
   One color scheme, no dark/light toggle (design.md). Everything is greyscale
   until it's something to click or the one red mark.
   ========================================================================== */

:root {
	--ground: #121212;
	--surface: #1a1a1a;
	--surface-sunk: #202020;

	--ink: #f2f1ee;
	--ink-soft: #c9c7c2;
	--ink-faint: #8f8d88;
	--ink-invert: #121212;

	/* Domino yellow: buttons, the signup's top line, the closing signup band. */
	--accent: #ffd23f;
	--accent-hover: #ffe27a;
	--accent-quiet: #3a3214;
	--signup-band: #ffd23f;
	--on-accent: #121212;

	/* The two touches of colour besides yellow. */
	--red: #e3262b;
	--aqua: #41c7c1;

	--rule: #333333;
	--focus: #41c7c1;

	/* Type: Inter only. --serif stays as a name the starter's rules use. */
	--serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--step--1: clamp(0.83rem, 0.81rem + 0.11vw, 0.89rem);
	--step-0: clamp(1.05rem, 1.01rem + 0.2vw, 1.19rem);
	--step-1: clamp(1.27rem, 1.19rem + 0.38vw, 1.5rem);
	--step-2: clamp(1.52rem, 1.38rem + 0.68vw, 2rem);
	--step-3: clamp(1.83rem, 1.58rem + 1.19vw, 2.66rem);
	--step-4: clamp(2.19rem, 1.78rem + 1.99vw, 3.55rem);

	--gap: 1.25rem;
	--band: clamp(3rem, 2rem + 5vw, 5.5rem);
	--measure: 34rem;
	--wide: 68rem;
	--radius: 0;

	color-scheme: dark;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--serif);
	font-size: var(--step-0);
	line-height: 1.6;
	font-synthesis-weight: none;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
	font-family: var(--serif);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 {
	font-size: var(--step-4);
}

h2 {
	font-size: var(--step-3);
}

h3 {
	font-size: var(--step-1);
}

p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	text-decoration-color: var(--accent);
}

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

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

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

figure {
	margin: 0;
}

blockquote {
	margin: 0;
}

ul,
ol {
	padding-left: 1.1em;
}

li {
	margin-bottom: 0.4em;
}

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

::selection {
	background: var(--accent-quiet);
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--surface);
	color: var(--ink);
	padding: 0.75rem 1rem;
	z-index: 100;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.wrap {
	width: min(100% - 2rem, var(--wide));
	margin-inline: auto;
}

.wrap--narrow {
	width: min(100% - 2rem, 46rem);
	margin-inline: auto;
}

.band {
	padding-block: var(--band);
}

.band--sunk {
	background: var(--surface-sunk);
}

.band--surface {
	background: var(--surface);
}

.measure {
	max-width: var(--measure);
}

.lede {
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--ink-soft);
}

.eyebrow {
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0 0 0.9rem;
}

.section-title {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.section-title h2 {
	margin: 0;
}

.section-title--spaced {
	margin-top: 3rem;
}

.section-title::after {
	content: "";
	width: 2.5rem;
	height: 2px;
	background: var(--accent);
}

/* ==========================================================================
   4. Header & navigation
   ========================================================================== */

.site-header {
	border-bottom: 1px solid var(--rule);
	background: var(--ground);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 1.1rem;
}

.site-title {
	font-family: var(--serif);
	font-size: var(--step-1);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
}

.site-title a {
	text-decoration: none;
}

.site-title__role {
	display: block;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--ink-faint);
}

.nav {
	font-family: var(--sans);
	font-size: var(--step--1);
	letter-spacing: 0.02em;
}

.nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav a {
	text-decoration: none;
	color: var(--ink-soft);
	padding-block: 0.3rem;
	border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav .current-menu-item > a {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

.nav .nav-cta > a {
	background: var(--accent);
	color: var(--on-accent);
	border: 0;
	border-radius: var(--radius);
	padding: 0.5rem 0.9rem;
	font-weight: 600;
}

.nav .nav-cta > a:hover {
	background: var(--accent-hover);
	color: var(--on-accent);
}

/* Mobile menu. assets/js/nav.js adds .has-menu-toggle and reveals the button;
   without it the links above simply wrap. Wide screens never show the
   button. */
.menu-toggle {
	display: none;
}

@media (max-width: 44em) {
	.has-menu-toggle .site-header__inner {
		align-items: center;
	}

	.has-menu-toggle .menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		min-height: 2.75rem;
		padding: 0 0.6rem;
		margin-right: -0.6rem;
		border: 0;
		background: none;
		font-family: var(--sans);
		font-size: var(--step--1);
		font-weight: 600;
		letter-spacing: 0.02em;
		color: var(--ink);
		cursor: pointer;
	}

	/* Three bars that turn into an X while the menu is open. */
	.menu-toggle__icon,
	.menu-toggle__icon::before,
	.menu-toggle__icon::after {
		display: block;
		width: 1.125rem;
		height: 2px;
		border-radius: 1px;
		background: currentColor;
		transition: transform 0.2s ease, background-color 0.2s ease;
	}

	.menu-toggle__icon {
		position: relative;
	}

	.menu-toggle__icon::before,
	.menu-toggle__icon::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.menu-toggle__icon::before { top: -6px; }
	.menu-toggle__icon::after { top: 6px; }

	.is-menu-open .menu-toggle__icon { background-color: transparent; }
	.is-menu-open .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
	.is-menu-open .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

	.has-menu-toggle .nav {
		display: none;
		flex-basis: 100%;
		font-size: var(--step-0);
	}

	.has-menu-toggle.is-menu-open .nav {
		display: block;
	}

	.has-menu-toggle .nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	/* Set like a short table of contents: the display serif, space between
	   the links and no rules. */
	.has-menu-toggle .nav ul {
		padding-block: 0.5rem 1.25rem;
	}

	.has-menu-toggle .nav a {
		display: block;
		padding-block: 0.4rem;
		border-bottom: 0;
		font-family: var(--serif);
		font-size: var(--step-2);
		font-weight: 500;
		letter-spacing: -0.01em;
		color: var(--ink);
	}

	/* The menu's call to action stays a button, set apart below the links. */
	.has-menu-toggle .nav .nav-cta > a {
		margin-top: 1rem;
		padding: 0.75rem 1rem;
		font-family: var(--sans);
		font-size: var(--step-0);
		letter-spacing: 0;
		color: var(--on-accent);
		text-align: center;
	}
}

/* ==========================================================================
   5. Buttons
   The editor's Button block gets the same look: the default style is the
   solid button, the Outline style is the quiet one.
   ========================================================================== */

.button,
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	padding: 0.8rem 1.3rem;
	border-radius: var(--radius);
	border: 1px solid var(--accent);
	background: var(--accent);
	color: var(--on-accent);
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.button:hover,
.wp-block-button .wp-block-button__link:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	color: var(--on-accent);
}

.button--quiet,
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ink);
	border-color: var(--rule);
}

.button--quiet:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: transparent;
	color: var(--accent);
	border-color: var(--accent);
}

.actions,
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) var(--band);
}

.hero__inner {
	display: grid;
	gap: clamp(1.75rem, 1rem + 4vw, 3.5rem);
}

@media (min-width: 52em) {
	.hero__inner {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		align-items: center;
	}
}

.hero h1 {
	margin-bottom: 0.35em;
}

.hero__line {
	font-size: var(--step-1);
	line-height: 1.45;
	color: var(--ink-soft);
	max-width: 30ch;
}

.hero__portrait {
	position: relative;
}

.hero__portrait .wp-block-image {
	margin: 0;
}

.hero__portrait img {
	width: 100%;
	border-radius: var(--radius);
	background: var(--surface-sunk);
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.portrait-placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	border: 1px dashed var(--rule);
	border-radius: var(--radius);
	background: var(--surface-sunk);
	color: var(--ink-faint);
	font-family: var(--sans);
	font-size: var(--step--1);
	text-align: center;
	padding: 1.5rem;
}

/* Where I've spoken: names set in type, one quiet row under the hero. */
.spoken {
	border-top: 1px solid var(--rule);
	padding-block: 1.75rem 2.25rem;
}

.spoken .eyebrow {
	margin-bottom: 0.75rem;
}

.spoken__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2.25rem;
	font-family: var(--serif);
	font-size: var(--step-1);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink-soft);
}

.spoken__list li {
	margin: 0;
}

/* ==========================================================================
   7. Figures (the proof strip)
   ========================================================================== */

.figures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1rem;
	border-top: 1px solid var(--rule);
	padding-top: 1.75rem;
	margin-top: 2.25rem;
}

@media (min-width: 46em) {
	.figures {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.figure__value {
	display: block;
	margin: 0;
	font-family: var(--serif);
	font-size: var(--step-2);
	font-weight: 600;
	line-height: 1.1;
	color: var(--accent);
}

.figure__label {
	display: block;
	margin-bottom: 0;
	font-family: var(--sans);
	font-size: var(--step--1);
	line-height: 1.4;
	color: var(--ink-faint);
	margin-top: 0.35rem;
}

/* ==========================================================================
   8. Cards & grids
   ========================================================================== */

.grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 42em) {
	.grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

.card {
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 1.5rem;
}

.card h3 {
	margin-bottom: 0.5rem;
}

.card p:last-child {
	margin-bottom: 0;
}

.card__meta {
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--ink-faint);
}

/* Topics get a number, which is the only ornament in the theme. */
.topic {
	counter-increment: topic;
	position: relative;
	padding-top: 2.25rem;
}

.topic::before {
	content: counter(topic, decimal-leading-zero);
	position: absolute;
	top: 1.25rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--accent);
}

.topics {
	counter-reset: topic;
	margin-top: 2.5rem;
}

/* ==========================================================================
   9. Quotes
   ========================================================================== */

.quote {
	border-left: 2px solid var(--accent);
	padding-left: 1.25rem;
	font-size: var(--step-1);
	line-height: 1.45;
}

.quote p {
	margin-bottom: 0.6em;
}

.quote cite {
	display: block;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-style: normal;
	color: var(--ink-faint);
}

.pull {
	font-size: var(--step-2);
	line-height: 1.25;
	max-width: 22ch;
	margin: 0;
}

/* ==========================================================================
   10. Lists: events, press, endorsements
   ========================================================================== */

.entries {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.entries > li {
	margin: 0;
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--ink-faint);
}

/* The bold part of a list item is its title; the rest is the meta line. */
.entries strong {
	display: block;
	font-family: var(--serif);
	font-size: var(--step-1);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	margin: 0 0 0.25rem;
}

.entries strong a {
	color: var(--ink);
	text-decoration: none;
}

.entries strong a:hover {
	color: var(--accent);
	text-decoration: underline;
}

/* Press photographs: image, then a title and download links beneath it. */
.photos {
	margin-block: 1.75rem 2.25rem;
}

.photos .wp-block-image {
	margin: 0;
}

/* One ratio across the row so the captions share a baseline. The download
   links always point at the uncropped file. */
.photos .wp-block-image img {
	width: 100%;
	max-width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: center;
	display: block;
}

.photo__meta {
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--ink-faint);
	margin: 0.6rem 0 0;
}

.photo__meta strong {
	display: block;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 0.15rem;
}

.meta {
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--ink-faint);
	margin: 0;
}

.names {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 42em) {
	.names {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

.names li {
	margin: 0;
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--ink-faint);
}

.names strong {
	display: block;
	font-family: var(--serif);
	font-size: var(--step-0);
	font-weight: 600;
	color: var(--ink);
}

/* ==========================================================================
   11. Forms
   ========================================================================== */

.form {
	display: grid;
	gap: 1rem;
	max-width: 36rem;
}

.form label {
	display: block;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea,
.form select {
	width: 100%;
	font-family: var(--sans);
	font-size: var(--step-0);
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 0.7rem 0.8rem;
}

.form textarea {
	min-height: 9rem;
	resize: vertical;
}

.form__row {
	display: grid;
	gap: 1rem;
}

@media (min-width: 36em) {
	.form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.form__optional {
	font-weight: 400;
	color: var(--ink-faint);
}

.form select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
	background-position: calc(100% - 1.1rem) 50%, calc(100% - 0.75rem) 50%;
	background-size: 0.35rem 0.35rem;
	background-repeat: no-repeat;
	padding-right: 2rem;
}

.form__hp {
	position: absolute;
	left: -9999px;
}

.form__note {
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--ink-faint);
}

.notice {
	border-left: 2px solid var(--accent);
	background: var(--accent-quiet);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-family: var(--sans);
	font-size: var(--step--1);
}

/* ==========================================================================
   12. Entry content (pages and posts from the editor)
   ========================================================================== */

.entry {
	max-width: 40rem;
}

.entry h2 {
	font-size: var(--step-2);
	margin-top: 1.8em;
}

.entry h3 {
	margin-top: 1.6em;
}

.entry img {
	border-radius: var(--radius);
	margin-block: 1.5rem;
}

.entry .wp-block-quote {
	border-left: 2px solid var(--accent);
	padding-left: 1.25rem;
	font-size: var(--step-1);
}

.entry-meta {
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--ink-faint);
	margin-bottom: 1.5rem;
}

.page-header {
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) 0;
}

.page-header h1 {
	margin-bottom: 0.3em;
}

/* ==========================================================================
   13. Call to action band
   ========================================================================== */

.cta {
	background: var(--surface-sunk);
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.cta__inner {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

@media (min-width: 46em) {
	.cta__inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

.cta h2 {
	margin: 0;
	font-size: var(--step-2);
}

.cta p {
	margin: 0.5rem 0 0;
	color: var(--ink-soft);
}

.cta .actions,
.cta .wp-block-buttons {
	margin-top: 0;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */

.site-footer {
	padding-block: var(--band) 2.5rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--ink-faint);
}

.site-footer__inner {
	display: grid;
	gap: 2rem;
}

@media (min-width: 46em) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	}
}

.site-footer h2 {
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 0.9rem;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.site-footer a {
	text-decoration: none;
	color: var(--ink-soft);
}

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

.site-footer__legal {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
}

.site-footer p {
	margin: 0 0 0.6em;
}

/* ==========================================================================
   16. Print. The press kit is meant to survive a printer.
   ========================================================================== */

@media print {
	.site-header,
	.site-footer,
	.cta,
	.theme-toggle,
	.actions,
	.wp-block-buttons {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	.band {
		padding-block: 1rem;
		break-inside: avoid;
	}
}

/* ==========================================================================
   Email signup (Joe's Popups templates in popups/, rachelwaugh_signup_form())
   ========================================================================== */

.signup__title {
	font-size: var(--step-2);
	line-height: 1.15;
	margin: 0 0 0.6rem;
}

.signup__why {
	margin: 0 0 1.1rem;
}

.signup__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.signup__form input {
	flex: 1 1 12rem;
	min-width: 0;
	font-family: var(--sans);
	font-size: var(--step-0);
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 0.7rem 0.8rem;
}

.signup__form .button {
	flex: 1 1 100%;
	justify-content: center;
}

.signup__error {
	flex-basis: 100%;
	margin: 0;
	color: var(--accent);
	font-size: var(--step--1);
}

.signup__done {
	margin: 0;
}

/* On the home page the signup is a full-width band after the section named in RACHELWAUGH_SIGNUP_AFTER
   (moved there by rachelwaugh_signup_move()): words left, form right. */
.jp.jp--inline {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	max-height: none;
	overflow: visible;
	background: var(--signup-band);
	color: var(--ink);
}

.jp--inline .jp__body {
	width: min(100% - 2rem, var(--wide));
	margin-inline: auto;
	padding: 2.6rem 0;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	column-gap: 2.5rem;
	align-items: center;
}

.jp--inline .signup__title,
.jp--inline .signup__why {
	grid-column: 1;
}

.jp--inline .signup__why {
	margin: 0;
}

.jp--inline .signup__form,
.jp--inline .signup__done {
	grid-column: 2;
	grid-row: 1 / span 2;
}

@media (max-width: 800px) {
	.jp--inline .jp__body {
		grid-template-columns: 1fr;
		row-gap: 1rem;
	}
	.jp--inline .signup__form,
	.jp--inline .signup__done {
		grid-column: 1;
		grid-row: auto;
	}
}

/* ==========================================================================
   Rachel Waugh (design.md, mockup C4)
   The refinery almost black and white; red, yellow and aqua as touches.
   ========================================================================== */

em, i { font-style: italic; }
a { text-decoration-color: var(--aqua); }
a:hover { color: var(--aqua); }

/* ---- Header: slippers, name, menu ---------------------------------------- */

.site-header {
	background: var(--ground);
	border-bottom: 1px solid var(--rule);
	position: relative;
	z-index: 5;
}

.site-header__inner { align-items: center; }

.site-title { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.site-title a { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.site-title__role { display: none; }

.nav a { color: var(--ink-soft); }
.nav a:hover, .nav .current-menu-item > a { color: var(--ink); border-bottom-color: var(--aqua); }
.nav .nav-cta > a { background: var(--accent); color: var(--on-accent); padding: 0.55rem 1rem; font-weight: 700; border: 0; }
.nav .nav-cta > a:hover { background: var(--accent-hover); color: var(--on-accent); }
.has-menu-toggle .nav a { font-family: var(--sans); font-weight: 700; }
@media (max-width: 44em) { .has-menu-toggle .nav .nav-cta > a { background: var(--accent); color: var(--on-accent); } }

/* Home: the header sits over the photo. */
.home .site-header {
	position: absolute;
	inset: 0 0 auto;
	background: linear-gradient(180deg, rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0));
	border-bottom: 0;
	padding-top: 0.9rem;
}
.home.is-menu-open .site-header { background: var(--ground); }
/* Inside the photo's frame (0.9rem in), so the header and hero words keep a gutter from its line. */
.home .site-header__inner { width: min(100% - 4rem, var(--wide)); }
@media (min-width: 56em) { .hero .hero__inner { width: min(100% - 4rem, var(--wide)); } }

/* ---- Ruby slippers: the home link. Four frames (apart, closer, heels together,
   sparkle); they play once on load and on hover, then rest on the first. */

.slippers {
	width: 3.2rem;
	aspect-ratio: 1;
	flex: none;
	background: url("assets/img/slippers.webp") 0 0 / 400% 100% no-repeat;
}
.slippers-click .slippers, .site-title a:hover .slippers { animation: rw-click 1200ms steps(1, end) 1; }

/* steps(1, end): each frame holds until the next keyframe. */
@keyframes rw-click {
	0% { background-position: 0 0; }
	12% { background-position: 33.333% 0; }
	26% { background-position: 66.667% 0; }
	40% { background-position: 100% 0; }
	92% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.slippers { animation: none !important; }
}

/* ---- Buttons --------------------------------------------------------------- */

.button,
.wp-block-button .wp-block-button__link {
	font-size: var(--step-0);
	font-weight: 700;
	letter-spacing: 0;
	padding: 0.85rem 1.4rem;
	border: 0;
}

.button-note { font-size: var(--step--1); color: var(--ink-faint); margin: 0.6rem 0 0; }

/* ---- The Narrative stamp -------------------------------------------------- */

.stamp {
	display: inline-flex;
	flex-direction: column;
	gap: 0.15rem;
	width: fit-content;
	margin: 0;
	padding: 0.5rem 0.85rem;
	border: 2px solid currentColor;
	color: var(--aqua);
	background: rgba(18, 18, 18, 0.75);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.25;
}
.stamp strong { font-size: 1rem; letter-spacing: 0.04em; }

/* ---- Home hero: the refinery, full bleed --------------------------------- */

.hero {
	position: relative;
	isolation: isolate;
	min-height: min(96vh, 54rem);
	display: grid;
	align-items: end;
	overflow: hidden;
	padding: 0;
}

.hero .hero__img { position: absolute; inset: 0; z-index: -2; margin: 0; }
/* The photo comes black and white with only the Domino Sugar sign in yellow
   (clients/rachelwaugh/images/domino-factory-yellow.jpg), so no greyscale filter here. */
.hero .hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 76%; filter: brightness(0.9); }

/* Grain, so a photo carries at full width; then the dark gradient the words sit on. */
.hero .hero__img::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.22;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(18, 18, 18, 0.45) 0%, transparent 30%, rgba(18, 18, 18, 0.55) 62%, rgba(18, 18, 18, 0.97) 100%);
}
/* Desktop: a darker left side, so the premise reads over the busy brickwork. */
@media (min-width: 56em) {
	.hero::before { background: linear-gradient(90deg, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.82) 40%, rgba(18, 18, 18, 0) 60%), linear-gradient(180deg, rgba(18, 18, 18, 0.45) 0%, transparent 30%, rgba(18, 18, 18, 0.55) 62%, rgba(18, 18, 18, 0.97) 100%); }
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0.9rem;
	z-index: -1;
	border: 1px solid rgba(242, 241, 238, 0.3);
	pointer-events: none;
}

.hero .hero__inner { padding-block: 9rem 3.5rem; display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 56em) {
	.hero .hero__inner { grid-template-columns: 1.3fr 1fr; }
	.hero .hero__signup { justify-self: end; max-width: 27rem; }
}

.hero h1 { margin: 1rem 0 0; font-size: clamp(3rem, 1.4rem + 6.5vw, 6.6rem); line-height: 0.92; letter-spacing: -0.035em; }
.hero h1::after { content: ""; display: block; width: 4.5rem; height: 0.4rem; margin: 1.1rem 0 1.2rem; background: var(--red); }
.hero .hero__line { font-size: var(--step-0); line-height: 1.55; color: var(--ink); font-weight: 450; max-width: 40ch; margin: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 18px rgba(0, 0, 0, 0.85); }
.hero .wp-block-buttons { margin-top: 1.5rem; }
.hero .hero__line--cta { margin-top: 1rem; color: var(--ink); font-weight: 600; }

/* Phone: the photo gets the top of the screen to itself, the words go below it. */
@media (max-width: 56em) {
	.hero { min-height: 0; }
	.hero .hero__img { inset: 0 0 auto 0; height: 20rem; }
	.hero .hero__img img { filter: brightness(0.75); object-position: 68% 40%; }
	.hero::before { background: linear-gradient(180deg, transparent 0%, transparent 11rem, var(--ground) 20rem); }
	/* The frame goes round the photo only, so it never runs beside the words. */
	.hero::after { inset: 0.9rem 0.9rem auto; height: 15rem; border-bottom: 0; }
	.hero .hero__inner { padding-block: 16.5rem 3rem; }
}

/* ---- Signup: in the hero, and the closing band on every page (Joe's Popups) ---- */

.signup__title { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; }
.signup__why { color: var(--ink-soft); }
.signup__small { font-size: var(--step--1); color: var(--ink-faint); margin: 0.6rem 0 0; flex-basis: 100%; }
.signup__form input { background: var(--ink); color: var(--ground); border-color: transparent; }
.signup__form .button { flex: 0 0 auto; }

.hero__signup .jp.jp--inline {
	background: rgba(18, 18, 18, 0.85);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-top: 4px solid var(--accent);
	color: var(--ink);
}
.hero__signup .jp--inline .jp__body { width: auto; padding: 1.5rem; display: block; }
.hero__signup .signup__title { font-size: var(--step-1); line-height: 1.2; }
.hero__signup .signup__why { font-size: var(--step--1); margin-bottom: 1rem; }

/* The closing band: Domino yellow, dark button that turns red. */
.jp.jp--inline[data-jp="signup-page"] { background: var(--accent); color: var(--on-accent); }
.jp--inline[data-jp="signup-page"] .jp__body { padding-block: 3.5rem; grid-template-rows: auto 1fr; }
.jp--inline[data-jp="signup-page"] .signup__why { align-self: start; }
.jp--inline[data-jp="signup-page"] .signup__title { font-size: var(--step-3); color: var(--on-accent); }
.jp--inline[data-jp="signup-page"] .signup__why { color: #3d3410; font-size: var(--step-0); }
.jp--inline[data-jp="signup-page"] .signup__small { color: #4d4320; }
.jp--inline[data-jp="signup-page"] .signup__form input { background: #fffaf0; }
.jp--inline[data-jp="signup-page"] .signup__form .button { background: var(--ground); color: var(--accent); }
.jp--inline[data-jp="signup-page"] .signup__form .button:hover { background: var(--red); color: #fff; }
.jp--inline[data-jp="signup-page"] .signup__error { color: #8a0f12; }

/* ---- Section titles ------------------------------------------------------- */

.section-title::after { background: var(--aqua); width: 2.5rem; height: 3px; }

/* ---- Doors: the arch is the doorway; its outline is the door, turned open to the left ---- */

.doors { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.door { position: relative; display: grid; gap: 0.75rem; align-content: start; }
.door h3 { margin: 0; font-size: var(--step-1); }
.door h3 a { text-decoration: none; color: var(--ink); }
.door h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* the whole door is the link */
.door p { margin: 0; font-size: 0.97rem; line-height: 1.55; color: var(--ink-soft); }
.door .door__more { font-weight: 700; color: var(--aqua); font-size: 0.92rem; }

.door__frame { position: relative; perspective: 1400px; margin-bottom: 1.4rem; }
.door__frame::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	border: 2px solid var(--aqua);
	border-radius: 999px 999px 0 0;
	transform-origin: 0 50%;
	transform: rotateY(-22deg);
	transition: transform 350ms ease, border-color 350ms ease;
}
.door:hover .door__frame::before { transform: rotateY(-38deg); border-color: var(--accent); }
/* Phones and tablets have no hover, and the tilt overshoots a full-width photo: the outline sits square. */
@media (hover: none), (max-width: 40em) {
	.door__frame::before, .door:hover .door__frame::before { transform: none; inset: -0.45rem; border-color: var(--aqua); }
}

.door__arch { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; position: relative; background: #000; margin: 0; }
.door__arch img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.8) contrast(1.15); transition: filter 400ms ease, transform 500ms ease; }
.door:hover .door__arch img { filter: grayscale(0) contrast(1.05); transform: scale(1.04); }
@media (max-width: 40em) { .door__arch { aspect-ratio: 4 / 3; } }

/* The Exposure Project's live feed: scanlines only (Rachel asked for the LIVE and 08.2006 labels to go, 2026-10-06). */
.door__arch.feed img { filter: grayscale(1) contrast(1.3) brightness(0.8); opacity: 0.9; }
.door__arch.feed::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px); }

@media (prefers-reduced-motion: reduce) {
	.door__frame::before, .door__arch img { transition: none; }
}

/* ---- Rachel, briefly (home) and the About page ----------------------------- */

.brief { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 46em) { .brief { grid-template-columns: 9rem 1fr; gap: 2.25rem; } }
.brief .brief__photo { margin: 0; }
.brief .brief__photo img { width: 9rem; aspect-ratio: 1; object-fit: cover; object-position: 50% 42%; border-radius: 10px; }
.brief p { margin: 0 0 0.75rem; max-width: var(--measure); color: var(--ink-soft); }
.brief a { color: var(--aqua); font-weight: 650; }

.about { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52em) { .about { grid-template-columns: 15rem 1fr; gap: 3rem; } }
.about .about__photo { margin: 0; }
.about .about__photo img { width: 100%; max-width: 15rem; aspect-ratio: 1; object-fit: cover; object-position: 50% 42%; border-radius: 10px; }
.about p { color: var(--ink-soft); max-width: var(--measure); }

/* ---- Inside pages: a title with the red bar ------------------------------- */

.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1rem; }
.page-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 0.95; letter-spacing: -0.035em; margin: 0; }
.page-hero h1::after { content: ""; display: block; width: 4.5rem; height: 0.4rem; margin-top: 1.1rem; background: var(--red); }
.page-hero .lede { margin: 1.2rem 0 0; max-width: 36rem; }

.feature { background: var(--surface); border-top: 4px solid var(--aqua); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); max-width: 46rem; }
.feature h2 { margin: 1rem 0 0.75rem; font-size: var(--step-3); }
.feature p { color: var(--ink-soft); }
.feature .stamp { color: var(--aqua); }

.credits { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.credits { display: grid; gap: 0.9rem; }
.credits li { margin: 0; color: var(--ink-soft); }
.credits li strong, .credits li em { color: var(--ink); }
.credits + p { margin-top: 2rem; }
.about .wp-block-buttons { margin-block: 1.5rem; }

.contact-box > * { max-width: 36rem; }

/* Site Basics' [contact_form] */
.joes-contact { display: grid; gap: 1.1rem; }
.joes-contact__field { margin: 0; }
.joes-contact label { display: block; font-size: var(--step--1); font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.joes-contact input, .joes-contact textarea {
	width: 100%;
	font: inherit;
	font-size: var(--step-0);
	color: var(--ink);
	background: var(--surface);
	border: 1px solid #444;
	border-radius: 0;
	padding: 0.75rem 0.85rem;
}
.joes-contact textarea { min-height: 10rem; resize: vertical; }
.joes-contact input:focus, .joes-contact textarea:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: transparent; }
.joes-contact__actions { margin: 0; }
.joes-contact button { font: inherit; font-weight: 700; font-size: var(--step-0); padding: 0.85rem 1.6rem; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.joes-contact button:hover { background: var(--accent-hover); }
.joes-contact__status { margin: 0; color: var(--ink-soft); }

/* ---- Footer -------------------------------------------------------------- */

.site-footer { background: var(--ground); border-top: 1px solid var(--rule); color: var(--ink-faint); }
.site-footer h2 { font-family: var(--sans); color: var(--ink); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--aqua); }

/* The doors' context: a line under the heading, and a label on each door. */
.doors__intro { margin: -0.75rem 0 2.25rem; }
.door .door__kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aqua); margin: 0 0 -0.35rem; }
