/* DSQ Partners — shared web brand layer
   Source tokens: deliverables/brand-guide/2026-09-11_d2art-brand-library-v3-high-fidelity/output/tokens/dsq-d2art.css
   Web type pairing per tokens.json: Montserrat SemiBold (headings) / Source Sans 3 (body). */

:root {
  --dsq-deep-navy: #07182B;
  --dsq-midnight-navy: #0B2038;
  --dsq-platinum-silver: #C7C9CC;
  --dsq-dark-silver: #7F8388;
  --dsq-muted-gold: #C89A4B;
  --dsq-deep-gold: #9B6D27;
  --dsq-white: #FFFFFF;

  /* light semantic (default) — the six from the token file */
  --dsq-canvas: #F5F6F7;
  --dsq-surface: #FFFFFF;
  --dsq-text: #07182B;
  --dsq-muted: #5F6974;
  --dsq-border: #D7DBDF;
  --dsq-accent: #80571C;

  /* derived for the web layer (not in the token file) — every one flips with the theme */
  color-scheme: light;
  --dsq-surface-2: #ECEEF1;                /* alternate / raised panel */
  --dsq-hairline: rgba(7, 24, 43, .10);    /* faint divider over canvas */
  --dsq-shadow: rgba(7, 24, 43, .10);
  --dsq-shadow-lg: rgba(7, 24, 43, .18);
  --dsq-gold-wash: rgba(200, 154, 75, .10);
  --dsq-gold-wash-2: rgba(200, 154, 75, .18);
  --dsq-topbar: rgba(255, 255, 255, .88);  /* translucent sticky bar */
  --dsq-topbar-solid: rgba(255, 255, 255, .96);
  --dsq-contrast: #07182B;                 /* solid "opposite of the page" button */
  --dsq-contrast-text: #FFFFFF;

  /* contrast band — a section that stays navy in BOTH themes (it lifts off the canvas
     in light, and reads as a raised panel in dark) */
  --dsq-band: #07182B;
  --dsq-band-surface: #0B2038;
  --dsq-band-text: #FFFFFF;
  --dsq-band-muted: #C7C9CC;
  --dsq-band-border: #496078;

  --font-head: "Montserrat", "Aptos Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Source Sans 3", "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 10px;
}

[data-theme="dark"],
.theme-dark {
  --dsq-canvas: #07182B;
  --dsq-surface: #0B2038;
  --dsq-text: #FFFFFF;
  --dsq-muted: #C7C9CC;
  --dsq-border: #496078;
  --dsq-accent: #E4BE78;

  color-scheme: dark;
  --dsq-surface-2: #0E2742;
  --dsq-hairline: rgba(199, 201, 204, .14);
  --dsq-shadow: rgba(0, 0, 0, .35);
  --dsq-shadow-lg: rgba(0, 0, 0, .5);
  --dsq-gold-wash: rgba(200, 154, 75, .10);
  --dsq-gold-wash-2: rgba(200, 154, 75, .16);
  --dsq-topbar: rgba(7, 24, 43, .82);
  --dsq-topbar-solid: rgba(7, 24, 43, .94);
  --dsq-contrast: #FFFFFF;
  --dsq-contrast-text: #07182B;

  --dsq-band: #0B2038;         /* one step up from the canvas so the band still separates */
  --dsq-band-surface: #123049;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--dsq-text);
  background: var(--dsq-canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
p  { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--dsq-muted); }
.muted { color: var(--dsq-muted); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dsq-accent);
  margin-bottom: 14px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 24px; border-radius: 6px;
  text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--dsq-muted-gold); color: var(--dsq-deep-navy); }
.btn-gold:hover { background: #D6A85A; }
/* solid button in whatever colour opposes the page: navy on light, white on dark */
.btn-navy { background: var(--dsq-contrast); color: var(--dsq-contrast-text); }
.btn-navy:hover { background: var(--dsq-contrast); filter: brightness(1.12); }
[data-theme="dark"] .btn-navy:hover { filter: brightness(.92); }
.btn-outline { border-color: currentColor; color: var(--dsq-text); background: transparent; }
.btn-outline:hover { background: rgba(127,131,136,0.12); }
.btn-link { padding: 0; background: none; border: 0; color: var(--dsq-accent); text-decoration: none; }
.btn-link::after { content: "→"; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 0;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.nav-brand img { height: 34px; width: auto; }
.nav-brand span { white-space: nowrap; }
.nav-brand small { font-weight: 500; letter-spacing: 0.12em; opacity: .7; font-size: 11px; display: block; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; opacity: .85; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .nav-brand { font-size: 14px; letter-spacing: 0.1em; gap: 10px; }
  .nav-brand img { height: 28px; }
  .nav .btn { padding: 11px 16px; font-size: 14px; }
  .nav-actions { gap: 8px; }
  .theme-toggle { width: 34px; height: 34px; }
}

/* theme toggle — shows the mode you would switch TO. Needs JS, so it hides without it. */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  padding: 0; border-radius: 8px; border: 1px solid var(--dsq-border);
  background: transparent; color: inherit; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--dsq-muted-gold); background: var(--dsq-gold-wash); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle:focus-visible { outline: 2px solid var(--dsq-muted-gold); outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
html:not(.js) .theme-toggle { display: none; }

/* theme-specific artwork: mark each variant and the wrong one is hidden */
[data-theme="dark"] .on-light { display: none; }
html:not([data-theme="dark"]) .on-dark { display: none; }

/* contrast band section (`.band`, or `.dark` where a page already used that name) */
.band, .section.dark {
  background: var(--dsq-band);
  color: var(--dsq-band-text);
  --dsq-surface: var(--dsq-band-surface);
  --dsq-text: var(--dsq-band-text);
  --dsq-muted: var(--dsq-band-muted);
  --dsq-border: var(--dsq-band-border);
  --dsq-accent: var(--dsq-muted-gold);
  --dsq-contrast: var(--dsq-white);
  --dsq-contrast-text: var(--dsq-deep-navy);
  --dsq-shadow: rgba(0, 0, 0, .35);
  --dsq-shadow-lg: rgba(0, 0, 0, .5);
  color-scheme: dark;
}
.band h1, .band h2, .band h3, .section.dark h1, .section.dark h2, .section.dark h3 { color: var(--dsq-band-text); }

/* rules & badges */
.rule-gold { height: 3px; width: 56px; background: var(--dsq-muted-gold); border: 0; margin: 0 0 22px; }
.badge {
  display: inline-block; font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px;
  border: 1px solid var(--dsq-border); color: var(--dsq-muted);
}
.badge-gold { border-color: var(--dsq-muted-gold); color: var(--dsq-accent); }
.badge-solid { background: var(--dsq-muted-gold); border-color: var(--dsq-muted-gold); color: var(--dsq-deep-navy); }

/* cards */
.card {
  background: var(--dsq-surface); border: 1px solid var(--dsq-border);
  border-radius: var(--radius); padding: 32px;
}
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.checks li::before {
  /* asymmetric box + rotate = checkmark (a square would read as a chevron) */
  content: ""; position: absolute; left: 6px; top: 5px; width: 6px; height: 12px;
  border-right: 2.5px solid var(--dsq-muted-gold); border-bottom: 2.5px solid var(--dsq-muted-gold);
  transform: rotate(45deg);
}

/* forms */
.form { display: grid; gap: 14px; }
.form label { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dsq-muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 6px;
  border: 1px solid var(--dsq-border); background: var(--dsq-surface); color: var(--dsq-text);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }

/* footer */
.footer { padding: 40px 0; border-top: 1px solid var(--dsq-border); font-size: 15px; color: var(--dsq-muted); }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer a { text-decoration: none; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
