/* Minimal reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--foreground);
  background-color: var(--background);
}

/* Variables */
:root {
  --background: #fafafa;
  --foreground: #171717;
  --muted: #525252;
  --border: #e5e5e5;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --line-height: 1.6;
  --max-width: 720px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

@media (min-width: 640px) {
  :root {
    --font-size-base: 1.125rem;
  }
}

/* Layout */
.page {
  min-height: 100vh;
  padding: var(--space-lg) var(--space-md);
}

@media (min-width: 640px) {
  .page {
    padding: var(--space-xl) var(--space-lg);
  }
}

.main {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.header-logo {
  display: block;
  margin: 0 auto var(--space-md);
  height: auto;
  max-width: 90px;
}

.brand {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.title {
  margin: var(--space-xs) 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .title {
    font-size: 1.75rem;
  }
}

/* Intro */
.intro {
  margin: 0 0 var(--space-xl);
  font-size: var(--font-size-base);
  color: var(--muted);
}

/* Sections */
.section {
  margin-bottom: var(--space-xl);
}

.section h2 {
  margin: 0 0 var(--space-md);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.section h3 {
  margin: var(--space-md) 0 var(--space-xs);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.section p {
  margin: 0 0 var(--space-sm);
}

.section ul,
.section ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.5rem;
}

.section li {
  margin-bottom: var(--space-xs);
}

.section li:last-child {
  margin-bottom: 0;
}

.section--final {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.section--final p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Scroll-triggered animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

.animate-on-scroll.is-visible {
  animation: fadeInUp 0.55s ease-out both;
}

/* Links */
a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}
