/*
Theme Name: Vindalho Supergraphics
Version: 1.0.0
Description: Car-park wayfinding supergraphics for Vindalho: painted white walls, a grass-green band, huge level numerals, white bay lines on asphalt.
Author: Vindalho
Text Domain: vindalho-supergraphics
License: GPL-2.0-or-later
*/

/* ---------- Paint, type and measure ---------- */

@font-face {
	font-family: "Funnel Display";
	src: url("assets/fonts/funnel-display.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Funnel Sans";
	src: url("assets/fonts/funnel-sans.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Funnel Sans";
	src: url("assets/fonts/funnel-sans-italic.woff2") format("woff2");
	font-weight: 300 800;
	font-style: italic;
	font-display: swap;
}

:root {
	--paint: #3aa63a;
	--paint-ink: #22702a;
	--wall: #f7f7f4;
	--white: #ffffff;
	--panel: #e3e5e0;
	--concrete: #cfd1cc;
	--asphalt: #34383b;
	--asphalt-line: #d9dcd7;
	--ink: #1c1f1d;
	--muted: #555a56;

	--display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
	--sans: "Funnel Sans", system-ui, sans-serif;

	--line: 8px;
	--corner: 4px;
	--measure: 38rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--band-h: clamp(3.75rem, 6vw, 4.5rem);
}

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

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

body {
	margin: 0;
	background: var(--wall);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.125rem;
	line-height: 1.65;
	font-weight: 400;
	font-kerning: normal;
	overflow-wrap: break-word;
}

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

a {
	color: var(--paint-ink);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ink);
	text-decoration-color: var(--paint);
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--display);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

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

.skip-to-level {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 50;
	padding: 0.6rem 1rem;
	background: var(--ink);
	color: var(--white);
	font-family: var(--display);
	font-weight: 700;
	text-decoration: none;
}

.skip-to-level:focus {
	top: 1rem;
	color: var(--white);
}

/* A painted chevron, drawn with two thick strokes. */
.chev {
	display: inline-block;
	width: 0.62em;
	height: 0.62em;
	border-top: 0.2em solid currentColor;
	border-right: 0.2em solid currentColor;
	border-radius: 0.06em;
	transform: rotate(45deg);
	flex: none;
}

/* ---------- Header: the wall and its band ---------- */

.wall-head {
	background: var(--wall);
	padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

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

.wall-head__band {
	min-height: var(--band-h);
}

.wall-head__inner {
	max-width: 76rem;
	margin: 0 auto;
	padding: 0 var(--gutter);
	min-height: var(--band-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
}

.wall-head__brand {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0;
	line-height: 0;
}

.wall-head__brand img {
	height: clamp(2.1rem, 3.4vw, 2.6rem);
	width: auto;
}

.wall-head__brand:focus-visible {
	outline-color: var(--white);
}

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

.signs a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 2.75rem;
	padding: 0.2rem 0.85rem 0.2rem 0.7rem;
	color: var(--ink);
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.1875rem;
	letter-spacing: 0.005em;
	text-decoration: none;
	border-radius: var(--corner);
}

.signs a::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-top: 0.17em solid currentColor;
	border-right: 0.17em solid currentColor;
	transform: rotate(45deg);
	margin-right: 0.1rem;
}

.signs a:hover {
	background: rgba(255, 255, 255, 0.35);
}

.signs .current-menu-item > a,
.signs .current-menu-ancestor > a,
.signs .current-cat > a,
.signs a[aria-current="page"] {
	background: var(--white);
}

/* ---------- Page frame ---------- */

.wall {
	display: block;
}

.wall-inner {
	max-width: 76rem;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ---------- Home: hero and levels ---------- */

.hero {
	padding-top: clamp(2.75rem, 8vw, 6.5rem);
}

.hero__tagline {
	font-size: clamp(3rem, 9.4vw, 8.25rem);
	line-height: 0.92;
	letter-spacing: -0.035em;
	max-width: 15ch;
}

.hero__band {
	margin-top: clamp(2rem, 5vw, 3.5rem);
	min-height: clamp(5.5rem, 10vw, 8rem);
	animation: paint-across 1.25s cubic-bezier(0.65, 0, 0.25, 1) 0.15s both;
}

.hero__band-inner {
	max-width: 76rem;
	margin: 0 auto;
	padding: 1.1rem var(--gutter);
	min-height: inherit;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem clamp(1.5rem, 4vw, 3rem);
}

.hero__line {
	margin: 0;
	max-width: 36rem;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.125rem, 1.9vw, 1.5rem);
	line-height: 1.3;
	color: var(--ink);
}

.hero__arrows {
	display: flex;
	gap: clamp(1rem, 3vw, 2.75rem);
	color: var(--white);
	font-size: clamp(1.75rem, 4.2vw, 3.4rem);
	flex: none;
}

.hero__arrows .chev {
	width: 0.55em;
	height: 0.55em;
	border-width: 0.16em;
}

@keyframes paint-across {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

.level {
	display: grid;
	grid-template-columns: minmax(0, clamp(6rem, 17vw, 14rem)) minmax(0, 1fr);
	gap: 0 clamp(1rem, 4vw, 3.5rem);
	align-items: start;
	padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}

.level__no {
	margin: 0;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(7rem, 19vw, 16rem);
	line-height: 0.76;
	letter-spacing: -0.06em;
	color: var(--paint);
	font-variant-numeric: lining-nums;
}

.level__body > h2 {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	margin-bottom: 1rem;
}

.level__body > h2::after {
	content: "";
	display: block;
	width: 4.5rem;
	height: 0.75rem;
	margin-top: 0.85rem;
	background: var(--paint);
}

/* The guide's card on the home level. */
.guide-card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	background: var(--white);
	border-top: var(--line) solid var(--paint);
	border-radius: 0 0 var(--corner) var(--corner);
}

.guide-card__figure {
	margin: 0;
	background: var(--panel);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 2.5vw, 2rem);
}

.guide-card__figure img {
	display: block;
	width: 100%;
}

.guide-card__text {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.guide-card__title {
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	line-height: 1.1;
}

.guide-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.guide-card__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--paint);
	text-decoration-thickness: 4px;
}

.guide-card__excerpt {
	margin: 0;
}

.painted-word {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1rem;
	color: var(--paint-ink);
	text-decoration: none;
}

.painted-word::before {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-top: 0.16em solid var(--paint);
	border-right: 0.16em solid var(--paint);
	transform: rotate(45deg);
}

a.painted-word:hover {
	color: var(--ink);
	text-decoration: underline;
}

.when {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--muted);
}

/* Ad panels: plain concrete, labelled, apart from the levels. */
.ad-panel {
	background: var(--concrete);
	padding: clamp(1rem, 3vw, 1.75rem);
	border-radius: var(--corner);
}

.ad-panel--home,
.ad-panel--foot {
	width: fit-content;
	min-width: min(20rem, 100%);
	max-width: min(62rem, 100%);
	margin: 0 auto;
}

.ad-panel--foot {
	margin: clamp(2rem, 5vw, 3.5rem) auto clamp(2.5rem, 6vw, 4rem);
}

.baia {
	display: block;
	width: 100%;
	max-width: 100%;
}

.baia iframe {
	display: block;
	max-width: 100%;
	border: 0;
}

.pilar {
	display: block;
	margin: 0 0 0.5rem;
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--ink);
}

/* Prose on home and pages. */
.prose {
	max-width: var(--measure);
}

.prose h2 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	margin: 2rem 0 0.75rem;
}

.prose h3 {
	font-size: 1.375rem;
	margin: 1.75rem 0 0.5rem;
}

.prose code,
.guide-body code {
	font-family: var(--display);
	font-weight: 700;
	font-size: 0.95em;
	padding: 0.05em 0.35em;
	background: var(--panel);
	border-radius: var(--corner);
}

.prose ul,
.prose ol {
	padding-left: 1.4rem;
	margin: 0 0 1.2em;
}

.prose li + li {
	margin-top: 0.35em;
}

/* ---------- Title wall (articles and pages) ---------- */

.title-wall {
	padding-top: clamp(2.25rem, 6vw, 4.5rem);
}

.title-wall__inner {
	max-width: 76rem;
	margin: 0 auto;
	padding: 0 var(--gutter) clamp(2rem, 5vw, 3.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: end;
}

.title-wall__inner--solo {
	grid-template-columns: minmax(0, 1fr);
}

.title-wall__text {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: flex-start;
}

.title-wall h1 {
	font-size: clamp(2.25rem, 5vw, 4.25rem);
	line-height: 1;
	letter-spacing: -0.025em;
	max-width: 21ch;
}

.title-wall__inner--solo h1 {
	max-width: 22ch;
}

.title-wall__excerpt {
	margin: 0;
	max-width: 36rem;
	font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
	line-height: 1.5;
	color: var(--muted);
}

.title-wall__figure {
	margin: 0;
	background: var(--panel);
	border-radius: var(--corner);
	padding: clamp(1rem, 2.5vw, 1.75rem);
}

.title-wall__figure img {
	display: block;
	width: 100%;
}

.title-wall__band {
	height: clamp(1.25rem, 2.6vw, 2rem);
}

.byline {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-top: 0.25rem;
}

.byline img {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 6px;
	flex: none;
}

.byline__name {
	display: block;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.0625rem;
	line-height: 1.2;
}

.byline__role {
	display: block;
	font-size: 0.9375rem;
	color: var(--muted);
	line-height: 1.3;
}

.dates {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1.5rem;
	font-size: 0.9375rem;
	color: var(--muted);
}

.dates strong {
	color: var(--ink);
	font-weight: 600;
}

/* ---------- The guide body: levels in order ---------- */

.guide-body {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--gutter), 1fr)
		[wide-start] minmax(0, 5rem)
		[col-start] min(var(--measure), 100% - 2 * var(--gutter))
		[col-end] minmax(0, 5rem)
		[wide-end] minmax(var(--gutter), 1fr)
		[full-end];
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem;
}

.guide-body > * {
	grid-column: col;
}

.guide-body > p:first-child {
	font-size: 1.25rem;
	line-height: 1.6;
}

.guide-body h2 {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	margin: clamp(3rem, 7vw, 4.5rem) 0 1.25rem;
	scroll-margin-top: 1.5rem;
}

.guide-body h2::after {
	content: "";
	display: block;
	width: 5rem;
	height: 0.8rem;
	margin-top: 0.9rem;
	background: var(--paint);
}

.guide-body .level-no {
	display: block;
	font-size: clamp(5.5rem, 13vw, 9.5rem);
	line-height: 0.8;
	letter-spacing: -0.06em;
	color: var(--paint);
	margin-bottom: 0.15em;
	font-variant-numeric: lining-nums;
}

.guide-body h3 {
	font-size: 1.375rem;
	line-height: 1.2;
	margin: 2.25rem 0 0.6rem;
}

.guide-body ul,
.guide-body ol {
	margin: 0 0 1.4em;
	padding: 0;
	list-style: none;
}

.guide-body ul > li {
	position: relative;
	padding-left: 1.6rem;
}

.guide-body ul > li::before {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: 0.62em;
	width: 0.45rem;
	height: 0.45rem;
	border-top: 3px solid var(--paint);
	border-right: 3px solid var(--paint);
	transform: rotate(45deg);
}

.guide-body li + li {
	margin-top: 0.5em;
}

/* Ordered lists are real steps: each one painted on its own square. */
.guide-body ol {
	counter-reset: step;
}

.guide-body ol > li {
	counter-increment: step;
	position: relative;
	padding-left: 3.4rem;
	min-height: 2.5rem;
}

.guide-body ol > li + li {
	margin-top: 0.85em;
}

.guide-body ol > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.4rem;
	height: 2.4rem;
	display: grid;
	place-items: center;
	background: var(--paint);
	color: var(--white);
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.25rem;
	border-radius: var(--corner);
}

/* Figures: concrete panels a little wider than the column. */
.guide-body figure {
	grid-column: wide;
	margin: 2.25rem 0;
	background: var(--panel);
	border-radius: var(--corner);
	padding: clamp(1rem, 3vw, 2rem);
}

.guide-body figure img {
	display: block;
	width: 100%;
	margin: 0 auto;
}

.guide-body figcaption,
.title-wall__figure figcaption {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 4px solid var(--white);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ink);
	max-width: var(--measure);
}

.guide-body figcaption em,
.guide-body figcaption i {
	color: var(--muted);
}

/* Tables: a green head row and thick white rules, scrolling on phones. */
.table-bay {
	grid-column: wide;
	margin: 2rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--corner);
}

.table-bay:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
}

.table-bay table {
	width: 100%;
	min-width: 0;
	border-collapse: collapse;
	background: var(--panel);
	font-size: 1rem;
	line-height: 1.5;
}

.table-bay table:has(tr > :nth-child(4)) {
	min-width: 36rem;
}

.table-bay caption {
	position: sticky;
	left: 0;
	max-width: calc(100vw - 2 * var(--gutter));
	caption-side: top;
	text-align: left;
	padding: 0 0 0.6rem;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.0625rem;
}

.table-bay th,
.table-bay td {
	padding: 0.75rem 0.9rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 5px solid var(--white);
}

.table-bay td + td,
.table-bay th + th {
	border-left: 5px solid var(--white);
}

.table-bay thead th {
	background: var(--paint);
	color: var(--ink);
	font-family: var(--display);
	font-weight: 800;
	font-size: 1rem;
	border-bottom: 0;
}

.table-bay tbody th {
	font-family: var(--display);
	font-weight: 700;
}

/* Asides: concrete panels led by a painted chevron. */
.guide-body aside,
.prose aside {
	position: relative;
	margin: 2rem 0;
	padding: 1.25rem 1.4rem 1.1rem 4rem;
	background: var(--concrete);
	border-radius: var(--corner);
}

.guide-body aside::before,
.prose aside::before {
	content: "";
	position: absolute;
	left: 1.35rem;
	top: 1.55rem;
	width: 0.95rem;
	height: 0.95rem;
	border-top: 6px solid var(--paint-ink);
	border-right: 6px solid var(--paint-ink);
	transform: rotate(45deg);
}

.guide-body aside > :last-child,
.prose aside > :last-child {
	margin-bottom: 0;
}

.guide-body aside p,
.prose aside p {
	margin-bottom: 0.6em;
}

/* Questions and answers. */
.guide-body details {
	margin: 0.75rem 0;
	background: var(--white);
	border: 4px solid var(--concrete);
	border-radius: var(--corner);
}

.guide-body details + details {
	margin-top: 0.6rem;
}

.guide-body summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.85rem 1rem;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1.3;
}

.guide-body summary::-webkit-details-marker {
	display: none;
}

.guide-body summary::before {
	content: "";
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	border-top: 3px solid var(--paint-ink);
	border-right: 3px solid var(--paint-ink);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.guide-body details[open] > summary::before {
	transform: rotate(135deg);
}

.guide-body details > :not(summary) {
	padding: 0 1rem 0 2.4rem;
}

.guide-body details > :last-child {
	padding-bottom: 0.9rem;
	margin-bottom: 0;
}

/* Terms. */
.guide-body dl {
	margin: 1.5rem 0;
}

.guide-body dt {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.125rem;
	margin-top: 1rem;
}

.guide-body dd {
	margin: 0.25rem 0 0;
	padding-left: 1rem;
	border-left: 6px solid var(--concrete);
}

/* Takeaways. */
.guide-body blockquote {
	margin: 2.25rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 12px solid var(--paint);
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	line-height: 1.3;
}

.guide-body blockquote p:last-child {
	margin-bottom: 0;
}

.guide-body hr {
	border: 0;
	height: var(--line);
	background: var(--concrete);
	margin: 2.5rem 0;
}

/* An in-article slot, if an ad-variant article ever carries one. */
.guide-body .baia {
	grid-column: wide;
	margin: 2.5rem 0;
	padding: clamp(1rem, 3vw, 1.5rem);
	background: var(--concrete);
	border-radius: var(--corner);
}

/* ---------- Closing: the team's note and other levels ---------- */

.closing {
	max-width: calc(var(--measure) + 10rem);
	margin: 0 auto;
	padding: 1rem var(--gutter) clamp(2.5rem, 6vw, 4rem);
	display: grid;
	gap: 1.5rem;
}

.team-note {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem 1.25rem;
	align-items: start;
	padding: 1.5rem;
	background: var(--white);
	border-top: var(--line) solid var(--paint);
	border-radius: 0 0 var(--corner) var(--corner);
}

.team-note img {
	width: 4rem;
	height: 4rem;
	border-radius: 8px;
}

.team-note h2 {
	font-size: 1.375rem;
	margin-bottom: 0.15rem;
}

.team-note__role {
	margin: 0 0 0.6rem;
	font-size: 0.9375rem;
	color: var(--muted);
}

.team-note__bio {
	margin: 0;
	font-size: 1rem;
}

.other-levels h2 {
	font-size: 1.375rem;
	margin-bottom: 0.75rem;
}

.other-levels ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	background: var(--concrete);
	border-top: 6px solid var(--white);
	border-radius: var(--corner);
}

.other-levels li {
	border-right: 6px solid var(--white);
}

.other-levels a {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	min-height: 4.25rem;
	padding: 0.9rem 1.1rem;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.0625rem;
	color: var(--ink);
	text-decoration: none;
}

.other-levels a .chev {
	color: var(--paint-ink);
	width: 0.55em;
	height: 0.55em;
}

.other-levels a:hover span {
	text-decoration: underline;
	text-decoration-color: var(--paint);
	text-decoration-thickness: 3px;
}

/* ---------- Pages ---------- */

.page-body {
	max-width: 76rem;
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}

.page-body .prose a {
	font-weight: 600;
}

.prose .team-note {
	margin: 2.5rem 0 0;
}

/* The choice on the cookies page. */
.seta {
	margin: 1.5rem 0;
	padding: 1.25rem 1.4rem;
	background: var(--panel);
	border-radius: var(--corner);
}

.seta button,
.faixa button {
	min-height: 2.75rem;
	min-width: 7.5rem;
	padding: 0.5rem 1.25rem;
	border: 3px solid var(--ink);
	border-radius: var(--corner);
	background: var(--ink);
	color: var(--white);
	font-family: var(--display);
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
}

.seta button:hover,
.faixa button:hover {
	background: var(--asphalt);
}

.seta button:focus-visible,
.faixa button:focus-visible {
	outline: 3px solid var(--paint-ink);
	outline-offset: 3px;
}

.piso {
	display: block;
	margin-top: 0.75rem;
	font-weight: 600;
}

/* ---------- Archive: articles as bays ---------- */

.archive-band {
	padding: clamp(1.75rem, 5vw, 3.25rem) 0;
	margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.archive-band__inner {
	max-width: 76rem;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.archive-band h1 {
	color: var(--white);
	font-size: clamp(3.25rem, 10vw, 7.5rem);
	line-height: 0.9;
	letter-spacing: -0.04em;
}

.archive-band p {
	margin: 1rem 0 0;
	max-width: 40rem;
	font-size: 1.125rem;
	color: var(--ink);
	font-weight: 500;
}

.bay-lot {
	max-width: 76rem;
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}

.bay-lot__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
	background: var(--concrete);
	border-top: var(--line) solid var(--white);
	border-left: var(--line) solid var(--white);
	border-radius: var(--corner);
}

.bay-lot__grid--c1 {
	grid-template-columns: minmax(0, 27rem);
	width: fit-content;
	max-width: 100%;
}

.bay-lot__grid--c2 {
	grid-template-columns: repeat(2, minmax(0, 27rem));
	width: fit-content;
	max-width: 100%;
}

.bay-lot__bay {
	border-right: var(--line) solid var(--white);
	border-bottom: var(--line) solid var(--white);
	padding: clamp(1rem, 2.5vw, 1.5rem);
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.bay-lot__figure {
	margin: 0;
	background: var(--panel);
	border-radius: var(--corner);
	padding: 0.75rem;
}

.bay-lot__figure img {
	display: block;
	width: 100%;
}

.bay-lot__bay h2 {
	font-size: 1.5rem;
	line-height: 1.12;
}

.bay-lot__bay h2 a {
	color: var(--ink);
	text-decoration: none;
}

.bay-lot__bay h2 a:hover {
	text-decoration: underline;
	text-decoration-color: var(--paint-ink);
	text-decoration-thickness: 4px;
}

.bay-lot__bay p {
	margin: 0;
}

.bay-lot__bay .when {
	color: var(--ink);
}

.bay-lot__empty {
	margin: 0;
	padding: 1.5rem;
	background: var(--panel);
	border-radius: var(--corner);
}

/* Search form. */
.find {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.25rem 0 0;
	max-width: 36rem;
}

.find label {
	flex-basis: 100%;
	font-family: var(--display);
	font-weight: 800;
}

.find input[type="search"] {
	flex: 1 1 14rem;
	min-height: 3rem;
	padding: 0.5rem 0.85rem;
	border: 4px solid var(--ink);
	border-radius: var(--corner);
	background: var(--white);
	color: var(--ink);
	font: inherit;
}

.find button {
	min-height: 3rem;
	padding: 0.5rem 1.25rem;
	border: 0;
	border-radius: var(--corner);
	background: var(--ink);
	color: var(--white);
	font-family: var(--display);
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
}

/* Missing page. */
.no-level {
	max-width: 76rem;
	margin: 0 auto;
	padding: clamp(3rem, 9vw, 7rem) var(--gutter);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: center;
}

.no-level__arrow {
	color: var(--paint);
	font-size: clamp(6rem, 18vw, 13rem);
	line-height: 1;
	padding: 0 0.25em;
}

.no-level__arrow .chev {
	transform: rotate(-135deg);
	border-width: 0.15em;
	width: 0.6em;
	height: 0.6em;
}

.no-level h1 {
	font-size: clamp(2.25rem, 5vw, 4rem);
	margin-bottom: 1rem;
}

/* ---------- Footer: asphalt and bay lines ---------- */

.asphalt {
	background: var(--asphalt);
	color: var(--white);
	margin-top: 0;
	padding: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

.asphalt a {
	color: var(--white);
}

.asphalt :focus-visible {
	outline-color: var(--white);
}

.asphalt__inner {
	max-width: 76rem;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.asphalt__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	border-left: 6px solid var(--white);
}

.asphalt__row > * {
	border-right: 6px solid var(--white);
	padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 2.5vw, 1.5rem) 1.25rem;
	margin: 0;
}

.asphalt__brand img {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 8px;
	display: block;
	margin-bottom: 0.9rem;
}

.asphalt__tagline {
	margin: 0;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.375rem;
	line-height: 1.15;
}

.asphalt__publisher {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--asphalt-line);
}

.asphalt__publisher strong {
	color: var(--white);
	font-family: var(--display);
	font-weight: 800;
}

.asphalt__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 6px solid var(--white);
	border-left: 6px solid var(--white);
}

.asphalt__nav li {
	border-right: 6px solid var(--white);
	border-bottom: 6px solid var(--white);
}

.asphalt__nav a {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 4rem;
	padding: 0.75rem 1rem;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.0625rem;
	text-decoration: none;
}

.asphalt__nav a::before {
	content: "";
	flex: none;
	width: 0.45em;
	height: 0.45em;
	border-top: 0.16em solid var(--paint);
	border-right: 0.16em solid var(--paint);
	transform: rotate(45deg);
}

.asphalt__nav a:hover {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--paint);
}

.asphalt__end {
	margin: 1.25rem 0 0;
	font-size: 0.9375rem;
	color: var(--asphalt-line);
}

/* ---------- The cookie strip: quiet, compact, two equal buttons ---------- */

.faixa {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.65rem var(--gutter);
	background: var(--white);
	border-top: 4px solid var(--concrete);
	color: var(--ink);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.faixa p {
	margin: 0;
	flex: 1 1 26rem;
}

.faixa a {
	color: var(--paint-ink);
	font-weight: 600;
}

.faixa > div,
.faixa form {
	display: flex;
	gap: 0.5rem;
}

.faixa[hidden] {
	display: none;
}

/* ---------- Lists of guides, search and pagination ---------- */

.guide-cards {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.25rem);
}

.level__body > h2:first-child {
	margin-top: 0;
}

.archive-band--search h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.bay-lot .find {
	margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.no-level .find {
	margin-top: 2rem;
}

.pagination {
	margin-top: 2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.85rem;
	background: var(--panel);
	color: var(--ink);
	font-family: var(--display);
	font-weight: 800;
	text-decoration: none;
	border-radius: var(--corner);
}

.pagination .page-numbers.current {
	background: var(--paint);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 52rem) {
	.guide-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.title-wall__inner {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
}

@media (max-width: 40rem) {
	body {
		font-size: 1.0625rem;
	}

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

	.wall-head__inner {
		padding-top: 0.4rem;
		padding-bottom: 0.4rem;
		gap: 0.25rem 1rem;
	}

	.signs a {
		font-size: 1.0625rem;
		min-height: 2.75rem;
		padding: 0.2rem 0.6rem;
	}

	.hero__arrows .chev:nth-child(n + 2) {
		display: none;
	}

	.level {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}

	.level__no {
		font-size: 7.5rem;
	}

	.guide-body figure {
		margin-left: calc(-1 * var(--gutter) + 0.5rem);
		margin-right: calc(-1 * var(--gutter) + 0.5rem);
	}

	.guide-body aside,
	.prose aside {
		padding-left: 3.25rem;
	}

	.guide-body aside::before,
	.prose aside::before {
		left: 1rem;
	}

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

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

	.faixa {
		padding: 0.55rem 0.9rem;
		font-size: 0.875rem;
		gap: 0.45rem;
	}

	.faixa p {
		flex-basis: 100%;
	}

	.faixa > div,
	.faixa form {
		width: 100%;
	}

	.faixa button {
		flex: 1 1 0;
		min-width: 0;
	}
}

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