/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Base */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; max-width: 70ch; }

a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--alt { background-color: var(--color-surface); }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* Section titles */
.section-title { margin-bottom: 2rem; }
.section-title--center { text-align: center; margin-bottom: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}
.btn-primary:hover { background-color: var(--color-accent); border-color: var(--color-accent); text-decoration: none; }
.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background-color: var(--color-primary); color: var(--color-bg); text-decoration: none; }
.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-outline:hover { background-color: var(--color-text); color: var(--color-bg); text-decoration: none; }

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--color-primary); text-decoration: none; }

/* Navigation */
.site-nav .nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.nav-link:hover { opacity: 1; color: var(--color-primary); text-decoration: none; }

/* Site Footer */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.875rem; opacity: 0.7; margin: 0; }
.social-links { display: flex; gap: 1.5rem; list-style: none; }
.social-link { font-size: 0.875rem; opacity: 0.7; transition: opacity 0.2s; }
.social-link:hover { opacity: 1; text-decoration: none; }

/* Page hero */
.page-hero { padding: 3rem 0 2rem; }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-subtitle { font-size: 1.1rem; opacity: 0.7; margin: 0; }

/* Responsive */
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .site-nav .nav-menu { gap: 1.25rem; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; }
  .section { padding: 2.5rem 0; }
}
