/* Old Man VGM — shared styles. No JS, no external fonts, no trackers (ADR-0001).
   Base tokens mirror Offline Music Theory's Studio Dark (default) and Classic Light;
   light-mode accent colors are darkened for AA contrast on ivory. */

:root {
  color-scheme: dark light;
  --bg: #101317;
  --surface: #1e222b;
  --border: #2e3441;
  --text: #f2f0ea;
  --muted: #a3abb8;
  --accent: #ffb547;      /* Amber */
  --accent-2: #6fb7ff;    /* Sky Blue */
  --success: #34d399;
  --on-accent: #101317;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f0;
    --surface: #ffffff;
    --border: #d3cebf;
    --text: #181c24;
    --muted: #4f5664;
    --accent: #8a5200;    /* darkened Amber for AA contrast on ivory */
    --accent-2: #2f4fb8;  /* Royal Indigo */
    --success: #0f7a55;
    --on-accent: #ffffff;
  }
}

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

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

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

a { color: var(--accent-2); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand img { width: 1.75rem; height: 1.75rem; display: block; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 0.5rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Main */
main { flex: 1; padding: 2.5rem 0 3rem; }

h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); line-height: 1.15; margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.25rem 0 0.75rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.tagline { font-size: 1.15rem; color: var(--muted); font-style: italic; margin-bottom: 1.5rem; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.1rem;
  margin: 1.25rem 0;
}
.card h2, .card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; font-weight: 500;
}

.button {
  display: inline-block; padding: 0.55rem 1.25rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.button:hover { color: var(--on-accent); filter: brightness(1.08); }

.card-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 1.5rem; }
.site-footer p { margin: 0 0 0.35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

@media (max-width: 480px) {
  main { padding-top: 1.75rem; }
  .card { padding: 1rem; }
}
