/* Discreet Gentleman — three style directions share one layout; each sets its own tokens. */

/* ---------- Tokens ---------- */
.dg-style-club {
	--dg-bg: #13211b;          /* bottle green */
	--dg-surface: #1a2c24;
	--dg-surface-2: #22382e;
	--dg-ink: #ebe3cf;         /* parchment */
	--dg-muted: #a9a58f;
	--dg-accent: #b8925a;      /* brass */
	--dg-accent-ink: #13211b;
	--dg-second: #5b2026;      /* oxblood */
	--dg-line: rgba(184, 146, 90, .32);
	--dg-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--dg-body: "Figtree", system-ui, sans-serif;
	--dg-display-weight: 700;
	--dg-display-track: -0.005em;
	--dg-radius: 3px;
	--dg-radius-lg: 4px;
}
.dg-style-tailor {
	--dg-bg: #111827;          /* ink navy */
	--dg-surface: #172034;
	--dg-surface-2: #212c44;
	--dg-ink: #efe9dc;         /* ivory */
	--dg-muted: #9aa3b5;
	--dg-accent: #b8395a;      /* claret, lifted for contrast on navy */
	--dg-accent-ink: #fff7f2;
	--dg-second: #273350;      /* slate */
	--dg-line: rgba(239, 233, 220, .14);
	--dg-display: "Gloock", "Libre Caslon Display", Georgia, serif;
	--dg-body: "Manrope", system-ui, sans-serif;
	--dg-display-weight: 400;
	--dg-display-track: 0;
	--dg-radius: 8px;
	--dg-radius-lg: 12px;
}
.dg-style-hotel {
	--dg-bg: #1e1c1a;          /* warm graphite */
	--dg-surface: #262320;
	--dg-surface-2: #312d29;
	--dg-ink: #eee6d8;         /* bone */
	--dg-muted: #a39a8c;
	--dg-accent: #d49b4c;      /* tobacco amber */
	--dg-accent-ink: #1e1c1a;
	--dg-second: #3a342e;
	--dg-line: rgba(238, 230, 216, .12);
	--dg-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--dg-body: "Barlow", system-ui, sans-serif;
	--dg-display-weight: 600;
	--dg-display-track: 0.005em;
	--dg-radius: 2px;
	--dg-radius-lg: 2px;
}

/* Hand the tokens to the Affiliate Engine components. */
body[class*="dg-style-"] {
	--aee-accent: var(--dg-accent);
	--aee-accent-ink: var(--dg-accent-ink);
	--aee-surface: var(--dg-surface);
	--aee-surface-2: var(--dg-surface-2);
	--aee-ink: var(--dg-ink);
	--aee-muted: var(--dg-muted);
	--aee-radius: var(--dg-radius-lg);
	--aee-gap: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--dg-bg);
	color: var(--dg-ink);
	font-family: var(--dg-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--dg-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--dg-ink); }
:focus-visible { outline: 2px solid var(--dg-accent); outline-offset: 2px; }
h1, h2, h3, h4 {
	font-family: var(--dg-display);
	font-weight: var(--dg-display-weight);
	letter-spacing: var(--dg-display-track);
	line-height: 1.15;
	color: var(--dg-ink);
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
.dg-style-hotel h1, .dg-style-hotel h2 { line-height: 1.02; }
input, button, select, textarea { font: inherit; color: inherit; }
.dg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dg-skip { position: absolute; left: -999px; top: 8px; z-index: 100000; background: var(--dg-accent); color: var(--dg-accent-ink); padding: 8px 14px; border-radius: var(--dg-radius); }
.dg-skip:focus { left: 8px; }

.dg-wrap, .aee-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 24px 24px 48px; }
@media (max-width: 600px) { .dg-wrap, .aee-wrap { padding: 16px 16px 40px; } }

/* ---------- Header: the one bold element ---------- */
.dg-header { position: relative; border-bottom: 1px solid var(--dg-line); background: var(--dg-bg); }
.dg-header__inner { max-width: 1320px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 28px; }
.dg-brand { display: flex; align-items: center; gap: 14px; color: var(--dg-ink); text-decoration: none; flex-shrink: 0; }
.dg-brand:hover { color: var(--dg-ink); }
.dg-crest { color: var(--dg-accent); flex-shrink: 0; }
.dg-crest__letters { font-family: var(--dg-display); font-size: 25px; font-weight: var(--dg-display-weight); fill: currentColor; letter-spacing: -0.04em; }
.dg-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.dg-brand__name { font-family: var(--dg-display); font-weight: var(--dg-display-weight); font-size: 1.7rem; letter-spacing: var(--dg-display-track); }
.dg-brand__tagline { font-size: .8rem; color: var(--dg-muted); margin-top: 4px; letter-spacing: .01em; }
.dg-brand__logo { max-height: 56px; width: auto; }

/* Members' Club: a double brass rule, echoing the crest's two rings. */
.dg-style-club .dg-header { border-bottom: 0; }
.dg-style-club .dg-header::after { content: ""; display: block; height: 4px; border-top: 1px solid var(--dg-accent); border-bottom: 1px solid var(--dg-line); }
.dg-style-club .dg-brand__name { font-style: italic; }
/* Midnight Tailoring: a faint chalk stripe in the header cloth. */
.dg-style-tailor .dg-header { background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(239, 233, 220, .035) 22px 23px), var(--dg-bg); }
.dg-style-tailor .dg-crest { color: var(--dg-ink); }
/* Hotel Night: the name set large and condensed, amber key-card line. */
.dg-style-hotel .dg-header { border-bottom: 2px solid var(--dg-accent); }
.dg-style-hotel .dg-brand__name { font-size: 2.05rem; }
.dg-style-hotel .dg-crest { display: none; }

/* Navigation */
.dg-nav { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }
.dg-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.dg-menu a { color: var(--dg-ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.dg-menu a:hover, .dg-menu .current-menu-item a { border-bottom-color: var(--dg-accent); }
.dg-search input { width: 200px; background: var(--dg-surface); border: 1px solid var(--dg-line); border-radius: var(--dg-radius); padding: 8px 12px; color: var(--dg-ink); }
.dg-search input::placeholder { color: var(--dg-muted); }
.dg-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: transparent; border: 1px solid var(--dg-line); border-radius: var(--dg-radius); cursor: pointer; }
.dg-menu-toggle__bars, .dg-menu-toggle__bars::before, .dg-menu-toggle__bars::after { display: block; width: 18px; height: 1.5px; background: var(--dg-ink); margin: 0 auto; position: relative; }
.dg-menu-toggle__bars::before, .dg-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.dg-menu-toggle__bars::before { top: -6px; }
.dg-menu-toggle__bars::after { top: 6px; }
@media (max-width: 900px) {
	.dg-header__inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
	.dg-menu-toggle { display: block; }
	.dg-brand__name { font-size: 1.35rem; }
	.dg-style-hotel .dg-brand__name { font-size: 1.6rem; }
	.dg-brand__tagline { display: none; }
	.dg-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 0 12px; }
	.dg-nav.is-open { display: flex; }
	.dg-menu { flex-direction: column; gap: 0; }
	.dg-menu a { display: block; padding: 10px 0; border-bottom: 1px solid var(--dg-line); }
	.dg-search input { width: 100%; }
}

/* ---------- Layout ---------- */
.dg-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 1000px) { .dg-with-sidebar { grid-template-columns: 1fr; } }
.dg-main--page:not(.dg-main--home) { max-width: 760px; }
.dg-page-head { margin-bottom: 24px; }
.dg-page-title { margin-top: 8px; }
.dg-page-desc { color: var(--dg-muted); max-width: 64ch; }
.dg-prose { max-width: 70ch; }
.dg-style-club .dg-prose, .dg-style-tailor .dg-prose { line-height: 1.7; }
.dg-empty { color: var(--dg-muted); }

/* Video page: keep the player at a comfortable size on wide screens. */
.aee-single { max-width: 1120px; }
.aee-single .aee-content { max-width: 70ch; }
.aee-slot--header { margin: 14px auto 0; padding-inline: 16px; }

/* Home page */
.dg-home > p:first-child { font-family: var(--dg-display); font-weight: var(--dg-display-weight); font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.08; max-width: 18ch; margin: 28px 0 12px; letter-spacing: var(--dg-display-track); text-wrap: balance; }
.dg-style-club .dg-home > p:first-child { font-style: italic; font-weight: 500; }
.dg-style-hotel .dg-home > p:first-child { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem); line-height: .98; max-width: 16ch; }
.dg-home > p:nth-child(2) { color: var(--dg-muted); font-size: 1.08rem; margin: 0 0 24px; }
.dg-home h2 { margin-top: 36px; padding-bottom: 10px; border-bottom: 1px solid var(--dg-line); }

/* Article list */
.dg-entries { display: grid; gap: 28px; }
.dg-entry { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.dg-entry__media { display: block; aspect-ratio: 16 / 9; background: var(--dg-surface-2); border-radius: var(--dg-radius-lg); overflow: hidden; }
.dg-entry__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-entry__title { margin: 0 0 4px; font-size: 1.45rem; }
.dg-entry__title a { color: var(--dg-ink); text-decoration: none; }
.dg-entry__title a:hover { color: var(--dg-accent); }
.dg-entry__meta { color: var(--dg-muted); font-size: .85rem; margin: 0 0 8px; }
.dg-entry__excerpt { margin: 0; color: var(--dg-muted); }
@media (max-width: 640px) { .dg-entry { grid-template-columns: 1fr; gap: 10px; } }

/* Sidebar & widgets */
.dg-sidebar { position: sticky; top: 24px; display: grid; gap: 28px; }
.dg-widget { background: var(--dg-surface); border-radius: var(--dg-radius-lg); padding: 18px 20px; }
.dg-widget__title { font-size: 1.15rem; margin: 0 0 10px; }
.dg-style-club .dg-widget { border: 1px solid var(--dg-line); }

/* Pagination */
.pagination .nav-links, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--dg-line); border-radius: var(--dg-radius); color: var(--dg-ink); text-decoration: none; }
.page-numbers.current { background: var(--dg-accent); color: var(--dg-accent-ink); border-color: var(--dg-accent); }

/* ---------- Affiliate Engine components in each style ---------- */
.aee-title { font-family: var(--dg-display); }
.aee-crumbs a { color: var(--dg-muted); }
.aee-card__title { font-family: var(--dg-body); font-weight: 600; font-size: 1rem; }
.aee-card__link:hover .aee-card__title { color: var(--dg-accent); }
.aee-card__niche { color: var(--dg-muted); }
.aee-card__dur { font-family: var(--dg-body); }
.aee-btn { font-family: var(--dg-body); }
.aee-niches a { border: 1px solid var(--dg-line); background: transparent; }
.aee-niches a:hover { border-color: var(--dg-accent); }
.aee-related h2 { border-bottom: 1px solid var(--dg-line); padding-bottom: 10px; }
.aee-slot__label { font-size: 11px; letter-spacing: .02em; text-transform: none; }

/* Members' Club: thumbnails sit in a thin brass frame. */
.dg-style-club .aee-card__thumb, .dg-style-club .aee-pick__thumb { outline: 1px solid var(--dg-line); outline-offset: 3px; }
.dg-style-club .aee-btn { border-radius: var(--dg-radius); letter-spacing: .02em; }
/* Midnight Tailoring: soft, tailored corners. */
.dg-style-tailor .aee-card__thumb { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
/* Hotel Night: square, condensed titles, amber duration tags. */
.dg-style-hotel .aee-card__title { font-family: var(--dg-display); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.dg-style-hotel .aee-card__dur { background: var(--dg-accent); color: var(--dg-accent-ink); border-radius: 0; }
.dg-style-hotel .aee-btn { border-radius: 2px; font-family: var(--dg-display); font-size: 1.15rem; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.dg-footer { border-top: 1px solid var(--dg-line); margin-top: 40px; background: var(--dg-surface); }
.dg-footer__inner { max-width: 1320px; margin: 0 auto; padding: 32px 24px 8px; display: grid; gap: 24px; grid-template-columns: 1fr; }
.dg-footer__brand { display: flex; align-items: center; gap: 12px; color: var(--dg-muted); }
.dg-footer__brand p { margin: 0; }
.dg-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.dg-footer__menu a { color: var(--dg-muted); }
.aee-legal { background: var(--dg-surface); border-top: 0; color: var(--dg-muted); }

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