/* Tellef Solbakk Raabe — homepage
   Clean editorial static site. Single stylesheet shared across all pages. */

:root {
  --bg:        #faf9f6;
  --bg-alt:    #f2efe8;
  --ink:       #1a1a1c;
  --muted:     #63615c;
  --faint:     #8f8c85;
  --rule:      #e4dfd4;
  --accent:    #8c3b2f;
  --accent-dk: #6f2d24;
  --max:       760px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(250,249,246,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--accent);
  margin-top: 3px; border-radius: 2px;
}

/* ---------- hero ---------- */
.hero { padding: 76px 0 44px; }
.hero-grid { display: flex; gap: 40px; align-items: flex-start; }
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero h1 { font-size: 46px; margin: 0 0 4px; }
.hero .role { font-family: "Newsreader", Georgia, serif; font-style: italic;
  font-size: 21px; color: var(--muted); margin: 0 0 26px; letter-spacing: 0; }
.lede { font-size: 20px; line-height: 1.6; color: #2b2a28; }
.lede a { border-bottom: 1px solid rgba(140,59,47,0.35); }
.rule-accent { height: 2px; width: 54px; background: var(--accent); margin: 28px 0 0; }
.portrait {
  position: relative; flex: 0 0 auto; width: 132px; height: 168px; margin: 6px 0 0;
  background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden;
}
.portrait::after {
  content: "add portrait.jpg"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; text-align: center; padding: 10px;
  font-family: "Inter", sans-serif; font-size: 12px; color: var(--faint);
}
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1) contrast(1.03); display: block; }

/* ---------- generic sections ---------- */
main { padding-bottom: 88px; }
.page-head { padding: 60px 0 8px; }
.page-head h1 { font-size: 36px; margin: 0 0 10px; }
.page-head .sub { color: var(--muted); font-size: 18px; margin: 0; }

section { padding: 30px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: none; }
h2 { font-size: 25px; margin: 0 0 18px; }
h3 { font-size: 19px; margin: 26px 0 4px; font-weight: 600; font-family: "Inter", sans-serif; letter-spacing: 0; }

p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ---------- link cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 8px 0 0; }
.card {
  display: block; padding: 20px 22px 22px; background: var(--bg-alt);
  border: 1px solid var(--rule); border-radius: 4px; color: var(--ink);
  transition: border-color .12s ease, background .12s ease;
}
.card:hover { text-decoration: none; background: #efebe2; border-color: #d8d2c5; color: var(--ink); }
.card h3 { margin: 0 0 6px; font-family: "Newsreader", serif; font-size: 20px; font-weight: 500; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .go { color: var(--accent); font-size: 14px; margin-top: 12px; display: inline-block; }

/* ---------- reference / publication lists ---------- */
.reflist { list-style: none; margin: 0; padding: 0; }
.reflist li { padding: 12px 0; border-top: 1px solid var(--rule); }
.reflist li:first-child { border-top: none; }
.reflist .meta { color: var(--faint); font-size: 15px; }
.reflist .gloss { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; }

.columns { list-style: none; margin: 0; padding: 0; }
.columns li { padding: 14px 0; border-top: 1px solid var(--rule); }
.columns li:first-child { border-top: none; }
.columns .title { font-family: "Newsreader", serif; font-size: 19px; }
.columns .gloss { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------- appearances (broadcast / podcast) ---------- */
.applist { list-style: none; margin: 0; padding: 0; }
.applist li { padding: 14px 0; border-top: 1px solid var(--rule); }
.applist li:first-child { border-top: none; }
.applist .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.applist .prog { font-family: "Newsreader", Georgia, serif; font-size: 19px; }
.applist .links { flex: 0 0 auto; font-size: 14px; white-space: nowrap; }
.applist .links a { margin-left: 14px; }
.applist .desc { margin: 3px 0 0; color: var(--muted); font-size: 15px; }
.applist .desc .outlet { color: var(--faint); }

/* ---------- CV blocks ---------- */
.cv { list-style: none; margin: 0 0 8px; padding: 0; }
.cv li { display: flex; gap: 16px; padding: 9px 0; border-top: 1px solid var(--rule); }
.cv li:first-child { border-top: none; }
.cv .yr { flex: 0 0 108px; color: var(--faint); font-size: 15px; font-variant-numeric: tabular-nums; }
.cv .what { flex: 1; }
.cv .what .place { color: var(--muted); font-size: 15px; }

/* ---------- music archive ---------- */
.note {
  background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 10px;
  padding: 16px 20px; font-size: 15px; color: var(--muted); margin: 0 0 8px;
}
.disc { list-style: none; margin: 0; padding: 0; }
.disc li { padding: 12px 0; border-top: 1px solid var(--rule); }
.disc li:first-child { border-top: none; }
.disc .rel { font-family: "Newsreader", serif; font-size: 19px; }
.disc .cred { color: var(--faint); font-size: 14px; }
details { border-top: 1px solid var(--rule); padding: 12px 0; }
details summary { cursor: pointer; font-family: "Newsreader", serif; font-size: 18px; color: var(--ink); }
details summary:hover { color: var(--accent); }
details .lyric { white-space: pre-line; color: #2b2a28; font-size: 16px; margin-top: 12px; }

.tour-year { font-weight: 600; margin: 18px 0 4px; }
.tour { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
.tour li { padding: 3px 0; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; font-size: 18px; }
.contact-list li { padding: 10px 0; border-top: 1px solid var(--rule); }
.contact-list li:first-child { border-top: none; }
.contact-list .lbl { display: inline-block; width: 120px; color: var(--faint); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule); padding: 30px 0 48px;
  font-size: 14px; color: var(--faint);
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 18px; }
  .cv li { flex-direction: column; gap: 2px; }
  .cv .yr { flex-basis: auto; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .hero-grid { flex-direction: column-reverse; gap: 22px; }
  .portrait { width: 104px; height: 132px; }
}
