/* ============================================================
   Josh Miller — Songwriter
   Clean, timeless Nashville portfolio aesthetic.
   Shared across all pages.
   ============================================================ */

:root {
  --ink: #1d1d1d;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --line: #e3e3e3;
  --line-soft: #efefef;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --accent: #1d1d1d;
  --feature: #b08d57;        /* understated gold for featured/awards */
  --feature-bg: #faf6ee;
  --maxw: 1080px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Mulish", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- Layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 28px 40px;
}

.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 8px;
}

.page-subtitle {
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 44px;
}

/* ---------- About / Home ---------- */
.about-hero { text-align: center; }
.about-photo {
  width: 100%;
  max-width: 553px;
  margin: 0 auto 20px;
  border-radius: 2px;
}
.about-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 34px;
}
.about-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: left;
}
.about-body strong { color: var(--ink); font-weight: 600; }

/* ---------- Generic prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.prose h2 {
  font-family: var(--serif);
  font-size: 30px;
  text-align: center;
  margin: 48px 0 20px;
}
.prose ul { list-style: none; padding: 0; margin: 0; }
.prose ul li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
}
.award-photo {
  float: none;
  display: block;
  margin: 0 auto 28px;
  max-width: 360px;
  border-radius: 2px;
}
.links-list { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; }
.links-list li { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.links-list a {
  text-decoration: none;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.links-list a:hover { border-bottom-color: var(--ink); }

/* ============================================================
   SONGS PAGE — clean table
   ============================================================ */
.songs-meta {
  text-align: center;
  color: var(--ink-faint);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 30px;
}

.songs-table-wrap { max-width: 980px; margin: 0 auto; overflow-x: auto; }

.song-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.song-table th {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  text-align: left;
  padding: 0 16px 10px;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}
.song-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.4;
}
/* New artist/album block gets a stronger top divider; songs within the
   same album are separated by lighter lines so they read as one group. */
.song-table tbody tr.group-start td { border-top: 1px solid var(--line); }
.song-table tbody tr:not(.group-start) td { border-bottom-color: #f4f4f4; }
.song-table tbody tr:hover { background: var(--bg-alt); }

.song-table .c-year { width: 64px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.song-table .c-artist { width: 22%; font-weight: 600; }
.song-table .c-album { width: 20%; color: var(--ink-soft); font-style: italic; }
.song-table td.c-song { font-family: var(--serif); font-size: 18px; }
.song-table .c-cowriters { color: var(--ink-soft); font-size: 14px; }

.song-table .s-note {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; font-style: normal;
  color: #fff; background: var(--ink); border-radius: 2px; padding: 1px 6px;
  vertical-align: middle; white-space: nowrap;
}

.no-results {
  text-align: center; color: var(--ink-faint);
  font-family: var(--serif); font-size: 22px; padding: 50px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 30px 28px 44px;
  text-align: center;
}
.socials { display: flex; gap: 18px; justify-content: center; margin-bottom: 16px; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color .15s ease, background .15s ease;
}
.socials a:hover { border-color: var(--ink); background: var(--bg-alt); }
.socials svg { width: 18px; height: 18px; fill: var(--ink-soft); }
.copyright { color: var(--ink-faint); font-size: 13px; letter-spacing: 0.05em; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand { font-size: 28px; }
  .nav-links { gap: 20px; }
  .page-title { font-size: 34px; }
  .about-body, .prose p { font-size: 19px; }
  .song-table { font-size: 14px; }
  .song-table th, .song-table td { padding-left: 10px; padding-right: 10px; }
  .song-table td.c-song { font-size: 16px; }
  main { padding: 36px 20px; }
}
