/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--section-text);
  background-color: var(--section-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-sm);
}

/* Forms */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* Layout */
section {
  padding: var(--spacing-2xl) var(--spacing-xl);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* Section transition rules */
.section-rule {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--blc-cyan), transparent);
  opacity: 0.4;
}

.section-rule-dark {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--blc-pink), transparent);
  opacity: 0.4;
}

/* ── Mobile scaling ──
   Scale down the larger type tokens and outer padding on small screens so
   headings don't overflow and sections aren't cramped. Token-based, so this
   cascades to every page without touching individual components. */
@media (max-width: 600px) {
  :root {
    --font-size-3xl: 32px;
    --font-size-2xl: 26px;
    --font-size-xl: 20px;
    --font-size-lg: 17px;
  }

  section {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .container {
    padding: 0 var(--spacing-md);
  }
}
