/* ============================================================
   BASE — Reset, typography, layout primitives
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--pd-border-strong) transparent;
  hyphens: none;
  -webkit-hyphens: none;
}

body {
  margin: 0;
  font-family: var(--pd-font-body);
  font-size: var(--pd-text-base);
  line-height: 1.6;
  color: var(--pd-text-primary);
  background: var(--pd-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% -10%, oklch(20% 0.08 250 / 0.6) 0%, transparent 60%),
    radial-gradient(circle at 95% 10%, oklch(25% 0.1 85 / 0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--pd-bg-base) 0%, oklch(6% 0.005 250) 100%);
}

::selection {
  background: oklch(78% 0.16 82 / 0.8);
  color: oklch(8% 0.008 250);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pd-font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--pd-text-primary);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

h1 {
  font-size: var(--pd-display-lg);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--pd-text-3xl);
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--pd-text-2xl);
}

p {
  margin: 0;
  color: var(--pd-text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--pd-dur-fast) var(--pd-ease-out-quart);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pd-brand);
  outline-offset: 3px;
  border-radius: var(--pd-radius-sm);
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  color: inherit;
}

/* ---- Layout primitives ---- */
.pd-container {
  width: 100%;
  max-width: var(--pd-max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
}

.pd-narrow {
  max-width: var(--pd-max-w-narrow);
  margin-inline: auto;
}

.pd-section {
  padding-block: var(--pd-section);
  position: relative;
}

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

/* Eyebrow / Kicker */
.pd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--pd-space-2);
  font-family: var(--pd-font-mono);
  font-size: var(--pd-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pd-text-muted);
  margin-bottom: var(--pd-space-5);
}

.pd-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--pd-brand);
}

.pd-eyebrow--centered {
  justify-content: center;
}

/* Text helpers */
.pd-text-gradient {
  background: linear-gradient(110deg,
    var(--pd-brand-bright) 0%,
    var(--pd-brand) 40%,
    var(--pd-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pd-text-mono {
  font-family: var(--pd-font-mono);
  letter-spacing: -0.01em;
}

.pd-text-muted { color: var(--pd-text-muted); }
.pd-text-secondary { color: var(--pd-text-secondary); }
.pd-text-center { text-align: center; }
