/* ============================================================
   DUAL PLAY — core tokens, reset, page chrome
   Left arena: light editorial. Right arena: dark curated.
   ============================================================ */

:root {
  /* — Left arena (light) — */
  --dp-left-bg: #f4f5f7;
  --dp-card: #ffffff;
  --dp-ink: #18191d;
  --dp-ink-soft: #4a4d57;
  /* Briefed secondary is #777B84, which lands at 3.9:1 on the light desk —
     below AA for the 9.5–13.5px labels it is used on. Darkened to the
     nearest value that clears 4.5:1 (4.55:1) while still reading as
     secondary against the 16:1 primary ink. */
  --dp-muted: #6c7079;
  --dp-accent: #ff6b45;
  --dp-accent-deep: #e2552f;
  /* The briefed coral is 2.6:1 on the light desk: correct as a fill, not as
     small type. Three tiers keep the hue without failing AA:
       --dp-accent         fills, buttons, borders, focus rings (unchanged)
       --dp-accent-display large display italics only — 3.06:1, clears the
                           3:1 large-text threshold at 24px+
       --dp-accent-ink     small labels and links — 5.17:1 */
  --dp-accent-display: #f75530;
  --dp-accent-ink: #c2411b;
  --dp-accent-wash: #fff0eb;

  /* — Right arena (dark) — */
  --dp-dark-bg: #171923;
  --dp-dark-card: #242632;
  --dp-dark-card-hi: #2b2e3c;
  --dp-dark-text: #f5f5f5;
  --dp-dark-muted: #9a9da8;
  --dp-blue: #7e9fff;
  --dp-blue-wash: rgba(126, 159, 255, 0.13);

  /* — Illustration paper: the warm ground the editorial renders sit on — */
  --dp-paper: #fdfaf1;
  --dp-paper-line: rgba(24, 25, 29, 0.09);

  /* — Lines — */
  --dp-line: rgba(24, 25, 29, 0.10);
  --dp-line-soft: rgba(24, 25, 29, 0.06);
  --dp-line-strong: rgba(24, 25, 29, 0.20);
  --dp-line-dark: rgba(245, 245, 245, 0.12);
  --dp-line-dark-strong: rgba(245, 245, 245, 0.24);

  /* — Radii — */
  --dp-r-xs: 8px;
  --dp-r-sm: 12px;
  --dp-r: 18px;
  --dp-r-lg: 26px;
  --dp-r-xl: 34px;
  --dp-r-pill: 999px;

  /* — Depth — */
  --dp-shadow-card: 0 1px 2px rgba(24, 25, 29, 0.05), 0 14px 34px -20px rgba(24, 25, 29, 0.35);
  --dp-shadow-lift: 0 2px 4px rgba(24, 25, 29, 0.06), 0 26px 48px -24px rgba(24, 25, 29, 0.45);
  --dp-shadow-panel: 0 32px 80px -40px rgba(8, 9, 14, 0.55);

  /* — Type — */
  --dp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dp-font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --dp-font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* — Metrics — */
  --dp-page: 1440px;
  --dp-gutter: clamp(18px, 2.4vw, 36px);
  --dp-header-h: 76px;

  /* — Motion — */
  --dp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dp-fast: 0.18s;
  --dp-med: 0.32s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--dp-left-bg);
  color: var(--dp-ink);
  font-family: var(--dp-font-body);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
  overflow-wrap: break-word;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* Browsers indent <dd> by 40px and add vertical margins to <dl>. Both would
   knock fact values out of alignment with their labels, so they are reset
   here once rather than patched per component. */
dl,
dd {
  margin: 0;
}

dt,
dd {
  padding: 0;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.dp-panel--dark :where(a, button, input):focus-visible,
.dp-drawer :where(a, button):focus-visible {
  outline-color: var(--dp-blue);
}

/* —— Shell —— */
.dp-wrap {
  width: 100%;
  max-width: var(--dp-page);
  margin-inline: auto;
  padding-inline: var(--dp-gutter);
}

.dp-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--dp-r-xs);
  background: var(--dp-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.dp-skip:focus {
  top: 12px;
}

.dp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* —— Shared type helpers —— */
.dp-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dp-muted);
}

.dp-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ============================================================
   Header — unified, static, one hairline above both arenas
   ============================================================ */
.dp-header {
  position: relative;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--dp-line);
}

.dp-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.2vw, 40px);
  height: var(--dp-header-h);
}

/* Brand: a diagonal split mark — the whole concept in 30px */
.dp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dp-brand__mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--dp-ink) 0 49.6%, var(--dp-accent) 50.4% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dp-brand__mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.92;
}

.dp-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.dp-brand__name {
  font-family: var(--dp-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
}

.dp-brand__sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dp-muted);
  margin-top: 3px;
}

.dp-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  min-width: 0;
}

.dp-nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dp-ink-soft);
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--dp-fast) var(--dp-ease);
}

.dp-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--dp-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dp-fast) var(--dp-ease);
}

.dp-nav__link:hover,
.dp-nav__link.is-current {
  color: var(--dp-ink);
}

.dp-nav__link:hover::after,
.dp-nav__link.is-current::after {
  transform: scaleX(1);
}

.dp-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header search field (desktop) */
.dp-search {
  position: relative;
  display: flex;
  align-items: center;
  width: clamp(180px, 19vw, 264px);
}

.dp-search__icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--dp-muted);
  pointer-events: none;
}

.dp-search__input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-r-pill);
  background: var(--dp-left-bg);
  font-size: 13px;
  transition: border-color var(--dp-fast) var(--dp-ease), background-color var(--dp-fast) var(--dp-ease);
}

.dp-search__input::placeholder {
  color: var(--dp-muted);
}

.dp-search__input:hover {
  border-color: var(--dp-line-strong);
}

.dp-search__input:focus {
  background: #fff;
  border-color: var(--dp-ink);
  outline: none;
}

.dp-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--dp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--dp-ink);
  cursor: pointer;
  transition: border-color var(--dp-fast) var(--dp-ease), background-color var(--dp-fast) var(--dp-ease);
}

.dp-icon-btn:hover {
  border-color: var(--dp-line-strong);
  background: var(--dp-left-bg);
}

.dp-icon-btn svg {
  width: 18px;
  height: 18px;
}

.dp-header__mobile-only {
  display: none;
}

/* ============================================================
   Footer — the third surface: ink, not the arena dark
   ============================================================ */
.dp-footer {
  background: var(--dp-ink);
  color: #d8dae1;
  padding: clamp(40px, 5vw, 64px) 0 26px;
}

.dp-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.dp-footer__brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.dp-footer__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5f5f5 0 49.6%, var(--dp-accent) 50.4% 100%);
}

.dp-footer__name {
  font-family: var(--dp-font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.dp-footer__desc {
  font-size: 13px;
  line-height: 1.65;
  color: #9a9da8;
  max-width: 34ch;
}

.dp-footer__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #767a86;
  margin-bottom: 14px;
}

.dp-footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
}

.dp-footer__links a {
  font-size: 13px;
  color: #d8dae1;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color var(--dp-fast) var(--dp-ease), border-color var(--dp-fast) var(--dp-ease);
}

.dp-footer__links a:hover {
  color: #fff;
  border-bottom-color: var(--dp-accent);
}

.dp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12px;
  color: #8b8f9b;
}

.dp-footer__bottom a {
  color: #c3c6cf;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.dp-footer__bottom a:hover {
  color: #fff;
}

/* ============================================================
   Advertising — deliberately not a card
   ============================================================ */
.dp-ad {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed var(--dp-line-strong);
  border-radius: var(--dp-r-sm);
  background: #fbfbfc;
  min-height: 108px;
  align-content: center;
  line-height: 1;
}

.dp-ad--dark {
  border-color: var(--dp-line-dark-strong);
  background: rgba(255, 255, 255, 0.02);
}

.dp-ad__label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dp-muted);
}

.dp-ad--dark .dp-ad__label {
  color: var(--dp-dark-muted);
}

.dp-ad__unit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
  line-height: 0;
}

.dp-ad__unit > [id^="div-gpt-ad"],
.dp-ad__unit > ins.adsbygoogle {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  line-height: normal;
}

.dp-ad__unit iframe[id^="google_ads_iframe"] {
  display: block;
  max-width: 100%;
  margin-inline: auto;
}

.dp-ad-band {
  background: #fff;
  padding-block: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--dp-line);
}

/* The advertising slot spans the full screen width. Only the creative and
   its label are centred inside it — the container itself has no gutter and
   no max-width, so its edges sit flush with the viewport. */
.dp-ad-band .dp-wrap {
  padding-inline: 0;
}

.dp-ad-band .dp-ad,
.dp-ad--bleed {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
