/* CSS Custom Properties - Color Palette */
:root {
  /* Base colors from colors.js palette */
  --color-background: rgb(248, 248, 248);
  --color-text: rgb(51, 51, 51);
  --color-text-light: rgb(107, 114, 128);
  --color-link: rgb(74, 144, 226);
  --color-link-hover: rgb(96, 165, 250);
  --color-accent: rgb(74, 144, 226);
  --color-white: rgb(255, 255, 255);
  --color-border: rgb(229, 231, 235);
  --color-shadow: rgba(0, 0, 0, 0.1);
}

/* Base styles */
body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  background: var(--color-background);
  min-height: 100vh;
}

/* Layout containers */
.header,
.footer {
  background: var(--color-white);
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.footer {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  margin-top: 2rem;
}

.header-content,
.footer-content {
  max-width: 800px;
  width: 100%;
  padding: 0 2rem;
}

/* Header layout */
.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  flex-grow: 1;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Georgia', serif;
  color: var(--color-link);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: var(--color-link-hover);
}

.preview-indicator {
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tagline {
  font-size: 1.1rem;
  color: var(--color-text-light);
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Main content */
main {
  /* No constraints - let content handle its own layout */
}

.content {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--color-shadow);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--color-text);
  font-family: 'Georgia', serif;
  line-height: 1.2;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-family: 'Georgia', serif;
  line-height: 1.3;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-family: 'Georgia', serif;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}

a:hover {
  color: var(--color-link-hover);
}

blockquote {
  border-left: 4px solid var(--color-border);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-light);
}

code {
  background: var(--color-background);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

pre {
  background: var(--color-background);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* Footer */
.footer-content {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .header-content,
  .footer-content {
    padding: 0 1rem;
  }

  .content {
    padding: 1rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0 1rem;
    max-width: none;
    width: auto;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
  }

  /* Hide tagline on mobile */
  .tagline {
    display: none;
  }

  /* Header and footer naturally span 100vw now */
  .header-content,
  .footer-content {
    width: 100%;
    max-width: none;
    padding: 0 1rem;
  }
}
