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

/* === PAGE === */
:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --red: #c41e1e;
  --grey: #6b6560;
  --rule: #1a1a1a;
}

html {
  font-size: 16px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Old Standard TT', 'Georgia', serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === BANNER BAR === */
.banner-bar {
  background: var(--ink);
  color: #f5f0e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1.5rem;
  font-family: 'Old Standard TT', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.banner-bar > span {
  flex: 1;
}

.banner-bar > span:nth-child(2) {
  text-align: center;
}

.banner-bar > span:last-child {
  text-align: right;
}

.banner-date {
  font-style: italic;
}

/* === HEADER === */
header {
  margin-bottom: 1.5rem;
}

.masthead {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 2px solid var(--ink);
}

.masthead h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}

.title-red {
  color: var(--red);
}

/* === CATEGORIES === */
main {
  padding: 0 1.5rem;
}

.category {
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.category:last-child {
  border-bottom: none;
}

.category h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

/* === STORIES === */
.stories {
  list-style: none;
}

.stories li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}

.stories li:last-child {
  border-bottom: none;
}

.stories li a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'PT Serif', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  display: block;
  transition: color 0.15s;
}

.stories li a:hover {
  color: var(--red);
}

.source {
  display: block;
  font-family: 'Old Standard TT', serif;
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 0.15rem;
  font-weight: 400;
  font-style: italic;
}

/* === FOOTER === */
footer {
  margin-top: 2rem;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  body {
    padding: 0;
  }

  .banner-bar {
    padding: 0.35rem 1rem;
    font-size: 0.65rem;
  }

  main {
    padding: 0 1rem;
  }

  .masthead {
    padding: 1rem 1rem 0.6rem;
  }

  .masthead h1 {
    font-size: 1.75rem;
  }

  .stories li a {
    font-size: 1.2rem;
  }
}

/* === PRINT === */
@media print {
  body {
    background: white;
    max-width: none;
  }

  .banner-bar {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .stories li a {
    color: black;
  }

  .stories li a::after {
    content: " (" attr(href) ")";
    font-size: 0.6rem;
    font-weight: 400;
    color: #666;
  }
}
