/* aaronsago.com — hand-written, no build step.
   Colours live in variables so they are easy to change. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #5f6368;
  --line: #e6e6e3;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e6f4f2;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
  --radius: 14px;
  --max: 880px;
  --display: "Fraunces", Georgia, "Iowan Old Style", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111312;
    --surface: #1a1d1c;
    --ink: #ececea;
    --muted: #a3a8a5;
    --line: #2a2e2c;
    --accent: #3cc3b7;
    --accent-ink: #072523;
    --accent-soft: #15302d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.brand { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink); }
.nav { display: flex; gap: 18px; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a[aria-current] { color: var(--ink); font-weight: 600; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
  padding: 24px 0 36px;
}
@media (min-width: 640px) { .hero { padding: 44px 0 40px; } }
.hero { display: block; position: relative; }
.hero h1 {
  font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2.8rem, 9vw, 4.6rem); line-height: 1; letter-spacing: -.025em; margin: 0 0 18px;
}
.hero .eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
.hero .statement {
  font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 72, "SOFT" 50;
  font-size: clamp(1.35rem, 3.6vw, 1.9rem); line-height: 1.3; letter-spacing: -.01em; margin: 0 0 16px; max-width: 700px;
}
.hero .statement span { font-style: italic; color: var(--accent); }
.hero .lede { font-size: 1.02rem; color: var(--muted); margin: 0 0 22px; max-width: 660px; }
.media.portrait img { width: 180px; border-radius: 12px; box-shadow: var(--shadow); }

/* Soft colour wash behind the header */
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 520px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 10% 20%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
body { position: relative; }

/* Facets: the five hats */
.facets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 30px 0 0; counter-reset: facet; }
@media (min-width: 720px) { .facets { grid-template-columns: repeat(5, 1fr); } }
.facets a {
  display: block; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); position: relative; overflow: hidden; transition: border-color .15s, transform .15s;
}
.facets a::before { counter-increment: facet; content: "0" counter(facet); font-family: var(--display); font-size: .8rem; color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: .04em; }
.facets a:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.facets b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.15; margin-bottom: 4px; }
.facets span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.facets a:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 720px) { .facets a:last-child:nth-child(odd) { grid-column: auto; } }

/* Latest strip */
.latest { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.latest li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; align-items: baseline; }
.latest time { font-family: var(--display); color: var(--accent); font-size: .9rem; white-space: nowrap; }
.latest a { color: var(--ink); font-weight: 600; }
.hero .photo { width: 160px; border-radius: 18px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .hero .photo { width: 200px; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.disabled { opacity: .55; pointer-events: none; }

/* Sections and cards */
section { padding: 8px 0 28px; }
.sec-title {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); margin: 24px 0 14px;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin: 0 0 16px;
}
.card h2 { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 48, "SOFT" 50; font-size: 1.5rem; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.015em; }
.card h2 a { color: var(--ink); }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.role { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin: 0 0 10px; }
.card .links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .95rem; }
.card .links a::after { content: " \2197"; font-size: .85em; }
.card .links a.int::after { content: " \2192"; }

.split { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .split { grid-template-columns: 1fr 220px; align-items: start; } .split.rev { grid-template-columns: 180px 1fr; } }
.split .media img { border-radius: 10px; }
.split .media.icon img { width: 96px; border-radius: 22px; }
.covers { display: flex; gap: 14px; align-items: flex-start; }
.covers img { width: 110px; border-radius: 6px; box-shadow: var(--shadow); }

.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.thumbs a { display: block; position: relative; border-radius: 10px; overflow: hidden; }
.thumbs img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.thumbs span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; font-size: .9rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.chips a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--ink); background: var(--bg); }
.chips a:hover { border-color: var(--accent); text-decoration: none; }

.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list small { display: block; color: var(--muted); font-size: .9rem; }

/* Video embeds (click to load) */
.video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; margin: 0 0 16px; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; padding: 0;
}
.video button::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px;
  background: rgba(0,0,0,.72); border-radius: 14px;
}
.video button::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -8px;
  border-left: 22px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.video button:hover::before { background: var(--accent); }
.video button span { position: absolute; left: -9999px; }
.spotify { border-radius: 12px; margin: 0 0 16px; width: 100%; height: 152px; border: 0; }

/* Songs page */
.song { padding: 28px 0 8px; border-top: 1px solid var(--line); }
.song:first-of-type { border-top: 0; padding-top: 8px; }
.song h2 { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 96, "SOFT" 50; font-size: clamp(1.7rem, 5vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.1; }
.lyrics p { font-family: var(--display); font-variation-settings: "opsz" 18, "SOFT" 50; font-size: 1.08rem; line-height: 1.65; }
.meta { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.meta b { color: var(--ink); font-weight: 600; }
.lyrics { max-width: 560px; }
.lyrics summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.lyrics h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 20px 0 4px; }
.lyrics p { margin: 0 0 12px; }
.lyrics .spoken p { font-style: italic; color: var(--muted); }
.copyright { font-size: .85rem; color: var(--muted); margin-top: 20px; }

/* Footer */
footer { margin-top: 36px; padding: 24px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--muted); }

.card p.notice { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; font-size: .95rem; margin: 0 0 12px; }
