/* DDS base styles — layout primitives on top of tokens.css */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Hierarchy: Roman names places, Eczar makes statements.
   Interior page titles use .nameplate on the h1; the Home hero
   uses .hero-statement instead — Home has no nameplate. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 var(--space-4);
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}
.nameplate {
  font-family: var(--font-nameplate);
  font-weight: 700;            /* Luxurious Roman ships 400 only; the browser synthesizes this bold */
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.hero-statement {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
}
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--gold);
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #f5efe2;
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.flavor {
  font-family: var(--font-body-alt);
  font-style: italic;
  color: var(--ink-muted);
}

.rule-gold {
  border: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  margin: var(--space-4) 0;
}

/* --- Brand lockup: reaper + wordmark image, side by side.
   The reaper self-adapts (black linework + white fill reads on both
   grounds); only the wordmark swaps per theme. Both <img>s are in the
   DOM; these rules show exactly one. --- */
.brand { display:inline-flex; align-items:center; gap: var(--space-3); text-decoration:none; }
.brand-reaper { width:48px; height:auto; }
.brand-wordmark { width:160px; height:auto; }
.wordmark-light { display:none; }
:root[data-theme="light"] .wordmark-dark { display:none; }
:root[data-theme="light"] .wordmark-light { display:inline; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .wordmark-dark { display:none; }
  :root:not([data-theme="dark"]) .wordmark-light { display:inline; }
}

/* Light theme: lift the lockup off the parchment with a soft warm shadow
   (drop-shadow follows the art's alpha, not the image box). */
:root[data-theme="light"] .brand-reaper,
:root[data-theme="light"] .brand-wordmark {
  filter: drop-shadow(0 1px 2px rgba(58, 42, 20, 0.45)) drop-shadow(0 3px 7px rgba(58, 42, 20, 0.22));
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-reaper,
  :root:not([data-theme="dark"]) .brand-wordmark {
    filter: drop-shadow(0 1px 2px rgba(58, 42, 20, 0.45)) drop-shadow(0 3px 7px rgba(58, 42, 20, 0.22));
  }
}
