/*
Aron Schöffer - Jan 2025
*/

@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url(../fonts/Roboto_Flex/RobotoFlex-VariableFont.ttf);
}

@font-face {
  font-family: "Rosario";
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  src: url(../fonts/Rosario/Rosario-VariableFont_wght.ttf);
}

:root {
  /* We don't support dark mode for now. */
  /* color-scheme: light dark; */

  /* #region Material Design*/
  /*
  We loosely follow the Material Design color system.
  @see: https://m3.material.io/styles/color/static/baseline#d3170e61-484c-4c35-a847-2aae11803ccb
  @see: https://m3.material.io/styles/color/roles
  */

  --kn-color-surface-container-lowest: light-dark(#ffffff, #000000);
  --kn-color-surface-container-low: light-dark(#fcfcfc, #030303);
  --kn-color-surface-container: light-dark(#f9f9f9, #060606);
  --kn-color-surface-container-high: light-dark(#f6f6f6, #090909);
  --kn-color-surface-container-highest: light-dark(#f3f3f3, #4a4a4a);

  --kn-color-on-surface: light-dark(#000000, #ffffff);
  --kn-color-on-surface-variant: light-dark(#767676, #9d9d9d);
  --kn-color-outline: light-dark(#cac9c9, #1e1e1e);
  --kn-color-outline-variant: light-dark(#e1e1e1, #1e1e1e);

  /** Text styles */
  --kn-font-family: "Roboto Flex";
  --kn-brand-font-family: "Rosario";

  --kn-font-size-title-l: 1.43rem;
  --kn-font-size-title-m: 1.14rem;
  --kn-font-size-title-s: 1rem;

  --kn-font-size-body-l: 1.14rem;
  --kn-font-size-body-m: 1rem;
  --kn-font-size-body-s: 0.86rem;

  /* #endregion */

  --kn-mobile-breakpoint: 600px;
}

/* #region CSS Reset */
/*
  The CSS reset was originally based on this:
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

p {
  line-height: 1.5;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  font-family: var(--kn-font-family);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

ul {
  padding-inline-start: 0;
}
/* #endregion */

/* #region General styles */

* {
  font-family: var(--kn-font-family);
  color: var(--kn-color-on-surface);
  text-decoration: inherit;
}

p {
  font-size: var(--kn-font-size-body-m);
}

svg {
  width: 100%;
  height: 100%;
}

button {
  border: none;
  background-color: inherit;
  padding: 0;
  height: fit-content;
  cursor: pointer;
}

/* #endregion */

.hidden {
  display: none;
}
