/* ==========================================================================
   Great White Elephant — component styles

   theme.json owns the tokens WordPress needs to know about (palette, type
   scale, spacing). This file owns everything WordPress has no concept of:
   the hexagon frame, the ribbon banner, the starburst, the marquee.

   The visual language comes from the jacket: a coral paper ground, hand-drawn
   black line art, condensed caps set wide, and one word in a sign-painter's
   script. Structure is drawn, not filled — outlines and hairlines rather than
   blocks of colour, so the page reads as a printed label.

   Contrast, worked out and worth preserving:
     ink   #1C1B19 on coral #E65C42 = 4.85:1  (body text OK)
     cream #FFF6E9 on coral #E65C42 = 3.28:1  (display sizes only)
     coral #E65C42 on paper #FBF6EC = 3.46:1  (display sizes only)
     coral-deep #B03A24 on paper    = 5.61:1  (links and small text)
   ========================================================================== */

:root {
	color-scheme: light;

	/* Grounds */
	--gwe-paper: #fbf6ec;
	--gwe-paper-shade: #f3eada;
	--gwe-cream: #fff6e9;

	/* Brand */
	--gwe-coral: #e65c42;
	--gwe-coral-dark: #c9462f;
	--gwe-coral-deep: #b03a24;
	--gwe-yellow: #fbe23c;
	--gwe-yellow-dark: #ecd022;

	/* Ink */
	--gwe-ink: #1c1b19;
	--gwe-ink-soft: #4a453e;
	--gwe-ink-muted: #6e675c;

	/* Lines */
	--gwe-rule: #ddd2be;
	--gwe-rule-ink: #1c1b19;
	--gwe-rule-on-coral: rgba(28, 27, 25, 0.35);

	/* Feedback, warmed to sit on the paper ground */
	--gwe-success: #14663f;
	--gwe-success-bg: #e4f2e8;
	--gwe-error: #a32d18;
	--gwe-error-bg: #fbe8e2;

	--gwe-focus: #1c1b19;
	--gwe-focus-inverse: #fbe23c;

	--gwe-shadow-sm: 0 1px 2px rgba(28, 27, 25, 0.08), 0 2px 6px rgba(28, 27, 25, 0.06);
	--gwe-shadow-md: 0 2px 4px rgba(28, 27, 25, 0.06), 0 10px 20px -6px rgba(28, 27, 25, 0.14);
	--gwe-shadow-lg: 0 4px 8px rgba(28, 27, 25, 0.06), 0 24px 44px -12px rgba(28, 27, 25, 0.2);
	--gwe-cover-shadow:
		drop-shadow(0 2px 2px rgba(28, 27, 25, 0.16))
		drop-shadow(0 10px 14px rgba(28, 27, 25, 0.16))
		drop-shadow(0 26px 36px rgba(28, 27, 25, 0.12));

	/* Motion */
	--gwe-dur-fast: 140ms;
	--gwe-dur-base: 220ms;
	--gwe-dur-reveal: 520ms;
	--gwe-ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
	--gwe-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
	--gwe-ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);

	--gwe-gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
	--gwe-prose: 66ch;
	--gwe-header-h: 72px;

	/* The jacket is printed on textured stock. One small tile of filtered
	   noise, tinted by whatever it sits on, does the same job cheaply. */
	--gwe-grain: 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='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
	background: var(--gwe-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

[id] {
	scroll-margin-block-start: calc(var(--gwe-header-h) + 24px);
}

p {
	text-wrap: pretty;
}

:where(h1, h2, h3, h4) {
	text-wrap: balance;
}

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

/* On coral and ink grounds the dark ring disappears into the background. */
.gwe-band--coral :focus-visible,
.gwe-footer :focus-visible {
	outline-color: var(--gwe-focus-inverse);
}

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

.skip-link:focus {
	position: fixed !important;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 20px;
	background: var(--gwe-ink);
	color: var(--gwe-cream);
	font-weight: 700;
	text-decoration: none;
}

.gwe-prose > :where(p, ul, ol, blockquote) {
	max-inline-size: var(--gwe-prose);
}

/* --------------------------------------------------------------------------
   Bands
   -------------------------------------------------------------------------- */

.gwe-band--coral {
	position: relative;
	background-color: var(--gwe-coral);
	color: var(--gwe-ink);
	isolation: isolate;
}

.gwe-band--coral::before,
.gwe-band--paper::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--gwe-grain);
	opacity: 0.055;
	pointer-events: none;
}

.gwe-band--paper {
	position: relative;
	background-color: var(--gwe-paper-shade);
	isolation: isolate;
}

.gwe-band--coral :where(h1, h2, h3, h4) {
	color: var(--gwe-ink);
}

.gwe-band--coral a:not(.gwe-btn) {
	color: var(--gwe-ink);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   Type treatments
   -------------------------------------------------------------------------- */

/* The jacket sets its display type as condensed caps, spaced wide — the
   opposite of the tight grotesque the previous cover used. */
/* Both spellings: the class as written in patterns, and the one WordPress
   generates from the registered block style of the same name. */
.gwe-display,
.is-style-gwe-display {
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 800, "wdth" 74;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 0.98;
	letter-spacing: 0.045em;
	hyphens: none;
	text-wrap: balance;
}

/* One word of sign-painter's script, exactly as on the jacket. Never a whole
   phrase — a script line at this size stops being legible and starts being
   decoration. */
.gwe-script {
	font-family: var(--wp--preset--font-family--script);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0.005em;
	/* Grand Hotel sits small on its em box next to condensed caps. */
	font-size: 1.32em;
	line-height: 0.9;
}

/* E·X·C·H·A·N·G·E — the interpuncts are real characters in the markup so the
   word still reads correctly when copied; the spacing is done here. */
.gwe-spaced {
	letter-spacing: 0.18em;
	word-spacing: 0.1em;
}

.gwe-eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 700, "wdth" 88;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.3;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gwe-coral-deep);
	margin-block-end: 1rem;
}

.gwe-band--coral .gwe-eyebrow {
	color: var(--gwe-ink);
}

/* The drawn hairline that opens a section, echoing the jacket's line art. */
.gwe-rule::before {
	content: "";
	display: block;
	inline-size: 4rem;
	block-size: 2px;
	background: var(--gwe-rule-ink);
	margin-block-end: 1.25rem;
}

.gwe-rule.has-text-align-center::before {
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Hexagon frame — the jacket's "GIFT" lockup
   -------------------------------------------------------------------------- */

/* Drawn as an inline SVG rather than with CSS masks. The mask-composite trick
   that would knock an inner hexagon out of an outer one is inconsistently
   supported, and its failure mode here is the worst kind — a solid ink shape
   with ink text on top of it, i.e. an invisible heading. An outlined polygon
   either renders or does not. */
.gwe-hex {
	position: relative;
	display: inline-block;
	padding: 0.5em 1.9em;
	line-height: 1;
}

.gwe-hex__frame {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	overflow: visible;
	pointer-events: none;
}

.gwe-hex__frame polygon {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	/* Keeps the stroke even once preserveAspectRatio="none" has stretched the
	   shape to whatever box the text needs. */
	vector-effect: non-scaling-stroke;
}

.gwe-hex__label {
	position: relative;
}

/* --------------------------------------------------------------------------
   Ribbon banner — the jacket's subtitle device
   -------------------------------------------------------------------------- */

/* Also inline SVG, for the same reason as the hexagon: a bordered element with
   clip-path applied has its border clipped too, so the notched ends come out
   as bare cuts rather than drawn ones. */
.gwe-ribbon {
	position: relative;
	display: inline-block;
	max-inline-size: 100%;
	padding: 0.8em 2.6em;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 700, "wdth" 86;
	font-weight: 700;
	font-size: clamp(0.75rem, 0.66rem + 0.42vw, 1rem);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.3;
	color: var(--gwe-ink);
}

.gwe-ribbon__frame {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	overflow: visible;
	pointer-events: none;
}

.gwe-ribbon__frame path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
	stroke-linejoin: miter;
}

.gwe-ribbon__label {
	position: relative;
}

@media (max-width: 479px) {
	.gwe-ribbon {
		padding-inline: 1.9em;
		letter-spacing: 0.1em;
	}
}

/* --------------------------------------------------------------------------
   Buttons — ink, to match the jacket's black line work
   -------------------------------------------------------------------------- */

.gwe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.875rem 1.75rem;
	border: 2px solid var(--gwe-ink);
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 800, "wdth" 92;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--gwe-dur-fast) var(--gwe-ease-out),
		color var(--gwe-dur-fast) var(--gwe-ease-out),
		transform var(--gwe-dur-fast) var(--gwe-ease-out),
		box-shadow var(--gwe-dur-fast) var(--gwe-ease-out);
}

.gwe-btn--lg {
	min-height: 58px;
	padding: 1.125rem 2.25rem;
	font-size: 1.0625rem;
}

.gwe-btn--sm {
	min-height: 42px;
	padding: 0.5rem 1.125rem;
	font-size: 0.875rem;
	letter-spacing: 0.1em;
}

.gwe-btn--primary {
	background: var(--gwe-ink);
	color: var(--gwe-cream);
	box-shadow: var(--gwe-shadow-sm);
}

.gwe-btn--primary:hover {
	background: var(--gwe-coral-deep);
	border-color: var(--gwe-coral-deep);
	color: var(--gwe-cream);
	transform: translateY(-2px);
	box-shadow: var(--gwe-shadow-md);
}

.gwe-btn--primary:active {
	background: var(--gwe-coral-dark);
	border-color: var(--gwe-coral-dark);
	transform: translateY(0);
}

/* On coral the ink button already contrasts; hovering to coral-deep would
   muddy it, so it inverts to paper instead. */
.gwe-band--coral .gwe-btn--primary:hover {
	background: var(--gwe-cream);
	border-color: var(--gwe-ink);
	color: var(--gwe-ink);
}

.gwe-btn--secondary {
	background: transparent;
	color: var(--gwe-ink);
	border-color: var(--gwe-ink);
}

.gwe-btn--secondary:hover {
	background: var(--gwe-ink);
	color: var(--gwe-cream);
}

.gwe-btn__icon {
	transition: transform var(--gwe-dur-fast) var(--gwe-ease-out);
}

.gwe-btn:hover .gwe-btn__icon {
	transform: translateX(3px);
}

@media (pointer: coarse) {
	.gwe-btn--sm {
		min-height: 44px;
	}
}

@media (max-width: 639px) {
	.gwe-buy .gwe-btn {
		inline-size: 100%;
	}
}

/* --------------------------------------------------------------------------
   Buy CTA
   -------------------------------------------------------------------------- */

.gwe-buy {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.gwe-buy.is-center { align-items: center; text-align: center; }
.gwe-buy.is-left   { align-items: flex-start; text-align: start; }
.gwe-buy.is-right  { align-items: flex-end; text-align: end; }

.gwe-buy__note {
	margin: 0;
	max-inline-size: 38ch;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--gwe-ink-muted);
}

.gwe-band--coral .gwe-buy__note {
	color: var(--gwe-ink);
}

.gwe-buy__alt {
	margin: 0;
	font-size: 0.9375rem;
}

.gwe-header__cta .gwe-buy__note,
.gwe-header__cta .gwe-buy__alt {
	display: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.gwe-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	background: var(--gwe-paper);
	transition: box-shadow var(--gwe-dur-base) var(--gwe-ease-out);
}

.gwe-header.is-stuck {
	box-shadow: var(--gwe-shadow-sm);
	border-block-end: 2px solid var(--gwe-ink);
}

.gwe-header__inner {
	gap: 1.5rem;
}

.gwe-header__end {
	gap: 2rem;
}

/* The wordmark repeats the jacket's lockup in miniature: small caps "THE",
   the script word, then condensed caps. */
.gwe-wordmark {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35em;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 800, "wdth" 76;
	font-weight: 800;
	font-size: 1.0625rem;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gwe-ink);
	text-decoration: none;
	white-space: nowrap;
}

.gwe-wordmark:hover {
	color: var(--gwe-coral-deep);
}

.gwe-wordmark__the {
	font-size: 0.68em;
	letter-spacing: 0.16em;
	opacity: 0.75;
}

.gwe-wordmark__script {
	font-family: var(--wp--preset--font-family--script);
	font-weight: 400;
	font-size: 1.5em;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gwe-coral-deep);
}

@media (max-width: 899px) {
	.gwe-header__cta {
		display: none;
	}
}

@media (max-width: 420px) {
	.gwe-wordmark {
		font-size: 0.9375rem;
	}

	.gwe-wordmark__elephant {
		display: none;
	}
}

.gwe-nav .wp-block-navigation-item__content {
	padding-block: 0.5rem;
}

.gwe-nav .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: inset 0 -2px 0 0 var(--gwe-coral-deep);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.gwe-hero__deck {
	max-inline-size: 44ch;
	margin-block: 1.75rem 2rem;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.gwe-hero__art {
	position: relative;
}

.gwe-cover img {
	display: block;
	inline-size: 100%;
	max-inline-size: 420px;
	block-size: auto;
	margin-inline: auto;
	filter: var(--gwe-cover-shadow);
	transform: rotate(-2deg);
	transition:
		transform var(--gwe-dur-base) var(--gwe-ease-pop),
		filter var(--gwe-dur-base) var(--gwe-ease-out);
}

.gwe-cover img:hover {
	transform: rotate(-0.75deg) translateY(-8px) scale(1.02);
}

/* The hero title stack, reproducing the jacket's arrangement. */
.gwe-lockup {
	margin: 0;
	color: var(--gwe-ink);
}

.gwe-lockup__the {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 700, "wdth" 88;
	font-size: 0.26em;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	margin-block-end: 0.1em;
}

.gwe-lockup__great {
	display: block;
	font-family: var(--wp--preset--font-family--script);
	font-weight: 400;
	font-size: 0.82em;
	line-height: 0.85;
	letter-spacing: 0;
	text-transform: none;
	margin-block-end: 0.04em;
}

.gwe-lockup__line {
	display: block;
}

.gwe-lockup__exchange {
	display: block;
	font-size: 0.56em;
	letter-spacing: 0.16em;
}

@media (max-width: 781px) {
	.gwe-hero__cols {
		flex-direction: column-reverse;
	}

	.gwe-hero__deck {
		max-inline-size: none;
	}

	.gwe-cover img {
		max-inline-size: 250px;
		margin-block-end: 2.25rem;
	}
}

/* --------------------------------------------------------------------------
   Starburst badge
   -------------------------------------------------------------------------- */

.gwe-badge {
	--gwe-badge-size: clamp(8.5rem, 13vw, 12.5rem);
	position: relative;
	inline-size: var(--gwe-badge-size);
	aspect-ratio: 1;
	container-type: inline-size;
	display: grid;
	place-items: center;
	filter: drop-shadow(0 2px 3px rgba(28, 27, 25, 0.22));
	transform: rotate(-9deg);
	animation: gwe-badge-wobble 6s var(--gwe-ease-in-out) infinite alternate;
}

@keyframes gwe-badge-wobble {
	from { transform: rotate(-11deg); }
	to   { transform: rotate(-7deg); }
}

.gwe-badge__star {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	fill: var(--gwe-yellow);
}

.gwe-badge__text {
	position: relative;
	/* The inscribed square of the inner radius is ~54% of the box; 56% adds a
	   sliver into the point valleys, which is as far as text can safely go. */
	inline-size: 56%;
	text-align: center;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 800, "wdth" 84;
	font-weight: 800;
	font-size: 8.6cqi;
	line-height: 1.12;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gwe-ink);
	text-wrap: balance;
}

@supports not (font-size: 1cqi) {
	.gwe-badge__text {
		font-size: clamp(0.625rem, 2.4vw, 0.8125rem);
	}
}

.gwe-badge--float {
	position: absolute;
	inset-block-start: -1rem;
	inset-inline-end: 0;
	z-index: 20;
}

@media (max-width: 781px) {
	.gwe-badge--float {
		position: static;
		--gwe-badge-size: 7.5rem;
		transform: rotate(-6deg);
		margin-inline: auto;
		margin-block-end: 1.25rem;
	}
}

/* --------------------------------------------------------------------------
   Gift marquee
   -------------------------------------------------------------------------- */

.gwe-marquee {
	--gwe-marquee-duration: 80s;
	--gwe-marquee-direction: normal;
	overflow: hidden;
	padding-block: 1.25rem;
	background: var(--gwe-ink);
	color: var(--gwe-cream);
	border-block: 2px solid var(--gwe-ink);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.gwe-marquee__track {
	display: flex;
	inline-size: max-content;
	animation: gwe-marquee var(--gwe-marquee-duration) linear infinite;
	animation-direction: var(--gwe-marquee-direction);
}

@keyframes gwe-marquee {
	to { transform: translate3d(-50%, 0, 0); }
}

.gwe-marquee:hover .gwe-marquee__track,
.gwe-marquee:focus-within .gwe-marquee__track {
	animation-play-state: paused;
}

.gwe-marquee__row {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0 1rem 0 0;
	list-style: none;
}

.gwe-marquee__item {
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 700, "wdth" 84;
	font-weight: 700;
	font-size: clamp(0.9375rem, 0.86rem + 0.4vw, 1.1875rem);
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--gwe-cream);
}

.gwe-marquee__item:nth-child(3n + 2) {
	color: var(--gwe-yellow);
}

.gwe-marquee__item::after {
	content: "✶";
	color: var(--gwe-coral);
	margin-inline-start: 2rem;
	letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Gift index — all 366, by month (block kept, currently unplaced)
   -------------------------------------------------------------------------- */

.gwe-index {
	columns: var(--gwe-index-cols, 3);
	column-gap: 2.5rem;
	font-size: 0.9375rem;
}

.gwe-index__month {
	break-after: avoid;
	break-inside: avoid;
	margin: 1.75rem 0 0.5rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 800, "wdth" 84;
	font-weight: 800;
	font-size: 0.9375rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gwe-coral-deep);
	border-block-end: 2px solid var(--gwe-rule-ink);
	padding-block-end: 0.35rem;
}

.gwe-index__month:first-child {
	margin-block-start: 0;
}

.gwe-index__row {
	break-inside: avoid;
	display: flex;
	gap: 0.625rem;
	margin: 0 0 0.45rem;
	line-height: 1.4;
}

.gwe-index__date {
	flex: 0 0 3.25rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--gwe-ink-muted);
}

.gwe-index__gift {
	color: var(--gwe-ink-soft);
}

@media (max-width: 899px) { .gwe-index { columns: 2; } }
@media (max-width: 599px) { .gwe-index { columns: 1; } }

/* --------------------------------------------------------------------------
   Signup
   -------------------------------------------------------------------------- */

.gwe-signup {
	position: relative;
	background: var(--gwe-cream);
	border: 2px solid var(--gwe-ink);
	border-radius: 2px;
	padding: clamp(1.75rem, 1.2rem + 2.4vw, 3.5rem);
	isolation: isolate;
}

/* A second offset outline, the way a printed label is struck twice. */
.gwe-signup::after {
	content: "";
	position: absolute;
	inset: 6px;
	border: 1px solid var(--gwe-rule);
	pointer-events: none;
}

.gwe-signup__inner {
	max-inline-size: 620px;
	margin-inline: auto;
	text-align: center;
}

.gwe-signup__heading {
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 800, "wdth" 80;
	font-weight: 800;
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
	line-height: 1.04;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gwe-ink);
	margin: 0 0 0.875rem;
}

.gwe-signup__blurb {
	color: var(--gwe-ink-soft);
	margin: 0 0 1.75rem;
}

.gwe-signup__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: end;
	justify-content: center;
	text-align: start;
}

.gwe-field {
	flex: 1 1 14rem;
	min-inline-size: 0;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.gwe-field__label {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gwe-ink-soft);
}

.gwe-field__opt {
	text-transform: none;
	letter-spacing: 0.02em;
	font-weight: 400;
	color: var(--gwe-ink-muted);
}

.gwe-field__input {
	inline-size: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	font: inherit;
	color: var(--gwe-ink);
	background: var(--gwe-paper);
	border: 2px solid var(--gwe-ink);
	border-radius: 2px;
	transition: box-shadow var(--gwe-dur-fast) var(--gwe-ease-out);
}

.gwe-field__input:focus-visible {
	outline: 3px solid var(--gwe-coral-deep);
	outline-offset: 2px;
}

.gwe-signup__submit {
	flex: 0 0 auto;
}

.gwe-signup__status {
	margin: 0 0 1.5rem;
	padding: 0.875rem 1.25rem;
	border: 2px solid currentColor;
	border-radius: 2px;
	font-weight: 600;
	text-align: start;
}

.gwe-signup__status.is-good {
	background: var(--gwe-success-bg);
	color: var(--gwe-success);
}

.gwe-signup__status.is-bad {
	background: var(--gwe-error-bg);
	color: var(--gwe-error);
}

.gwe-signup__fine {
	margin: 1.25rem 0 0;
	font-size: 0.8125rem;
	color: var(--gwe-ink-muted);
}

/* Hidden from sight and from the tab order without display:none, which some
   bots check for. */
.gwe-hp {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

@media (max-width: 639px) {
	.gwe-signup__form {
		flex-direction: column;
		align-items: stretch;
	}

	.gwe-signup__submit {
		inline-size: 100%;
	}
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.is-style-gwe-faq {
	border-block-end: 2px solid var(--gwe-rule);
	padding: 0;
}

.is-style-gwe-faq summary {
	list-style: none;
	cursor: pointer;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.125rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "wght" 700, "wdth" 92;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.3;
	letter-spacing: 0.01em;
	/* Sentence case here, unlike the display headings. A full question set in
	   spaced caps is a wall of shouting and measurably slower to read. */
	text-transform: none;
	color: var(--gwe-ink);
}

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

.is-style-gwe-faq summary::after {
	content: "";
	flex: 0 0 auto;
	inline-size: 12px;
	block-size: 12px;
	border-right: 2px solid var(--gwe-coral-deep);
	border-bottom: 2px solid var(--gwe-coral-deep);
	transform: rotate(45deg) translate(-3px, -3px);
	transition: transform var(--gwe-dur-base) var(--gwe-ease-in-out);
}

.is-style-gwe-faq[open] summary {
	color: var(--gwe-coral-deep);
}

.is-style-gwe-faq[open] summary::after {
	transform: rotate(-135deg) translate(-3px, -3px);
}

.is-style-gwe-faq > :not(summary) {
	color: var(--gwe-ink-soft);
	max-inline-size: var(--gwe-prose);
	padding-block-end: 1.5rem;
}

/* --------------------------------------------------------------------------
   Quotes, cards, lists
   -------------------------------------------------------------------------- */

.is-style-gwe-pullquote {
	border-inline-start: 3px solid var(--gwe-coral);
	padding-inline-start: 1.75rem;
}

.is-style-gwe-pullquote p {
	font-style: italic;
	font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.625rem);
	line-height: 1.4;
	color: var(--gwe-ink-soft);
	max-inline-size: 34ch;
}

.is-style-gwe-pullquote cite {
	display: block;
	margin-block-start: 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-style: normal;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gwe-ink-muted);
}

.is-style-gwe-card {
	background: var(--gwe-cream);
	border: 2px solid var(--gwe-ink);
	border-radius: 2px;
	padding: 2rem;
}

.is-style-gwe-checklist {
	list-style: none;
	padding-inline-start: 0;
}

.is-style-gwe-checklist li {
	position: relative;
	padding-inline-start: 1.9rem;
	margin-block-end: 0.75rem;
}

.is-style-gwe-checklist li::before {
	content: "✶";
	position: absolute;
	inset-inline-start: 0;
	color: var(--gwe-coral);
	font-size: 1.05em;
	line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Author
   -------------------------------------------------------------------------- */

.gwe-author__body > p {
	max-inline-size: var(--gwe-prose);
}

/* --------------------------------------------------------------------------
   Post cards and loops
   -------------------------------------------------------------------------- */

.gwe-post-card {
	border-block-start: 2px solid var(--gwe-rule-ink);
	padding-block-start: 1.25rem;
}

.gwe-post-card__date {
	color: var(--gwe-ink-muted);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
}

.gwe-post-card__title a {
	text-decoration: none;
}

.gwe-post-card__title a:hover {
	text-decoration: underline;
}

.gwe-page-standfirst {
	color: var(--gwe-ink-soft);
}

.gwe-pagination {
	margin-block-start: 3rem;
	padding-block-start: 1.5rem;
	border-block-start: 2px solid var(--gwe-rule);
}

/* --------------------------------------------------------------------------
   Footer — coral, like the jacket
   -------------------------------------------------------------------------- */

.gwe-footer {
	position: relative;
	background-color: var(--gwe-coral);
	color: var(--gwe-ink);
	isolation: isolate;
	border-block-start: 2px solid var(--gwe-ink);
}

.gwe-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--gwe-grain);
	opacity: 0.06;
	pointer-events: none;
}

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

.gwe-footer a:hover,
.gwe-footer a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.gwe-footer__title {
	color: var(--gwe-ink);
	max-inline-size: 18ch;
}

.gwe-footer__blurb {
	color: var(--gwe-ink);
	max-inline-size: 44ch;
}

.gwe-footer__label {
	font-family: var(--wp--preset--font-family--display);
	color: var(--gwe-ink);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 700;
	font-size: 0.8125rem;
}

.gwe-footer__links {
	list-style: none;
	padding-inline-start: 0;
	display: grid;
	gap: 0.625rem;
}

.gwe-footer__rule {
	border: 0;
	border-block-start: 2px solid var(--gwe-rule-on-coral);
	margin-block: 3rem 1.5rem;
}

.gwe-footer__legal {
	gap: 1rem;
	font-size: 0.8125rem;
}

.gwe-footer__legal p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

/* Visible by default; only once JS confirms it can animate does .can-reveal
   hide them, so a no-JS visitor never gets a blank page. */
.can-reveal .gwe-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity var(--gwe-dur-reveal) var(--gwe-ease-out),
		transform var(--gwe-dur-reveal) var(--gwe-ease-out);
}

.can-reveal .gwe-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

/* --------------------------------------------------------------------------
   Editor
   -------------------------------------------------------------------------- */

.gwe-editor-preview {
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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

	/* The marquee becomes a strip the reader scrolls themselves. */
	.gwe-marquee {
		overflow-x: auto;
	}

	.gwe-marquee__track {
		animation: none;
		transform: none;
	}

	.gwe-marquee__row[aria-hidden="true"] {
		display: none;
	}

	.gwe-badge {
		animation: none;
		transform: rotate(-9deg);
	}

	.gwe-cover img:hover {
		transform: rotate(-2deg);
	}

	.can-reveal .gwe-reveal {
		opacity: 1;
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
	.gwe-header,
	.gwe-footer,
	.gwe-marquee,
	.gwe-signup {
		display: none;
	}

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