/* Michael Andregg — personal site
   Plain static CSS, self-contained, no external requests. */

:root {
  --bg: #ffffff;
  --fg: #1a1c22;
  --muted: #5b6070;
  --accent: #2563a8;
  --rule: #e7e8ee;
  --maxw: 44rem;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --fg: #e8e9ee;
    --muted: #9aa0b0;
    --accent: #7db5ee;
    --rule: #23262e;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { border-bottom-color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: clamp(180px, 34vw, 340px);
  overflow: hidden;
  background: #05070c;
}
.hero__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem 1.4rem;
  background: linear-gradient(to top, rgba(3, 6, 12, 0.72) 0%, rgba(3, 6, 12, 0) 55%);
}
.hero__inner h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Content */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

.page section + section { margin-top: 2.75rem; }

h2 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

p { margin: 0 0 1rem; }

.intro p:first-child { font-size: 1.12rem; }

.link-line {
  font-size: 0.95rem;
}

/* Footer */
.footer {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding: 1.75rem 1.5rem 3rem;
  border-top: 1px solid var(--rule);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}
.footer__links a {
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom-color: transparent;
}
.footer__links a:hover { color: var(--accent); }
.footer__name {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .page { padding-top: 2.25rem; }
}
