/* knw-yr-own — hand-rolled, no build step.
   white paper, black ink, maroon accent. handmade > designed. */

:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --maroon: #872240;
  --rule: #c9c9c9;
  --placeholder: #f2f2f2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--maroon);
}

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

/* ---- masthead ---- */

.masthead {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
}

.masthead h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(3.25rem, 12vw, 7.5rem);
  line-height: 1;
  color: var(--maroon);
  letter-spacing: -0.01em;
}

.masthead h1 a {
  color: inherit;
  text-decoration: none;
}

.masthead .logo {
  width: min(88vw, 720px);
  height: auto;
  margin: 0 auto;
}

.masthead.sub .logo {
  width: min(60vw, 400px);
}

/* dashed rules, full width — cut-paper edges */
.rule {
  border: none;
  border-top: 2px dashed var(--rule);
  margin: 0;
}

/* ---- the big graphic (one biggie, changed often) ---- */

.biggie {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 1.25rem;
  text-align: center;
}

.biggie img {
  margin: 0 auto;
}

.biggie figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-style: italic;
}

/* ---- three sections ---- */

.sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.section-card {
  text-align: center;
}

.section-card .art {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.section-card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* all section headers share one style */
h2 {
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--maroon);
}

.section-card h2 {
  margin: 1.5rem 0 0.75rem;
}

.section-card .sublink {
  font-size: 1.05rem;
}

/* ---- news strip ---- */

.news {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.news h2 {
  margin: 0 0 1.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.news-item {
  padding: 1rem;
  min-height: 9rem;
  font-size: 1rem;
}

.news-item .date {
  display: block;
  font-size: 0.85rem;
  color: var(--maroon);
  margin-bottom: 0.35rem;
}

/* real news items (filled in by js/news.js from the RSS feed) */
article.news-item {
  border: 2px dashed var(--rule);
}

article.news-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

article.news-item a {
  display: block;
  font-size: 1.15rem;
  line-height: 1.35;
}

article.news-item .snippet {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: #555;
}

/* ---- placeholders (media still being gathered) ---- */

.placeholder {
  background: var(--placeholder);
  border: 2px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  font-style: italic;
  font-size: 0.95rem;
}

/* ---- subpages ---- */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.page h2 {
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--maroon);
  margin: 0 0 1.5rem;
}

.page .masthead-small {
  text-align: center;
  padding: 2rem 1rem;
}

/* smaller masthead on subpages */
.masthead.sub {
  padding: 2.5rem 1rem 2rem;
}

.masthead.sub h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
}

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

footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  font-size: 0.95rem;
}

footer p {
  margin: 0.25rem 0;
}

/* ---- mobile ---- */

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .sections {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* stacked order: music, books, things */
  .section-card:nth-child(1) {
    order: 2;
  }

  .section-card:nth-child(2) {
    order: 1;
  }

  .section-card:nth-child(3) {
    order: 3;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .section-card h2 {
    margin-top: 1rem;
  }
}
