/*
Theme Name: Mars Tonight
Theme URI: https://www.marstonight.com/
Author: Mars Tonight
Description: News theme for Mars Tonight, the evening news of Olympus City. Masthead with the Earth signal delay, sections with their own colours, storyline tags, a weather and markets sidebar, and generated Martian landscapes for stories without pictures.
Version: 1.13.3
Requires at least: 6.4
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marstonight
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* Fonts (self-hosted, SIL Open Font License) ----------------------------- */

@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"),
		url("assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations"),
		url("assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2-variations"),
		url("assets/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */

:root {
	--ink: #1e1f24;
	--ink-soft: #464953;
	--muted: #686c77;
	--rule: #dde1e7;
	--surface: #f1f3f6;
	--paper: #ffffff;
	--dusk: #14284d;
	--dusk-deep: #0d1b36;
	--glow: #9fc2ea;
	--rust: #a63a1c;
	--focus: #2f6aa6;

	--serif: "Newsreader", "Iowan Old Style", Georgia, serif;
	--sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

	--wrap: 77rem;
	--gutter: clamp(1rem, 3vw, 2rem);
	--section: var(--rust);
}

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

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.0625rem;
	line-height: 1.55;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 650;
	text-wrap: balance;
}

p {
	margin: 0;
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 600;
}

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

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

.wrap--text {
	max-width: calc(44rem + 2 * var(--gutter));
}

.wrap--media {
	max-width: calc(66rem + 2 * var(--gutter));
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
	position: relative;
	color: #fff;
	background:
		radial-gradient(120% 140% at 50% 140%, #2a568f 0%, rgba(42, 86, 143, 0) 60%),
		linear-gradient(180deg, var(--dusk-deep) 0%, var(--dusk) 100%);
}

/* The thin line of blue light along the horizon of a Martian sunset. */
.masthead::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 2px;
	background: linear-gradient(90deg, rgba(159, 194, 234, 0) 0%, var(--glow) 50%, rgba(159, 194, 234, 0) 100%);
}

.masthead__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2.5rem;
	padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(1.1rem, 2.4vw, 1.75rem);
}

.wordmark {
	display: inline-block;
	line-height: 0;
}

.wordmark img {
	width: auto;
	height: clamp(3.5rem, 2.5rem + 3.2vw, 5.5rem);
}

.masthead__tagline {
	margin-top: 0.55rem;
	color: var(--glow);
	font-family: var(--sans);
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
}

.masthead__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	margin: 0;
	font-family: var(--sans);
}

.fact dt {
	color: var(--glow);
	font-size: 0.78125rem;
	font-weight: 500;
}

.fact dd {
	margin: 0.1rem 0 0;
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.fact dd a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(159, 194, 234, 0.5);
	text-underline-offset: 0.2em;
}

.fact dd a:hover,
.fact dd a:focus-visible {
	color: var(--glow);
	text-decoration-color: currentColor;
}

/* Sections navigation ----------------------------------------------------- */

.nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.admin-bar .nav {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .nav {
		top: 0;
	}
}

.nav__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav__list {
	display: flex;
	flex: 1;
	gap: 0.25rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

@media (max-width: 640px) {
	/* Fade the right edge so it's clear the sections scroll sideways. */
	.nav__list {
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
		padding-right: 2rem;
	}
}

.nav__list::-webkit-scrollbar {
	display: none;
}

.nav__list a {
	display: block;
	padding: 0.9rem 0 0.75rem;
	border-bottom: 3px solid transparent;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.9375rem;
	font-weight: 550;
	text-decoration: none;
	white-space: nowrap;
}

.nav__list a:hover,
.nav__list a[aria-current="page"],
.nav__list .current-menu-item > a {
	border-bottom-color: var(--section, var(--ink));
}

.nav__list a:not([style]):hover,
.nav__list a:not([style])[aria-current="page"] {
	border-bottom-color: var(--ink);
}

.nav__search input {
	width: 10rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.875rem;
}

.nav__search input:focus {
	background: var(--paper);
	border-color: var(--focus);
	outline: none;
	box-shadow: 0 0 0 2px rgba(47, 106, 166, 0.25);
}

@media (max-width: 640px) {
	.nav__search {
		display: none;
	}
}

/* Kicker, meta, media ----------------------------------------------------- */

.kicker {
	display: inline-block;
	margin-bottom: 0.4rem;
	color: var(--section);
	font-family: var(--sans);
	font-size: 0.8125rem;
	font-weight: 650;
	text-decoration: none;
}

.kicker:hover {
	text-decoration: underline;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.9rem;
	margin-top: 0.6rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.8125rem;
}

.meta__byline {
	color: var(--ink-soft);
	font-weight: 600;
}

.media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 3px;
	background: var(--surface);
}

.media .media__img,
.media .media__svg,
.media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Video loop over the picture: hidden until it actually plays, fades back at the end. */
.media__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.media__video.is-playing {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.media__video {
		display: none;
	}
}

/* Cards ------------------------------------------------------------------- */

.card__title {
	font-family: var(--serif);
	font-weight: 640;
	letter-spacing: -0.008em;
}

.card__title a {
	text-decoration: none;
}

.card__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.14em;
}

.card__standfirst {
	margin-top: 0.45rem;
	color: var(--ink-soft);
}

.card--lead .card__media {
	margin-bottom: 1.1rem;
}

.card--lead .card__title {
	font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.05rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-variation-settings: "opsz" 72;
}

.card--lead .card__standfirst {
	max-width: 40rem;
	margin-top: 0.7rem;
	font-size: 1.25rem;
	line-height: 1.45;
}

.card--feature .card__media {
	margin-bottom: 0.8rem;
}

.card--feature .card__title {
	font-size: 1.375rem;
	line-height: 1.18;
}

.card--compact .card__title {
	font-size: 1.125rem;
	line-height: 1.25;
}

.card--row {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: 1.5rem;
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--rule);
}

.card--row:first-child {
	padding-top: 0;
}

.card--row .card__title {
	font-size: 1.5rem;
	line-height: 1.15;
}

@media (max-width: 640px) {
	.card--row {
		grid-template-columns: 7rem minmax(0, 1fr);
		gap: 1rem;
	}

	.card--row .card__title {
		font-size: 1.1875rem;
	}

	.card--row .card__standfirst {
		display: none;
	}

	.card--row .media {
		aspect-ratio: 1 / 1;
	}
}

/* Front page: top stories ------------------------------------------------- */

.top-stories {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 2.5rem;
	padding-block: 2rem 2.25rem;
}

.top-stories__side {
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--rule);
	padding-left: 2.5rem;
}

.top-stories__side .card {
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--rule);
}

.top-stories__side .card:first-child {
	padding-top: 0;
}

.top-stories__side .card:last-child {
	border-bottom: 0;
}

@media (max-width: 960px) {
	.top-stories {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
		padding-top: 1.25rem;
	}

	.top-stories__side {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--rule);
		padding-top: 1.25rem;
	}
}

/* Storylines -------------------------------------------------------------- */

.storylines {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-bottom: 2.5rem;
	padding: 1rem 1.25rem;
	background: var(--surface);
	border-radius: 3px;
}

.storylines__title {
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 650;
}

.storylines__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.storylines__list a {
	display: inline-block;
	padding: 0.32rem 0.8rem;
	border: 1px solid #c9ced8;
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.storylines__list a:hover {
	border-color: var(--ink);
}

/* Two columns: sections + sidebar ----------------------------------------- */

.columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 19.5rem;
	gap: 3rem;
	padding-bottom: 4rem;
}

@media (max-width: 960px) {
	.columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

.section {
	margin-bottom: 2.75rem;
	border-top: 4px solid var(--section);
}

.section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding-block: 0.7rem 1.1rem;
}

.section__title {
	font-size: 1.625rem;
	letter-spacing: -0.01em;
}

.section__title a {
	color: var(--section);
	text-decoration: none;
}

.section__more {
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
}

.section__more:hover {
	color: var(--ink);
	text-decoration: underline;
}

.section__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	grid-auto-flow: dense;
	column-gap: 2rem;
}

.section__grid .card--feature {
	grid-row: span 3;
}

.section__grid .card--compact {
	padding-block: 0 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--rule);
}

.section__grid .card--compact:last-child {
	border-bottom: 0;
}

.section__grid .card--feature:only-child {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 2rem;
}

.section__grid .card--feature:only-child .card__media {
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.section__grid,
	.section__grid .card--feature:only-child {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.section__grid .card--feature {
		grid-row: auto;
		margin-bottom: 1.25rem;
	}

	.section__grid .card--feature:only-child .card__media {
		margin-bottom: 0.8rem;
	}
}

/* Sidebar ----------------------------------------------------------------- */

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 2.25rem;
}

.panel__title {
	padding-top: 0.6rem;
	margin-bottom: 0.9rem;
	border-top: 2px solid var(--ink);
	font-family: var(--sans);
	font-size: 0.9375rem;
	font-weight: 650;
}

.panel__title a {
	text-decoration: none;
}

.panel__title a:hover {
	text-decoration: underline;
}

.latest {
	margin: 0;
	padding: 0;
	list-style: none;
}

.latest__item {
	padding-block: 0.7rem;
	border-bottom: 1px solid var(--rule);
}

.latest__item:first-child {
	padding-top: 0;
}

.latest__item time {
	display: block;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.75rem;
}

.latest__item a {
	display: block;
	margin-top: 0.15rem;
	font-size: 1.0625rem;
	font-weight: 560;
	line-height: 1.28;
	text-decoration: none;
}

.latest__item a:hover {
	text-decoration: underline;
}

.weather__temp {
	font-size: 3.25rem;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	font-variation-settings: "opsz" 72;
}

.weather__summary {
	margin-top: 0.6rem;
	color: var(--ink-soft);
	font-size: 1rem;
	line-height: 1.35;
}

.weather__summary a {
	text-decoration: none;
}

.weather__summary a:hover {
	text-decoration: underline;
}

.markets table,
.story__body table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--sans);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.markets th,
.markets td,
.story__body th,
.story__body td {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--rule);
	text-align: left;
}

.markets th,
.story__body th {
	color: var(--muted);
	font-weight: 500;
}

.markets td + td,
.markets th + th,
.story__body td + td,
.story__body th + th {
	text-align: right;
	padding-left: 0.75rem;
}

.markets .wp-block-table {
	margin: 0;
	overflow-x: auto;
}

/* Replace the block library's boxed table borders with simple rules. */
.markets .wp-block-table th,
.markets .wp-block-table td,
.story__body .wp-block-table th,
.story__body .wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--rule);
}

.markets .wp-block-table thead,
.story__body .wp-block-table thead {
	border-bottom: 2px solid var(--ink);
}

.markets .wp-block-table tfoot,
.story__body .wp-block-table tfoot {
	border-top: 0;
}

.markets p {
	margin-top: 0.6rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.75rem;
}

.up {
	color: #23784a;
}

.down {
	color: #b23a1d;
}

.panel--about {
	padding: 1.1rem 1.25rem 1.25rem;
	background: var(--surface);
	border-radius: 3px;
	font-size: 0.9875rem;
	line-height: 1.5;
}

.panel--about .panel__title {
	border-top: 0;
	padding-top: 0;
	margin-bottom: 0.5rem;
}

.panel--about p + p {
	margin-top: 0.6rem;
}

.panel--about a {
	color: var(--rust);
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 600;
}

/* Story ------------------------------------------------------------------- */

.story__header {
	padding-top: clamp(1.75rem, 4vw, 3rem);
}

.story__title {
	font-size: clamp(2rem, 1.2rem + 2.9vw, 3.3rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
	font-variation-settings: "opsz" 72;
}

.story__standfirst {
	margin-top: 0.9rem;
	color: var(--ink-soft);
	font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4rem);
	line-height: 1.42;
}

.story__header .meta {
	margin-top: 1.25rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--rule);
	font-size: 0.875rem;
}

.story__media {
	margin-block: 1.75rem 2rem;
}

.story__media figcaption {
	margin-top: 0.5rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.8125rem;
}

.story__body {
	font-size: 1.1875rem;
	line-height: 1.68;
}

.story__body > * + * {
	margin-top: 1.15em;
}

.story__body > p:first-child strong:first-child {
	font-family: var(--sans);
	font-size: 0.82em;
	font-weight: 650;
	letter-spacing: 0.01em;
}

.story__body a {
	color: var(--rust);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.story__body h2 {
	margin-top: 1.8em;
	font-size: 1.5rem;
	line-height: 1.2;
}

.story__body h3 {
	margin-top: 1.6em;
	font-size: 1.25rem;
}

.story__body ul,
.story__body ol {
	padding-left: 1.25em;
}

.story__body li + li {
	margin-top: 0.45em;
}

.story__body .wp-block-quote,
.story__body blockquote {
	margin: 1.8em 0;
	padding: 0.15em 0 0.15em 1.25rem;
	border-left: 3px solid var(--section);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.35;
}

.story__body blockquote p {
	margin: 0;
}

.story__body blockquote cite {
	display: block;
	margin-top: 0.6rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.875rem;
	font-style: normal;
}

.story__body img {
	border-radius: 3px;
}

.mt-fiction-notice {
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--rust);
	background: var(--surface);
	font-size: 1.0625rem;
	line-height: 1.55;
}

.story__footer {
	margin-top: 2.5rem;
}

/* Rules drawn inside the padding so they line up with the text column. */
.story__footer::before,
.more::before {
	content: "";
	display: block;
	margin-bottom: 1.25rem;
	border-top: 1px solid var(--rule);
}

.story__following {
	margin-bottom: 0.75rem;
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 650;
}

.page-article {
	padding-bottom: 4rem;
}

.more {
	margin-block: 3.5rem 4rem;
}

.more::before {
	margin-bottom: 0.75rem;
	border-top: 4px solid var(--ink);
}

.more__title {
	margin-bottom: 1.25rem;
	font-size: 1.5rem;
}

.more__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

@media (max-width: 800px) {
	.more__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Listings ---------------------------------------------------------------- */

.listing__header {
	margin-block: clamp(1.5rem, 4vw, 2.5rem) 2rem;
	padding-bottom: 1.1rem;
	border-bottom: 4px solid var(--section);
}

.listing__context {
	margin-bottom: 0.3rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 600;
}

.listing__title {
	color: var(--section);
	font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.listing__desc {
	max-width: 44rem;
	margin-top: 0.6rem;
	color: var(--ink-soft);
	font-size: 1.125rem;
}

.pagination {
	margin-top: 2rem;
	font-family: var(--sans);
	font-size: 0.9375rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
}

.pagination a,
.pagination .current {
	padding: 0.35rem 0.6rem;
	text-decoration: none;
}

.pagination .current {
	background: var(--ink);
	color: var(--paper);
	border-radius: 3px;
}

/* Search form and empty states -------------------------------------------- */

.search-form {
	margin-block: 1.25rem;
	font-family: var(--sans);
}

.search-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.search-form__row {
	display: flex;
	gap: 0.5rem;
	max-width: 28rem;
}

.search-form input {
	flex: 1;
	min-width: 0;
	padding: 0.6rem 0.8rem;
	border: 1px solid #c3c8d2;
	border-radius: 3px;
	font: inherit;
}

.search-form button {
	padding: 0.6rem 1.1rem;
	border: 0;
	border-radius: 3px;
	background: var(--dusk);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-form button:hover {
	background: var(--dusk-deep);
}

.empty {
	padding-block: 3rem;
}

.empty h1 {
	margin-bottom: 0.75rem;
}

.empty--404 a {
	color: var(--rust);
	font-family: var(--sans);
	font-weight: 600;
}

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

.site-footer {
	background: var(--dusk-deep);
	color: #d9e4f2;
	font-family: var(--sans);
	font-size: 0.9375rem;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 2.5rem;
	padding-block: 3rem 2rem;
}

@media (max-width: 800px) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}
}

.wordmark--small img {
	height: 3.75rem;
}

.site-footer__signoff {
	margin-top: 0.75rem;
	max-width: 22rem;
	color: var(--glow);
	font-family: var(--serif);
	font-size: 1.0625rem;
	font-style: italic;
}

.site-footer__heading {
	margin-bottom: 0.75rem;
	color: #fff;
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 650;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
}

.site-footer li {
	margin-bottom: 0.4rem;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__about p + p {
	margin-top: 0.6rem;
}

.site-footer__about a {
	color: var(--glow);
	font-weight: 600;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding-block: 1rem 1.5rem;
	border-top: 1px solid rgba(159, 194, 234, 0.2);
	color: #9aabc4;
	font-size: 0.8125rem;
}

.site-footer__legal a {
	color: #9aabc4;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* WordPress core classes -------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
.wp-element-caption {
	margin-top: 0.5rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.8125rem;
}

.sticky {
	/* Sticky posts lead the front page; no special styling needed. */
}

.bypostauthor {
	/* Comments are not shown on this site. */
}

/* Newsletter signup -------------------------------------------------------- */

.signup {
	margin-block: 2rem;
	padding: 1.25rem 1.4rem 1.3rem;
	border-top: 3px solid var(--rust);
	border-radius: 3px;
	background: var(--surface);
	font-family: var(--sans);
}

.signup__title {
	font-family: var(--serif);
	font-size: 1.375rem;
	font-weight: 640;
	letter-spacing: -0.008em;
}

.signup__pitch {
	margin-top: 0.3rem;
	font-size: 0.9375rem;
}

.signup__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.9rem;
}

.signup__form input {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.6rem 0.75rem;
	border: 1px solid #b9c0cc;
	border-radius: 3px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}

.signup__form button {
	padding: 0.6rem 1.1rem;
	border: 0;
	border-radius: 3px;
	background: var(--rust);
	color: #fff;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.signup__form button:hover {
	background: #8a2f16;
}

.signup__form input:focus-visible,
.signup__form button:focus-visible {
	outline: 2px solid var(--dusk);
	outline-offset: 2px;
}

.signup__note {
	margin-top: 0.6rem;
	color: var(--muted);
	font-size: 0.8125rem;
}

.signup--sidebar {
	margin-block: 0 2rem;
}

.signup--sidebar .signup__title {
	font-size: 1.1875rem;
}

.signup--page {
	margin-top: 0.5rem;
}

.signup--footer {
	max-width: 24rem;
	margin-block: 1.25rem 0;
	padding: 0;
	border: 0;
	background: none;
}

.signup--footer .signup__title {
	color: #fff;
	font-size: 1.125rem;
}

.signup--footer .signup__note {
	color: #9fb0c8;
}

.signup--footer .signup__form input {
	border-color: transparent;
}

.signup--footer .signup__form input:focus-visible,
.signup--footer .signup__form button:focus-visible {
	outline-color: var(--glow);
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.nav,
	.sidebar,
	.site-footer,
	.more {
		display: none;
	}

	.masthead {
		background: none;
		color: #000;
	}
}

/* Gallery page: "Life in Olympus City" ------------------------------------ */

.gallery-grid {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1.5rem var(--gutter);
}

.gallery-grid__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.gallery-grid__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--surface);
}

.gallery-grid__caption {
	display: block;
	margin-top: 0.6rem;
}

.gallery-grid__section {
	display: block;
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rust);
}

.gallery-grid__title {
	display: block;
	font-size: 1.05rem;
	line-height: 1.3;
}

.gallery-grid__link:hover .gallery-grid__title,
.gallery-grid__link:focus-visible .gallery-grid__title {
	text-decoration: underline;
}

.gallery-pages {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 2rem 0 3rem;
	font-family: var(--sans);
}
