/* awm.gg — calm, paper-and-ink personal site with an indigo accent.
   Light by default, with a dark mode that follows the OS setting. */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe9;
  --bg-card: #ffffff;
  --text: #1f1b16;
  --text-muted: #5d564c;
  --accent: #4f46e5;
  --accent-deep: #3730a3;
  --border: #e3ddd2;
  --radius: 14px;
  --max-width: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --bg-alt: #1c1a15;
    --bg-card: #211e18;
    --text: #f1ece1;
    --text-muted: #b3a994;
    --accent: #a5b4fc;
    --accent-deep: #818cf8;
    --border: #3a352b;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3, .button, .eyebrow {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: 42rem; }
.center { text-align: center; }

a { color: var(--accent-deep); }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- hero ---------- */
.hero {
  padding: 6rem 0 4rem;
  background:
    radial-gradient(60rem 30rem at 70% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent),
    var(--bg);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.section p { margin: 0 0 1rem; }

/* ---------- card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.button {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-deep); color: #fff; }
.button-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.button-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
}
.site-footer p { margin: 0 0 0.5rem; }
.fine-print { font-size: 0.85rem; }
