/* TENFOUR by stokehouse: shared brand tokens and the three skins.
   Default skin is Channel, the TENFOUR instrument look already approved (SlackChat v4
   "Instrument grey"): matte grey ground, warm paper, near-black, one red.
   Set data-skin="field" | "night" | "channel" | "atlas" | "horizon" on <html> to switch.
   Field (day) and Night are the Signal skins, and Field is the default for members. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800&family=Karla:wght@400;500;700&family=IBM+Plex+Mono:wght@500;600&family=Big+Shoulders+Display:wght@600;800&family=Barlow+Condensed:wght@500;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
:root, [data-skin="channel"] {
  --ground: #D3D0C7; --paper: #F4F2EC; --ink: #1A1A1D; --muted: #5E5B55; --hair: rgba(26,26,29,.12);
  --accent: #B22B23; --accent-ink: #fff; --ok: #3F7A46; --warn: #8A5A12; --idea: #8A867D;
  --display: "Archivo", system-ui, sans-serif; --body: "Karla", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 16px; --radius-sm: 11px; --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 16px rgba(26,26,29,.08);
  color-scheme: light;
}
[data-skin="atlas"] {
  --ground: #E6E9DF; --paper: #F3F4EE; --ink: #1F2A36; --muted: #5C6873; --hair: #B9C1B3;
  --accent: #E2592B; --accent-ink: #fff; --ok: #2F6B4F; --warn: #7F5210; --idea: #8C938A;
  --display: "Big Shoulders Display", "Archivo", sans-serif; --body: "Karla", system-ui, sans-serif;
  --radius: 12px; --radius-sm: 8px; --shadow: none; color-scheme: light;
}
[data-skin="horizon"] {
  --ground: #11172A; --paper: rgba(255,255,255,.07); --ink: #F1EDF6; --muted: #B4ACC4; --hair: rgba(255,255,255,.16);
  --accent: #FF7A45; --accent-ink: #1B1627; --ok: #8FE3B0; --warn: #FFC27A; --idea: #9D95B0;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 18px; --radius-sm: 12px; --shadow: none; color-scheme: dark;
}
/* Signal: Field (day, the default) and Night. Fonts are hosted here (all SIL Open Font License). */
@font-face { font-family: "Archivo T4"; font-weight: 400; font-display: swap; src: url(/shared/fonts/archivo-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo T4"; font-weight: 600; font-display: swap; src: url(/shared/fonts/archivo-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo T4"; font-weight: 700; font-display: swap; src: url(/shared/fonts/archivo-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo T4"; font-weight: 800; font-display: swap; src: url(/shared/fonts/archivo-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo T4"; font-weight: 900; font-display: swap; src: url(/shared/fonts/archivo-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Plex T4"; font-weight: 400; font-display: swap; src: url(/shared/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plex T4"; font-weight: 500; font-display: swap; src: url(/shared/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Plex T4"; font-weight: 600; font-display: swap; src: url(/shared/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Serif T4"; font-weight: 400; font-display: swap; src: url(/shared/fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Serif T4"; font-style: italic; font-weight: 400; font-display: swap; src: url(/shared/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); }
[data-skin="field"] {
  --ground: #E7E3DA; --paper: #F7F5F0; --ink: #17171A; --muted: #5F5B54; --hair: rgba(23,23,26,.11);
  --accent: #B22B23; --accent-ink: #fff; --ok: #237A47; --warn: #7E5C1C; --idea: #77726A; --signal: #2E9E5B; --brass: #A87C2A;
  --display: "Archivo T4", "Archivo", system-ui, sans-serif; --body: "Archivo T4", "Archivo", system-ui, sans-serif; --mono: "Plex T4", "IBM Plex Mono", ui-monospace, monospace; --serif: "Serif T4", Georgia, serif;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 8px 22px rgba(23,23,26,.08);
  color-scheme: light;
}
[data-skin="night"] {
  --ground: #0D0E10; --paper: #16181B; --ink: #ECE9E2; --muted: #A09B92; --hair: rgba(255,255,255,.09);
  --accent: #E0412F; --accent-ink: #fff; --ok: #3DDC84; --warn: #D2A24C; --idea: #8B877F; --signal: #3DDC84; --brass: #D2A24C;
  --display: "Archivo T4", "Archivo", system-ui, sans-serif; --body: "Archivo T4", "Archivo", system-ui, sans-serif; --mono: "Plex T4", "IBM Plex Mono", ui-monospace, monospace; --serif: "Serif T4", Georgia, serif;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 10px 26px rgba(0,0,0,.4);
  color-scheme: dark;
}
/* Contour: the topographic map. Paper, brown ink, one red. Pinch out to see the whole range. */
[data-skin="contour"] {
  --ground: #EFE7D3; --paper: #F8F2E4; --ink: #2B2012; --muted: #5A4A33; --hair: rgba(78,58,32,.22);
  --accent: #B8321E; --accent-ink: #fff; --ok: #2F6B3A; --warn: #6E4A0E; --idea: #85755A; --signal: #2F6B3A; --brass: #A87C2A;
  --display: "Archivo T4", "Archivo", system-ui, sans-serif; --body: "Archivo T4", "Archivo", system-ui, sans-serif; --mono: "Plex T4", "IBM Plex Mono", ui-monospace, monospace; --serif: "Serif T4", Georgia, serif;
  --radius: 6px; --radius-sm: 4px; --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 18px rgba(60,40,10,.12);
  color-scheme: light;
}
[data-skin="horizon"] body { background: linear-gradient(180deg, #0F1522, #2A2140 70%, #4A2A3C) fixed; }
body { background: var(--ground); color: var(--ink); font: 15px/1.45 var(--body); margin: 0; }
.t4-mono { font: 600 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.t4-pill { display: inline-flex; align-items: center; font: 800 14px/1 "Archivo", sans-serif; letter-spacing: -.02em; color: #fff; background: #B22B23; border-radius: 999px; padding: 6px 12px; }
.t4-sample { display: inline-block; font: 700 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; border: 1px solid currentColor; color: var(--warn); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
