/* Upstream Bid design tokens.
   WSJ editorial typography, Bloomberg data styling. See docs/brand_guide.md.
   Fonts are loaded by the page (Google Fonts); this file only names them. */

:root {
  /* Color: monochrome plus one accent */
  --ub-paper: #FFFFFF;
  --ub-ink: #111111;
  --ub-secondary: #555555;
  --ub-hairline: #D4D4D4;
  --ub-tint: #F7F7F5;
  --ub-accent: #0066CC; /* Bloomberg Blue: active data highlights and links only */

  /* Font stacks */
  --ub-font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ub-font-sans: "Libre Franklin", "Franklin Gothic Medium", Arial, Helvetica, sans-serif;
  --ub-font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  /* Type scale (px at 16px root) */
  --ub-fs-masthead: 3rem;      /* 48 */
  --ub-fs-headline: 2.25rem;   /* 36 */
  --ub-fs-deck: 1.5rem;        /* 24 */
  --ub-fs-subhead: 1.125rem;   /* 18 */
  --ub-fs-body: 1rem;          /* 16 */
  --ub-fs-small: 0.8125rem;    /* 13 */
  --ub-fs-kicker: 0.6875rem;   /* 11 */
  --ub-fs-figure: 0.875rem;    /* 14 */

  --ub-lh-tight: 1.1;
  --ub-lh-headline: 1.15;
  --ub-lh-body: 1.5;

  --ub-fw-regular: 400;
  --ub-fw-medium: 500;
  --ub-fw-semibold: 600;
  --ub-fw-bold: 700;

  --ub-tracking-masthead: 0.06em;
  --ub-tracking-kicker: 0.12em;

  /* Rules */
  --ub-rule-heavy: 2px solid var(--ub-ink);
  --ub-rule-gap: 2px;
  --ub-rule-light: 1px solid var(--ub-ink);
  --ub-rule-hairline: 1px solid var(--ub-hairline);

  /* Shape and spacing */
  --ub-radius: 0;
  --ub-space-1: 4px;
  --ub-space-2: 8px;
  --ub-space-3: 16px;
  --ub-space-4: 24px;
  --ub-space-5: 40px;
  --ub-space-6: 64px;
  --ub-measure: 68ch;
}

/* WSJ double top rule: 2px ink, 2px gap, 1px ink. */
.ub-double-rule {
  border-top: var(--ub-rule-heavy);
  padding-top: var(--ub-rule-gap);
}
.ub-double-rule::before {
  content: "";
  display: block;
  border-top: var(--ub-rule-light);
}

.ub-hairline-top { border-top: var(--ub-rule-hairline); }
.ub-hairline-bottom { border-bottom: var(--ub-rule-hairline); }

/* Figures and dates: mono, fixed-width digits so columns align. */
.ub-num {
  font-family: var(--ub-font-mono);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.ub-num-right { text-align: right; white-space: nowrap; }

.ub-kicker {
  font-family: var(--ub-font-sans);
  font-size: var(--ub-fs-kicker);
  font-weight: var(--ub-fw-semibold);
  letter-spacing: var(--ub-tracking-kicker);
  text-transform: uppercase;
  color: var(--ub-secondary);
}

.ub-masthead {
  font-family: var(--ub-font-serif);
  font-size: var(--ub-fs-masthead);
  font-weight: var(--ub-fw-bold);
  letter-spacing: var(--ub-tracking-masthead);
  line-height: var(--ub-lh-tight);
  text-transform: uppercase;
  color: var(--ub-ink);
}

.ub-headline {
  font-family: var(--ub-font-serif);
  font-size: var(--ub-fs-headline);
  font-weight: var(--ub-fw-bold);
  line-height: var(--ub-lh-headline);
  color: var(--ub-ink);
}

.ub-link { color: var(--ub-accent); text-decoration: underline; text-underline-offset: 2px; }
