/* Song of Man landing page. Values come from ../design-manifest.md (Woodcut with staff motif, chosen 2026-11-05). */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/alegreya-latin.woff2) format('woff2');
}

:root {
  --background: #F1E6CF;
  --surface: #F8EFD9;
  --ink: #14110E;
  --text-muted: #5D5242;
  --primary: #7D1F1A;
  --on-ink: #F1E6CF;
  --font: 'Alegreya', Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font); font-weight: 700; margin: 0; text-transform: uppercase; }
p { margin: 0 0 16px; }
a { color: var(--primary); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--on-ink); padding: 12px 16px; z-index: 10;
}
.skip:focus { left: 8px; }

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.nav a:focus-visible, .band-bar a:focus-visible { outline-color: var(--on-ink); }

.wrap { max-width: 1100px; margin: 0 auto; }
.muted { color: var(--text-muted); margin: 0; }

.nav { background: var(--ink); color: var(--on-ink); padding: 8px 24px; }
.nav .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; }
.logo { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--on-ink); display: inline-flex; align-items: center; min-height: 44px; }

.band { padding: 72px 24px; }
.band-flush { padding-top: 0; }
.band-hero { padding-top: 56px; padding-bottom: 64px; }
.band-bar { background: var(--ink); color: var(--on-ink); padding: 32px 24px; font-size: 0.9375rem;
  text-transform: uppercase; letter-spacing: 0.1em; }
.band-bar p { margin: 0; }

.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 320px; min-width: 0; }
.hero-art { flex: 1 1 260px; min-width: 0; display: flex; justify-content: center; }

.kicker {
  display: inline-block; margin: 0 0 12px; padding: 2px 10px; transform: rotate(-2deg);
  background: var(--primary); color: var(--on-ink);
  font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
h1 {
  font-size: clamp(3.25rem, 12vw, 6.875rem); line-height: 0.88; letter-spacing: -0.02em;
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}
.lead { margin: 24px 0 0; font-size: 1.25rem; max-width: 520px; color: var(--text-muted); }
.actions { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center;
  background: var(--ink); color: var(--on-ink); border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--primary);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
}
.btn-outline { background: var(--background); color: var(--ink); }

.cover {
  width: 100%; max-width: 300px; aspect-ratio: 2 / 3;
  border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--primary);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; color: var(--text-muted);
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(20, 17, 14, 0.08) 8px 10px);
}

.staff { background: var(--ink); }
.staff svg { display: block; width: 100%; height: clamp(64px, 8vw, 86px); }
.staff line { stroke: var(--on-ink); stroke-width: 2.6; }
.staff .clef { fill: none; stroke: var(--on-ink); stroke-width: 4; stroke-linecap: round; }
.staff .note { fill: var(--on-ink); }
.staff .red { fill: var(--primary); }
.staff .stem { stroke: var(--on-ink); stroke-width: 3; }

h2 { font-size: 2.5rem; line-height: 1.15; letter-spacing: 0.04em; }
.title-rule { display: inline-block; border-bottom: 4px solid var(--ink); margin-bottom: 20px; }
.narrow { max-width: 720px; }

.cards { display: flex; flex-wrap: wrap; gap: 32px; }
.card {
  flex: 1 1 300px; min-width: 0; padding: 32px;
  background: var(--surface); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.card:nth-child(odd) { transform: rotate(-0.6deg); }
.card:nth-child(even) { transform: rotate(0.6deg); }
.card h3 { font-size: 1.75rem; margin-bottom: 8px; }
.card p { margin-bottom: 20px; }

/* Print: browsers leave out background colours unless the reader ticks "Background graphics", which would
   leave the pale text on the button, the nav, the staff band and the footer nearly invisible on white paper. */
@media print {
  .btn { background: none; color: var(--ink); }
  .nav, .band-bar, .staff { background: none; color: var(--ink); }
  .nav a, .logo { color: var(--ink); }
  .staff line, .staff .clef, .staff .stem { stroke: var(--ink); }
  .staff .note { fill: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
