/*
Theme Name: Para Usted Notecard
Version: 1.0.1
Description: A courteous handwritten note tucked under a windscreen wiper, on slate-blue glass.
Text Domain: parausted-notecard
License: GPL-2.0-or-later
*/

/* ---------- Type: Kalam for the handwriting, Lustria for reading ---------- */

@font-face {
	font-family: "Kalam";
	src: url("fonts/kalam-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Kalam";
	src: url("fonts/kalam-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Lustria";
	src: url("fonts/lustria-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

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

:root {
	--glass: #7d93ab;
	--sunstrip: #5f7489;
	--card: #fffdf7;
	--ink: #3b2240;
	--wiper: #1d2126;
	--text: #141a20;
	--fold: #e7dfcc;
	--pencil: #6b5a6e;
	--hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
	--read: "Lustria", Georgia, "Times New Roman", serif;
	--gap: clamp(1rem, 3vw, 2rem);
	--card-pad: clamp(1.25rem, 5vw, 3.5rem);
	--measure: 62ch;
	--paper-shadow: 2px 4px 0 rgba(29, 33, 38, 0.18), 0 14px 28px rgba(29, 33, 38, 0.14);
}

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

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

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

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: var(--read);
	font-size: 1.125rem;
	line-height: 1.7;
	background-color: var(--glass);
	background-image:
		linear-gradient(118deg, transparent 0 14%, rgba(255, 255, 255, 0.09) 14% 23%, transparent 23% 61%, rgba(255, 255, 255, 0.06) 61% 64%, transparent 64%),
		linear-gradient(180deg, rgba(29, 33, 38, 0.06), transparent 40%);
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
}

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

a {
	color: var(--ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

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

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

.sunstrip :focus-visible,
.seal :focus-visible,
.glass-panel :focus-visible,
.quiz-foot :focus-visible,
.quiz-top :focus-visible {
	outline-color: var(--card);
}

h1,
h2,
h3,
h4 {
	font-family: var(--hand);
	font-weight: 700;
	color: var(--ink);
	line-height: 1.2;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p,
ul,
ol,
dl,
blockquote,
table {
	margin: 0 0 1.1em;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--card);
	color: var(--ink);
	font-family: var(--hand);
	font-weight: 700;
	border-radius: 3px;
	box-shadow: var(--paper-shadow);
}

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

/* ---------- Header: the tinted sunstrip ---------- */

.sunstrip {
	background: var(--sunstrip);
	border-bottom: 1px solid rgba(29, 33, 38, 0.25);
	padding: 0.7rem clamp(1rem, 4vw, 3rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	flex-wrap: wrap;
	position: relative;
	z-index: 4;
}

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

.sunstrip__logo img {
	width: auto;
	height: 3.6rem;
}

.sunstrip nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.6rem;
}

.sunstrip nav a {
	display: inline-block;
	position: relative;
	padding: 0.35rem 0.1rem;
	font-family: var(--hand);
	font-size: 1.3rem;
	line-height: 1.3;
	color: var(--card);
	text-decoration: none;
}

.sunstrip nav a::after {
	content: "";
	position: absolute;
	left: 0.1rem;
	bottom: 0.15rem;
	width: 0;
	height: 3px;
	border-radius: 3px;
	background: var(--card);
	transform: rotate(-2deg);
	transition: width 0.25s ease;
}

.sunstrip nav a:hover::after,
.sunstrip nav .current-menu-item > a::after,
.sunstrip nav .current-menu-parent > a::after,
.sunstrip nav .current-post-ancestor > a::after,
.sunstrip nav .current-cat > a::after,
.sunstrip nav [aria-current="page"]::after {
	width: 70%;
}

/* ---------- The windscreen and its wiper blade ---------- */

.windscreen {
	position: relative;
	flex: 1 0 auto;
	width: 100%;
	padding: clamp(3.5rem, 8vw, 5.5rem) clamp(0.85rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
}

.wiper {
	position: absolute;
	inset: 0 0 auto 0;
	height: 11rem;
	overflow: hidden;
	pointer-events: none;
	z-index: 3;
}

.wiper::before {
	content: "";
	position: absolute;
	left: -6%;
	right: -6%;
	top: clamp(3.1rem, 7.4vw, 5rem);
	height: 0.7rem;
	border-radius: 0.5rem;
	background: var(--wiper);
	box-shadow: 0 4px 0 rgba(29, 33, 38, 0.2);
	transform: rotate(-3.2deg);
}

.wiper::after {
	content: "";
	position: absolute;
	left: 30%;
	right: -6%;
	top: clamp(2.2rem, 5.6vw, 3.8rem);
	height: 0.22rem;
	border-radius: 0.2rem;
	background: var(--wiper);
	opacity: 0.85;
	transform: rotate(-3.6deg);
}

/* ---------- The note card ---------- */

.notecard {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 54rem;
	margin: 0 auto var(--gap);
	padding: var(--card-pad);
	background-color: var(--card);
	--fold-at: calc(var(--card-pad) * 0.55);
	background-image: linear-gradient(180deg, transparent 0 var(--fold-at), var(--fold) var(--fold-at) calc(var(--fold-at) + 1px), transparent calc(var(--fold-at) + 1px));
	border-radius: 3px;
	box-shadow: var(--paper-shadow);
	overflow-wrap: break-word;
}

.notecard::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 2rem;
	height: 2rem;
	background: linear-gradient(225deg, var(--glass) 0 50%, var(--fold) 50% 100%);
	border-bottom-left-radius: 3px;
	box-shadow: -1px 1px 2px rgba(29, 33, 38, 0.12);
}

.notecard--hero {
	max-width: 58rem;
}

.notecard__hello {
	font-family: var(--hand);
	font-size: 1.25rem;
	color: var(--pencil);
	margin: 0 0 0.25rem;
}

.notecard__title {
	font-size: clamp(2.2rem, 6.4vw, 3.9rem);
	line-height: 1.1;
	margin-bottom: 0.4em;
}

.notecard__lede {
	max-width: var(--measure);
}

.notecard__sketch {
	float: right;
	width: clamp(5rem, 16vw, 9rem);
	margin: -0.5rem -0.25rem 0.5rem 1rem;
	shape-outside: circle(50%);
}

.kicker {
	font-family: var(--hand);
	font-size: 1.15rem;
	color: var(--pencil);
	margin: 0 0 0.2rem;
}

/* The question waiting on the home card */
.invitation {
	clear: both;
	margin-top: 1.5rem;
	padding: 1.25rem 1.25rem 1.4rem;
	border: 2px solid var(--ink);
	border-radius: 6px 10px 7px 12px / 10px 6px 12px 7px;
}

.invitation h2 {
	font-size: clamp(1.7rem, 4.6vw, 2.5rem);
	margin-bottom: 0.3em;
}

.invitation h2 a {
	text-decoration: none;
}

.invitation h2 a:hover {
	text-decoration: underline;
}

.invitation p {
	margin-bottom: 0.8em;
}

.pen-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.35rem 1.1rem;
	font-family: var(--hand);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--card);
	background: var(--ink);
	border-radius: 4px 8px 5px 9px / 8px 4px 9px 5px;
	text-decoration: none;
}

.pen-link:hover {
	background: #2c1830;
}

.pen-link::after {
	content: "\2192";
	font-family: var(--read);
}

/* The smaller card with the website's own words */
.notecard--small {
	max-width: 46rem;
	background-image: none;
}

.notecard--small > .note-text {
	max-width: var(--measure);
}

.notecard--tilt {
	transform: rotate(-0.6deg);
}

.notecard--tilt-other {
	transform: rotate(0.5deg);
}

/* ---------- Reading text on cards ---------- */

.note-text {
	max-width: var(--measure);
}

.note-text h2 {
	font-size: 1.65rem;
	margin-top: 1.6em;
}

.note-text h3 {
	font-size: 1.35rem;
	margin-top: 1.4em;
}

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

.note-text ul li {
	position: relative;
	margin-bottom: 0.45em;
}

.note-text ul li::before {
	content: "";
	position: absolute;
	left: -1.35rem;
	top: 0.8em;
	width: 0.8rem;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transform: rotate(-8deg);
}

.note-text ol {
	padding-left: 1.6rem;
}

.note-text ol li::marker {
	font-family: var(--hand);
	font-weight: 700;
	color: var(--ink);
}

.note-text blockquote,
.note-text aside {
	margin: 1.5rem 0;
	padding: 0.9rem 1.2rem;
	border-left: 3px solid var(--ink);
	background: rgba(231, 223, 204, 0.45);
}

.note-text table {
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
}

.note-text th,
.note-text td {
	padding: 0.45rem 0.8rem;
	border-bottom: 1px solid var(--fold);
	text-align: left;
}

.note-text hr {
	border: 0;
	height: 2px;
	margin: 2rem 0;
	background: var(--fold);
}

.note-text dl dt {
	font-family: var(--hand);
	font-weight: 700;
	color: var(--ink);
}

.note-text dl dd {
	margin: 0 0 0.8em 1.2rem;
}

.note-text details {
	margin: 1rem 0;
	border-bottom: 1px solid var(--fold);
}

.note-text summary {
	cursor: pointer;
	font-family: var(--hand);
	font-weight: 700;
	color: var(--ink);
}

.page-sign {
	margin-top: 2rem;
	font-family: var(--hand);
	font-size: 1.2rem;
	color: var(--pencil);
}

/* The team card on the about page */
.team-card {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 2px solid var(--fold);
}

.team-card img {
	width: 3.5rem;
	height: 3.5rem;
	flex: 0 0 auto;
}

.team-card p {
	margin: 0 0 0.4em;
	font-size: 1rem;
}

.team-card strong {
	font-family: var(--hand);
	font-size: 1.2rem;
	color: var(--ink);
}

/* ---------- Ad spaces ---------- */

.luna {
	display: block;
	width: 100%;
	margin: 1.75rem 0 0.5rem;
	padding: 0.6rem 0.6rem 0.75rem;
	background: rgba(125, 147, 171, 0.14);
	border: 1px dashed rgba(59, 34, 64, 0.45);
	border-radius: 4px;
	clear: both;
}

.luna iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
	margin: 0 auto;
}

.membrete {
	display: block;
	margin: 0 0 0.4rem;
	font-family: var(--read);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: var(--text);
}

.glass-panel {
	position: relative;
	z-index: 2;
	max-width: 58rem;
	margin: clamp(1.5rem, 4vw, 3rem) auto 0;
	padding: 0.25rem clamp(0.5rem, 2vw, 1rem) 0.75rem;
	border-top: 1px solid rgba(255, 253, 247, 0.4);
}

.glass-panel--small {
	max-width: 46rem;
	margin-top: 0;
	margin-bottom: var(--gap);
}

.glass-panel .luna {
	background: rgba(255, 253, 247, 0.16);
	border-color: rgba(20, 26, 32, 0.4);
}

.more-notes {
	max-width: 44rem;
	margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
}

.glass-heading {
	font-size: clamp(1.5rem, 4vw, 1.9rem);
	color: var(--text);
	margin: 0 0 0.5rem;
}

/* ---------- Archive, search and missing page ---------- */

.notecard--heading {
	max-width: 50rem;
	background-image: none;
}

.notecard--heading h1 {
	font-size: clamp(2.2rem, 6vw, 3.4rem);
	margin-bottom: 0.2em;
}

.notecard--heading .note-text p:last-child {
	margin-bottom: 0;
}

.note-stack {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 44rem;
}

.note-stack > li {
	position: relative;
	margin: -0.6rem 0 0;
}

.note-stack > li:first-child {
	margin-top: 0.5rem;
}

.note-stack .notecard {
	max-width: none;
	margin: 0;
	padding: clamp(1.1rem, 4vw, 2rem);
	background-image: none;
}

.note-stack > li:nth-child(odd) .notecard {
	transform: rotate(-0.7deg);
}

.note-stack > li:nth-child(even) .notecard {
	transform: rotate(0.6deg) translateX(0.6rem);
}

.note-stack h2 {
	font-size: clamp(1.45rem, 4.4vw, 1.9rem);
	margin-bottom: 0.3em;
}

.note-stack h2 a {
	text-decoration: none;
}

.note-stack h2 a:hover {
	text-decoration: underline;
}

.note-stack p {
	margin-bottom: 0;
}

.empty-note {
	font-style: italic;
}

/* Search form, the theme's own */
.note-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1rem 0 0;
}

.note-search label {
	flex: 1 0 100%;
	font-family: var(--hand);
	font-size: 1.15rem;
	color: var(--ink);
}

.note-search input[type="search"] {
	flex: 1 1 14rem;
	min-height: 48px;
	padding: 0.4rem 0.8rem;
	font: inherit;
	color: var(--text);
	background: #fff;
	border: 2px solid var(--ink);
	border-radius: 4px;
}

.note-search button {
	min-height: 48px;
	padding: 0.35rem 1.2rem;
	font-family: var(--hand);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--card);
	background: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 4px 8px 5px 9px / 8px 4px 9px 5px;
	cursor: pointer;
}

/* ---------- Footer: the windscreen's dark seal ---------- */

.seal {
	position: relative;
	margin-top: auto;
	padding: 1.75rem clamp(1rem, 4vw, 3rem) 2rem;
	border-top: 0.65rem solid var(--wiper);
	background: rgba(95, 116, 137, 0.35);
	font-size: 0.95rem;
	line-height: 1.6;
}

.seal__inner {
	max-width: 62rem;
	margin: 0 auto;
	display: grid;
	gap: 0.75rem 2rem;
	grid-template-columns: auto 1fr;
	align-items: start;
}

.seal__mark {
	width: 3rem;
	height: 3rem;
}

.seal__name {
	margin: 0;
	font-family: var(--hand);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--text);
}

.seal p {
	margin: 0 0 0.35rem;
}

.seal a {
	color: var(--text);
}

.seal nav {
	grid-column: 1 / -1;
}

.seal nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 1.4rem;
}

.seal nav a {
	display: inline-block;
	padding: 0.3rem 0;
}

/* ---------- Quiz: the note card fills the screen ---------- */

.quiz-screen {
	position: relative;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	padding: 0 clamp(0.75rem, 4vw, 2.5rem);
}

.quiz-top {
	position: relative;
	height: clamp(4.6rem, 12vw, 6.2rem);
	z-index: 3;
}

.quiz-top .wiper {
	height: 100%;
}

.quiz-top .wiper::before {
	top: clamp(2.3rem, 6.6vw, 3.6rem);
}

.quiz-top .wiper::after {
	top: clamp(1.5rem, 5vw, 2.6rem);
}

.quiz-logo {
	position: absolute;
	left: clamp(0.25rem, 2vw, 1rem);
	top: clamp(0.75rem, 2.5vw, 1.2rem);
	z-index: 4;
	line-height: 0;
	transform: rotate(-2deg);
}

.quiz-logo img {
	width: auto;
	height: clamp(2.6rem, 8vw, 3.4rem);
}

.quiz-card {
	position: relative;
	z-index: 2;
	flex: 1 0 auto;
	width: 100%;
	max-width: 56rem;
	margin: -0.6rem auto 0;
	padding: clamp(1.5rem, 5vw, 3.25rem) clamp(1rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.5rem);
	background: var(--card);
	border-radius: 3px;
	box-shadow: var(--paper-shadow);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.quiz-card::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 2.25rem;
	height: 2.25rem;
	background: linear-gradient(225deg, var(--glass) 0 50%, var(--fold) 50% 100%);
	box-shadow: -1px 1px 2px rgba(29, 33, 38, 0.12);
}

.quiz-card fieldset {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 1.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.quiz-card legend {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 0.5rem;
	font-family: var(--hand);
	font-weight: 700;
	font-size: clamp(2rem, 7vw, 3.5rem);
	line-height: 1.12;
	color: var(--ink);
	text-wrap: balance;
}

.quiz-card fieldset > p {
	margin: 0;
}

.quiz-card [id$="-description"] {
	grid-column: 1 / -1;
	max-width: 46ch;
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	color: var(--text);
}

.quiz-card button {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	min-height: 64px;
	margin: 0;
	padding: 0.6rem 0.75rem 0.6rem 3.6rem;
	font-family: var(--hand);
	font-weight: 400;
	font-size: clamp(1.3rem, 4.4vw, 1.6rem);
	line-height: 1.25;
	text-align: left;
	color: var(--text);
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--fold);
	border-radius: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* the empty, hand-drawn tick box */
.quiz-card button::before {
	content: "";
	position: absolute;
	left: 0.75rem;
	top: 50%;
	width: 1.75rem;
	height: 1.75rem;
	margin-top: -0.875rem;
	border: 2.5px solid var(--ink);
	border-radius: 4px 7px 5px 8px / 7px 4px 8px 5px;
	transform: rotate(-3deg);
	animation: tick-box-drawn 0.5s ease-out both;
}

/* the tick the pen would draw */
.quiz-card button::after {
	content: "";
	position: absolute;
	left: 1.3rem;
	top: 50%;
	width: 0.65rem;
	height: 1.25rem;
	margin-top: -0.9rem;
	border-right: 3px solid var(--ink);
	border-bottom: 3px solid var(--ink);
	border-radius: 0 0 3px 0;
	transform: rotate(40deg) scale(0.4);
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.quiz-card button:hover,
.quiz-card button:focus-visible {
	background: rgba(231, 223, 204, 0.4);
	color: var(--ink);
}

.quiz-card button:hover::after,
.quiz-card button:focus-visible::after,
.quiz-card button[aria-busy="true"]::after {
	opacity: 1;
	transform: rotate(40deg) scale(1);
}

.quiz-card button:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
	border-radius: 3px;
}

.quiz-card button[aria-busy="true"] {
	background: rgba(231, 223, 204, 0.65);
	color: var(--ink);
	cursor: progress;
}

.quiz-card button[aria-busy="true"]::before {
	animation: tick-box-pulse 1.1s ease-in-out infinite;
}

.quiz-card button:disabled:not([aria-busy="true"]) {
	opacity: 0.55;
	cursor: default;
}

.quiz-card fieldset[aria-busy="true"] {
	cursor: progress;
}

.quiz-card [role="status"] {
	grid-column: 1 / -1;
	min-height: 1.7em;
	margin: 1rem 0 0;
	font-family: var(--hand);
	font-size: 1.2rem;
	line-height: 1.4;
	color: var(--ink);
}

@keyframes tick-box-pulse {
	0%,
	100% {
		border-color: var(--ink);
	}
	50% {
		border-color: var(--pencil);
	}
}

/* On arrival, the empty boxes are drawn in once, to show where to answer. */
@keyframes tick-box-drawn {
	from {
		opacity: 0;
		transform: rotate(-3deg) scale(0.6);
	}
	to {
		opacity: 1;
		transform: rotate(-3deg) scale(1);
	}
}

.quiz-foot {
	padding: 1rem 0.25rem 1.25rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--text);
	text-align: center;
}

.quiz-foot p {
	margin: 0 0 0.3rem;
}

.quiz-foot a {
	color: var(--text);
}

.quiz-foot ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 1rem;
}

.quiz-foot li a {
	display: inline-block;
	padding: 0.35rem 0;
}

/* ---------- The measurement notice: a quiet strip, not a panel ---------- */

.visera {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0.4rem 0.75rem;
	padding: 0.6rem clamp(0.85rem, 4vw, 2.5rem) 0.7rem;
	background: var(--card);
	border-top: 3px solid var(--wiper);
	font-family: var(--read);
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--text);
}

.visera[hidden] {
	display: none;
}

.visera p {
	margin: 0;
}

.visera a {
	color: var(--ink);
}

.visera button,
div.atentamente button {
	min-width: 6.5rem;
	min-height: 44px;
	padding: 0.3rem 1rem;
	font-family: var(--hand);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.2;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 4px;
	cursor: pointer;
}

.visera button:hover,
div.atentamente button:hover {
	background: var(--fold);
}

body:has(.visera:not([hidden])) {
	padding-bottom: 7rem;
}

/* Below 48rem the notice takes the whole line and the two buttons share the next one. */
@media (max-width: 48rem) {
	.visera {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		font-size: 0.82rem;
		padding-top: 0.5rem;
		padding-bottom: 0.55rem;
	}

	.visera p {
		grid-column: 1 / -1;
	}

	.visera button {
		min-width: 0;
		width: 100%;
	}

	body:has(.visera:not([hidden])) {
		padding-bottom: 10.5rem;
	}
}

/* The choice on the cookies page */
div.atentamente {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
	margin: 1rem 0 1.5rem;
	padding: 1rem;
	border: 2px dashed var(--fold);
	border-radius: 4px;
}

div.atentamente p {
	flex: 1 0 100%;
	margin: 0;
}

.cortesia {
	flex: 1 0 100%;
	margin: 0.25rem 0 0;
	font-family: var(--hand);
	font-size: 1.1rem;
	color: var(--ink);
}

/* ---------- Wider screens ---------- */

@media (min-width: 48rem) {
	.quiz-card {
		justify-content: center;
	}

	.notecard--hero {
		transform: rotate(-0.8deg);
	}

	.quiz-card fieldset {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.seal__inner {
		grid-template-columns: auto 1fr auto;
	}

	.seal nav {
		grid-column: auto;
		justify-self: end;
	}

	.seal nav ul {
		flex-direction: column;
		gap: 0;
	}
}

@media (max-width: 30rem) {
	.sunstrip__logo img {
		height: 2.9rem;
	}

	.sunstrip nav a {
		font-size: 1.15rem;
	}

	.notecard {
		background-image: none;
	}

	.notecard__sketch {
		width: 4.5rem;
		margin-top: 0;
	}

	.notecard--tilt,
	.notecard--tilt-other,
	.note-stack > li .notecard {
		transform: none;
	}
}

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

@media print {
	.sunstrip nav,
	.wiper,
	.luna,
	.glass-panel,
	.visera {
		display: none;
	}

	body {
		background: #fff;
	}

	.notecard {
		box-shadow: none;
	}
}
