/* jor.dev design tokens. Copy this file and fonts/ into a project and link it before your own CSS. */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Brand palette. These never change between light and dark mode. */
  --turquoise: #3dd6cf;
  --turquoise-600: #0e918c;
  --turquoise-700: #0b7a75;
  --pink: #f06aa5;
  --pink-700: #c4367a;
  --yellow: #ffcc33;
  --yellow-700: #8a6a00;
  --ink: #141414;
  --charcoal: #1a1d21;
  --paper: #f3f3f3;
  --white: #ffffff;

  /* Semantic colors, light mode. Use these in components, not the palette above.
     Text colors come from the resume: ink, and ink at 75 percent for secondary text. */
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: #e9ecef;
  --text: var(--ink);
  --text-muted: rgba(20, 20, 20, 0.75);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.25);
  --primary: var(--turquoise-700);
  --primary-fill: var(--turquoise);
  --on-primary-fill: var(--ink);
  --secondary: var(--pink-700);
  --secondary-fill: var(--pink);
  --on-secondary-fill: var(--ink);
  --highlight: var(--yellow);
  --on-highlight: var(--ink);
  --focus: var(--turquoise-600);
  --shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.08);

  /* Typography */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2.25rem;
  --leading-tight: 1.1;
  --leading-normal: 1.6;
  --leading-loose: 1.85;
  --tracking-heading: 0.025em;
  --tracking-wide: 0.12em;
  --tracking-wider: 0.28em;

  /* Spacing, a 0.25rem scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Shape */
  --radius-sm: 0.125rem;
  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-full: 999px;

  /* Layout */
  --measure: 65ch;
  --content-width: 60rem;
}

/* Dark mode follows the system everywhere. A page that must stay light, like the resume,
   sets data-theme="light" on the html element. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121417;
    --surface: var(--charcoal);
    --surface-2: #23272d;
    --text: #e8eaed;
    --text-muted: rgba(232, 234, 237, 0.72);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.3);
    --primary: var(--turquoise);
    --secondary: var(--pink);
    --focus: var(--turquoise);
    --shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --bg: #121417;
  --surface: var(--charcoal);
  --surface-2: #23272d;
  --text: #e8eaed;
  --text-muted: rgba(232, 234, 237, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.3);
  --primary: var(--turquoise);
  --secondary: var(--pink);
  --focus: var(--turquoise);
  --shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.4);
}
