/* GetXtra Tools 2.0 — reset, typography and layout primitives. */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
dd,
td {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  font-weight: 650;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--brand-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

kbd {
  display: inline-flex;
  align-items: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
}

::selection {
  background: var(--brand-soft);
  color: var(--text);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

[hidden] {
  display: none !important;
}

/* ---------- Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 1em;
  height: 1em;
}

.icon-lg {
  width: 1.5em;
  height: 1.5em;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.stack > * + * {
  margin-top: var(--stack-gap, var(--space-4));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3));
}

.grid-auto {
  display: grid;
  gap: var(--grid-gap, var(--space-4));
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min, 260px)), 1fr));
}

.section {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.section-sm {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head {
  max-width: 680px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.section-head p {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-lg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--brand-text);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.subtle {
  color: var(--text-subtle);
}

.small {
  font-size: var(--text-sm);
}

.text-center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-fg);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform var(--duration) var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* Prose (static pages, legal text) */
.prose {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2em;
  color: var(--text);
  font-size: var(--text-2xl);
}

.prose h3 {
  margin-top: 1.6em;
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose strong {
  color: var(--text);
}

/* Prevent transitions flashing while the theme is applied. */
.no-transitions *,
.no-transitions *::before,
.no-transitions *::after {
  transition: none !important;
}
