/* ---- RESET ---- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #2f3538; /* river slate */
  color: #2b2b2b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- LAYOUT ---- */
.site-header {
  padding: 24px 32px;
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: #e6e0d6;
  font-family: Georgia, serif;
  font-size: 20px;
}

.nav-links a {
  margin-left: 28px;
  text-decoration: none;
  color: rgba(230,224,214,0.75);
  letter-spacing: 0.15em;
  font-size: 11px;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* ---- CONTENT ---- */
main {
  background: #f3efe8; /* stone bone */
  max-width: 720px;
  margin: 80px auto;
  padding: 64px 48px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2 {
  font-family: Georgia, serif;
  font-weight: normal;
}

h1 {
  font-size: 34px;
  margin-bottom: 32px;
}

p {
  line-height: 1.75;
  margin-bottom: 26px;
}

/* ---- FOOTER ---- */
.site-footer {
  text-align: center;
  color: rgba(230,224,214,0.6);
  font-size: 12px;
  padding: 60px 20px;
}
/* ---- SWING NOTES INDEX ---- */

.notes-index h1 {
  margin-bottom: 48px;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notes-list li {
  margin-bottom: 28px;
}

.notes-list a {
  display: block;
  position: relative;
  text-decoration: none;
  color: #2b2b2b;
  padding-bottom: 6px;
}

.note-title {
  font-family: Georgia, serif;
  font-size: 20px;
}

/* underline that grows slowly */
.note-line {
  display: block;
  height: 1px;
  width: 0%;
  background: #7a8b72; /* moss green */
  margin-top: 6px;
  transition: width 0.8s ease;
}

.notes-list a:hover .note-line {
  width: 100%;
}
/* ---- FADE IN ---- */

main {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

main.fade-in {
  opacity: 1;
  transform: translateY(0);
}
/* ---- READING EXPERIENCE ---- */

.reading-page {
  background: #f3efe8;
}

.note {
  max-width: 680px;
  margin: 0 auto;
}

.note h1 {
  margin-bottom: 48px;
}

.note p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 30px;
}

/* Paragraph rhythm */
.note p + p {
  margin-top: 0;
}

/* End-of-article space */
.note::after {
  content: "";
  display: block;
  height: 60px;
}
/* ---- IMAGE SOFT EDGES ---- */

.note-image {
  width: 100%;
  margin: 40px 0;
  filter: saturate(0.95) contrast(0.95);
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}
/* ---- PRINT MODE ---- */

@media print {
  body {
    background: white;
  }

  .site-header,
  .site-footer,
  nav {
    display: none;
  }

  main {
    margin: 0;
    padding: 0;
    max-width: none;
  }

  .note p {
    font-size: 12pt;
    line-height: 1.6;
  }
}