/* Global frontend foundation — typography and reset verified against Eve reference. */

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

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

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

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

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

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

:root {
  --eve-color-text: #484f51;
  --eve-color-white: #ffffff;
  --eve-color-purple: #7855d7; /* brand purple: footer, fixed brand lines */
  --eve-color-violet: #924de1; /* accent violet: accent text, lines, arrows */
  --eve-color-green: #2cd2c5;
  --eve-color-page: #fefefe;
  --eve-font-body: "Roboto", Arial, sans-serif;
  --eve-font-display-extralight: "ClashGrotesk-Extralight", Arial, sans-serif;
  --eve-font-display-regular: "ClashGrotesk-Regular", Arial, sans-serif;
  --eve-font-display-medium: "ClashGrotesk-Medium", Arial, sans-serif;
}

/* Page accent — <body data-page-accent> is resolved once in _Layout (pageAccentTheme).
   Page-level accent elements read these; homepage section accents keep their own selectors. */
body[data-page-accent="violet"] {
  --eve-page-accent: var(--eve-color-violet);
  --eve-page-accent-arrow: url("/img/arrow-purple.svg");
}

body[data-page-accent="green"] {
  --eve-page-accent: var(--eve-color-green);
  --eve-page-accent-arrow: url("/img/arrow-green.svg");
}

/* Accent decorative lines (<img data-accent-line style="--eve-line-mask: url(…)">).
   The line asset (single-colour stroke on transparency) becomes an alpha mask filled with the page
   accent, so shape, size, transform and anti-aliasing stay identical while the colour is one accent
   end to end. The bitmap itself is shifted out of the box; without mask support the image shows as-is. */
@supports ((mask-image: none) or (-webkit-mask-image: none)) {
  body[data-page-accent] img[data-accent-line] {
    background-color: var(--eve-page-accent);
    -webkit-mask: var(--eve-line-mask) no-repeat 0 0 / 100% 100%;
    mask: var(--eve-line-mask) no-repeat 0 0 / 100% 100%;
    object-position: -100000px 0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--eve-color-text);
  background-color: var(--eve-color-page);
  font-family: var(--eve-font-body);
  font-size: 16px;
  line-height: 30px;
  overflow-x: hidden;
}

body,
p,
input {
  font-family: var(--eve-font-body);
  font-size: 16px;
  line-height: 30px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--eve-font-display-extralight);
  font-weight: 200;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

main {
  display: block;
  min-height: 50vh;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
