/* Ink Network: one black-and-white system for every page.
   Colour comes only from pictures: the island, Ink-Chan, product logos and screenshots. */
:root {
  --p-bg: #ffffff; --p-surface: #f2f2f2; --p-ink: #0a0a0a; --p-muted: #5c5c5c;
  --p-accent: #0a0a0a; --p-accent-ink: #ffffff; --p-action: #0a0a0a; --p-action-ink: #ffffff;
  --p-inv-bg: #0a0a0a; --p-inv-surface: #171717; --p-inv-ink: #ffffff; --p-inv-muted: #a3a3a3;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #0a0a0a; --p-inv-action: #ffffff; --p-inv-action-ink: #0a0a0a;
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-pixel: "Silkscreen", "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
  --ly-scale: 0.98;
}
html { --ground-bg: #e9e9e9; --ground-surface: #f7f7f7; --ground-ink: #0a0a0a; --ground-muted: #5c5c5c; --ground-accent: #0a0a0a; }
.dg { filter: grayscale(1); }

/* ---- header and footer logo ---- */
.nav__logo img.ink-logo { height: 20px; width: auto; }
.footer .nav__logo img.ink-logo { height: 26px; }
.nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---- pixel labels, after the Ink logo's lettering ---- */
.px { font: 400 13px/1.2 var(--font-pixel); letter-spacing: .04em; text-transform: uppercase; }
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker img { height: 18px; width: auto; }

/* ---- product marks: logos keep their colour, tool icons turn grey ---- */
.ic-tile img.ic { filter: grayscale(1) contrast(1.1); }
.ic-tile img.ic--brand { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.ic-tile img.ic--face { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---- mascots: press one and it says something ---- */
.mascot { position: absolute; z-index: 4; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mascot:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 12px; }
.mascot img { display: block; width: 100%; height: auto; pointer-events: none; transform-origin: 50% 100%; }
.mascot__body { display: block; transform: rotate(var(--tilt, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 100%; }
.mascot__say { position: absolute; width: max-content; max-width: 240px; padding: 10px 14px; border-radius: 4px;
  background: #fff; color: #0a0a0a; border: 2px solid #0a0a0a; box-shadow: 4px 4px 0 #0a0a0a;
  font: 500 15px/1.3 var(--font-text); text-align: left; opacity: 0; pointer-events: none; }

/* ---- pixel avatars (js draws them; the initials show without js) ---- */
.px-av { display: grid; place-items: center; width: var(--av, 64px); aspect-ratio: 1; background: #0a0a0a; color: #fff;
  font: 400 calc(var(--av, 64px) * .3)/1 var(--font-pixel); image-rendering: pixelated; flex: none; }
.ground-inverse .px-av { background: #fff; color: #0a0a0a; }
.px-av svg { width: 100%; height: 100%; display: block; }

/* ---- buttons: square ink blocks ---- */
.btn { border-radius: 2px; }
.btn--primary { box-shadow: 4px 4px 0 color-mix(in oklab, var(--ink) 35%, transparent); }

/* ---- reduced motion and pre-animation states ---- */
.ix:not(.ix-safe) [data-in] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .mascot img { transform: none !important; } }
