@import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Overpass:wght@400;500;700;800&family=Source+Code+Pro:wght@600&display=swap");

/* SHIFT design tokens — derived from ai_references/stitch_gen_z_news_platform/shift_design_system.md */

:root {
  /* colour */
  --volt: #d4ff00;
  --violet: #5300b7;
  --violet-container: #6d28d9;
  --magenta: #b5005d;
  --magenta-container: #da2676;
  --teal: #004944;
  --teal-container: #00635c;
  --ink: #1d1a24;
  --canvas: #fef7ff;
  --white: #ffffff;
  --surface-low: #f9f1ff;
  --surface: #f3ebf9;
  --surface-high: #ede5f3;
  --outline: #7b7486;
  --outline-variant: #ccc3d7;
  --on-surface-variant: #4a4455;
  --pink: #ffb1c7;
  --mint: #80d5cb;
  --error: #ba1a1a;

  /* type */
  --ff-display: "Abril Fatface", Georgia, serif;
  --ff-body: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "Source Code Pro", ui-monospace, monospace;

  --fs-display: 48px;
  --fs-display-s: 40px;
  --fs-h1: 36px;
  --fs-h2: 30px;
  --fs-h3: 24px;
  --fs-title-lg: 20px;
  --fs-title-md: 16px;
  --fs-body-lg: 17px;
  --fs-body-md: 15px;
  --fs-body-sm: 13px;
  --fs-label-lg: 14px;
  --fs-label-md: 12px;
  --fs-label-sm: 12px;

  /* space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 56px;
  --page-max: 1280px;
  --page-pad: 24px;

  /* shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 999px;
  --border: 2px solid var(--ink);

  /* motion */
  --t-state: 120ms ease-out;
  --t-enter: 200ms cubic-bezier(0.2, 0, 0, 1);
  --elevation: 4px 4px 0 var(--ink);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body-md);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--volt);
  border: var(--border);
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: top var(--t-state);
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 1023px) {
  :root {
    --fs-display: 34px;
    --fs-display-s: 30px;
    --fs-h1: 28px;
    --fs-h2: 24px;
    --fs-h3: 21px;
    --page-pad: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
