/* ==========================================================================
   Listenings — the whole stylesheet. Edit freely; no theme underneath.
   ========================================================================== */

:root {
  --bg: #e5e4e4;          /* page background */
  --card: #e5e4e4;        /* post cards */
  --card-border: #f4f4f4;
  --text: #333;
  --muted: #555;
  --faint: #888;
  --link: #357edd;
  --header-bg: #000;
  --header-text: rgba(255, 255, 255, 0.9);

  --serif: "Alice", Georgia, serif;
  --sans: "Lato", -apple-system, "Helvetica Neue", sans-serif;

  --content-width: 44rem;  /* reading width of posts */
  --feed-width: 53rem;     /* width of the home page feed */
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--header-bg); /* shown when over-scrolling past the top/bottom */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 3rem 1rem 4rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.25;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--header-bg);
  padding: 1.25rem 1rem 0.5rem;
}

.site-header .logo img {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Home / Manifesto / Authors. Sticks to the top when scrolling, on desktop only. */
.site-nav {
  background: var(--header-bg);
  text-align: center;
  padding: 0.75rem 1rem;
}
.site-nav a {
  color: var(--header-text);
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0.5rem;
}
.site-nav a:hover { color: #fff; text-decoration: none; }

@media (min-width: 48rem) {
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--header-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------- home */

.intro {
  text-align: center;
  color: #000;
  font-size: 0.9rem;
  max-width: var(--feed-width);
  margin: 0 auto 4rem;
}

.feed {
  max-width: var(--feed-width);
  margin: 0 auto;
}

.feed-title {
  font-size: 1.75rem;
  margin: 0 0 2rem;
}

.card {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.card-image {
  flex: 0 0 30%;
}
.card-image img {
  display: block;
  width: 100%;
}

.card-text { flex: 1; }

.card h2 {
  font-size: 1.5rem;
  margin: 0.25rem 0 1rem;
}
.card h2 a { color: var(--text); }
.card h2 a:hover { opacity: 0.6; text-decoration: none; }

.byline {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.byline .sep { margin: 0 0.4em; color: var(--faint); }
.card .byline time { color: var(--muted); font-weight: 300; }

.summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.read-more {
  display: inline-block;
  color: var(--text);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
}

.more-posts {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}
.more-posts h2 { font-size: 1.5rem; margin-top: 0; }
.more-posts ul { list-style: none; padding: 0; margin: 0; }
.more-posts li { font-family: var(--serif); font-size: 1rem; margin-bottom: 1rem; }
.more-posts a { color: #000; }
.more-posts a:hover { opacity: 0.6; text-decoration: none; }

@media (max-width: 40rem) {
  .card { flex-direction: column; padding: 2rem 1.25rem; }
  .card-image { flex: none; }
}

/* ---------------------------------------------------------------- post */

.post, .page {
  max-width: var(--content-width);
  margin: 0 auto;
}

.post header { margin: 2rem 0 4rem; }

.section-label {
  display: block;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-label:hover { text-decoration: none; opacity: 0.6; }

.post h1 {
  font-size: 3rem;
  color: #000;
  margin: 0.75rem 0 0.25rem;
}

.post .byline { font-weight: bold; margin-bottom: 3rem; }
.post .byline a { color: #000; }

.post time {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.post-body, .page {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Album covers and other images inside posts: centered, half width */
.post-body img {
  display: block;
  width: 50%;
  margin: 2rem auto;
}

.page { color: #000; }
.page h2 { font-size: 1.5rem; margin-top: 2.5rem; }

/* Previous / next links at the bottom of a post */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.pager > div { flex: 1; }
.pager .next { text-align: right; }
.pager a { display: block; color: var(--text); padding: 0.75rem 0; }
.pager a:hover { opacity: 0.6; text-decoration: none; }
.pager .label {
  display: block;
  color: var(--faint);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.pager .title { display: block; font-family: var(--serif); font-size: 1rem; line-height: 1.3; }

/* ---------------------------------------------------------------- authors */

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3rem;
  background: #fff;
  max-width: 58rem;
  margin: 1rem auto;
  padding: 2rem;
}
.authors a { text-align: center; color: #000; padding: 1rem; }
.authors a:hover { text-decoration: none; opacity: 0.6; }
.authors h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }
.authors span {
  color: #777;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
