@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Archivo+Black&display=swap');

:root {
  /* Colors */
  --color-inkwell-black: #17150e;
  --color-cloud-white: #ffffff;
  --color-porcelain-gray: #f0f7f6;
  --color-obsidian-black: #000000;
  --color-silver-mist: #e2e2e2;
  --color-genius-yellow: #cccc25;
  --gradient-genius-yellow-gradient: linear-gradient(135deg, rgb(204, 204, 37), rgb(202, 205, 120));
  --color-sky-violet: #9fa6ff;
  --gradient-sky-violet-gradient: linear-gradient(135deg, rgb(159, 166, 255), rgb(179, 186, 232));

  /* Typography — Font Families */
  /* Archivo carries the whole page; Archivo Black is the display cut. One
     family in two weights reads as a deliberate choice rather than a pairing
     picked off a list — and Archivo Black is genuinely heavy, which is the
     point. To try an alternative, swap the display line and the @import above:
     'Oswald' (tall, condensed, event-poster) or 'Anton' (heaviest, flyer). */
  --font-basel-grotesk-book: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --font-basel-classic-book: 'Archivo Black', 'Archivo', sans-serif;

  /* Typography — Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Spacing Scale (Base Unit: 4px) */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-56: 56px;
  --spacing-80: 80px;
  --spacing-96: 96px;
  --spacing-108: 108px;
  --spacing-120: 120px;

  /* Layout Constants */
  --section-gap: 80px;
  --card-padding: 20px;
  --element-gap: 8px;

  /* Border Radii */
  --radius-lg: 8px;
  --radius-cards: 8px;
  --radius-badges: 8px;
  --radius-buttons: 1440px;
  --radius-interactiveelements: 1440px;
  --radius-nav: 40px;
  --radius-full: 1440px;

  /* Ambient Multi-Layer Shadows (Design System Craftsman) */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-header: 0 8px 24px -4px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(176, 38, 158, 0.18);
  color: var(--color-inkwell-black);
}

html {
  /* The header pill occupies the top 80px; without this every in-page anchor
     parks its heading underneath it. */
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-cloud-white);
  color: var(--color-inkwell-black);
  font-family: var(--font-basel-grotesk-book);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.4;
}

:focus-visible {
  outline: 2px solid var(--color-flyer-gold, #ffbe1a);
  outline-offset: 2px;
}

/* --- TYPOGRAPHY SCALE --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-inkwell-black);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* Basel Classic Book Display Styles */
.display-hero {
  font-family: var(--font-basel-classic-book);
  font-weight: var(--font-weight-regular);
  font-size: 96px;
  line-height: 0.90;
  letter-spacing: -0.03em;
}

.display-hero-xl {
  font-family: var(--font-basel-classic-book);
  font-weight: var(--font-weight-regular);
  font-size: 144px;
  line-height: 0.80;
  letter-spacing: -0.03em;
}

/* Responsive headers */
@media (max-width: 1024px) {
  .display-hero { font-size: 72px; }
  .display-hero-xl { font-size: 96px; }
}

@media (max-width: 640px) {
  .display-hero { font-size: 48px; }
  .display-hero-xl { font-size: 64px; }
}

/* Basel Grotesk Book Scaling */
/* Leading on these three was 1.05, which is display leading applied to body
   copy — multi-line paragraphs collided. Set to a readable ramp instead. */
.text-caption {
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.056px;
  font-weight: var(--font-weight-regular);
}

.text-body-sm {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.031px;
  font-weight: var(--font-weight-regular);
}

.text-body {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.071px;
  font-weight: var(--font-weight-regular);
}

.text-subheading {
  font-size: 18px;
  line-height: 1.13;
  letter-spacing: -0.01px;
  font-weight: var(--font-weight-medium);
}

.text-heading-sm {
  font-size: 22px;
  line-height: 1.13;
  letter-spacing: -0.015em;
  font-weight: var(--font-weight-medium);
}

.text-heading {
  font-size: 32px;
  line-height: 1.13;
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-semibold);
}

.text-heading-lg {
  font-size: 40px;
  line-height: 1.10;
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-semibold);
}

.text-display {
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-semibold);
}

.text-display-xl {
  font-size: 72px;
  line-height: 0.97;
  letter-spacing: -0.04em;
  font-weight: var(--font-weight-semibold);
}

/* Base paragraphs */
p {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-inkwell-black);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--color-flyer-gold, #ffbe1a);
  outline-offset: 3px;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-24);
  padding-right: var(--spacing-24);
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  position: relative;
  border-bottom: 1px solid var(--color-silver-mist);
}

/* Alternate Background Colors */
.bg-white {
  background-color: var(--color-cloud-white);
}

.bg-porcelain {
  background-color: var(--color-porcelain-gray);
}

.bg-inkwell {
  background-color: var(--color-inkwell-black);
  color: var(--color-porcelain-gray);
}

.bg-inkwell h1, .bg-inkwell h2, .bg-inkwell h3, .bg-inkwell h4, .bg-inkwell p {
  color: var(--color-cloud-white);
}

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

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-porcelain-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--color-silver-mist);
  border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-inkwell-black);
}
