/* Mash Global — Design Tokens
   Pulled directly from the brand book. Do not invent new colors here. */

@font-face {
  font-family: "ArchivGrotesk";
  src: url("../assets/Fonts/ArchivGrotesk-Hairline.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ArchivGrotesk";
  src: url("../assets/Fonts/ArchivGrotesk-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ArchivGrotesk";
  src: url("../assets/Fonts/ArchivGrotesk-Normal.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ArchivGrotesk";
  src: url("../assets/Fonts/ArchivGrotesk-Regular.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ArchivGrotesk";
  src: url("../assets/Fonts/ArchivGrotesk-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ArchivGrotesk";
  src: url("../assets/Fonts/ArchivGrotesk-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primary palette */
  --mash-orange: #f74f04;
  --mash-grey-blue: #859aac;
  --mash-dusk-blue: #092a33;
  --mash-cosmo-black: #000000;
  --mash-gainsboro: #dcdddf;
  --mash-anti-flash: #f4f4f1;
  --mash-white: #ffffff;

  /* Secondary palette */
  --mash-green: #39c690;
  --mash-teal: #4eccb4;
  --mash-violet: #6772d3;
  --mash-lime: #b9d359;

  /* Semantic */
  --ink: var(--mash-dusk-blue);
  --ink-soft: #3a5560;
  --paper: var(--mash-anti-flash);
  --paper-plain: var(--mash-white);
  --rule: #d8dadb;
  --accent: var(--mash-orange);

  /* Type scale — editorial, confident */
  --font-display: "ArchivGrotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --fs-mega: 56px;
  --fs-hero: clamp(44px, 7.2vw, 112px);
  --fs-display: clamp(36px, 5vw, 80px);
  --fs-h1: clamp(32px, 4vw, 64px);
  --fs-h2: clamp(26px, 3vw, 44px);
  --fs-h3: clamp(20px, 1.8vw, 28px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-micro: 12px;

  /* Layout — one consistent horizontal rhythm across every section */
  --pad-page: clamp(28px, 5.5vw, 88px);
  --max-w: 1440px;
  --radius: 14px;
  --radius-lg: 28px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark mode swap — toggled by Tweaks */
[data-theme="dark"] {
  --ink: var(--mash-anti-flash);
  --ink-soft: #b5c4cc;
  --paper: var(--mash-dusk-blue);
  --paper-plain: #061e25;
  --rule: #1c3e49;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .4s var(--ease-out), color .4s var(--ease-out);
}

body { overflow-x: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}

p { margin: 0; }

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

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

img { max-width: 100%; display: block; }

.wrap {
  padding-left: var(--pad-page);
  padding-right: var(--pad-page);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Selection */
::selection { background: var(--mash-orange); color: white; }

/* Focus ring */
:focus-visible { outline: 2px solid var(--mash-orange); outline-offset: 3px; border-radius: 4px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
