/* historoo design tokens.
   Rules: neutral dark surfaces (~70%), off-white text (~20%), one accent (~10%).
   Gradients are artwork only (hero field, explainer, headline thumbnails). No glass, no emoji, small radii. */
/* Schibsted Grotesk (SIL Open Font License, fonts/OFL.txt), served from this site rather than Google
   Fonts, so visiting the site sends nobody else your address. One variable font per script covers 400-700. */
@font-face {
  font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/schibsted-grotesk-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: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/schibsted-grotesk-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: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-800.woff2) format('woff2');
}

:root {
  --bg: #08080A;
  --panel: #0F0F12;
  --panel-2: #151519;
  --panel-3: #1C1C21;
  --line: #222228;
  --line-2: #2E2E36;
  --text: #EDEDF0;
  --muted: #9B9BA6;
  --dim: #66666F;
  --accent: #CFFF4A;
  --accent-ink: #0A0A0B;

  /* artwork palette (gradients only) */
  --blue: #3D5BFF;
  --violet: #7C4DFF;
  --pink: #FF4F9A;
  --orange: #FF8A3D;

  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;

  --r: 6px;
  --r-lg: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(207, 255, 74, .28); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 15px/1 var(--font); letter-spacing: -.005em;
  padding: 13px 18px; border-radius: var(--r); border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #DBFF72; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.secondary:hover { border-color: var(--muted); background: var(--panel-2); }
.btn.big { font-size: 16px; padding: 15px 22px; }

/* Logo: the historoo kangaroo, half white and half accent lime, holding a magnifying glass (shared/logo.svg).
   The old "Going back" mark is in docs/logo-archive. */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--font); letter-spacing: -.02em; text-decoration: none; color: var(--text); }
/* The mark sits in the middle of a square 32 box, so the box is drawn larger and cropped to the cards. */
.logo-mark { width: 30px; height: 30px; flex: none; margin-top: -4px; background: url(logo.svg) center / contain no-repeat; }
.logo-name { font: 800 21px/1 'Bricolage Grotesque', var(--font); letter-spacing: -.03em; }
.logo-name b { font-weight: inherit; color: var(--accent); }

/* Grain overlay for gradient artwork */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background-image: var(--grain); background-size: 220px; mix-blend-mode: overlay; opacity: .5;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
