/* Simple Honest Loans: design tokens. Colours come from the client's logo and brand board. */
:root {
  color-scheme: light;

  /* colour */
  --color-page: oklch(100% 0 0);
  --color-shape: oklch(97% 0.008 255);
  --color-ring: oklch(93.5% 0.014 255);
  --color-ink: oklch(25.9% 0.062 254.8);
  --color-text: oklch(31% 0.035 255);
  --color-muted: oklch(47% 0.025 256);
  --color-rule: oklch(88% 0.008 256);
  --color-accent: oklch(56.5% 0.16 39);
  --color-accent-deep: oklch(48.5% 0.142 38);
  --color-on-accent: oklch(100% 0 0);
  --color-focus: oklch(25.9% 0.062 254.8);
  --color-field: oklch(62% 0.02 256);
  --color-error: oklch(48% 0.17 27);
  --shadow-card: 0 4px 6px oklch(25.9% 0.062 254.8 / 0.05), 0 12px 32px oklch(25.9% 0.062 254.8 / 0.09);

  /* type */
  --font-sans: "Sora", ui-sans-serif, system-ui, sans-serif;
  --text-legal: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-lead: 1.125rem;
  --text-h2: 1.5rem;
  --text-code: clamp(6rem, 18vw, 11rem);
  --text-banner: clamp(1rem, 5.3vw, 1.5rem);
  --text-band: clamp(1.25rem, 1.9vw + 0.42rem, 2.125rem);
  --text-readout: 3rem;
  --text-section: clamp(1.75rem, 1.6vw + 1.2rem, 2.25rem);

  /* space */
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-ml: 32px;
  --space-xl: 40px; --space-xlg: 48px; --space-2xl: 64px; --space-3xl: 96px;
  --section-gap: 120px;
  --container: 1250px;
  --gutter: 24px;
  --hero-measure: 480px;
  --hero-space: 1.15;
  --picture-measure: 512px;
  --measure: 70ch;
  --form-measure: 36rem;
  --aside-width: 320px;
  --rays-width: 2200px;
  --rays-height: 1100px;

  /* shape */
  --radius-control: 8px;
  --radius-panel: 14px;
  --radius-pill: 999px;
  --button-height: 48px;
  --button-height-hero: 56px;
  --button-width: 235px;
  --thumb: 28px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@media (max-width: 60rem) {
  :root { --section-gap: 88px; }
}
@media (max-width: 40rem) {
  :root { --section-gap: 64px; --gutter: 16px; }
}
