/* ==========================================================================
   PARTEMS — base: tokens, reset, type, utilities
   The page has two themes, picked on Home:
   creator = dark ink with red, brand = light paper with burgundy.
   ========================================================================== */

/* Fonts are served from this site (no requests to Google). SIL Open Font License. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Fixed palette (also used by the legal pages) */
  --ink: #090909;
  --ink-2: #111111;
  --burgundy: #390A12;
  --wine: #710F20;
  --red: #C51F38;
  --red-bright: #E63946;
  --paper: #F4F1F0;
  --mute: #929292;
  --paper-80: rgba(244, 241, 240, .8);
  --paper-64: rgba(244, 241, 240, .64);

  /* Theme tokens: creator / default */
  --bg: #090909;
  --bg-2: #111111;
  --fg: #F4F1F0;
  --muted: rgba(244, 241, 240, .62);
  --line: rgba(244, 241, 240, .12);
  --line-2: rgba(244, 241, 240, .24);
  --accent: #C51F38;
  --accent-2: #E63946;
  --accent-ink: #F4F1F0;
  --glow: rgba(230, 57, 70, .55);
  --tint: rgba(57, 10, 18, .55);

  /* Type */
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --fs-sm: .875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.2rem, 1rem + .7vw, 1.55rem);
  --fs-display: clamp(2.8rem, 1.2rem + 5.4vw, 7rem);

  /* Space */
  --gutter: clamp(1.25rem, .4rem + 3.6vw, 4rem);
  --max: 1440px;
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.65, .05, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

html[data-audience="brand"] {
  --bg: #F4F1F0;
  --bg-2: #EAE3E1;
  --fg: #090909;
  --muted: rgba(9, 9, 9, .62);
  --line: rgba(9, 9, 9, .12);
  --line-2: rgba(9, 9, 9, .24);
  --accent: #710F20;
  --accent-2: #C51F38;
  --accent-ink: #F4F1F0;
  --glow: rgba(113, 15, 32, .35);
  --tint: rgba(113, 15, 32, .10);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

main { flex: 1; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* ---- Type ---- */
.display {
  font-size: var(--fs-display);
  font-weight: 800;
  font-stretch: 62%;
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
