/* ============================================================
   FONT FACE
   ============================================================ */

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

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

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */

:root {
  --color-bg:                #05070d;
  --color-surface:           #101527;
  --color-surface-2:         #0d1120;
  --color-blue:              #4b99cc;
  --color-red:               #f5424d;
  --color-cyan:              #39d9ff;
  --color-gold:              #ffc247;
  --color-white:             #ffffff;
  --color-muted:             rgba(255, 255, 255, 0.78);
  --color-muted-soft:        rgba(255, 255, 255, 0.55);

  --shadow-glow-blue:        0 0 2rem rgba(75, 153, 204, 0.35);
  --shadow-glow-red:         0 0 2rem rgba(245, 66, 77, 0.35);
  --shadow-glow-blue-strong: 0 0 3.5rem rgba(75, 153, 204, 0.55);
  --shadow-glow-red-strong:  0 0 3.5rem rgba(245, 66, 77, 0.55);

  --radius-sm:               0.5rem;
  --radius-md:               1rem;
  --radius-xl:               1.5rem;

  --transition-fast:         150ms ease;
  --transition-base:         250ms ease;

  --font-main:               'Unbounded', sans-serif;

  --container-max:           1280px;
  --container-padding:       1.25rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--color-blue) var(--color-bg);
  scrollbar-width: thin;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-white);
  background-color: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

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

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

/* ============================================================
   FOCUS
   ============================================================ */

:focus-visible {
  outline: 0.2rem solid var(--color-blue);
  outline-offset: 0.25rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   SKIP LINK
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

p {
  color: var(--color-muted);
  line-height: 1.7;
}

strong {
  color: var(--color-white);
  font-weight: 700;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    --container-padding: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    --container-padding: 2.5rem;
  }
}

.section {
  padding-block: 5rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 7rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 9rem;
  }
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.section__text {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 54ch;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .section__text {
    font-size: 1.0625rem;
  }
}

/* ============================================================
   TEXT UTILITIES
   ============================================================ */

.text-red    { color: var(--color-red); }
.text-blue   { color: var(--color-blue); }
.text-cyan   { color: var(--color-cyan); }
.text-muted  { color: var(--color-muted); }
.text-white  { color: var(--color-white); }
.text-center { text-align: center; }
.text-bold   { font-weight: 700; }

/* ============================================================
   SURFACE UTILITIES
   ============================================================ */

.surface {
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.surface-2 {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}

/* ============================================================
   VISUALLY HIDDEN
   ============================================================ */

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