/* ==========================================================================
   Base
   Design tokens, reset and default typography. Everything that is not tied
   to a specific component lives here.
   ========================================================================== */


/* Regular */
@font-face {
  font-family: 'Google Sans Local';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/GoogleSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Google Sans Local';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/GoogleSans-Italic.ttf') format('truetype');
}

/* Medium */
@font-face {
  font-family: 'Google Sans Local';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/GoogleSans-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Google Sans Local';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/GoogleSans-MediumItalic.ttf') format('truetype');
}

/* Semi-Bold */
@font-face {
  font-family: 'Google Sans Local';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/GoogleSans-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Google Sans Local';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/GoogleSans-SemiBoldItalic.ttf') format('truetype');
}

/* Bold */
@font-face {
  font-family: 'Google Sans Local';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/GoogleSans-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Google Sans Local';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/GoogleSans-BoldItalic.ttf') format('truetype');
}

/* Apply locally defined family first
body, * {
  font-family: 'Google Sans Local', sans-serif !important;
}
*/


:root {
  --color-text: #3f3f3e;
  --color-dark: #3f3f3e;
  --color-accent: #ffcd1c;
  --color-white: #ffffff;
  --color-muted: #9aa2a7;
  --color-surface: #f5f5f3; /* light grey for hover states and soft panels */
  --color-border: #e4e4e1; /* hairline borders around boxes and cards */

  --font-base: "Google Sans Local", sans-serif;
  --font-size-base: 15px;
  --line-height-base: 1.6;

  --container-width: 1200px;
  --page-padding: 20px; /* space between content and the screen edge */
  --gutter: 2.12766%; /* horizontal gap of the 12 column grid */

  --radius-sm: 3px; /* menu items, small images */
  --radius: 6px; /* boxes, cards, title bars */
  --radius-lg: 10px; /* slideshow, dropdowns */

  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.05), 0 2px 8px rgba(20, 20, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 20, 20, 0.06), 0 16px 40px rgba(20, 20, 20, 0.08);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);  --transition: 0.25s var(--ease);
}

/* ---- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-accent);
  color: var(--color-dark);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

img,
svg,
video,
canvas,
audio {
  max-width: 100%;
  height: auto;
  border: 0;
  box-sizing: border-box;
  vertical-align: middle;
}

iframe {
  max-width: 100%;
  border: 0;
}

/* ---- Typography ----------------------------------------------------------- */

p {
  margin: 0 0 9px;
  padding: 5px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 9px 0;
  color: inherit;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

h1 { font-size: 36px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 16px; font-weight: 500; line-height: 36px; }
h3 { font-size: 22.75px; font-weight: 500; line-height: 36px; }
h4 { font-size: 16.25px; }
h5 { font-size: 13px; }
h6 { font-size: 11.05px; }

strong,
b {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* ---- Links ---------------------------------------------------------------- */

a {
  color: var(--color-accent);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

h2 a:hover,
h2 a:focus,
h3 a:hover,
h3 a:focus {
  text-decoration: none;
}

/* ---- Lists ---------------------------------------------------------------- */

ul,
ol {
  margin: 0 0 0 35px;
  padding: 0.75em 0;
}

ul {
  list-style-image: url("/assets/img/icons/yellow-arrow-right.svg");
}

li {
  line-height: var(--line-height-base);
}

/* ---- Utilities ------------------------------------------------------------ */

/* the padding is added to the max-width, so content stays 1200px wide on desktop */
.container {
  max-width: calc(var(--container-width) + 2 * var(--page-padding));
  margin: 0 auto;
  padding: 0 var(--page-padding);
  box-sizing: border-box;
}

@media (max-width: 480px) {
  :root {
    --page-padding: 16px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
