:root {
	--parchment: #f3efe4;
	--parchment-deep: #e7e0d0;
	--ink: #2a3438;
	--ink-soft: #5a656b;
	--teal: #2f555c;
	--teal-deep: #1e3c43;
	--teal-mid: #3d6a72;
	--gold: #c8922e;
	--gold-bright: #e0a93a;
	--gold-ink: #3a2a0c;
	--frame: #b9a679;
	--frame-dark: #8a7650;
	--paper: #fbf8f0;
	--white: #ffffff;
	--danger: #9b2f2f;
	--ok: #2d6b4f;
	--shadow: 0 8px 24px rgba(30, 40, 44, 0.12);
	--display: "Cinzel", "Palatino Linotype", "Book Antiqua", serif;
	--text: "Source Sans 3", "Segoe UI", sans-serif;
	--page: min(1120px, calc(100% - 32px));
	--radius: 2px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink);
	font-family: var(--text);
	font-size: 16px;
	line-height: 1.55;
	background:
		radial-gradient(ellipse at top, rgba(255, 255, 255, 0.35), transparent 55%),
		linear-gradient(180deg, #d8e2e4 0%, #c5d0d3 18%, #b7c4c8 100%);
	background-attachment: fixed;
}

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

a {
	color: var(--teal-deep);
	text-decoration: none;
}

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

button,
input,
select,
textarea {
	font: inherit;
}

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

::selection {
	background: rgba(200, 146, 46, 0.35);
}

.page-wrap {
	width: var(--page);
	margin: 0 auto;
	padding-bottom: 2.5rem;
}

/* Top utility bar */
.topbar {
	background: linear-gradient(180deg, #15282d, #1c3339);
	color: #d7e0e2;
	font-size: 0.8125rem;
}

.topbar__inner {
	width: var(--page);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 36px;
	padding: 0.35rem 0;
}

.topbar__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 1rem;
	align-items: center;
}

.topbar a {
	color: #d7e0e2;
}

.topbar a:hover {
	color: var(--gold-bright);
}

.topbar .btn {
	min-height: 28px;
	padding: 0.25rem 0.85rem;
	font-size: 0.75rem;
}

/* Main header / brand nav */
.masthead {
	position: relative;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(90, 140, 150, 0.28), transparent 50%),
		radial-gradient(ellipse at 80% 20%, rgba(70, 110, 120, 0.22), transparent 45%),
		linear-gradient(180deg, #2a4d54 0%, #234248 55%, #1d3a40 100%);
	color: #eef4f5;
	border-bottom: 3px solid var(--gold);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.masthead__inner {
	width: var(--page);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.1rem 0 1.25rem;
}

.brand {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	color: inherit;
}

.brand__title {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.1;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.brand__sub {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b7cdd1;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.35rem;
	font-family: var(--display);
	font-size: 0.92rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.main-nav a {
	color: #e8f1f3;
}

.main-nav a:hover {
	color: var(--gold-bright);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 42px;
	padding: 0.55rem 1.25rem;
	border: 1px solid #8a6418;
	border-radius: var(--radius);
	background: linear-gradient(180deg, #efc15a 0%, #c8922e 48%, #a87418 100%);
	color: var(--gold-ink);
	font-family: var(--display);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.45),
		0 2px 0 rgba(70, 50, 10, 0.35);
	transition: filter 160ms ease, transform 160ms ease;
}

.btn:hover {
	filter: brightness(1.06);
	color: var(--gold-ink);
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(1px);
}

.btn--block {
	width: 100%;
}

.btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.35);
	color: #eef4f5;
	box-shadow: none;
}

.btn--ghost:hover {
	color: var(--gold-bright);
	border-color: var(--gold-bright);
	filter: none;
}

.btn--teal {
	background: linear-gradient(180deg, #4d7a83, #2f555c);
	border-color: #1b373d;
	color: #f4f8f9;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Board / parchment panel */
.board {
	margin-top: 1.25rem;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%),
		var(--parchment);
	border: 1px solid #cfc4aa;
	box-shadow: var(--shadow);
	padding: 1.15rem 1.15rem 1.5rem;
}

.board--flush {
	padding: 0;
	overflow: hidden;
}

/* Ornate hero frame */
.hero-frame {
	position: relative;
	background: linear-gradient(180deg, #efe7d4, #e4d9c0);
	border: 1px solid var(--frame);
	box-shadow:
		inset 0 0 0 4px #f7f2e6,
		inset 0 0 0 6px var(--frame-dark),
		0 10px 28px rgba(30, 40, 44, 0.14);
	padding: 0.85rem;
}

.hero-frame__tab {
	position: absolute;
	top: -0.85rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.35rem 1.4rem;
	background: linear-gradient(180deg, #3d6a72, #2a4d54);
	border: 1px solid #163238;
	color: #f2f7f8;
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero-stage {
	position: relative;
	overflow: hidden;
	border: 1px solid #9e8d68;
	background: #1a2a2e;
	aspect-ratio: 16 / 7.2;
	min-height: 280px;
}

.hero-stage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-stage__overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 2.5rem 1.5rem 1.25rem;
	background: linear-gradient(180deg, transparent, rgba(12, 24, 28, 0.82));
	color: #f4f8f9;
}

.hero-stage__overlay h1 {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.15;
}

.hero-stage__overlay p {
	margin: 0.45rem 0 0;
	max-width: 46ch;
	color: #d5e2e5;
	font-size: 0.98rem;
}

.hero-thumbs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.65rem;
	margin-top: 0.75rem;
}

.hero-thumbs button {
	appearance: none;
	border: 2px solid transparent;
	padding: 0;
	background: #1f3338;
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 16 / 8;
}

.hero-thumbs button.is-active,
.hero-thumbs button:hover {
	border-color: var(--gold);
}

.hero-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.hero-thumbs button.is-active img,
.hero-thumbs button:hover img {
	opacity: 1;
}

/* Two column layout */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.9fr);
	gap: 1.15rem;
	margin-top: 1.15rem;
}

.panel {
	background: var(--paper);
	border: 1px solid #d5c9ae;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	background: linear-gradient(180deg, #3a646c, #2f555c);
	color: #f2f7f8;
	border-bottom: 2px solid var(--gold);
}

.panel__head h2 {
	margin: 0;
	font-family: var(--display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.panel__body {
	padding: 0.85rem 1rem 1.1rem;
}

.news-item {
	display: grid;
	grid-template-columns: 118px 1fr;
	gap: 0.9rem;
	padding: 0.95rem 0;
}

.news-item + .news-item {
	border-top: 1px solid #d9cfb8;
	background-image: radial-gradient(circle at center, #b9a679 1.5px, transparent 2px);
	background-size: 100% 1px;
	background-position: top center;
	background-repeat: no-repeat;
}

.news-item__media {
	overflow: hidden;
	border: 1px solid #c2b49a;
	aspect-ratio: 4 / 3;
	background: #d9d0bc;
}

.news-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-item h3 {
	margin: 0;
	font-family: var(--display);
	font-size: 1.05rem;
	line-height: 1.25;
	color: var(--teal-deep);
}

.news-item__meta {
	margin: 0.25rem 0 0.4rem;
	font-size: 0.78rem;
	color: var(--ink-soft);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.news-item p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.news-item a.more {
	display: inline-block;
	margin-top: 0.45rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gold);
}

/* Sidebar widgets */
.widget + .widget {
	margin-top: 0.85rem;
}

.widget__title {
	margin: 0 0 0.55rem;
	font-family: var(--display);
	font-size: 0.92rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--teal-deep);
}

.live-check {
	display: grid;
	gap: 0.5rem;
}

.live-check input {
	width: 100%;
	min-height: 42px;
	padding: 0.55rem 0.75rem;
	border: 1px solid #c2b49a;
	background: #fffdf8;
	color: var(--ink);
}

.live-check__result {
	margin: 0;
	min-height: 1.3em;
	font-size: 0.9rem;
	color: var(--ink-soft);
}

.promo {
	position: relative;
	overflow: hidden;
	border: 1px solid #c2b49a;
	min-height: 110px;
	color: #f4f8f9;
}

.promo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.9) brightness(0.72);
}

.promo__content {
	position: relative;
	z-index: 1;
	padding: 0.9rem;
	background: linear-gradient(90deg, rgba(18, 36, 40, 0.88), rgba(18, 36, 40, 0.35));
	min-height: 110px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.35rem;
}

.promo strong {
	font-family: var(--display);
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.promo span {
	font-size: 0.85rem;
	color: #d5e2e5;
}

.server-card {
	padding: 0.85rem;
	border: 1px solid #c2b49a;
	background: linear-gradient(180deg, #fffdf7, #f1e9d8);
}

.server-card dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 0.75rem;
	font-size: 0.9rem;
}

.server-card dt {
	color: var(--ink-soft);
}

.server-card dd {
	margin: 0;
	font-weight: 600;
	font-family: var(--text);
}

.steps-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.85rem;
	margin-top: 1.15rem;
}

.step-card {
	padding: 1rem;
	background: var(--paper);
	border: 1px solid #d5c9ae;
}

.step-card h3 {
	margin: 0 0 0.4rem;
	font-family: var(--display);
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--teal-deep);
}

.step-card p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.94rem;
}

.faq-list details {
	padding: 0.85rem 0;
	border-bottom: 1px solid #d9cfb8;
}

.faq-list summary {
	cursor: pointer;
	font-family: var(--display);
	font-size: 0.98rem;
	color: var(--teal-deep);
	list-style: none;
}

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

.faq-list summary::after {
	content: "+";
	float: right;
	color: var(--gold);
	font-weight: 700;
}

.faq-list details[open] summary::after {
	content: "–";
}

.faq-list p {
	margin: 0.55rem 0 0;
	color: var(--ink-soft);
}

.site-footer {
	margin-top: 1.5rem;
	background: linear-gradient(180deg, #2a4d54, #1c353b);
	color: #c9d7db;
	border-top: 3px solid var(--gold);
}

.site-footer__inner {
	width: var(--page);
	margin: 0 auto;
	padding: 1.5rem 0 1.75rem;
	display: grid;
	gap: 0.85rem;
}

.site-footer strong {
	font-family: var(--display);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #f2f7f8;
}

.site-footer a {
	color: #d7e4e7;
}

.site-footer__credits {
	font-size: 0.78rem;
	color: #9eb0b5;
	max-width: 70ch;
}

/* App screens */
.app-shell {
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto auto 1fr;
}

.app-main {
	width: var(--page);
	margin: 1.25rem auto 2rem;
}

.app-panel {
	background: var(--parchment);
	border: 1px solid #cfc4aa;
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.app-panel h1 {
	margin: 0 0 0.4rem;
	font-family: var(--display);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--teal-deep);
}

.app-panel .lead {
	margin: 0 0 1.25rem;
	color: var(--ink-soft);
}

.split-auth {
	width: var(--page);
	margin: 1.25rem auto 2rem;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 1rem;
	align-items: stretch;
}

.split-auth__visual {
	overflow: hidden;
	border: 1px solid #cfc4aa;
	box-shadow: var(--shadow);
	min-height: 420px;
}

.split-auth__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 420px;
}

.form {
	display: grid;
	gap: 0.85rem;
}

.form label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--teal-deep);
}

.form input {
	min-height: 44px;
	padding: 0.65rem 0.8rem;
	border: 1px solid #c2b49a;
	background: #fffdf8;
	color: var(--ink);
}

.form__error {
	margin: 0;
	color: var(--danger);
	font-size: 0.9rem;
	font-weight: 600;
}

.form__ok {
	margin: 0;
	color: var(--ok);
	font-size: 0.9rem;
	font-weight: 600;
}

.account-list {
	display: grid;
	gap: 0.65rem;
	margin: 1rem 0 1.5rem;
}

.account-card {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	background: #fffdf8;
	border: 1px solid #d5c9ae;
}

.account-card strong {
	font-family: var(--display);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--teal-deep);
}

.server-box {
	margin: 0 0 1.25rem;
	padding: 1rem;
	border: 1px solid #c2b49a;
	background: linear-gradient(180deg, #fff8e8, #f1e2c0);
	color: var(--gold-ink);
}

.server-box code {
	font-family: var(--text);
	font-weight: 700;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 900px) {
	.masthead__inner,
	.layout,
	.split-auth,
	.steps-row,
	.news-item,
	.hero-thumbs {
		grid-template-columns: 1fr;
	}

	.masthead__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero-stage {
		aspect-ratio: 16 / 10;
		min-height: 220px;
	}

	.split-auth__visual,
	.split-auth__visual img {
		min-height: 220px;
	}

	.topbar__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

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

	.btn {
		transition: none;
	}
}
