
/* ==========================================
   ADGUARDDNS.ORG
   GLOBAL DESIGN SYSTEM
========================================== */

:root {

  /* Background Colors */
  --color-background: #FAFAFC;
  --color-surface: #FFFFFF;

  /* Primary Branding */
  --color-primary: #542177;
  --color-primary-hover: #4C2365;
  --color-primary-light: #F3EDF7;

  /* Text */
  --color-heading: #24212B;
  --color-text: #403948;
  --color-muted: #696571;

  /* Borders */
  --color-border: #E9E4EF;

  /* Coral Accent */
  --color-accent: #C83824;
  --color-accent-hover: #A92D1B;
  --color-accent-bright: #FF5B42;

  /* Status Colors */
  --color-success: #168557;
  --color-warning: #B7791F;
  --color-error: #C34242;

  /* Typography */
  --font-heading:
    "Plus Jakarta Sans", system-ui, sans-serif;

  --font-body:
    "Inter", system-ui, sans-serif;

  /* Layout */
  --container-width: 1200px;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;

  /* Radius */
  --radius-small: 8px;
  --radius-button: 10px;
  --radius-card: 16px;

  /* Transitions */
  --transition-fast: 180ms ease;

}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  padding: 0;
  min-width: 0;

  background: var(--color-background);
  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary-hover);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Typography */
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(32px, 7vw, 56px);
}

h2 {
  font-size: clamp(26px, 5vw, 40px);
}

h3 {
  font-size: clamp(20px, 3vw, 24px);
}

p {
  margin: 0;
}

/* Global Container */
.container {
  width: calc(100% - 32px);
  max-width: var(--container-width);
  margin-inline: auto;
}

/* Section Spacing */
.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* Main Content */
main {
  display: block;
  min-width: 0;
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;

  padding: 12px 18px;
  border-radius: 8px;

  background: var(--color-heading);
  color: #FFFFFF;

  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
  color: #FFFFFF;
}

/* Tablet */
@media (min-width: 768px) {

  .container {
    width: calc(100% - 48px);
  }

  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

}

/* Desktop */
@media (min-width: 1100px) {

  .container {
    width: calc(100% - 80px);
  }

  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}
