/* Voxel Dynasties — the design of the whole site.
   Navy and gold from the brand, Cinzel for display, Inter for reading. Everything is self-hosted. */

:root {
	--vd-bg: #0e1826;
	--vd-bg-deep: #0a1220;
	--vd-surface: #17273b;
	--vd-surface-2: #1d2f47;
	--vd-line: rgba(241, 217, 137, 0.16);
	--vd-line-strong: rgba(241, 217, 137, 0.38);
	--vd-text: #e7ecf3;
	--vd-muted: #97a9bf;
	--vd-gold: #f1d989;
	--vd-gold-deep: #d9bd63;
	--vd-radius: 14px;
	--vd-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	--vd-shell: 1200px;
	--vd-gutter: clamp(1rem, 4vw, 2rem);
	--vd-serif: "Cinzel", Georgia, serif;
	--vd-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--vd-bg);
	color: var(--vd-text);
	font-family: var(--vd-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--vd-gold);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	font-family: var(--vd-serif);
	font-weight: 600;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 0.6em;
}

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

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

.vd-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.7rem 1.2rem;
	background: var(--vd-gold);
	color: #0e1826;
	font-weight: 600;
}

.vd-skip:focus {
	left: 0;
}

/* ---------- layout ---------------------------------------------------------------------------- */

.vd-shell {
	width: min(var(--vd-shell), 100%);
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 3.5rem) var(--vd-gutter) clamp(3rem, 8vw, 6rem);
}

.vd-shell--narrow {
	width: min(760px, 100%);
}

.vd-shell--wide {
	width: min(1400px, 100%);
}

.vd-main {
	min-height: 60vh;
}

/* ---------- header ---------------------------------------------------------------------------- */

.vd-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 18, 32, 0.88);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--vd-line);
}

.vd-header__inner {
	width: min(var(--vd-shell), 100%);
	margin-inline: auto;
	padding: 0.75rem var(--vd-gutter);
	display: flex;
	align-items: center;
	gap: 1rem;
}

.vd-brand {
	font-family: var(--vd-serif);
	font-size: 1.12rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
}

.vd-brand:hover {
	text-decoration: none;
}

.vd-brand__mark {
	color: var(--vd-gold);
}

.vd-brand img {
	max-height: 44px;
	width: auto;
}

.vd-menu {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-left: auto;
}

.vd-menu__list {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vd-menu__list a {
	display: block;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	color: var(--vd-muted);
	font-size: 0.95rem;
	font-weight: 500;
}

.vd-menu__list a:hover {
	color: var(--vd-text);
	background: var(--vd-surface);
	text-decoration: none;
}

.vd-menu__list a[aria-current] {
	color: var(--vd-gold);
}

.vd-menu__tail {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.vd-lang {
	display: inline-flex;
	border: 1px solid var(--vd-line);
	border-radius: 999px;
	overflow: hidden;
}

.vd-lang__btn {
	padding: 0.3rem 0.7rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--vd-muted);
}

.vd-lang__btn:hover {
	color: var(--vd-text);
	background: var(--vd-surface);
	text-decoration: none;
}

.vd-lang__btn.is-active {
	color: #0e1826;
	background: var(--vd-gold);
}

.vd-burger {
	display: none;
	margin-left: auto;
	width: 42px;
	height: 42px;
	padding: 0;
	background: none;
	border: 1px solid var(--vd-line);
	border-radius: 10px;
	cursor: pointer;
}

.vd-burger__bars,
.vd-burger__bars::before,
.vd-burger__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--vd-text);
	margin-inline: auto;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.vd-burger__bars::before,
.vd-burger__bars::after {
	content: "";
	position: relative;
}

.vd-burger__bars::before {
	top: -6px;
}

.vd-burger__bars::after {
	top: 4px;
}

.vd-burger[aria-expanded="true"] .vd-burger__bars {
	background: transparent;
}

.vd-burger[aria-expanded="true"] .vd-burger__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.vd-burger[aria-expanded="true"] .vd-burger__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- buttons --------------------------------------------------------------------------- */

.vd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.72rem 1.3rem;
	border: 1px solid var(--vd-line-strong);
	border-radius: 999px;
	font-family: var(--vd-sans);
	font-size: 0.97rem;
	font-weight: 600;
	color: var(--vd-text);
	background: transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.vd-btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
	background: var(--vd-surface);
}

.vd-btn--primary {
	color: #0e1826;
	background: var(--vd-gold);
	border-color: var(--vd-gold);
}

.vd-btn--primary:hover {
	background: var(--vd-gold-deep);
	border-color: var(--vd-gold-deep);
}

.vd-btn--small {
	padding: 0.45rem 0.9rem;
	font-size: 0.87rem;
}

/* ---------- page heads and prose --------------------------------------------------------------- */

.vd-pagehead {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.vd-pagehead__title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 0.3em;
}

.vd-pagehead__intro {
	margin: 0;
	color: var(--vd-muted);
	max-width: 62ch;
	font-size: 1.05rem;
}

.vd-article__head {
	margin-bottom: 1.5rem;
}

.vd-article__title {
	font-size: clamp(1.9rem, 4.5vw, 2.9rem);
}

.vd-article__date {
	margin: 0 0 0.6rem;
	font-size: 0.82rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vd-muted);
}

.vd-article__date a {
	color: var(--vd-muted);
}

.vd-article__media {
	margin: 0 0 2rem;
}

.vd-article__media img {
	width: 100%;
	border-radius: var(--vd-radius);
	border: 1px solid var(--vd-line);
}

.vd-prose {
	font-size: 1.06rem;
}

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

.vd-prose h2 {
	font-size: 1.6rem;
	margin-top: 2.2em;
}

.vd-prose h3 {
	font-size: 1.25rem;
	margin-top: 1.8em;
}

.vd-prose p,
.vd-prose li {
	color: #d8e1ec;
}

.vd-prose ul,
.vd-prose ol {
	padding-left: 1.3em;
}

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

.vd-prose img,
.vd-prose figure img {
	border-radius: var(--vd-radius);
	border: 1px solid var(--vd-line);
}

.vd-prose figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--vd-muted);
}

.vd-prose blockquote {
	margin: 1.6em 0;
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 3px solid var(--vd-gold);
	color: var(--vd-text);
	font-size: 1.1rem;
}

.vd-prose code {
	padding: 0.15em 0.4em;
	border-radius: 5px;
	background: var(--vd-surface);
	font-size: 0.92em;
}

.vd-prose pre {
	padding: 1rem 1.1rem;
	border-radius: var(--vd-radius);
	background: var(--vd-bg-deep);
	border: 1px solid var(--vd-line);
	overflow-x: auto;
}

.vd-prose hr {
	border: 0;
	border-top: 1px solid var(--vd-line);
	margin: 2.4em 0;
}

.vd-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.vd-prose th,
.vd-prose td {
	text-align: left;
	padding: 0.5rem 0.6rem;
	border-bottom: 1px solid var(--vd-line);
}

/* ---------- blog ------------------------------------------------------------------------------- */

.vd-postgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.2rem;
}

.vd-postcard {
	background: var(--vd-surface);
	border: 1px solid var(--vd-line);
	border-radius: var(--vd-radius);
	overflow: hidden;
	transition: transform 0.16s ease, border-color 0.16s ease;
}

.vd-postcard:hover {
	transform: translateY(-3px);
	border-color: var(--vd-line-strong);
}

.vd-postcard__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.vd-postcard__link:hover {
	text-decoration: none;
}

.vd-postcard__media {
	aspect-ratio: 3 / 2;
	background: #000;
}

.vd-postcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vd-postcard__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.1rem 1.2rem 1.3rem;
	flex: 1;
}

.vd-postcard__date {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vd-muted);
}

.vd-postcard__title {
	font-size: 1.2rem;
	margin: 0;
}

.vd-postcard__excerpt {
	margin: 0;
	color: var(--vd-muted);
	font-size: 0.95rem;
}

.vd-postcard__more {
	margin-top: auto;
	padding-top: 0.6rem;
	color: var(--vd-gold);
	font-size: 0.9rem;
	font-weight: 600;
}

.vd-postnav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--vd-line);
}

.vd-postnav__item {
	display: block;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--vd-line);
	border-radius: var(--vd-radius);
	color: inherit;
}

.vd-postnav__item:hover {
	border-color: var(--vd-line-strong);
	text-decoration: none;
}

.vd-postnav__item--next {
	text-align: right;
}

.vd-postnav__label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vd-muted);
}

.vd-postnav__title {
	font-family: var(--vd-serif);
	color: #fff;
}

.navigation.pagination {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.7rem;
	border: 1px solid var(--vd-line);
	border-radius: 999px;
	color: var(--vd-muted);
}

.nav-links .page-numbers.current {
	color: #0e1826;
	background: var(--vd-gold);
	border-color: var(--vd-gold);
}

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

.vd-linklist a {
	display: block;
	padding: 0.7rem 1rem;
	border: 1px solid var(--vd-line);
	border-radius: 10px;
}

.vd-empty {
	padding: 3rem 0;
	color: var(--vd-muted);
	text-align: center;
}

/* ---------- two-click video --------------------------------------------------------------------- */

.vd-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--vd-radius);
	overflow: hidden;
	border: 1px solid var(--vd-line);
	background: #000;
}

.vd-video iframe,
.vd-video img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.vd-video__consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	padding: 1.5rem;
	text-align: center;
	background: linear-gradient(rgba(10, 18, 32, 0.55), rgba(10, 18, 32, 0.85));
	color: var(--vd-text);
	cursor: pointer;
	border: 0;
	width: 100%;
	font: inherit;
}

.vd-video__note {
	max-width: 46ch;
	font-size: 0.85rem;
	color: var(--vd-muted);
}

.vd-video__play {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	background: var(--vd-gold);
	color: #0e1826;
	font-weight: 600;
}

/* ---------- footer ------------------------------------------------------------------------------ */

.vd-footer {
	border-top: 1px solid var(--vd-line);
	background: var(--vd-bg-deep);
}

.vd-footer__inner {
	width: min(var(--vd-shell), 100%);
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 3rem) var(--vd-gutter);
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
}

.vd-footer__note {
	margin: 0.6rem 0 1rem;
	color: var(--vd-muted);
	font-size: 0.9rem;
}

.vd-footer__title {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vd-gold);
	margin-bottom: 0.8rem;
}

.vd-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.vd-footer__list a {
	color: var(--vd-muted);
	font-size: 0.93rem;
}

.vd-footer__list a:hover {
	color: var(--vd-text);
}

.vd-footer__copy {
	margin: 0;
	padding: 1rem var(--vd-gutter) 2rem;
	text-align: center;
	color: var(--vd-muted);
	font-size: 0.8rem;
}

/* ---------- responsive --------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.vd-burger {
		display: block;
	}

	.vd-menu {
		position: fixed;
		inset: 62px 0 auto;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1.2rem var(--vd-gutter) 1.8rem;
		background: var(--vd-bg-deep);
		border-bottom: 1px solid var(--vd-line);
	}

	.vd-menu.is-open {
		display: flex;
	}

	.vd-menu__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
	}

	.vd-menu__list a {
		padding: 0.7rem 0.8rem;
		font-size: 1.05rem;
	}

	.vd-menu__tail {
		justify-content: space-between;
	}

	.vd-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.vd-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.vd-footer__inner {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}

/* ---------- landing sections ---------------------------------------------------------------------- */

.vd-hero-section {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(52vh, 460px);
	padding: clamp(3rem, 10vw, 7rem) var(--vd-gutter);
	overflow: hidden;
	background: radial-gradient(120% 90% at 50% 0%, #1c3550 0%, transparent 60%), var(--vd-bg-deep);
}

.vd-hero-section.has-image {
	min-height: min(78vh, 720px);
}

.vd-hero-section__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.vd-hero-section__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
}

.vd-hero-section.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(10, 18, 32, 0.55) 0%, rgba(10, 18, 32, 0.85) 65%, var(--vd-bg) 100%);
}

.vd-hero-section__inner {
	position: relative;
	z-index: 2;
	width: min(var(--vd-shell), 100%);
	margin-inline: auto;
	text-align: center;
}

.vd-hero-section__title {
	font-size: clamp(2.4rem, 7vw, 4.4rem);
	letter-spacing: 0.01em;
	margin-bottom: 0.4em;
	text-wrap: balance;
}

.vd-hero-section__text {
	margin: 0 auto;
	max-width: 62ch;
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	color: #d6e0ec;
}

.vd-hero-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	justify-content: center;
	margin-top: 2rem;
}

.vd-section {
	padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.vd-section + .vd-section {
	padding-top: 0;
}

.vd-section .vd-shell {
	padding-block: 0;
}

.vd-section__head {
	max-width: 68ch;
	margin-bottom: 2rem;
}

.vd-section__title {
	font-size: clamp(1.6rem, 3.6vw, 2.3rem);
	margin-bottom: 0.4em;
}

.vd-section__text {
	margin: 0;
	color: var(--vd-muted);
	font-size: 1.05rem;
}

.vd-section__more {
	margin-top: 1.8rem;
}

.vd-pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.2rem;
}

.vd-pillar {
	padding: 1.4rem 1.5rem 1.6rem;
	background: var(--vd-surface);
	border: 1px solid var(--vd-line);
	border-radius: var(--vd-radius);
}

.vd-pillar__title {
	font-size: 1.15rem;
	margin-bottom: 0.4em;
}

.vd-pillar__text {
	margin: 0;
	color: var(--vd-muted);
	font-size: 0.97rem;
}

.vd-feature {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: clamp(1.5rem, 5vw, 3.5rem);
}

.vd-section--feature.is-flipped .vd-feature__media {
	order: -1;
}

.vd-feature--text {
	display: block;
	max-width: 70ch;
}

.vd-feature__text p {
	color: #d4dde9;
	margin: 0 0 1em;
}

.vd-feature__media {
	margin: 0;
}

.vd-feature__media img {
	width: 100%;
	border-radius: var(--vd-radius);
	border: 1px solid var(--vd-line);
}

.vd-encyteaser {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 0.8rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vd-encyteaser a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 0.6rem 1rem;
	background: var(--vd-surface);
	border: 1px solid var(--vd-line);
	border-radius: var(--vd-radius);
	color: var(--vd-text);
	font-size: 0.9rem;
	text-align: center;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.vd-encyteaser a:hover {
	transform: translateY(-3px);
	border-color: var(--vd-line-strong);
	text-decoration: none;
}

.vd-encyteaser img {
	width: 100%;
	max-width: 96px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	background: #000;
}

.vd-section--cta {
	text-align: center;
}

.vd-section--cta .vd-section__text {
	margin-inline: auto;
	max-width: 54ch;
	margin-bottom: 1.6rem;
}

.vd-sociallist {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.2rem;
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	color: var(--vd-muted);
}

.vd-sociallist a {
	color: var(--vd-muted);
	font-size: 0.92rem;
}

@media (max-width: 860px) {
	.vd-feature {
		grid-template-columns: 1fr;
	}

	.vd-section--feature.is-flipped .vd-feature__media {
		order: 0;
	}
}

/* ---------- forms --------------------------------------------------------------------------------- */

.vd-form {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
}

.vd-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.vd-form__field {
	display: grid;
	gap: 0.35rem;
}

.vd-form__field > span {
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vd-muted);
}

.vd-form input,
.vd-form textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	color: var(--vd-text);
	background: var(--vd-bg-deep);
	border: 1px solid var(--vd-line);
	border-radius: 10px;
}

.vd-form input:focus,
.vd-form textarea:focus {
	border-color: var(--vd-line-strong);
	outline: none;
}

.vd-form__trap {
	position: absolute;
	left: -9999px;
}

.vd-form__note {
	margin: 0;
	font-size: 0.85rem;
	color: var(--vd-muted);
}

.vd-formnote {
	padding: 0.9rem 1.1rem;
	border-radius: 10px;
	border: 1px solid var(--vd-line);
}

.vd-formnote--ok {
	border-color: rgba(143, 191, 106, 0.5);
	background: rgba(143, 191, 106, 0.1);
}

.vd-formnote--error {
	border-color: rgba(201, 117, 123, 0.5);
	background: rgba(201, 117, 123, 0.1);
}

.vd-adminhint {
	padding: 0.8rem 1rem;
	border: 1px dashed var(--vd-line-strong);
	border-radius: 10px;
	background: rgba(241, 217, 137, 0.07);
	font-size: 0.9rem;
	color: var(--vd-muted);
}

.vd-form__field--captcha small {
	font-size: 0.8rem;
	color: var(--vd-muted);
}

.vd-form__field--captcha input {
	max-width: 12rem;
}
