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

/* === PAGE === */
:root {
  --paper: #f5f0e4;
  --ink: #2a2520;
  --navy: #1b2340;
  --gold: #d4a843;
  --gold-dim: #a68832;
  --grey: #7a7060;
  --rule-faint: rgba(212, 168, 67, 0.3);
}

html {
  font-size: 16px;
  background: var(--paper);
}

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

/* === BANNER BAR === */
.banner-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 1.5rem 0;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.banner-bar > span {
  text-align: center;
}

.banner-bar a {
  color: var(--gold-dim);
  text-decoration: none;
}

.banner-bar a:hover {
  text-decoration: underline;
}

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

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

.masthead {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 3px double var(--gold);
}

.masthead h1 {
  font-family: 'Poiret One', 'Georgia', serif;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}

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

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

.category {
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 3px double var(--gold);
}

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

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

.category h2::before {
  content: '— ◇ ';
  letter-spacing: 0.1em;
}

.category h2::after {
  content: ' ◇ —';
  letter-spacing: 0.1em;
}

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

.stories li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-faint);
}

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

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

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

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

.stories li .source a,
.stories li.featured .source a {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  font-style: inherit;
  color: inherit;
  text-decoration: none;
  display: inline;
  line-height: inherit;
}

.stories li .source a::before,
.stories li.featured .source a::before {
  content: none;
}

/* === FEATURED STORIES === */
.stories li.featured > a {
  font-size: 1.75rem;
  font-weight: 600;
}

.stories li.featured > a::before {
  content: '◆ ';
  color: var(--gold);
  font-size: 0.7em;
  vertical-align: middle;
}

/* === DIGEST FORMAT === */
.stories li.digest {
  padding-bottom: 1rem;
}

.stories li.digest > a {
  margin-bottom: 0.25rem;
}

.nuggets {
  list-style: none;
  margin-top: 0.4rem;
  padding-left: 1.2rem;
}

.nuggets li {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
  padding: 0.2rem 0;
  position: relative;
  border-bottom: none !important;
}

.nuggets li::before {
  content: '·';
  position: absolute;
  left: -1rem;
  color: var(--gold-dim);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
}

.nuggets li a {
  font-size: 1.05rem;
  font-weight: 400;
  display: inline;
  color: var(--ink);
}

.nuggets li a:hover {
  color: var(--gold-dim);
}

.nuggets li a::before {
  content: none;
}

@media (max-width: 480px) {
  .nuggets li {
    font-size: 0.95rem;
  }
}

/* === 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.15rem;
  }
}

/* === EDITORIAL PAGE === */
.editorial {
  padding: 0 1.5rem;
}

.editorial h2 {
  font-family: 'Poiret One', 'Georgia', serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--gold-dim);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-top: 1.5rem;
  border-top: 3px double var(--gold);
}

.editorial h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

.editorial p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.editorial ul, .editorial ol {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.editorial li {
  margin-bottom: 0.5rem;
}

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

.editorial a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .editorial {
    padding: 0 1rem;
  }

  .editorial p {
    font-size: 1rem;
  }
}

/* === PRINT === */
@media print {
  body {
    background: white;
    color: #1a1a1a;
    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;
  }
}
