/**
 * Base layer: tokens, reset, typography, masthead, cards, footer.
 *
 * Type and space are fluid: every step interpolates between a 360px viewport
 * and a 1440px viewport, so nothing needs a breakpoint to stay in proportion.
 * The upper bound of each step is the value measured in the design.
 */

:root {
	/* Palette */
	--c-ink: #282828;
	--c-ink-soft: #4a4a4a;
	--c-muted: #858585;
	--c-muted-soft: #939393;
	--c-line: #e2e2e2;
	--c-line-soft: #ededed;
	--c-page: #f2f2f2;
	--c-surface: #fff;
	--c-panel: #282828;
	--c-accent: #1f8abe;
	--c-accent-dark: #17709b;
	--c-accent-soft: #7fc4e5;
	--c-flag: #ec4c52;
	--c-flag-dark: #d63c42;
	--c-shadow: 20 20 20;

	/* Families */
	--f-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
	--f-ui: "Inter", "Open Sans", system-ui, sans-serif;

	/*
	 * Fluid type scale. clamp(min, preferred, max) — the preferred term is a
	 * linear function of the viewport, solved for the two anchor widths.
	 */
	--t-meta: clamp(0.6875rem, 0.67rem + 0.08vw, 0.75rem);      /* 11 → 12 */
	--t-small: clamp(0.75rem, 0.73rem + 0.08vw, 0.8125rem);     /* 12 → 13 */
	--t-tiny: clamp(0.8125rem, 0.79rem + 0.08vw, 0.875rem);     /* 13 → 14 */
	--t-body: clamp(0.9375rem, 0.92rem + 0.08vw, 1rem);         /* 15 → 16 */
	--t-rail: clamp(1rem, 0.96rem + 0.17vw, 1.125rem);          /* 16 → 18 */
	--t-lede: clamp(1.0625rem, 1rem + 0.26vw, 1.25rem);         /* 17 → 20 */
	--t-card: clamp(1.1875rem, 1.07rem + 0.43vw, 1.5rem);       /* 19 → 24 */
	--t-lead: clamp(1.5rem, 1.28rem + 0.74vw, 2rem);            /* 24 → 32 */
	--t-title: clamp(1.75rem, 1.42rem + 1.11vw, 2.5rem);        /* 28 → 40 */
	--t-display: clamp(2.5rem, 1.83rem + 2.22vw, 4rem);         /* 40 → 64 */

	/* Fluid space scale */
	--s-3xs: clamp(0.25rem, 0.24rem + 0.04vw, 0.3125rem);
	--s-2xs: clamp(0.375rem, 0.35rem + 0.09vw, 0.5rem);
	--s-xs: clamp(0.5rem, 0.46rem + 0.19vw, 0.625rem);
	--s-sm: clamp(0.75rem, 0.69rem + 0.28vw, 1rem);
	--s-md: clamp(1rem, 0.89rem + 0.46vw, 1.25rem);
	--s-lg: clamp(1.25rem, 1.03rem + 0.74vw, 1.75rem);
	--s-xl: clamp(1.5rem, 1.17rem + 1.11vw, 2.25rem);
	--s-2xl: clamp(2rem, 1.44rem + 1.85vw, 3rem);
	--s-3xl: clamp(2.5rem, 1.61rem + 2.96vw, 4.5rem);

	/* Radii */
	--r-xs: 4px;
	--r-sm: 6px;
	--r-md: 8px;
	--r-lg: 10px;
	--r-xl: 12px;
	--r-pill: 999px;

	/* Metrics */
	--measure: 1240px;
	--gutter: clamp(1rem, 0.6rem + 1.7vw, 1.75rem);
	--rail-w: 300px;
	--gap: var(--s-xl);
	--nav-h: 48px;
	--head-h: 84px;

	/* Elevation */
	--shadow-sm: 0 1px 2px rgb(var(--c-shadow) / 6%);
	--shadow-md: 0 6px 20px rgb(var(--c-shadow) / 8%);
	--shadow-lg: 0 18px 44px rgb(var(--c-shadow) / 14%);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	background-color: var(--c-page);
	background-image: url("../img/backdrop.webp");
	background-repeat: no-repeat;
	background-position: left top;
	background-size: clamp(220px, 26%, 520px) auto;
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: var(--t-body);
	line-height: 1.45;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.is-locked {
	overflow: hidden;
}

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

figure {
	margin: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

input,
textarea,
select {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: var(--r-xs);
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: calc(var(--measure) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	clip-path: none;
	padding: 10px 16px;
	background: var(--c-surface);
	border-radius: var(--r-xs);
	box-shadow: var(--shadow-lg);
}

/* Clamp helpers keep card rows on a shared baseline. */
.clamp-1,
.clamp-2,
.clamp-3,
.clamp-4 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.clamp-1 {
	-webkit-line-clamp: 1;
}

.clamp-2 {
	-webkit-line-clamp: 2;
}

.clamp-3 {
	-webkit-line-clamp: 3;
}

.clamp-4 {
	-webkit-line-clamp: 4;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: var(--s-xs);
	padding: 0.7em 1.15em;
	background: var(--c-ink);
	color: var(--c-surface);
	border-radius: var(--r-pill);
	font-family: var(--f-ui);
	font-size: var(--t-body);
	font-weight: 600;
	line-height: 1;
	transition: background-color 0.15s ease;
}

.button:hover,
.button:focus {
	background: var(--c-ink-soft);
}

.button--discussion {
	background: var(--c-flag);
}

.button--discussion:hover,
.button--discussion:focus {
	background: var(--c-flag-dark);
}

.button .icon {
	flex: none;
}

.icon {
	display: inline-block;
	vertical-align: middle;
	fill: currentColor;
}

.scrim {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: rgb(0 0 0 / 42%);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.scrim.is-visible {
	opacity: 1;
}

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

.site-head {
	position: relative;
	z-index: 50;
	background: var(--c-page);
}

/*
 * Top strip mirrors the design: weather hard left, social hard right, the
 * wordmark centred and sitting on the navigation band so its descenders cross
 * into the blue.
 */
.site-head__top {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s-md);
	min-height: clamp(74px, 8vw, 154px);
	padding-bottom: clamp(14px, 1.6vw, 28px);
}

.site-head__brand {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 3;
	/* Drop the mark so its descenders cross into the band, as drawn. */
	transform: translate(-50%, 24%);
	pointer-events: none;
}

.site-head__brand .wordmark {
	pointer-events: auto;
}

.wordmark {
	display: block;
	color: var(--c-ink);
}

.wordmark__mark {
	display: block;
	width: clamp(190px, 41vw, 512px);
	height: auto;
	color: currentColor;
	fill: currentColor;
}

.wordmark__text {
	font-family: var(--f-body);
	font-size: var(--t-lead);
	font-weight: 600;
}

.weather {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2xs);
	font-family: var(--f-ui);
	font-size: var(--t-small);
	line-height: 1;
	white-space: nowrap;
}

.weather__temp {
	font-weight: 600;
}

.weather .icon {
	flex: none;
	width: 18px;
	height: 18px;
}

.social {
	display: flex;
	align-items: center;
	gap: var(--s-sm);
	margin-left: auto;
}

.social__link {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	color: var(--c-ink);
	transition: color 0.15s ease;
}

.social__link:hover,
.social__link:focus {
	color: var(--c-accent);
}

/* Navigation band: full width of the measure, as drawn. */

.nav-bar {
	position: relative;
	z-index: 1;
}

/* The band is as wide as the measure, exactly as drawn. */
.nav-bar__inner {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: var(--s-sm);
	min-height: var(--nav-h);
	padding-inline: clamp(1rem, 2.6vw, 2.5rem);
	background: var(--c-accent);
}

.nav-bar__search {
	flex: none;
	display: grid;
	place-items: center;
	width: 42px;
	margin-left: auto;
	color: var(--c-surface);
	opacity: 0.9;
	transition: opacity 0.15s ease;
}

.nav-bar__search:hover,
.nav-bar__search:focus,
.nav-bar__search[aria-expanded="true"] {
	opacity: 1;
}

.nav {
	min-width: 0;
}

.nav__list {
	display: flex;
	align-items: stretch;
	gap: clamp(0.75rem, 2vw, 2rem);
	min-height: var(--nav-h);
}

.nav__item {
	display: flex;
	align-items: center;
}

.nav__item--split {
	margin-left: auto;
}

.nav__link {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: var(--nav-h);
	color: var(--c-surface);
	font-family: var(--f-ui);
	font-size: clamp(0.8125rem, 0.55rem + 0.5vw, 1.125rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.nav__link:hover,
.nav__link:focus,
.nav__item.is-current > .nav__link,
.nav__item.is-open > .nav__link {
	opacity: 0.74;
}

/* The chevron rides the link on the band; the button stays for keyboards. */
.nav__item--mega > .nav__link::after {
	flex: none;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
	content: "";
}

.nav__item--mega.is-open > .nav__link::after {
	transform: translateY(1px) rotate(-135deg);
}

.nav__disclosure {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	color: var(--c-surface);
}

.nav__disclosure:focus-visible {
	position: static;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin: 0;
	clip-path: none;
}

.head-tools {
	flex: none;
	display: none;
	align-items: center;
	gap: var(--s-2xs);
}

.head-tools__button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: var(--r-pill);
	background: var(--c-surface);
	color: var(--c-ink);
	box-shadow: var(--shadow-sm);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.head-tools__button:hover,
.head-tools__button:focus,
.head-tools__button[aria-expanded="true"] {
	background: var(--c-ink);
	color: var(--c-surface);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	content: "";
	transition: transform 0.2s ease;
}

.nav-toggle__bars::before {
	transform: translateY(-6px);
}

.nav-toggle__bars::after {
	transform: translateY(4px);
}

/* Drawer head, shown only when the rail becomes a drawer */

.nav__head {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-sm);
	padding: 0 var(--gutter) var(--s-md);
	border-bottom: 1px solid var(--c-line);
}

.nav__head .wordmark__mark {
	width: 150px;
}

.nav__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--r-pill);
	background: var(--c-page);
	font-size: var(--t-lede);
	line-height: 1;
}

/* Mega panels */

.mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 60;
	background: var(--c-surface);
	border-radius: 0 0 var(--r-md) var(--r-md);
	box-shadow: var(--shadow-lg);
}

.mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 0.7fr);
	gap: var(--s-xl);
	padding-block: var(--s-lg);
}

.mega__label {
	display: block;
	margin-bottom: var(--s-sm);
	color: var(--c-muted);
	font-family: var(--f-ui);
	font-size: var(--t-meta);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.mega__card {
	display: grid;
	gap: var(--s-xs);
}

.mega__media {
	display: block;
	overflow: hidden;
	border-radius: var(--r-sm);
	aspect-ratio: 3 / 2;
	background: var(--c-line-soft);
}

.mega__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.mega__card:hover .mega__media img {
	transform: scale(1.04);
}

.mega__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: var(--t-rail);
	font-weight: 600;
	line-height: 1.25;
}

.mega__card:hover .mega__title {
	color: var(--c-accent);
}

.mega__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--c-muted);
	font-size: var(--t-small);
	line-height: 1.4;
}

.mega__list {
	display: grid;
	gap: var(--s-sm);
}

.mega__link {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: var(--s-sm);
	align-items: start;
}

.mega__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--r-xs);
	aspect-ratio: 3 / 2;
	background: var(--c-line-soft);
}

.mega__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mega__date {
	display: block;
	color: var(--c-muted);
	font-family: var(--f-ui);
	font-size: var(--t-meta);
}

.mega__headline {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 2px;
	font-size: var(--t-small);
	line-height: 1.35;
}

.mega__link:hover .mega__headline {
	color: var(--c-accent);
}

.mega__sections {
	display: grid;
	gap: var(--s-2xs);
	font-size: var(--t-small);
}

.mega__sections a:hover,
.mega__sections a:focus {
	color: var(--c-accent);
}

.mega__all {
	display: inline-block;
	margin-top: var(--s-sm);
	color: var(--c-accent);
	font-size: var(--t-small);
	font-weight: 600;
}

/* Search panel */

.search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 60;
	padding-block: var(--s-lg);
	background: var(--c-surface);
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	box-shadow: var(--shadow-lg);
}

.search-panel__form {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--s-sm);
	padding: var(--s-2xs) var(--s-2xs) var(--s-2xs) var(--s-md);
	background: var(--c-page);
	border-radius: var(--r-pill);
}

.search-panel__icon {
	flex: none;
	display: grid;
	place-items: center;
	color: var(--c-muted);
}

.search-panel__field {
	flex: 1;
	min-width: 0;
	padding-block: var(--s-sm);
	background: none;
	border: 0;
	font-size: var(--t-lede);
}

.search-panel__field:focus {
	outline: none;
}

.search-panel__close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--r-pill);
	font-size: var(--t-lede);
	color: var(--c-muted);
}

.search-panel__close:hover {
	color: var(--c-ink);
}

.search-panel__results {
	display: grid;
	gap: var(--s-2xs);
	margin-top: var(--s-md);
}

.search-panel__results:empty {
	display: none;
}

.suggest {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: var(--s-sm);
	align-items: center;
	padding: var(--s-2xs);
	border-radius: var(--r-sm);
	transition: background-color 0.15s ease;
}

.suggest:hover,
.suggest.is-active {
	background: var(--c-page);
}

.suggest__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--r-xs);
	aspect-ratio: 3 / 2;
	background: var(--c-line-soft);
}

.suggest__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.suggest__meta {
	display: flex;
	gap: var(--s-xs);
	color: var(--c-muted);
	font-family: var(--f-ui);
	font-size: var(--t-meta);
}

.suggest__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 2px;
	font-size: var(--t-rail);
	line-height: 1.25;
}

.suggest__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 2px;
	color: var(--c-muted);
	font-size: var(--t-small);
}

.suggest--more {
	display: block;
	padding: var(--s-sm);
	color: var(--c-accent);
	font-weight: 600;
	text-align: center;
}

.search-panel__hint,
.search-panel__empty {
	margin-top: var(--s-sm);
	color: var(--c-muted);
	font-size: var(--t-small);
}

/* Trending strip */

.trending {
	border-top: 1px solid var(--c-line);
	background: var(--c-page);
}

.trending__list {
	display: flex;
	align-items: center;
	gap: var(--s-lg);
	min-height: 46px;
	overflow-x: auto;
	scrollbar-width: none;
	mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%);
}

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

.trending__list > li {
	flex: none;
}

.trending__list a {
	color: var(--c-ink-soft);
	font-size: var(--t-small);
	line-height: 1;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.trending__list a:hover,
.trending__list a:focus {
	color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   Shared blocks
   -------------------------------------------------------------------------- */

.site-main {
	padding-bottom: var(--s-3xl);
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--s-md);
	margin: var(--s-2xl) 0 var(--s-lg);
}

.section-head__title {
	font-size: var(--t-title);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.section-head__link {
	color: var(--c-accent);
	font-size: var(--t-tiny);
	font-weight: 600;
	white-space: nowrap;
}

.meta__date {
	display: block;
	color: var(--c-muted);
	font-family: var(--f-ui);
	font-size: var(--t-meta);
	line-height: 1.2;
}

/* Cards */

.card__media,
.card__media--empty {
	display: block;
	overflow: hidden;
	border-radius: var(--r-sm);
	background: var(--c-line-soft);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card__media img {
	transform: scale(1.03);
}

.card__title a:hover,
.card__title a:focus {
	color: var(--c-accent);
}

.card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: var(--s-2xs);
	color: var(--c-muted);
	font-size: var(--t-body);
	line-height: 1.4;
}

.card--list {
	display: grid;
	grid-template-columns: clamp(104px, 18vw, 208px) minmax(0, 1fr);
	gap: var(--s-md);
	align-items: start;
	padding-bottom: var(--s-lg);
	border-bottom: 1px solid var(--c-line-soft);
}

.card--list + .card--list {
	padding-top: var(--s-lg);
}

.card--list:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.card--list .card__media,
.card--list .card__media--empty {
	aspect-ratio: 3 / 2;
}

.card--list .card__title {
	margin-top: var(--s-3xs);
	font-size: var(--t-card);
	font-weight: 400;
	line-height: 1.2;
}

.card--rail {
	display: grid;
	grid-template-columns: clamp(72px, 8vw, 96px) minmax(0, 1fr);
	gap: var(--s-sm);
	align-items: start;
}

.card--rail .card__media,
.card--rail .card__media--empty {
	aspect-ratio: 3 / 2;
}

.card--rail .card__title {
	margin-top: 2px;
	font-size: var(--t-rail);
	font-weight: 400;
	line-height: 1.3;
	-webkit-line-clamp: 3;
}

.card--trip {
	display: flex;
	flex-direction: column;
	gap: var(--s-sm);
	text-align: center;
}

.card--trip .card__media,
.card--trip .card__media--empty {
	aspect-ratio: 16 / 9;
}

.card--trip .card__title {
	font-size: var(--t-lede);
	font-weight: 400;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	min-height: calc(2 * 1.25em);
}

.card__fact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2xs);
	margin-top: auto;
	color: var(--c-ink);
	font-size: var(--t-small);
}

.card--compact .card__title {
	font-size: var(--t-body);
	font-weight: 400;
	line-height: 1.4;
}

/* Promo slots */

.promo {
	display: flex;
	flex-direction: column;
	gap: var(--s-md);
}

.promo__item {
	width: 300px;
	max-width: 100%;
	min-height: 600px;
	overflow: hidden;
	border-radius: var(--r-md);
	background: #004d3e;
}

.promo__item--promo-2 {
	background: #ff5252;
}

.promo__item--empty {
	display: grid;
	place-items: center;
	color: rgb(255 255 255 / 65%);
	font-family: var(--f-ui);
	font-size: var(--t-meta);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.promo__title {
	font-size: var(--t-meta);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Pagination */

.pagination {
	margin-top: var(--s-xl);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2xs);
	align-items: center;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background: var(--c-surface);
	border-radius: var(--r-pill);
	font-family: var(--f-ui);
	font-size: var(--t-tiny);
}

.pagination .page-numbers.current {
	background: var(--c-ink);
	color: var(--c-surface);
}

/* Search form */

.search {
	display: flex;
	gap: var(--s-xs);
	max-width: 420px;
	margin-top: var(--s-md);
}

.search__field {
	flex: 1;
	min-width: 0;
	padding: 0.75em 1em;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
}

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

.site-foot {
	margin-top: var(--s-2xl);
	border-top: 1px solid var(--c-line);
	color: var(--c-ink);
}

.site-foot__inner {
	display: grid;
	grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2fr);
	gap: var(--s-2xl);
	padding-block: var(--s-2xl) var(--s-xl);
}

.site-foot .wordmark__mark {
	width: clamp(140px, 14vw, 190px);
}

.site-foot__tagline {
	margin-top: var(--s-xs);
	max-width: 32ch;
	color: var(--c-muted);
	font-size: var(--t-small);
	line-height: 1.5;
}

.site-foot__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--s-xl);
}

.site-foot__title {
	margin-bottom: var(--s-sm);
	font-family: var(--f-ui);
	font-size: var(--t-meta);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.site-foot__list {
	display: grid;
	gap: var(--s-2xs);
	font-size: var(--t-small);
}

.site-foot__list a:hover,
.site-foot__list a:focus,
.site-foot__legal-list a:hover,
.site-foot__legal-list a:focus {
	color: var(--c-accent);
}

.site-foot__widgets {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--s-xl);
	font-size: var(--t-small);
}

.site-foot__socket {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-sm);
	padding-block: var(--s-md);
	border-top: 1px solid var(--c-line);
}

.site-foot__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-md);
	font-family: var(--f-ui);
	font-size: var(--t-meta);
}

.site-foot__copy {
	color: var(--c-muted);
	font-family: var(--f-ui);
	font-size: var(--t-meta);
}

.site-foot__sep {
	padding-inline: var(--s-3xs);
}

/* --------------------------------------------------------------------------
   Responsive: the rail collapses into a drawer, the tools stay on the bar
   -------------------------------------------------------------------------- */

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

	.mega__links {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	:root {
		--rail-w: 100%;
	}

	/* Phone masthead: weather left, mark centred, controls right. */
	.site-head__top {
		align-items: center;
		min-height: 62px;
		padding-block: var(--s-xs);
	}

	.site-head__brand {
		top: 50%;
		bottom: auto;
		transform: translate(-50%, -50%);
	}

	.social {
		display: none;
	}

	.head-tools {
		display: flex;
		margin-left: auto;
	}

	.nav-bar__inner {
		padding: 0;
	}

	.nav-bar__search {
		display: none;
	}

	.nav-bar__inner {
		padding-inline: 0;
		background: none;
	}

	.nav {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 60;
		width: min(88vw, 380px);
		margin: 0;
		padding: calc(var(--s-2xl) + 12px) 0 var(--s-xl);
		background: var(--c-surface);
		box-shadow: var(--shadow-lg);
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		visibility: hidden;
	}

	.nav.is-open {
		transform: none;
		visibility: visible;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-inline: 0;
		background: none;
		border-radius: 0;
	}

	.nav__item {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--c-line-soft);
	}

	.nav__item--split {
		margin-left: 0;
	}

	.nav__link {
		flex: 1;
		min-height: 52px;
		padding-inline: var(--gutter);
		color: var(--c-ink);
		font-size: var(--t-rail);
		white-space: normal;
	}

	.nav__head {
		display: flex;
	}

	.nav__item--mega > .nav__link::after {
		display: none;
	}

	.nav__disclosure {
		position: static;
		display: grid;
		place-items: center;
		width: 56px;
		height: 52px;
		margin: 0;
		clip-path: none;
		border-left: 1px solid var(--c-line-soft);
		color: var(--c-ink);
	}

	.nav__chevron {
		width: 8px;
		height: 8px;
	}

	.mega {
		position: static;
		width: 100%;
		inset: auto;
		border-radius: 0;
		box-shadow: none;
		background: var(--c-page);
	}

	.mega__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--s-md);
		padding-block: var(--s-md);
	}

	.mega__featured {
		display: none;
	}

	.search-panel {
		border-radius: 0;
	}

	.search-panel__submit {
		display: none;
	}

	.site-foot__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--s-xl);
	}

	.site-foot__socket {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.weather__label {
		display: none;
	}

	.card--list {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: var(--s-sm);
	}

	.card--list .card__excerpt {
		display: none;
	}

	.promo__item {
		width: 100%;
		min-height: 240px;
	}

	.suggest {
		grid-template-columns: 64px minmax(0, 1fr);
	}
}
