@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-500-700.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-400-600.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-400-500.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --background: #f4f1eb;
  --card: #faf9f5;
  --field-focus-fill: #ffffff;
  --foreground: #222528;
  --muted: #eeefea;
  --muted-foreground: #595e60;
  --primary: #d8ff6b;
  --primary-foreground: #172010;
  --secondary-fill: #ffffff99;
  --accent: #edf3df;
  --accent-foreground: #455824;
  --ring: #455824;
  --border: #d4d8d077;
  --row-border: #d4d8d055;
  --list-border: #d6d9d177;
  --destructive: #963c34;
  --destructive-surface: #f5e2dd;
  --nested-fill: #ffffff57;
  --island-fill: #ffffffa8;
  --eyebrow-fill: #ffffff88;
  --menu-fill: #faf9f3;

  --bezel-shell: linear-gradient(145deg, #ffffff99, #dadcd680);
  --core-fill: linear-gradient(145deg, #ffffffec, #faf9f5df);
  --ambient-mesh: radial-gradient(ellipse at 83% 8%, #edf3df, transparent 48%), radial-gradient(ellipse at 12% 74%, #e4e6e4a0, transparent 54%);
  --hero-glow: radial-gradient(ellipse, #edf3df, transparent 68%);
  --portrait-fill: linear-gradient(155deg, #edf3df, #e5e7dd);
  --dial-ring: conic-gradient(#455824 0deg 275deg, #dfe6df 275deg);
  --dial-face: linear-gradient(140deg, #ffffff, #f1f1e9);

  --bezel-shadow: inset 0 1px 0 #ffffffee, 0 22px 62px -30px #343b3029;
  --core-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #22252806;
  --island-shadow: inset 0 1px 0 #ffffff, 0 8px 32px #343b3010;
  --eyebrow-shadow: inset 0 1px 0 #ffffff;
  --primary-shadow: inset 0 1px 1px #ffffff99, 0 4px 12px #30362b0c;
  --secondary-shadow: inset 0 1px 0 #ffffff, 0 2px 10px #27362e08;
  --nest-shadow: inset 0 1px 1px #ffffff77;
  --mark-shadow: inset 0 1px 0 #ffffff99;
  --field-shadow: inset 0 2px 4px #30362b07, inset 0 -1px 0 #ffffff;
  --menu-shadow: 0 20px 40px #27362e1a;
  --dial-shadow: 0 16px 44px #edf3df, inset 0 1px 0 #ffffff;
  --dial-face-shadow: inset 0 1px 0 #ffffff, 0 1px 6px #30352c12;

  --text-brand: 21px;
  --control-height: 50px;
  --field-height: 49px;
  --nested-size: 38px;
  --reach: 44px;
  --mark-size: 31px;
  --spinner-size: 18px;
  --bar-height: 6px;
  --ring-width: 3px;
  --ring-offset: 4px;
  --nudge: 2px;
  --press-scale: 0.97;
  --enter-rise: 20px;

  --radius-field: 17px;
  --radius-menu: 25px;
  --radius-core: 32px;
  --radius-bezel: 39px;
  --radius-pill: 99px;
  --bezel-pad: 7px;
  --space-card: 30px;
  --cta-gap: 22px;

  --gutter: 44px;
  --page-top: 24px;
  --page-bottom: 64px;
  --max-width: 1380px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-enter: 850ms;
  --duration-control: 450ms;
  --duration-nest: 500ms;
  --stagger: 70ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --background: #151715;
    --card: #1d201e;
    --field-focus-fill: #262a27;
    --foreground: #f1efe8;
    --muted: #262a27;
    --muted-foreground: #a6aaa3;
    --secondary-fill: #ffffff14;
    --accent: #252c1d;
    --accent-foreground: #d8ff6b;
    --ring: #d8ff6b;
    --border: #ffffff1f;
    --row-border: #ffffff14;
    --list-border: #ffffff1a;
    --destructive: #f0a196;
    --destructive-surface: #3a2421;
    --nested-fill: #ffffff40;
    --island-fill: #1d201ee0;
    --eyebrow-fill: #ffffff0d;
    --menu-fill: #1d201e;

    --bezel-shell: linear-gradient(145deg, #ffffff1a, #ffffff06);
    --core-fill: linear-gradient(145deg, #222623, #1c1f1d);
    --ambient-mesh: radial-gradient(ellipse at 83% 8%, #252c1d, transparent 48%), radial-gradient(ellipse at 12% 74%, #1f2320, transparent 54%);
    --hero-glow: radial-gradient(ellipse, #252c1d, transparent 68%);
    --portrait-fill: linear-gradient(155deg, #252c1d, #1f2320);
    --dial-ring: conic-gradient(#d8ff6b 0deg 275deg, #2f332f 275deg);
    --dial-face: linear-gradient(140deg, #222623, #1c1f1d);

    --bezel-shadow: inset 0 1px 0 #ffffff1a, 0 22px 62px -30px #00000099;
    --core-shadow: inset 0 1px 0 #ffffff12;
    --island-shadow: inset 0 1px 0 #ffffff12, 0 8px 32px #00000040;
    --eyebrow-shadow: inset 0 1px 0 #ffffff12;
    --secondary-shadow: inset 0 1px 0 #ffffff12, 0 2px 10px #00000030;
    --field-shadow: inset 0 2px 4px #00000030;
    --menu-shadow: 0 20px 40px #00000060;
    --dial-shadow: 0 16px 44px #252c1d, inset 0 1px 0 #ffffff12;
    --dial-face-shadow: inset 0 1px 0 #ffffff12;
  }
}

@media (max-width: 1050px) {
  :root {
    --gutter: 28px;
    --page-bottom: 24px;
    --space-card: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --text-brand: 19px;
    --radius-core: 27px;
    --radius-bezel: 33px;
    --bezel-pad: 6px;
    --space-card: 24px;
    --cta-gap: 14px;
    --gutter: 18px;
    --page-top: 16px;
    --page-bottom: 35px;
  }
}
