body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-reading);
}

section {
  padding: var(--space-xl) 0;
  position: relative;
}

/* Section dividers */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, var(--max-width));
  height: 1px;
  background: var(--color-divider);
}

/* Section label (uppercase small text) */
.section-label {
  font-family: var(--font-body);
  font-size: var(--font-size-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* Section title */
.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-h1);
  font-weight: 400;
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-accent);
  color: var(--color-bg-primary);
  font-weight: 500;
  z-index: 10001;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Responsive */
@media (max-width: 1024px) {
  section {
    padding: var(--space-lg) 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-sm);
  }

  section {
    padding: clamp(3rem, 8vw, var(--space-lg)) 0;
  }
}
