/* Homepage tokens. Every colour, size, space, radius and duration lives here. */

@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Colour: light */
  --bg: #fbfbfb;
  --surface: #ffffff;
  --text: #1c1c1c;
  --text-muted: #6b6b6b;
  --title-ghost: #929292;   /* lightest grey that clears 3:1 on --bg (brief: #CDCDCD, 1.5:1) */
  --chip: #ebebeb;
  --border: #e4e4e4;
  --pill: #1c1c1c;
  --pill-text: #ffffff;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);

  /* Type: one family, sizes as at a 1440px viewport, never below the minimum */
  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: max(13px, 0.868vw);       /* 12.5 @1440, min 13 */
  --fs-intro: max(15px, 1.111vw);      /* 16 @1440 */
  --fs-h1: max(36px, 3.194vw);         /* 46 @1440 */
  --fs-section: max(28px, 2.639vw);    /* 38 @1440 */
  --fs-card: max(20px, 1.667vw);       /* 24 @1440 */
  --fs-cta: max(40px, 5.278vw);        /* 76 @1440 */

  --track-body: -0.012em;
  --track-heading: -0.02em;
  --track-display: -0.033em;

  /* Space */
  --gutter: 20px;
  --gap: 12px;
  --section-above: 160px;
  --section-below: 100px;
  --nav-h: 70px;

  /* Shape */
  --r: 4px;
  --r-pocket: 24px;
  --r-pocket-inner: 20px;
  --icon-btn: 30px;
  --hairline: 1px solid var(--border);

  /* Motion (the "main" CustomEase is defined in JS with the same curve) */
  --ease: cubic-bezier(0.65, 0.01, 0.05, 0.99);
  --d-micro: 0.2s;
  --d-hover: 0.4s;
  --d-lift: 0.6s;
}

/* Colour: dark. Chosen in the nav, or the system's when nothing is saved. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #151515;
  --text: #ededed;
  --text-muted: #8a8a8a;
  --title-ghost: #5f5f5f;   /* clears 3:1 on --bg (brief: #3A3A3A, 1.7:1) */
  --chip: #1f1f1f;
  --border: #262626;
  --pill: #ededed;
  --pill-text: #0d0d0d;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
  :root {
    --section-above: 120px;
    --section-below: 56px;
    --nav-h: 60px;
  }
}
