:root {
  --ngg-mineral: #e9ece4;
  --ngg-mineral-deep: #dfe3d8;
  --ngg-paper: #f2f4ee;
  --ngg-midnight: #0e1c33;
  --ngg-midnight-soft: #1b2c48;
  --ngg-ink: #10203a;
  --ngg-cobalt: #1c46c9;
  --ngg-cobalt-bright: #2f5be0;
  --ngg-ice: #cad9e8;
  --ngg-ice-deep: #b4c8dc;
  --ngg-lime: #bfe83a;
  --ngg-lime-deep: #a8cf27;
  --ngg-line: rgba(14, 28, 51, 0.16);
  --ngg-line-strong: rgba(14, 28, 51, 0.34);
  --ngg-shadow: rgba(14, 28, 51, 0.12);
  --ngg-focus: #1c46c9;
  --ngg-danger: #b4341f;
  --ngg-rail: 84px;
  --ngg-radius: 3px;
  --ngg-gap: clamp(1.25rem, 3vw, 2.75rem);
  --ngg-block: clamp(3rem, 7vw, 6.5rem);
  --ngg-measure: 68ch;
  --ngg-font: "Oswald", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  font-family: var(--ngg-font);
  background-color: var(--ngg-mineral);
  color: var(--ngg-ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ngg-mineral);
  background-image:
    linear-gradient(to right, var(--ngg-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ngg-line) 1px, transparent 1px);
  background-size: clamp(48px, 8vw, 96px) clamp(48px, 8vw, 96px);
  color: var(--ngg-ink);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ngg-midnight);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem);
}

h3 {
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  letter-spacing: 0.01em;
}

h4 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--ngg-measure);
}

a {
  color: var(--ngg-cobalt);
  text-decoration: none;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ngg-focus);
  outline-offset: 3px;
  border-radius: 1px;
}

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

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  font-weight: 600;
  color: var(--ngg-midnight);
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.ngg-skip {
  position: absolute;
  left: 0.5rem;
  top: -3.5rem;
  z-index: 999;
  background: var(--ngg-midnight);
  color: var(--ngg-paper);
  padding: 0.75rem 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.18s ease;
}

.ngg-skip:focus {
  top: 0.5rem;
  text-decoration: none;
}

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

.ngg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ngg-cobalt);
}

.ngg-eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  background: var(--ngg-cobalt);
}

.ngg-chapter-mark {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ngg-midnight-soft);
}

.ngg-tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ngg-ice);
  color: var(--ngg-midnight);
  border: 1px solid var(--ngg-line-strong);
}

.ngg-tag--lime {
  background: var(--ngg-lime);
  color: var(--ngg-midnight);
  border-color: var(--ngg-lime-deep);
}

.ngg-tag--cobalt {
  background: var(--ngg-cobalt);
  color: var(--ngg-paper);
  border-color: var(--ngg-cobalt);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------
   Text-wrapping utilities (used inline on headings and lead copy)
   --------------------------------------------------------------- */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* ---------------------------------------------------------------
   Page-scope body hooks. These carry no visual style of their own;
   they exist so page-specific overrides can be targeted safely.
   Declared here so every class in the markup has a matching rule.
   --------------------------------------------------------------- */
.ngg-page-home,
.ngg-page-rating,
.ngg-page-recommend,
.ngg-page-capabilities,
.ngg-page-ease,
.ngg-page-trends,
.ngg-page-about,
.ngg-page-privacy,
.ngg-page-terms,
.ngg-page-success {
  /* page scope hook: no base styling required */
}
