/* Shared by every Digby page: design tokens, webfonts and element defaults. */

:root, [data-theme="light"] {
  --dc-ink: #1c1c1a;
  --dc-cream: #f0edd6;
  --dc-cream-alt: #efecd5;
  --dc-purple: #94278f;
  --dc-white: #ffffff;
  --dc-black: #000000;
  --dc-tier-access: #93268e;
  --dc-tier-silver: #bcbebe;
  --dc-tier-gold: #796856;
  --dc-tier-platinum: #f0edd6;
  --dc-tier-legacy: #241f21;
  --dc-purple-900: oklch(30% 0.09 330);
  --dc-purple-700: oklch(38% 0.13 330);
  --dc-purple-600: #94278f;
  --dc-purple-300: oklch(72% 0.09 335);
  --dc-purple-100: oklch(92% 0.03 335);
  --dc-blush: oklch(76% 0.08 340);
  --dc-cream-50: #f8f6ea;
  --dc-cream-100: #f0edd6;
  --dc-cream-200: #e6e2c7;
  --dc-cream-300: #d6d1b3;
  --dc-stone-400: #a39f8c;
  --dc-stone-600: #6b6858;
  --dc-ink-700: #3b3a35;
  --dc-ink-900: #1c1c1a;
  --dc-success: oklch(48% 0.07 150);
  --dc-warning: oklch(56% 0.09 75);
  --dc-danger: oklch(46% 0.14 25);
  --dc-info: var(--dc-purple-700);
  --surface-page: var(--dc-cream);
  --surface-raised: var(--dc-cream-50);
  --surface-sunken: var(--dc-cream-200);
  --surface-card: var(--dc-cream-50);
  --surface-inverse: var(--dc-ink);
  --surface-accent: var(--dc-purple);
  --surface-bar: var(--dc-black);
  --text-body: var(--dc-ink);
  --text-muted: var(--dc-ink-700);
  --text-subtle: var(--dc-stone-600);
  --text-on-inverse: var(--dc-cream);
  --text-on-accent: var(--dc-cream);
  --text-accent: var(--dc-purple);
  --border-hairline: rgba(28,28,26,.14);
  --border-strong: var(--dc-ink);
  --border-on-inverse: rgba(240,237,214,.22);
  --focus-ring: var(--dc-purple);
  --shadow-1: 0 1px 2px rgba(28,28,26,.08);
  --shadow-2: 0 6px 18px -6px rgba(28,28,26,.22);
  --shadow-3: 0 22px 48px -18px rgba(28,28,26,.38);
  --shadow-deboss: inset 0 1px 2px rgba(28,28,26,.18);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --layout-max: 1200px;
  --layout-gutter: 24px;
  --bar-height: 40px;
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --border-width: 1px;
  --border-width-strong: 1.5px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fs-display-xl: 88px;
  --fs-display: 64px;
  --fs-h1: 44px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 19px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-eyebrow: 11px;
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-body: 1.55;
  --ls-eyebrow: .42em;
  --ls-caps: .18em;
  --ls-wordmark: .08em;
  --ls-tight: -.01em;
  --font-sans: "Objektiv Mk1", "Figtree", system-ui, sans-serif;
  --font-serif: "Ethos", "Instrument Serif", Georgia, serif;
}
:root {
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 480ms;
}

/* Figtree and Instrument Serif stand in for the brand faces, Objektiv Mk1 and Ethos.
   Instrument Serif runs large, so size-adjust keeps the design's serif sizes optically correct. */
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  size-adjust: 88%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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