/* ==========================================================================
   Reel Briefing — base.css
   Reset, design tokens and base element styles.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Palette: muted lavender-grey + plum + brass */
  --color-bg: #ece5f3;
  --color-bg-band: #e0d5eb;
  --color-bg-deep: #d6c9e5;
  --color-surface: #fbf9fb;
  --color-surface-raised: #ffffff;
  --color-ink: #241726;
  --color-ink-soft: #56454f;
  --color-ink-faint: #7b6b78;
  --color-plum: #5a2a4c;
  --color-plum-deep: #331a2c;
  --color-plum-tint: #f0e6ee;
  --color-brass: #a97a2e;
  --color-brass-deep: #7e5a1f;
  --color-brass-bright: #c99a45;
  --color-brass-tint: #f2e6cb;
  --color-line: rgba(36, 23, 38, 0.16);
  --color-line-soft: rgba(36, 23, 38, 0.09);
  --color-white: #ffffff;

  /* Type */
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;

  /* Spacing scale (4/8 based) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --container-w: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 3px;
  --radius-md: 6px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(rgba(90, 42, 76, 0.05) 0.6px, transparent 0.6px),
    radial-gradient(rgba(255, 255, 255, 0.35) 0.6px, transparent 0.6px);
  background-size: 3px 3px, 3px 3px;
  background-position: 0 0, 1.5px 1.5px;
}

img { max-width: 100%; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-plum-deep);
  line-height: 1.05;
  margin: 0 0 var(--sp-4);
  font-weight: 600;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.06em; }

p { margin: 0 0 var(--sp-4); max-width: 68ch; }
p.wide { max-width: none; }

a {
  color: var(--color-plum);
  text-decoration: none;
  text-underline-offset: 0.18em;
}
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--color-brass); outline-offset: 2px; }

strong { color: var(--color-plum-deep); }

.font-tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Kicker / small-caps style labels used above sections */
.kicker {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brass-deep);
  margin-bottom: var(--sp-2);
}

/* Ordered lists: numbered circles */
ol.list-steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 var(--sp-5);
  padding: 0;
}
ol.list-steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: var(--sp-4);
  min-height: 2rem;
}
ol.list-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05em;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--color-plum);
  color: var(--color-surface);
  font-family: var(--font-head);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* Unordered lists: brass diamond marker (matches the section-break motif) */
ul.list-marked {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
}
ul.list-marked > li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--sp-3);
}
ul.list-marked > li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--color-brass);
  transform: rotate(45deg);
}

/* Section-break motif divider: small brass diamond, centred */
.motif-break {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--sp-8) 0;
}
.motif-break::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--color-brass);
  transform: rotate(45deg);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: var(--sp-7) 0;
}

blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) 0 var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--color-brass);
  font-family: var(--font-head);
  font-size: 1.15rem;
  text-transform: none;
  color: var(--color-plum-deep);
  letter-spacing: 0;
  max-width: 60ch;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-plum-deep);
  color: var(--color-white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 200;
}
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
}
