:root {
  --primary: #86ABA5;
  --secondary: #97B7B2;
  --background: #F7FAF9;
  --text-primary: #333;

  --font-size-small: clamp(0.75rem, 2vw, 0.8rem);
  --font-size-medium: clamp(0.9rem, 3vw, 1rem);
  --font-size-large: clamp(1.1rem, 4vw, 1.2rem);
  --font-size-xlarge: clamp(1.4rem, 5vw, 1.6rem);
  --font-size-xxlarge: clamp(1.75rem, 6vw, 2rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
}

body {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

body.fonts-loaded {
  opacity: 1;
}

/* Shared Layout Components */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 2rem;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.8;
}

.back-link::before {
  content: "←";
  font-size: 1rem;
}

/* Typography */
h1 {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--font-size-xxlarge);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

h2 {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--font-size-xlarge);
  font-weight: 400;
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  letter-spacing: 0.03em;
}

h3 {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--font-size-large);
  font-weight: 400;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem 0;
  letter-spacing: 0.02em;
}

.content {
  flex: 1;
  line-height: 1.8;
  font-size: var(--font-size-medium);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.content p {
  margin-bottom: 1.5rem;
}

.content strong {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

.content a {
  color: var(--primary);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(134, 171, 165, 0.2);
}

.footer-nav a {
  font-size: var(--font-size-small);
  font-weight: 300;
  color: #666;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--primary);
}

@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
  }

  .footer-nav {
    gap: 1.5rem;
  }

  .footer-nav a {
    font-size: var(--font-size-small);
  }
}
