/* Design tokens — matches MusicalBites palette */
:root {
  --sage:       #7aab8a;
  --sage-light: #eef5f0;
  --sage-mid:   #c6dece;
  --cream:      #fdf8f2;
  --warm-tan:   #e8d5b0;
  --gold:       #c8934a;
  --gold-light: #f5e8d5;
  --text:       #3a3228;
  --text-mid:   #5c4f42;
  --text-soft:  #8a7a6e;
  --white:      #ffffff;
}

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

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Draft indicator ── */

.draft-banner {
  background: repeating-linear-gradient(
    -45deg,
    #fef3c7,
    #fef3c7 10px,
    #fde68a 10px,
    #fde68a 20px
  );
  color: #92400e;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid #f59e0b;
}

.is-draft .post-title::after {
  content: ' [DRAFT]';
  font-size: 0.55em;
  font-weight: normal;
  color: #b45309;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* ── Nav ── */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--warm-tan);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(58, 50, 40, 0.06);
}

.site-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-name {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.site-name:hover {
  color: var(--gold);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: var(--text-mid);
  white-space: nowrap;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--gold-light);
  color: var(--gold);
  text-decoration: none;
}

/* ── Main ── */

.site-main {
  flex: 1;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Homepage ── */

.home {
  max-width: 800px;
  margin: 0 auto;
}

.home-hero {
  padding: 3rem 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--warm-tan);
  position: relative;
}

.home-hero::before {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.home-hero h1 {
  font-size: 3rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.home-hero p {
  color: var(--text-mid);
  font-size: 1.05rem;
  font-family: Georgia, serif;
  font-style: italic;
  line-height: 1.6;
  max-width: 520px;
}

.home-series-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.post-list {
  list-style: none;
}

.post-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--warm-tan);
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  transition: background 0.12s;
  position: relative;
}

.post-list-item:first-child {
  padding-top: 0;
}

.post-list-item::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.post-list-item:hover::before {
  opacity: 1;
}

.post-list-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: var(--text-soft);
  white-space: nowrap;
  min-width: 7.5rem;
  flex-shrink: 0;
}

.post-list-title {
  font-size: 1.05rem;
  line-height: 1.4;
}

.post-list-title a {
  color: var(--text);
}

.post-list-title a:hover {
  color: var(--gold);
  text-decoration: none;
}

.draft-badge {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warm-tan);
  border: 1px solid var(--warm-tan);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  vertical-align: middle;
  opacity: 0.7;
}

/* ── Post ── */

.post {
  max-width: 660px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--warm-tan);
  position: relative;
}

.post-header::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.post-date {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.post-title {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Lead paragraph */
.post-content > p:first-child {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.post-content p {
  margin-bottom: 1.3rem;
}

.post-content h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin: 1.75rem 0 0.5rem;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.35rem;
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--sage);
  background: var(--sage-light);
  color: var(--text-mid);
  font-style: italic;
  border-radius: 0 6px 6px 0;
  position: relative;
}

.post-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.1rem;
  left: 0.85rem;
  font-size: 3rem;
  color: var(--sage-mid);
  line-height: 1;
  font-family: Georgia, serif;
}

.post-content blockquote p {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.post-content hr {
  border: none;
  text-align: center;
  margin: 2.5rem 0;
  color: var(--text-soft);
  font-size: 1.2rem;
  letter-spacing: 0.4em;
}

.post-content hr::before {
  content: '· · ·';
}

.post-content figure {
  margin: 2rem 0;
}

.post-content figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.post-content figure figcaption {
  margin-top: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-style: italic;
  text-align: center;
}

/* ── Post nav ── */

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--warm-tan);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 45%;
  color: var(--text);
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.post-nav-link:hover {
  background: var(--gold-light);
  text-decoration: none;
  color: var(--text);
}

.post-nav-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-nav-link:hover .post-nav-label {
  color: var(--gold);
}

.post-nav-title {
  font-size: 0.9rem;
  line-height: 1.35;
}

.post-nav-next {
  text-align: right;
  margin-left: auto;
}

/* ── Footer ── */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--warm-tan);
  padding: 1.5rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.site-footer a {
  color: var(--text-soft);
}

.site-footer a:hover {
  color: var(--gold);
}

/* ── Responsive ── */

@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .site-main {
    padding: 1.5rem 1rem 3rem;
  }

  .home-hero {
    padding: 2rem 0 1.75rem;
  }

  .home-hero h1 {
    font-size: 2.1rem;
  }

  .post-list-item {
    flex-direction: column;
    gap: 0.15rem;
  }

  .post-list-date {
    min-width: unset;
  }

  .post-title {
    font-size: 1.6rem;
  }

  .post-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-nav-link,
  .post-nav-next {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }
}

.aside {
  font-size: 0.875em;
  color: #888;
  margin-top: 0.75em;
  padding-top: 0.5em;
  border-top: 1px solid #ddd;
}
