/* ==========================================================================
   DOP Theme – base styles
   Design tokens match the approved design canvas.
   ========================================================================== */

:root {
	/* Brand */
	--dop-purple: #8e53fd;        /* logo purple: large headings, graphics */
	--dop-purple-strong: #6b3bd0; /* buttons and links (AA contrast) */
	--dop-purple-dark: #4e2aa0;
	--dop-crimson: #93040c;
	--dop-gold: #d9b36a;
	--dop-orange: #fc904e;

	/* Pink: used ONLY in the homepage "seat in the palace" section */
	--dop-pink-text: #c2185b;
	--dop-pink-border: #f3b6cf;
	--dop-pink-bg: #fce4ee;

	/* Neutrals */
	--dop-ink: #1d0f19;
	--dop-ink-soft: #3b2a33;
	--dop-muted: #6b5a63;
	--dop-cream: #fff8ee;
	--dop-sand: #eadfcc;
	--dop-white: #ffffff;
	--dop-hero-bg: #2a0608;

	/* Type */
	--dop-font-display: "Playfair Display", Georgia, serif;
	--dop-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Layout */
	--dop-container: 1200px;
	--dop-gutter: 24px;
	--dop-radius: 20px;
	--dop-radius-sm: 12px;
	--dop-section-space: clamp(64px, 9vw, 104px);
}

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

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

body {
	margin: 0;
	background: var(--dop-cream);
	color: var(--dop-ink);
	font-family: var(--dop-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--dop-purple-strong); }
a:hover { color: var(--dop-purple-dark); }

h1, h2, h3, h4 {
	font-family: var(--dop-font-display);
	line-height: 1.15;
	margin: 0 0 0.5em;
}

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

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

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	background: var(--dop-ink);
	color: var(--dop-white);
	padding: 12px 16px;
	border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--dop-white); }

/* Layout helpers ---------------------------------------------------------- */
.container {
	max-width: var(--dop-container);
	margin: 0 auto;
	padding-inline: var(--dop-gutter);
}

.section { padding-block: var(--dop-section-space); }

.eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dop-crimson);
}

.prose { max-width: 760px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 22px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
}
.btn--primary { background: var(--dop-purple-strong); color: var(--dop-white); }
.btn--primary:hover { background: var(--dop-purple-dark); color: var(--dop-white); }
.btn--crimson { background: var(--dop-crimson); color: var(--dop-white); }
.btn--crimson:hover { background: #6e0309; color: var(--dop-white); }
.btn--gold { background: var(--dop-gold); color: var(--dop-ink); }
.btn--gold:hover { background: #c99f52; color: var(--dop-ink); }
.btn--outline-light { border-color: var(--dop-gold); color: var(--dop-cream); }
.btn--outline-light:hover { background: rgba(255, 248, 238, 0.1); color: var(--dop-cream); }

/* Top bar ----------------------------------------------------------------- */
.topbar {
	background: var(--dop-ink);
	color: #f3e7d3;
	font-size: 14px;
}
.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 10px;
}
.topbar__contact,
.topbar__social { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.topbar a { color: #f3e7d3; text-decoration: none; }
.topbar a:hover { color: var(--dop-gold); }

/* Header ------------------------------------------------------------------ */
.site-header {
	background: var(--dop-white);
	border-bottom: 1px solid var(--dop-sand);
	position: relative;
	z-index: 20;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--dop-ink);
	text-decoration: none;
}
.site-brand:hover { color: var(--dop-ink); }
.site-brand__logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}
.site-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-brand__name { font-family: var(--dop-font-display); font-weight: 700; font-size: 21px; }
.site-brand__tagline {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dop-muted);
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
	font-size: 15px;
}
.site-nav__list a { color: var(--dop-ink); text-decoration: none; }
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { color: var(--dop-crimson); }

.site-nav__toggle {
	display: none;
	width: 48px;
	height: 48px;
	border: 1px solid var(--dop-sand);
	border-radius: 12px;
	background: var(--dop-white);
	color: var(--dop-ink);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

@media (max-width: 960px) {
	.site-nav__toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px var(--dop-gutter) 28px;
		background: var(--dop-white);
		border-bottom: 1px solid var(--dop-sand);
		box-shadow: 0 20px 40px rgba(29, 15, 25, 0.12);
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; gap: 0; font-size: 17px; }
	.site-nav__list a { display: block; padding: 12px 0; }
	.topbar__social { display: none; }
}

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero {
	background: var(--dop-hero-bg);
	color: var(--dop-cream);
	padding-block: clamp(56px, 8vw, 88px);
}
.page-hero__title { font-size: clamp(36px, 5vw, 64px); margin: 0; }
.page-hero__lead { margin: 16px 0 24px; max-width: 620px; font-size: 18px; color: #f3e7d3; }

/* Cards ------------------------------------------------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.card { background: var(--dop-white); border-radius: var(--dop-radius); overflow: hidden; }
.card__link { display: flex; flex-direction: column; height: 100%; color: var(--dop-ink); text-decoration: none; }
.card__image { width: 100%; height: 220px; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.card__meta { font-size: 13px; font-weight: 700; color: var(--dop-crimson); }
.card__title { font-family: var(--dop-font-display); font-size: 21px; font-weight: 700; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
	background: var(--dop-ink);
	color: #e4d6c6;
	padding-top: 80px;
	font-size: 15px;
}
.site-footer a { color: #e4d6c6; text-decoration: none; }
.site-footer a:hover { color: var(--dop-gold); }
.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
}
.site-brand--light,
.site-brand--light:hover { color: var(--dop-cream); }
.site-footer__heading {
	margin: 0 0 16px;
	font-family: var(--dop-font-body);
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dop-gold);
}
.site-footer__links,
.site-footer .site-nav__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 400;
	font-size: 15px;
}
.site-footer .site-nav__list a { color: #e4d6c6; }
.site-footer__address { display: flex; flex-direction: column; gap: 10px; font-style: normal; }
.site-footer__address a { color: var(--dop-gold); font-weight: 700; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.site-footer__social a { color: var(--dop-cream); font-weight: 600; }
.site-footer__bottom { margin-top: 64px; border-top: 1px solid #3a2833; }
.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 22px;
	font-size: 14px;
	color: #b9a9b2;
}
.site-footer a.site-footer__credit { color: var(--dop-gold); font-weight: 700; }

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