/*
Theme Name: Kinmeran
Theme URI: https://kinmeran.org/
Author: Kinmeran
Author URI: https://kinmeran.org/
Description: Guia extra-oficial de Deadlock, escrito em Évora. Faixas, almas e ocupações. Sem descarregar e sem loja.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kinmeran
Tags: blog, entertainment
*/

/* =========================================================================
   1. Lettertypen — map fonts/, nunca de um servidor externo
   Urbanist 700 sem cifras no unicode-range; as cifras ficam em Alegreya Sans
   Alegreya Sans não tem corte 600 no Google Fonts: o peso 600 usa o ficheiro 700
   ========================================================================= */

@font-face {
	font-family: Urbanist;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/urbanist-700-latin.woff2') format('woff2');
	unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Urbanist;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/urbanist-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Alegreya Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/alegreya-sans-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Alegreya Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/alegreya-sans-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Alegreya Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/alegreya-sans-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Alegreya Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/alegreya-sans-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Alegreya Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/alegreya-sans-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Alegreya Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/alegreya-sans-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================================
   2. Paleta e reset — tijolo molhado, não asfalto Dota
   ========================================================================= */

:root {
	--tijolo: #161418;
	--panel: #221e24;
	--haarlijn: #322c34;
	--rand: #948890;
	--osso: #eee6ea;
	--nevoeiro: #b8a8b0;
	--mercurio: #70c0c8;
	--tijoloacc: #d08860;
	--aviso: #e07068;
	--misura: 72rem;
	--faixa-h: 4.5rem;
}

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

html {
	scroll-padding-top: var(--faixa-h);
	background: var(--tijolo);
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Alegreya Sans', sans-serif;
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--osso);
	background-color: var(--tijolo);
	background-image: linear-gradient(rgba(22, 20, 24, 0.92), rgba(22, 20, 24, 0.92)), url('images/textura-tijolo.jpg');
	background-size: auto, 42rem auto;
	min-width: 20rem;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	border: 0;
}

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

a:hover,
a:focus-visible {
	color: var(--tijoloacc);
}

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

[hidden] {
	display: none !important;
	visibility: hidden !important;
}

h1,
h2,
h3,
.faixa__nome {
	font-family: Urbanist, 'Alegreya Sans', sans-serif;
	font-weight: 700;
	line-height: 1.2;
	color: var(--osso);
	letter-spacing: 0.01em;
}

h1 {
	font-size: clamp(1.8rem, 4vw, 3rem);
	margin: 0 0 0.6rem;
}

h2 {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	margin: 0 0 0.5rem;
}

h3 {
	font-size: 1.2rem;
	margin: 0 0 0.4rem;
}

p,
ul,
ol {
	margin: 0 0 0.9rem;
}

.cifra,
time,
code {
	font-family: 'Alegreya Sans', sans-serif;
	font-weight: 600;
}

.js .opdaagt {
	opacity: 0;
	transform: translateY(0.6rem);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .opdaagt--op {
	opacity: 1;
	transform: none;
}

/* =========================================================================
   3. Cabeça .faixa — sem CTA
   ========================================================================= */

.faixa__salta {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 80;
	padding: 0.6rem 1rem;
	background: var(--mercurio);
	color: var(--tijolo);
	min-height: 36px;
}

.faixa__salta:focus {
	left: 0.6rem;
	top: 0.6rem;
}

.faixa--topo {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(22, 20, 24, 0.96);
	border-bottom: 1px solid var(--haarlijn);
	min-height: var(--faixa-h);
}

.faixa__binnen {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	max-width: var(--misura);
	margin: 0 auto;
	padding: 0.55rem 1.1rem;
}

.faixa__marca {
	text-decoration: none;
	color: var(--osso);
	min-height: 36px;
	display: inline-flex;
	align-items: center;
}

.faixa__nome {
	font-size: 1.35rem;
	margin: 0;
}

.faixa__m {
	position: relative;
	display: inline-block;
}

.faixa__risco {
	position: absolute;
	left: -12%;
	right: -12%;
	top: 54%;
	height: 3px;
	background: var(--mercurio);
	transform: rotate(-18deg);
	pointer-events: none;
}

.faixa__klop {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	min-width: 44px;
	padding: 0.4rem 0.7rem;
	border: 2px solid var(--rand);
	background: var(--panel);
	color: var(--osso);
	font-family: inherit;
	font-size: 1rem;
	cursor: pointer;
}

.faixa__streepjes {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	width: 1.1rem;
}

.faixa__streepjes i {
	display: block;
	height: 2px;
	background: var(--osso);
}

.faixa__dicht {
	display: none;
}

.faixa--aberta .faixa__open {
	display: none;
}

.faixa--aberta .faixa__dicht {
	display: inline;
}

.faixa__nav {
	margin-left: auto;
}

.faixa__lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.9rem;
}

.faixa__lista a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--osso);
	text-decoration: none;
	padding: 0.2rem 0;
}

.faixa__lista a:hover,
.faixa__lista a:focus-visible {
	color: var(--mercurio);
}

.mudo {
	position: fixed;
	inset: 0;
	border: 0;
	background: rgba(22, 20, 24, 0.55);
	z-index: 40;
	cursor: pointer;
}

@media (min-width: 62em) {
	.faixa__klop,
	.mudo {
		display: none;
	}

	.faixa__nav {
		display: block;
	}
}

@media (max-width: 61.99em) {
	.faixa__nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--panel);
		border-bottom: 1px solid var(--rand);
		padding: 0.6rem 1.1rem 1rem;
		z-index: 45;
	}

	.faixa--aberta .faixa__nav {
		display: block;
	}

	.faixa__lista {
		flex-direction: column;
	}

	.faixa__lista a {
		min-height: 44px;
	}
}

/* =========================================================================
   4. Secções .alma, cartões .ocupa, ruas
   ========================================================================= */

.alma {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 2.2rem 1.1rem;
}

.alma--panel {
	background: var(--panel);
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.alma--panel > .alma__crinale,
.alma--panel > .alma__duo,
.alma--panel > h2,
.alma--panel > p,
.alma--panel > ul,
.alma--panel > .tavola-scorr,
.alma--panel > .faixa__rij,
.alma--panel > .alma__numeros,
.alma--panel > .alma__marca {
	max-width: var(--misura);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}

.alma__crinale {
	padding: 0.4rem 0;
}

.alma__marca {
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nevoeiro);
	margin-bottom: 0.35rem;
}

.alma__marca--depois {
	margin-top: 0.6rem;
}

.alma__intro {
	font-size: 1.15rem;
	color: var(--nevoeiro);
	max-width: 40rem;
}

.alma__lastra {
	max-width: 38rem;
	padding: 2.4rem 1.4rem;
	background: linear-gradient(90deg, rgba(22, 20, 24, 0.92) 0%, rgba(22, 20, 24, 0.78) 70%, rgba(22, 20, 24, 0.35) 100%);
	color: var(--osso);
}

.alma--hero,
.alma--cta {
	max-width: none;
	min-height: 28rem;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	padding: 0;
}

.alma--cta {
	min-height: 18rem;
	align-items: center;
}

.alma__duo {
	display: grid;
	gap: 1.4rem;
}

.alma__duo figure img,
.ocupa img {
	width: 100%;
	border: 1px solid var(--haarlijn);
}

.alma__duo--inverso {
	direction: ltr;
}

@media (min-width: 54em) {
	.alma__duo {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

	.alma__duo--inverso figure {
		order: 2;
	}
}

.alma__larga img {
	width: 100%;
	border: 1px solid var(--haarlijn);
}

.alma__passo {
	font-size: 2.4rem;
	color: var(--tijoloacc);
	margin: 0 0 0.3rem;
}

.alma__passos {
	padding-left: 1.2rem;
}

.alma__passos li {
	margin-bottom: 1.1rem;
}

.faixa__rij {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.faixabtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.45rem 1rem;
	border: 2px solid transparent;
	background: var(--mercurio);
	color: var(--tijolo);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.faixabtn:hover,
.faixabtn:focus-visible {
	color: var(--tijolo);
	filter: brightness(1.06);
}

.faixabtn--stil {
	background: transparent;
	color: var(--osso);
	border-color: var(--rand);
}

.faixabtn--stil:hover,
.faixabtn--stil:focus-visible {
	color: var(--osso);
	border-color: var(--mercurio);
}

.faixabtn--keuze {
	background: var(--panel);
	color: var(--osso);
	border-color: var(--rand);
}

.faixabtn--keuze[aria-pressed="true"] {
	background: var(--tijoloacc);
	color: var(--tijolo);
	border-color: var(--tijoloacc);
}

.rua--grelha {
	display: grid;
	gap: 1rem;
}

@media (min-width: 48em) {
	.rua--grelha {
		grid-template-columns: 1fr 1fr;
	}
}

.ocupa {
	background: var(--panel);
	border: 1px solid var(--haarlijn);
	display: flex;
	flex-direction: column;
}

.ocupa__corpo {
	padding: 0.9rem 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ocupa__corpo .faixabtn {
	margin-top: auto;
}

.ocupa--texto {
	padding: 1.2rem 1rem;
	justify-content: center;
}

.ocupa--pessoas {
	display: grid;
	gap: 1.2rem;
	background: transparent;
	border: 0;
}

.ocupa--pessoas article {
	background: var(--panel);
	border: 1px solid var(--haarlijn);
}

.ocupa--pessoas img {
	width: 100%;
}

.ocupa--pessoas div {
	padding: 0.9rem 1rem 1.1rem;
}

@media (min-width: 54em) {
	.ocupa--pessoas {
		grid-template-columns: 1fr 1fr;
	}

	.ocupa--pessoas article {
		display: grid;
		grid-template-columns: 12rem 1fr;
	}
}

.alma--relogio article {
	display: grid;
	gap: 0.4rem 1.2rem;
	border-top: 1px solid var(--haarlijn);
	padding: 1rem 0;
}

.alma__hora {
	font-size: 1.4rem;
	color: var(--tijoloacc);
	margin: 0;
}

@media (min-width: 48em) {
	.alma--relogio article {
		grid-template-columns: 14rem 1fr;
		align-items: start;
	}
}

.alma--faq details {
	border-top: 1px solid var(--haarlijn);
	padding: 0.7rem 0;
}

.alma--faq summary {
	cursor: pointer;
	min-height: 36px;
	display: flex;
	align-items: center;
	font-weight: 600;
}

.alma__numeros {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.4rem;
}

.alma__numeros .cifra {
	display: block;
	font-size: 2rem;
	color: var(--tijoloacc);
}

.rua--fichas {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.rua--fichas li {
	display: flex;
	gap: 0.8rem;
	min-height: 36px;
	align-items: center;
	border-bottom: 1px solid var(--haarlijn);
}

.rua--fichas span {
	font-family: Urbanist, 'Alegreya Sans', sans-serif;
	font-weight: 700;
	min-width: 8rem;
}

.faixalista article {
	border-top: 1px solid var(--haarlijn);
	padding: 0.9rem 0;
}

.faixalista__meta {
	color: var(--nevoeiro);
	font-size: 0.95rem;
}

.aviso {
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--rand);
	background: var(--panel);
}

.aviso--warn {
	background: var(--aviso);
	color: var(--tijolo);
	border-color: var(--aviso);
}

.isco {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ocupa--form label {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 36px;
}

.ocupa--form input,
.ocupa--form textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0.25rem 0 0.8rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--rand);
	background: var(--tijolo);
	color: var(--osso);
	font-family: inherit;
	font-size: 1rem;
}

.ocupa--form textarea {
	min-height: 8rem;
}

fieldset {
	border: 1px solid var(--haarlijn);
	margin: 0 0 0.9rem;
	padding: 0.6rem 0.8rem 0.8rem;
}

legend {
	padding: 0 0.4rem;
	color: var(--nevoeiro);
}

/* =========================================================================
   5. Instrumentos
   ========================================================================= */

.faixa__keuzes,
.alma__keuzes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.faixa__pistas {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0.6rem;
	min-height: 6rem;
	margin: 0.8rem 0;
}

.faixa__pista {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 0.35rem;
	background: var(--tijolo);
	border: 1px solid var(--haarlijn);
	padding: 0.5rem 0.3rem;
	min-height: 6.5rem;
}

.faixa__seixo {
	display: block;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--mercurio);
}

.alma__grelha {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.4rem;
	margin: 0.8rem 0;
}

.alma__cel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.6rem;
	background: var(--tijolo);
	border: 1px solid var(--haarlijn);
}

.alma__cel--agora {
	background: var(--mercurio);
	color: var(--tijolo);
	border-color: var(--mercurio);
}

.ocupa__anel {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin: 0.8rem 0;
}

.ocupa__fecha {
	grid-column: 1 / -1;
	text-align: center;
	margin: 0.4rem 0 0;
}

.rua__linhas {
	display: grid;
	gap: 0.55rem;
}

.rua__linha {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
}

.rua__chips {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.rua__chips span {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.3rem 0.7rem;
	background: var(--tijoloacc);
	color: var(--tijolo);
	font-weight: 600;
}

.faixa__stand,
.alma__stand,
.ocupa__stand,
.rua__stand {
	color: var(--nevoeiro);
}

.walker {
	letter-spacing: 0.02em;
}

/* =========================================================================
   6. Costura, pé, cookies, 404
   ========================================================================= */

.faixacostura {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 12px;
	max-width: var(--misura);
	margin: 0 auto;
	padding: 0 1.1rem;
}

.faixacostura i {
	flex: 1;
	height: 4px;
	background: var(--rand);
	display: block;
}

.faixacostura i:nth-child(7n) {
	height: 10px;
	background: var(--tijoloacc);
}

.rua--pe {
	background: var(--panel);
	border-top: 1px solid var(--haarlijn);
	padding: 2rem 1.1rem 6.5rem;
}

.rua__binnen {
	max-width: var(--misura);
	margin: 0 auto;
	display: grid;
	gap: 1.4rem;
}

@media (min-width: 54em) {
	.rua__binnen {
		grid-template-columns: 1.2fr 1fr 1.2fr;
	}
}

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

.rua__lijst a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--osso);
}

.rua__dati a {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
}

.rua__verklaring {
	color: var(--nevoeiro);
	font-size: 0.95rem;
}

.koekrand {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	background: var(--panel);
	border-top: 2px solid var(--rand);
	padding: 0.8rem 1.1rem calc(0.8rem + env(safe-area-inset-bottom));
}

.koekrand__binnen {
	max-width: var(--misura);
	margin: 0 auto;
}

.koekrand__knoppen {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.koekrand__knoppen .faixabtn {
	flex: 1 1 10rem;
	min-width: 10rem;
}

.perdido {
	max-width: 40rem;
	margin: 0 auto;
	padding: 3rem 1.1rem 4rem;
	text-align: center;
}

.perdido p {
	font-size: 1.05rem;
}

.perdido .perdido__cifra {
	font-size: clamp(4.5rem, 18vw, 8rem);
	line-height: 1;
	margin: 0 0 0.4rem;
	color: var(--tijoloacc);
}

.tavola-scorr {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	text-align: left;
	padding: 0.55rem 0.6rem;
	border-bottom: 1px solid var(--haarlijn);
	min-height: 36px;
}

caption {
	text-align: left;
	margin-bottom: 0.5rem;
	color: var(--nevoeiro);
}

@media (max-width: 40em) {
	thead {
		display: none;
	}

	tr {
		display: block;
		padding: 0.5rem 0;
		border-bottom: 1px solid var(--haarlijn);
	}

	td {
		display: flex;
		justify-content: space-between;
		gap: 0.8rem;
		border: 0;
		min-height: 36px;
	}

	td::before {
		content: attr(data-kop);
		color: var(--nevoeiro);
	}
}
