/* Nobody Peeks — brand system.
   Concept: a two-ink risograph print. Fluorescent pink and medium blue
   overprint into violet — "both" — until the reveal, when one ink drops away.
   Overprint is real: layered elements use mix-blend-mode: multiply. */

@font-face {
  font-family: "Anybody";
  src: url("/assets/fonts/anybody.woff2") format("woff2-variations"), url("/assets/fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("/assets/fonts/atkinson.woff2") format("woff2-variations"), url("/assets/fonts/atkinson.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("/assets/fonts/atkinson-italic.woff2") format("woff2-variations"), url("/assets/fonts/atkinson-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Stock + inks */
  --paper: #f3f2ee;
  --paper-deep: #e8e6de;
  --ink: #221a3a;
  --ink-soft: #544c6e;
  --pink: #ff48b0;   /* Riso Fluorescent Pink */
  --blue: #3255a4;   /* Riso Medium Blue */
  --violet: #321871; /* pink × blue overprint */
  --yellow: #ffe800; /* Riso Yellow — used sparingly */
  --rule: rgb(34 26 58 / 0.16);

  --display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale (360px → 1280px) */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.75rem + 2.6vw, 4rem);
  --step-5: clamp(2.9rem, 1.9rem + 4.6vw, 6.2rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --measure: 66ch;
  --radius: 14px;
  --misreg: 5px; /* how far the second ink layer sits off-register */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.55 var(--body);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain. Low-alpha noise, no blend mode — cheap to composite on phones. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.1 0 0 0 0 0.23 0 0 0 0.09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--pink);
}
a:hover {
  text-decoration-color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Riso primitives
   --------------------------------------------------------------------------- */

/* Eyebrow / label: wide, tracked caps. */
.label {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 125%;
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Overprinted word: pink layer + blue layer multiplied, slightly off-register.
   Usage: <span class="overprint" data-ink="nobody">nobody</span> */
.overprint {
  position: relative;
  display: inline-block;
  color: var(--pink);
  isolation: isolate;
}
.overprint::after {
  content: attr(data-ink);
  position: absolute;
  inset: 0;
  color: var(--blue);
  mix-blend-mode: multiply;
  transform: translate(calc(var(--misreg) * 0.9), calc(var(--misreg) * 0.55));
  pointer-events: none;
}

/* Halftone dot fill in the current color. */
.halftone {
  background-image: radial-gradient(circle, currentColor 0 32%, transparent 34%);
  background-size: 7px 7px;
}

/* Buttons: pink ink with the blue plate printed off-register beneath. On
   hover the plates snap into register and overprint to violet. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3.25rem;
  padding: 0.85em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  box-shadow: var(--misreg) var(--misreg) 0 var(--blue);
  font: 800 var(--step-0) / 1 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.22s cubic-bezier(0.3, 1.6, 0.5, 1),
    transform 0.22s cubic-bezier(0.3, 1.6, 0.5, 1);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover,
.btn:focus-visible {
  background: var(--violet);
  color: var(--paper);
  box-shadow: 0 0 0 var(--blue);
  transform: translate(calc(var(--misreg) / 2), calc(var(--misreg) / 2));
}
.btn:active {
  transform: translate(var(--misreg), var(--misreg));
}
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.4;
  background: var(--pink);
  color: var(--ink);
  box-shadow: var(--misreg) var(--misreg) 0 var(--blue);
  transform: none;
}

.btn--quiet {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--quiet:hover,
.btn--quiet:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  transform: none;
}

.btn--small {
  min-height: 2.6rem;
  padding: 0.6em 1.1em;
  font-size: var(--step--1);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
a:hover .arrow,
.btn:hover .arrow {
  transform: translateX(3px);
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: 1.45rem;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark svg {
  width: 2.1rem;
  height: auto;
  flex: none;
}

/* The cup mark: pink cup over a blue cup printed off-register, eyes shut. */
.mark-pink {
  fill: var(--pink);
}
.mark-blue {
  fill: var(--blue);
}
.mark-eyes {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
}

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