/* Site chrome — shared header, footer, tokens, buttons */

:root {
	--ink: #141414;
	--grey: #767672;
	--paper: #fbfaf7;
	--line: #e6e3da;
	--gold: #c89b2c;
	--black: #0a0a0a;
}

html {
	height: 100%;
}

body.site {
	background: var(--paper);
	color: var(--ink);
	font-family: 'Inter', system-ui, sans-serif;
	margin: 0;
	min-height: 100%;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

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

#app {
	position: relative;
	flex: 1 0 auto;
}

#app.has-fixed-header {
	padding-top: 4.5rem;
}

@media (min-width: 768px) {
	#app.has-fixed-header {
		padding-top: 5.5rem;
	}
}

/* ── Header ── */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: rgba(10, 10, 10, 0.92);
	backdrop-filter: blur(8px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header--over-hero {
	background: transparent;
	backdrop-filter: none;
	box-shadow: none;
}

.site-header--over-hero.is-scrolled {
	background: rgba(10, 10, 10, 0.92);
	backdrop-filter: blur(8px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header__logo img {
	height: 2rem;
	display: block;
}

@media (min-width: 768px) {
	.site-header {
		padding: 1.25rem 3rem;
	}

	.site-header__logo img {
		height: 2.5rem;
	}
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* ── Buttons ── */
.pd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.35rem;
	border-radius: 8px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.pd-btn--gold {
	background: var(--gold);
	color: #fff;
}

.pd-btn--gold:hover {
	background: #b08824;
}

.pd-btn--outline {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.pd-btn--outline:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.pd-btn--outline-dark {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--line);
}

.pd-btn--outline-dark:hover {
	border-color: var(--gold);
	color: var(--gold);
}

/* ── Footer ── */
.site-footer {
	flex-shrink: 0;
	background: var(--black);
	color: rgba(255, 255, 255, 0.55);
	padding: 3rem 1.25rem 2rem;
	font-size: 13px;
}

.site-footer__inner {
	max-width: 72rem;
	margin: 0 auto;
	display: grid;
	gap: 2rem;
}

@media (min-width: 768px) {
	.site-footer {
		padding: 4rem 3rem 2.5rem;
	}

	.site-footer__inner {
		grid-template-columns: 1.5fr 1fr 1fr;
		gap: 3rem;
	}
}

.site-footer__brand img {
	height: 2rem;
	margin-bottom: 1rem;
}

.site-footer__brand p {
	line-height: 1.6;
	max-width: 28ch;
	margin: 0;
}

.site-footer__col h3 {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 1rem;
}

.site-footer__col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.site-footer__col a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
}

.site-footer__col a:hover {
	color: #fff;
}

.site-footer__bottom {
	max-width: 72rem;
	margin: 2.5rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 12px;
	text-align: center;
}

.site-footer__bottom a {
	color: rgba(255, 255, 255, 0.55);
}

/* ── Legal / static content pages ── */
.legal-page {
	max-width: 42rem;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
}

@media (min-width: 768px) {
	.legal-page {
		padding: 3.5rem 3rem 5rem;
	}
}

.legal-page__label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 0.75rem;
}

.legal-page__title {
	font-family: 'Instrument Serif', serif;
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 400;
	line-height: 1.1;
	color: var(--ink);
	margin: 0 0 0.75rem;
}

.legal-page__updated {
	font-size: 13px;
	color: var(--grey);
	margin: 0 0 2.5rem;
}

.legal-page__body {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.legal-page__body section h2 {
	font-family: 'Instrument Serif', serif;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--ink);
	margin: 0 0 0.75rem;
}

.legal-page__body p,
.legal-page__body li {
	font-size: 15px;
	line-height: 1.7;
	color: var(--ink);
	margin: 0;
}

.legal-page__body p + p {
	margin-top: 0.85rem;
}

.legal-page__body ul {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.legal-page__body a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.legal-page__body a:hover {
	color: var(--gold);
}

/* ── Guide list / detail ── */
.guide-page {
	max-width: 48rem;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
}

@media (min-width: 768px) {
	.guide-page {
		padding: 3.5rem 3rem 5rem;
	}
}

.guide-page--modal {
	padding: 0.5rem 0 0;
	max-width: none;
}

.guide-page__label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 0.75rem;
}

.guide-page__title {
	font-family: 'Instrument Serif', serif;
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 400;
	line-height: 1.1;
	color: var(--ink);
	margin: 0 0 0.75rem;
}

.guide-page__lede {
	font-size: 15px;
	line-height: 1.7;
	color: var(--grey);
	margin: 0 0 2.5rem;
	max-width: 40rem;
}

.guide-page__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.guide-page__item {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.25rem 0;
	border-top: 1px solid var(--line);
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s;
}

.guide-page__item:last-child {
	border-bottom: 1px solid var(--line);
}

.guide-page__item:hover {
	opacity: 0.85;
}

.guide-page__item:hover .guide-page__item-name {
	color: var(--gold);
}

.guide-page__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	padding: 0.65rem;
	overflow: hidden;
}

@media (min-width: 768px) {
	.guide-page__icon {
		width: 5.5rem;
		height: 5.5rem;
		padding: 0.85rem;
	}
}

.guide-page__icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.guide-page__icon--lg {
	width: 100%;
	height: 8rem;
	margin-bottom: 1.5rem;
	padding: 1.5rem;
}

@media (min-width: 768px) {
	.guide-page__icon--lg {
		float: right;
		width: 12rem;
		height: 12rem;
		margin: 0 0 1.5rem 2rem;
	}
}

.guide-page__item-name {
	font-family: 'Instrument Serif', serif;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 0.35rem;
	transition: color 0.15s;
}

.guide-page__item-desc {
	font-size: 13px;
	line-height: 1.55;
	color: var(--grey);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.guide-page__body {
	clear: both;
}

.guide-page__body p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--ink);
	margin: 0 0 1rem;
}

.guide-page__link {
	display: inline-block;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold);
	text-decoration: none;
	margin-bottom: 2rem;
}

.guide-page__link:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.guide-page__section-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 2rem 0 1.25rem;
}

.guide-page__awards {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.guide-page__award {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.guide-page__award img {
	flex-shrink: 0;
	width: 3.5rem;
	height: 3.5rem;
	object-fit: contain;
}

.guide-page__award h2 {
	font-family: 'Instrument Serif', serif;
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.3;
	margin: 0 0 0.35rem;
	color: var(--ink);
}

.guide-page__award p {
	font-size: 14px;
	line-height: 1.65;
	color: var(--grey);
	margin: 0;
}

/* ── Breadcrumb (paper pages) ── */
.site-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	font-size: 12px;
	color: var(--grey);
	margin-bottom: 1.5rem;
}

.site-breadcrumb a {
	color: var(--grey);
	text-decoration: none;
}

.site-breadcrumb a:hover {
	color: var(--ink);
}

.site-breadcrumb [aria-current="page"] {
	color: var(--ink);
}

/* ── Page dialog (native <dialog>) ── */
.page-modal {
	padding: 0;
	border: none;
	border-radius: 18px;
	width: min(42rem, calc(100% - 2rem));
	max-height: min(90vh, 100%);
	overflow: visible;
	background: transparent;
	box-shadow: none;
}

.page-modal::backdrop {
	background: rgba(20, 20, 20, 0.55);
}

.page-modal__panel {
	position: relative;
	max-height: min(90vh, 100%);
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow:
		0 24px 64px rgba(20, 20, 20, 0.2),
		0 8px 24px rgba(20, 20, 20, 0.1);
}

.page-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--grey);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.page-modal-close:hover {
	color: var(--ink);
	background: #fff;
}

#pageModalContent {
	padding: 1.5rem 1.75rem 1.75rem;
}

.page-loading {
	position: fixed;
	inset: 0;
	z-index: 45;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 20, 20, 0.35);
	color: #fff;
	font-size: 0.875rem;
}

.page-loading[hidden] {
	display: none;
}
