/* andpappas.com — base styles
   Plain modern CSS: custom properties, flexbox, grid, nesting. */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-accent: #2a5db0;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --space: 1rem;
  --max-width: 48rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-text: #ededed;
    --color-muted: #9a9a9a;
    --color-accent: #7aa7ec;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-accent);
  text-decoration: none;

  &:hover,
  &:focus-visible {
    text-decoration: underline;
  }
}

.site-header,
.site-footer {
  padding: var(--space);
}

.site-nav {
  max-width: var(--max-width);
  margin-inline: auto;
}

.site-brand {
  font-weight: 600;
}

.site-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--space);
}

.intro {
  max-width: var(--max-width);
  text-align: center;

  & h1 {
    margin: 0 0 0.25em;
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
}

.tagline {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.site-footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
}
