/* 4D Photo BrandBook: Color and Typography.
 * https://www.figma.com/design/vg3qIDLuuuHG5QUcylvsGm
 * Google Fonts Latin subsets (Inter v20, Rubik v31); licenses in ../fonts.
 */
@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-496a588b.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/rubik-medium-latin-154c8e26.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page-background: var(--color-white);
  --surface: var(--color-white);
  --action-background: var(--color-crystal-blue);
  --action-hover: var(--color-deep-navy);
  --surface-tint: var(--color-ice-blue);
  --surface-muted: var(--color-mist);
  --text-color: var(--color-deep-navy);
  --link-color: var(--color-crystal-blue);
  --color-crystal-blue: #064c7f;
  --color-deep-navy: #102b42;
  --color-sky-blue: #4a90c2;
  --color-ice-blue: #e8f3fb;
  --color-white: #ffffff;
  --color-mist: #f4f7fa;
  --color-slate: #526675;
  --color-border: #c5d8e6;
  --color-error: #b3261e;

  --radius-control: 0.625rem;
  --control-height: 3rem;
  --page-gutter: 1.25rem;

  --font-heading: "Rubik", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --text-h1: 2.25rem;
  --leading-h1: 1.222222;
  --text-h2: 1.75rem;
  --leading-h2: 1.285714;
  --text-h3: 1.5rem;
  --leading-h3: 1.333333;
  --text-body: 1.125rem;
  --leading-body: 1.555556;
  --text-small: 1rem;
  --leading-small: 1.5;
  --text-caption: 0.875rem;
  --leading-caption: 1.428571;
}

body {
  margin: 0;
  background-color: var(--page-background);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button, label, .text-label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: var(--leading-small);
}

.text-small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

small, .text-caption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
}

.text-muted {
  color: var(--color-slate);
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* The brand book gives narrow/wide sizes; use 48rem as the initial breakpoint. */
@media (min-width: 48rem) {
  :root {
    --page-gutter: 2.5rem;
    --text-h1: 3rem;
    --leading-h1: 1.166667;
    --text-h2: 2rem;
    --leading-h2: 1.25;
  }
}

@media (min-width: 80rem) {
  :root {
    --page-gutter: 5rem;
  }
}
