:root {
  --color-background: #0a0a0a;
  --color-surface: #111;
  --color-surface-raised: #1d1d1d;
  --color-line: #2e2e2e;
  --color-accent: #b8935a;
  --color-accent-soft: #d4a96a;
  --color-accent-muted: #8b6f52;
  --color-text: #f5f0eb;
  --color-text-muted: #a7a09a;
  --color-text-faint: #5c5650;
  --color-text-eyebrow:#b8935a;
  --color-text-link: #f5f0eb;
  --color-text-link-hover: #b8935a;
  --font-display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;
  --content-width: 1600px;
  --reading-width: 760px;
  --transition-fast: 180ms ease;
  --transition-medium: 320ms ease;

  /* gradients — nav / chrome */
  --gradient-nav: linear-gradient(to bottom, rgba(10, 10, 10, 0.96), rgba(10, 10, 10, 0));

  /* gradients — decorative */
  --gradient-hero-glow: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(184, 147, 90, 0.08), transparent 68%);
  --gradient-divider: linear-gradient(to right, transparent, var(--color-accent-muted), transparent);
  --gradient-divider-strong: linear-gradient(to right, transparent, var(--color-accent-muted), var(--color-accent-muted), transparent);

  /* gradients — cards / surfaces */
  --gradient-card-overlay: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
  --gradient-card-caption: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  --gradient-card-shade:
    linear-gradient(to top, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.62) 38%, rgba(5, 5, 5, 0.08) 72%),
    linear-gradient(to right, rgba(5, 5, 5, 0.18), transparent 60%);
  --gradient-card-shade-active:
    linear-gradient(to top, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.54) 44%, rgba(5, 5, 5, 0.04) 76%),
    linear-gradient(to right, rgba(5, 5, 5, 0.14), transparent 62%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

em {
  color: var(--color-accent);
}

.page-section {
  padding: var(--space-2xl) var(--space-xl);
}

.section-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  margin-bottom: 5rem;
}

.section-heading__eyebrow,
.hero-section__eyebrow,
.privacy-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-eyebrow);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.section-heading__eyebrow::before,
.hero-section__eyebrow::before,
.privacy-hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--color-text-eyebrow);
  flex: 0 0 auto;
}

.section-heading__title,
.hero-section__title,
.privacy-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
}

.section-heading__title {
  margin-top: var(--space-sm);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
}

.section-heading__note {
  max-width: 310px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: right;
}

.soft-divider {
  height: 1px;
  background: var(--gradient-divider);
}

@media (max-width: 900px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 5rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 3rem;
  }

  .section-heading__note {
    max-width: var(--reading-width);
    text-align: left;
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 1.25rem;
    --space-2xl: 4rem;
  }
}

@media (max-width: 360px) {
  :root {
    --space-xl: 1rem;
    --space-2xl: 3.5rem;
  }

  .page-section {
    padding-inline: 1rem;
  }

  .section-heading {
    gap: 0.75rem;
    margin-bottom: 2.25rem;
  }

  .section-heading__eyebrow,
  .hero-section__eyebrow,
  .privacy-hero__eyebrow {
    gap: 0.6rem;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
  }

  .section-heading__eyebrow::before,
  .hero-section__eyebrow::before,
  .privacy-hero__eyebrow::before {
    width: 22px;
  }

  .section-heading__title {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }

  .section-heading__note {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

body.light-mode {
  --light-logo-url: url("../assets/images/logos/paip-logo-horizontal-primary-lm-normalized.png");
  --color-background: #f8f5f0;
  --color-surface: #ffffff;
  --color-surface-raised: #efe7dd;
  --color-line: #d8cabb;
  --color-accent: #b8935a;
  --color-accent-soft: #d4a96a;
  --color-accent-muted: #8b6f52;
  --color-text: #847e77;
  --color-text-muted: #6e655c;
  --color-text-faint: #a09589;
  --color-text-eyebrow:#6e655c;
  --color-text-link: #f5f0eb;
  --color-text-link-hover: #b8935a;

  --gradient-nav: linear-gradient(to bottom, rgba(139, 111, 82, 0.78), rgba(139, 111, 82, 0));
  --gradient-hero-glow: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(184, 147, 90, 0.12), transparent 68%);
  --gradient-card-overlay: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.07) 100%);
  --gradient-card-caption: linear-gradient(to top, rgba(43, 36, 31, 0.88), transparent);
  --gradient-card-shade:
    linear-gradient(to top, rgba(239, 231, 221, 0.98) 0%, rgba(239, 231, 221, 0.62) 38%, rgba(239, 231, 221, 0.08) 72%),
    linear-gradient(to right, rgba(239, 231, 221, 0.18), transparent 60%);
  --gradient-card-shade-active:
    linear-gradient(to top, rgba(239, 231, 221, 0.98) 0%, rgba(239, 231, 221, 0.54) 44%, rgba(239, 231, 221, 0.04) 76%),
    linear-gradient(to right, rgba(239, 231, 221, 0.14), transparent 62%);
}
