/*
Theme Name: Fisalia Centimetre
Version: 1.0.0
Description: The cutting-table theme of Fisalia: a yellow tailor's tape measures every page.
Author: Fisalia
License: GPL-2.0-or-later
Text Domain: fisalia-centimetre
*/

/* ¦ faces, shipped with the theme */

@font-face {
	font-family: "Antonio";
	src: url("assets/fonts/antonio-variable.woff2") format("woff2");
	font-weight: 100 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Vollkorn";
	src: url("assets/fonts/vollkorn-variable.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Vollkorn";
	src: url("assets/fonts/vollkorn-italic-variable.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
}

/* ¦ tokens: the cutting table */

:root {
	--tape: #efcb12;
	--ink: #1c1b18;
	--numeral: #b8352a;
	--table: #f7f7f5;
	--sheet: #ffffff;
	--muted: #5d5b55;
	--ochre-link: #6d5500;
	--brass: #b8924a;
	--brass-deep: #8a6a2c;
	--fill: #ecebe6;
	--rule: #d6d4cc;

	--display: "Antonio", "Arial Narrow", sans-serif;
	--text: "Vollkorn", Georgia, serif;

	/* 1.333 scale from an 18px body */
	--fs-small: 0.833rem;
	--fs-body: 1.125rem;
	--fs-h4: 1.333rem;
	--fs-h3: 1.777rem;
	--fs-h2: 2.369rem;
	--fs-h1: 3.157rem;
	--fs-hero: clamp(3.2rem, 9.5vw, 8.4rem);

	--measure: 33em;
	--gutter: clamp(1rem, 4vw, 3rem);
	--page: 76rem;

	--cm: 40px;            /* one centimetre of the header tape */
	--tape-h: 32px;
}

/* ¦ ground */

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

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

html,
body { overflow-x: clip; }

body {
	margin: 0;
	background: var(--table);
	color: var(--ink);
	font-family: var(--text);
	font-size: var(--fs-body);
	line-height: 1.7;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	background-image: linear-gradient(var(--tape), var(--tape));
	background-repeat: no-repeat;
	background-size: 100% 0.32em;
	background-position: 0 92%;
}

a:hover { background-size: 100% 100%; }

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

.skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 20;
	padding: 0.5rem 1rem;
	background: var(--sheet);
	font-family: var(--display);
	font-weight: 600;
}

.skip:focus { top: 2.6rem; }

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

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

/* ¦ the tape itself */

.tape {
	display: block;
	height: var(--tape-h);
	background: var(--tape) url("assets/img/tape.svg") 0 0 / auto 100% repeat-x;
	position: relative;
}

/* the brass end tip at the zero end */
.tape::before {
	content: "";
	position: absolute;
	left: 0;
	top: -2px;
	bottom: -2px;
	width: 11px;
	background: var(--brass);
	border-left: 3px solid var(--brass-deep);
}

/* ¦ masthead */

.masthead { background: var(--table); }

.masthead__row {
	max-width: var(--page);
	margin: 0 auto;
	padding: 1.25rem var(--gutter) 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
}

.masthead__logo {
	display: inline-block;
	line-height: 0;
	background: none;
}

.masthead__logo img { width: 9.4rem; height: auto; }

.masthead__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.25rem 1.75rem;
}

.masthead__nav a {
	position: relative;
	display: inline-block;
	padding: 0.35rem 0.1rem;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.2;
	text-decoration: none;
	background: none;
}

.masthead__nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* the current page hangs under the brass end tip */
.masthead__nav .current-menu-item > a::before,
.masthead__nav .current-menu-parent > a::before,
.masthead__nav .current-post-ancestor > a::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -1.6rem;
	width: 12px;
	height: 1.15rem;
	margin-left: -6px;
	background: var(--brass);
	border-left: 3px solid var(--brass-deep);
}

.masthead__nav .current-menu-item > a,
.masthead__nav .current-menu-parent > a,
.masthead__nav .current-post-ancestor > a { font-weight: 700; }

/* ¦ home: the tape pulled out */

.hero {
	max-width: var(--page);
	margin: 0 auto;
	padding: clamp(1.5rem, 5vw, 4rem) var(--gutter) 0;
}

.hero__line {
	font-size: var(--fs-hero);
	font-weight: 700;
	line-height: 0.98;
	max-width: 100%;
}

.hero__pull {
	position: relative;
	height: 64px;
	/* the tape runs out to the right edge of the screen */
	margin: clamp(1.5rem, 4vw, 2.75rem) calc((100% - 100vw) / 2) 0 0;
	overflow: hidden;
}

.hero__pull .tape {
	--tape-h: 64px;
	position: absolute;
	inset: 0 auto 0 0;
	width: 100%;
	animation: pull-out 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

/* the brass tip leads the pull */
.hero__pull .tape::before {
	left: auto;
	right: 0;
	width: 16px;
	border-left: 0;
	border-right: 4px solid var(--brass-deep);
}

@keyframes pull-out {
	from { width: 16px; }
	to { width: 100%; }
}

.hero__lede {
	max-width: 36em;
	margin: 1.5rem 0 0;
	font-size: 1.25rem;
	line-height: 1.6;
}

/* ¦ sections of the home */

.band {
	max-width: var(--page);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 0;
}

.band__title {
	font-size: var(--fs-h2);
	margin-bottom: 1.25rem;
}

/* ¦ cards that lie along a tape */

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

.lay-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	background: var(--sheet) url("assets/img/tape-edge.svg") 0 0 / 20px 40px repeat-y;
	padding-left: 20px;
	border: 1px solid var(--rule);
	border-left: 0;
}

.lay-card__figure {
	margin: 0;
	background: var(--sheet);
	border-bottom: 1px solid var(--rule);
}

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

.lay-card__text { padding: 1.25rem clamp(1rem, 3vw, 2rem) 1.5rem; }

.lay-card__niche {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1rem;
	color: var(--muted);
	margin: 0 0 0.4rem;
}

.lay-card__title {
	font-size: clamp(1.6rem, 3.4vw, 2.369rem);
	margin: 0 0 0.75rem;
}

.lay-card__title a {
	text-decoration: none;
	background-size: 100% 0;
}

.lay-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.lay-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.lay-card:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.lay-card__title a:focus-visible { outline: none; }

.lay-card__excerpt { margin: 0 0 0.75rem; font-style: italic; }

.lay-card__date {
	font-family: var(--display);
	font-size: 0.95rem;
	color: var(--muted);
}

@media (min-width: 52rem) {
	.lay-card--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
	.lay-card--wide .lay-card__figure { border-bottom: 0; border-right: 1px solid var(--rule); }
	.lay-card--wide .lay-card__text { align-self: center; padding: 2rem 2.5rem; }
	.lay-card--row { grid-template-columns: 15rem minmax(0, 1fr); }
	.lay-card--row .lay-card__figure { border-bottom: 0; border-right: 1px solid var(--rule); }
	.lay-card--row .lay-card__title { font-size: var(--fs-h3); }
}

/* ¦ where to measure */

.points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.points figure {
	margin: 0;
	background: var(--sheet);
	border: 1px solid var(--rule);
	height: 100%;
}

.points img { display: block; width: 100%; }

.points figcaption {
	padding: 0.25rem 1.25rem 1.25rem;
	font-size: 1rem;
	line-height: 1.55;
}

.points figure { display: grid; }

.points figcaption strong {
	display: block;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.333rem;
	margin-bottom: 0.2rem;
}

@media (max-width: 40rem) {
	.points figure { grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; }
	.points img { border-right: 1px solid var(--rule); }
	.points figcaption { padding: 0.75rem 0.9rem; font-size: 0.95rem; }
	.points figcaption strong { font-size: 1.15rem; }
}

/* ¦ reading sheet */

.sheet {
	max-width: var(--page);
	margin: clamp(2rem, 5vw, 3.5rem) auto 0;
	padding: 0 var(--gutter);
}

.sheet__paper {
	background: var(--sheet);
	border: 1px solid var(--rule);
	padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
}

.sheet__column { max-width: var(--measure); margin: 0 auto; }

/* ¦ page and archive heads */

.page-head {
	max-width: var(--page);
	margin: 0 auto;
	padding: clamp(1.25rem, 4vw, 3rem) var(--gutter) 0;
}

.page-head h1 {
	font-size: clamp(2.6rem, 7vw, 5rem);
	font-weight: 700;
	max-width: 18ch;
}

.page-head__intro {
	max-width: 36em;
	margin: 1rem 0 0;
	font-size: 1.2rem;
	font-style: italic;
}

.page-head .tape {
	margin: 1.75rem calc(-1 * var(--gutter)) 0 0;
	--tape-h: 40px;
}

.archive-list .lay-list { max-width: 56rem; }

.lay-card--row .lay-card__figure { display: flex; align-items: center; }

.empty-note {
	font-style: italic;
	color: var(--muted);
}

/* ¦ guide (article) */

.guide-head {
	max-width: var(--page);
	margin: clamp(1rem, 3vw, 2rem) auto 0;
	padding: 0 var(--gutter);
}

.guide-head__block {
	background: var(--sheet);
	border: 1px solid var(--rule);
	border-top: 0;
	display: grid;
	gap: 0;
}

.guide-head__block > .tape { grid-column: 1 / -1; }

.guide-head__text { padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem); }

.guide-head__niche {
	margin: 0 0 0.75rem;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.1rem;
}

.guide-head__niche a { text-decoration: none; }

.guide-head h1 {
	font-size: clamp(2.1rem, 4.2vw, 3.3rem);
	font-weight: 700;
	max-width: 24ch;
}

.guide-head__excerpt {
	margin: 1.1rem 0 0;
	font-size: 1.25rem;
	line-height: 1.55;
	font-style: italic;
	max-width: 32em;
}

.byline {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 1.75rem 0 0;
	padding-top: 1.1rem;
	border-top: 1px solid var(--rule);
}

.byline img { width: 2.75rem; height: 2.75rem; flex: none; }

.byline__who { line-height: 1.35; }

.byline__name {
	display: block;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.15rem;
}

.byline__dates {
	display: block;
	font-variant-numeric: lining-nums;
	font-size: 0.95rem;
	color: var(--muted);
}

.guide-head__figure {
	margin: 0;
	border-top: 1px solid var(--rule);
	display: flex;
	align-items: center;
	justify-content: center;
}

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

@media (min-width: 60rem) {
	.guide-head__block { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
	.guide-head__figure { border-top: 0; border-left: 1px solid var(--rule); }
}

.guide-body {
	max-width: var(--page);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.guide-body__paper {
	background: var(--sheet);
	border: 1px solid var(--rule);
	border-top: 0;
	padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
}

/* ¦ content blocks, styled from the elements */

.entry {
	max-width: var(--measure);
	margin: 0 auto;
	counter-reset: section;
	overflow-wrap: break-word;
}

.entry > * + * { margin-top: 1.1em; }

.entry p,
.entry ul,
.entry ol,
.entry dl { margin-bottom: 0; }

.entry > p:first-child { margin-top: 0; }

/* each section's heading lies on a tape that grows by ten centimetres */
.entry h2 {
	--len: 4.5rem;
	position: relative;
	counter-increment: section;
	font-size: var(--fs-h2);
	margin-top: 2.6em;
	padding-top: 2.1rem;
}

.entry h2:nth-of-type(2) { --len: 7.5rem; }
.entry h2:nth-of-type(3) { --len: 10.5rem; }
.entry h2:nth-of-type(4) { --len: 13.5rem; }
.entry h2:nth-of-type(5) { --len: 16.5rem; }
.entry h2:nth-of-type(6) { --len: 19.5rem; }
.entry h2:nth-of-type(7) { --len: 22.5rem; }
.entry h2:nth-of-type(n+8) { --len: 25.5rem; }

.entry h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: min(var(--len), calc(100% - 2.5rem));
	height: 14px;
	background:
		linear-gradient(90deg, var(--brass-deep) 0 3px, var(--brass) 3px 10px, transparent 10px),
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 30px) 10px 0 / 100% 8px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px) 10px 0 / 100% 4px no-repeat,
		var(--tape);
}

.entry h2::after {
	content: counter(section) "0";
	position: absolute;
	top: -0.3rem;
	left: calc(min(var(--len), 100% - 2.5rem) + 0.45rem);
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1;
	color: var(--numeral);
}

.entry h3 {
	font-size: var(--fs-h3);
	margin-top: 2em;
}

.entry h4 { font-size: var(--fs-h4); margin-top: 1.75em; }

.entry h2 + *,
.entry h3 + * { margin-top: 0.7em; }

.entry ul { padding-left: 1.6rem; list-style: none; }

.entry ul > li { position: relative; }

.entry ul > li::before {
	content: "";
	position: absolute;
	left: -1.3rem;
	top: 0.55em;
	width: 0.7rem;
	height: 0.55rem;
	border-left: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
	transform: translateY(-15%);
}

.entry ul > li + li,
.entry ol > li + li { margin-top: 0.45em; }

/* ordered lists are real sequences: red numerals on a tick */
.entry ol {
	list-style: none;
	counter-reset: step;
	padding-left: 3rem;
}

.entry ol > li {
	position: relative;
	counter-increment: step;
}

.entry ol > li::before {
	content: counter(step);
	position: absolute;
	left: -3rem;
	top: 0.05em;
	width: 2.1rem;
	padding-top: 0.35rem;
	border-top: 4px solid var(--tape);
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.45rem;
	line-height: 1;
	color: var(--numeral);
	text-align: left;
}

/* measurement sheets */
.entry table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: lining-nums tabular-nums;
	font-size: 1rem;
	line-height: 1.5;
}

.entry table caption {
	caption-side: top;
	text-align: left;
	font-style: italic;
	padding-bottom: 0.5rem;
}

.entry th,
.entry td {
	text-align: left;
	vertical-align: top;
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--rule);
}

.entry thead th {
	background: var(--tape);
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.25;
	border-bottom: 2px solid var(--ink);
}

.entry tbody th {
	font-family: var(--text);
	font-weight: 600;
	background: none;
}

.entry tbody tr > :first-child { font-weight: 600; min-width: 8.5rem; }

.entry code {
	font-family: inherit;
	font-size: 0.95em;
	background: var(--fill);
	padding: 0.05em 0.3em;
}

/* the sheet scrolls sideways on a phone, never the page */
.entry .sheet-scroll,
.entry [role="region"] {
	overflow-x: auto;
	border: 1px solid var(--rule);
	-webkit-overflow-scrolling: touch;
}

.entry .sheet-scroll:focus-visible,
.entry [role="region"]:focus-visible { outline-offset: 2px; }

.entry .sheet-scroll table,
.entry [role="region"] table { min-width: 38rem; }

@media (max-width: 40rem) {
	.entry > table { display: block; overflow-x: auto; }
}

.entry [role="region"] caption { padding: 0.75rem 0.8rem 0.5rem; }

@media (min-width: 64rem) {
	.entry [role="region"] { margin-left: -3.5rem; margin-right: -3.5rem; }
}

/* notes with a tape along their edge */
.entry aside {
	background: var(--table) url("assets/img/tape-edge.svg") 0 0 / 20px 40px repeat-y;
	padding: 1.1rem 1.25rem 1.2rem 2.6rem;
	font-size: 1.05rem;
	line-height: 1.6;
}

.entry aside > :first-child { margin-top: 0; }
.entry aside > * + * { margin-top: 0.7em; }
.entry aside p { margin-bottom: 0; }

.entry aside strong:first-child {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: 0.005em;
}

/* figures: a white panel with a short scale at its foot */
.entry figure {
	margin-left: 0;
	margin-right: 0;
	border: 1px solid var(--rule);
	background: var(--sheet);
}

.entry figure img { display: block; width: 100%; }

.entry figcaption {
	position: relative;
	padding: 1.15rem 1rem 0.9rem;
	font-size: 0.95rem;
	line-height: 1.55;
	font-style: italic;
	border-top: 1px solid var(--rule);
}

.entry figcaption::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: -1px;
	width: 7.5rem;
	height: 7px;
	background:
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px) 0 0 / 100% 4px no-repeat,
		var(--tape);
}

@media (min-width: 64rem) {
	.entry figure { margin-left: -3.5rem; margin-right: -3.5rem; }
}

/* questions and answers on a ruled sheet */
.entry details {
	border-top: 2px solid var(--ink);
	border-bottom: 1px solid var(--rule);
	padding: 0.2rem 0;
}

.entry details + details { margin-top: 0; border-top: 0; }

.entry summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 0.85rem 0 0.85rem 2rem;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.25;
}

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

.entry summary::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.05rem;
	width: 1.1rem;
	height: 0.75rem;
	background:
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4px) 0 0 / 100% 40% no-repeat,
		var(--tape);
}

.entry details[open] summary::before { width: 1.5rem; }

.entry details > :not(summary) { margin: 0 0 1rem 2rem; }

.entry dl { display: grid; gap: 0.2rem 0; }

.entry dt {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.2rem;
	margin-top: 0.8rem;
}

.entry dd {
	margin: 0;
	padding-left: 1rem;
	border-left: 2px solid var(--tape);
}

.entry blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 1.25rem 0 0;
	font-size: 1.3rem;
	line-height: 1.5;
	font-style: italic;
	background: linear-gradient(var(--tape), var(--tape)) 0 0 / 4.5rem 6px no-repeat;
}

.entry blockquote p { margin: 0; }

.entry hr {
	border: 0;
	height: 8px;
	margin: 2.5rem 0;
	background:
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px) 0 0 / 100% 4px no-repeat,
		var(--tape);
}

.entry strong { font-weight: 700; }

/* ¦ after the guide */

.team-note {
	max-width: var(--measure);
	margin: 3.5rem auto 0;
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 2px solid var(--ink);
}

.team-note img { width: 3.5rem; height: 3.5rem; }

.team-note h2 { font-size: var(--fs-h4); margin-bottom: 0.3rem; }

.team-note p { margin: 0; font-size: 1rem; line-height: 1.6; }

.further {
	max-width: var(--measure);
	margin: 2.5rem auto 0;
}

.further h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }

.further ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--rule);
}

.further li {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--rule);
}

.further a { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }

.further span { display: block; font-size: 1rem; font-style: italic; color: var(--muted); }

/* ¦ ad slots: plain labelled frames, apart from the tape */

.palmo {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.6rem 0.75rem 0.75rem;
	background: var(--table);
	border: 1px dashed var(--muted);
}

.palmo iframe { display: block; width: 100%; border: 0; }

.graduacao {
	display: block;
	margin: 0 0 0.45rem;
	font-family: var(--display);
	font-weight: 600;
	font-size: 0.85rem;
	line-height: 1.2;
	color: var(--muted);
	letter-spacing: 0.01em;
}

.slot-bay {
	max-width: var(--measure);
	margin: 2.5rem auto 0;
}

.slot-shelf {
	max-width: var(--page);
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	padding: 0 var(--gutter);
}

.slot-shelf__card {
	background: var(--sheet);
	border: 1px solid var(--rule);
	padding: 1rem;
}

.entry .palmo { margin: 2rem 0; }

/* ¦ footer: an ink band under the tape */

.baseboard {
	margin-top: clamp(3rem, 8vw, 6rem);
	background: var(--ink);
	color: var(--table);
}

.baseboard a {
	color: var(--table);
	background: none;
	text-decoration-color: var(--tape);
}

.baseboard a:hover { color: var(--tape); }

.baseboard :focus-visible { outline-color: var(--tape); }

.baseboard__inner {
	max-width: var(--page);
	margin: 0 auto;
	padding: 2.5rem var(--gutter) 3rem;
	display: grid;
	gap: 2rem 3rem;
}

@media (min-width: 52rem) {
	.baseboard__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

.baseboard__logo { line-height: 0; display: inline-block; }
.baseboard__logo img { width: 9rem; }

.baseboard__tagline {
	margin: 1rem 0 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.6rem;
	line-height: 1.15;
	color: var(--tape);
}

.baseboard__publisher {
	margin: 1rem 0 0;
	max-width: 30em;
	font-size: 1rem;
	line-height: 1.6;
}

.baseboard__nav h2 {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
	color: var(--tape);
}

.baseboard__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 2rem;
}

.baseboard__nav li { break-inside: avoid; padding: 0.3rem 0; }

.baseboard__nav a { font-size: 1.02rem; }

/* ¦ missing page */

.missing .tape { width: 42%; min-width: 9rem; }

/* ¦ the measurement notice: a quiet strip */

.ponteira {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	padding: 0.7rem var(--gutter) 0.8rem;
	background: var(--sheet);
	color: var(--ink);
	border-top: 2px solid var(--ink);
	font-size: 0.94rem;
	line-height: 1.45;
}

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

.ponteira a { font-weight: 600; }

.ponteira button,
.folga button {
	appearance: none;
	min-height: 44px;
	min-width: 7.5rem;
	margin: 0;
	padding: 0.45rem 1.1rem;
	background: var(--sheet);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.1;
	cursor: pointer;
}

.ponteira button:hover,
.folga button:hover { background: var(--fill); }

@media (max-width: 40rem) {
	.ponteira { padding: 0.6rem 1rem 0.7rem; font-size: 0.875rem; line-height: 1.4; gap: 0.5rem; }
	.ponteira p { flex-basis: 100%; }
	.ponteira button { flex: 1 1 0; min-width: 0; }
}

/* room to scroll the footer clear of the notice while it shows */
body:has(.ponteira:not([hidden])) .baseboard__inner { padding-bottom: 11rem; }

/* the choice on the cookies page */
.folga {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 1.5rem 0;
	padding: 1rem 1rem 1rem 2.6rem;
	background: var(--table) url("assets/img/tape-edge.svg") 0 0 / 20px 40px repeat-y;
}

.marca {
	flex-basis: 100%;
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.05rem;
}

/* ¦ phones and small windows */

@media (max-width: 40rem) {
	:root { --tape-h: 26px; }
	.masthead__row { padding-top: 1rem; padding-bottom: 1.1rem; }
	.masthead__logo img { width: 8rem; }
	.masthead__nav ul { gap: 0 1.1rem; }
	.masthead__nav a { font-size: 1.15rem; }
	.masthead__nav .current-menu-item > a::before,
	.masthead__nav .current-menu-parent > a::before,
	.masthead__nav .current-post-ancestor > a::before { top: -1.35rem; height: 0.95rem; }
	.hero__pull { height: 48px; }
	.hero__pull .tape { --tape-h: 48px; }
	.entry h2 { font-size: 1.95rem; }
	.entry ol { padding-left: 2.6rem; }
	.entry ol > li::before { left: -2.6rem; width: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation: none !important; transition: none !important; }
	.hero__pull .tape { width: 100%; }
}
