/* ============================================================
   PRIVONIX TECHNOLOGIES: BASE v2
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
strong { font-weight: var(--fw-semibold); }

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-4);
  z-index: 9999;
  padding: var(--s-3) var(--s-6);
  background: var(--c-text);
  color: #fff;
  font-weight: var(--fw-semibold);
  border-radius: var(--r-md);
  transition: top var(--tr-fast);
}
.skip-link:focus { top: var(--s-4); }

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* --- Container --- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--text { max-width: var(--max-w-text); }

/* --- Section padding --- */
.section { padding-block: var(--s-24); }
.section--sm { padding-block: var(--s-16); }
.section--lg { padding-block: var(--s-32); }

.section--dark {
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
}
.section--dark-2 {
  background: var(--c-bg-dark-2);
  color: var(--c-text-inv);
}
.section--subtle { background: var(--c-bg-subtle); }

/* --- Eyebrow label --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: var(--s-4);
}

.eyebrow--light {
  color: rgba(255,255,255,0.45);
}

.eyebrow--dot::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* --- Headings defaults --- */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}

h1 { font-size: var(--t-6xl); }
h2 { font-size: var(--t-4xl); }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); font-weight: var(--fw-semibold); }

p {
  color: var(--c-text-3);
  line-height: var(--lh-relaxed);
  max-width: 64ch;
}

/* Dark text overrides */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--c-text-inv); }
.section--dark p,
.section--dark-2 p { color: var(--c-text-inv-2); }
.section--dark-2 h1,
.section--dark-2 h2,
.section--dark-2 h3,
.section--dark-2 h4 { color: var(--c-text-inv); }

/* --- Divider --- */
.divider { border: none; height: 1px; background: var(--c-border); }

/* --- Responsive breakpoints ---
   --mobile:  < 640px
   --tablet:  640-1024px
   --desktop: > 1024px
--------------------------------- */

@media (max-width: 1024px) {
  h1 { font-size: var(--t-5xl); }
  h2 { font-size: var(--t-3xl); }
  .section { padding-block: var(--s-16); }
  .section--lg { padding-block: var(--s-20); }
}

@media (max-width: 640px) {
  h1 { font-size: var(--t-4xl); }
  h2 { font-size: var(--t-2xl); }
  .section { padding-block: var(--s-12); }
}
