:root {
  --paper: #f3efe4;
  --ink: #1b1a17;
  --ink-soft: #57524a;
  --rule: #1b1a17;
  --rule-soft: #c9c1ae;
  --tint: #e9e3d3;
  --masthead: "UnifrakturMaguntia", "Old English Text MT", Georgia, serif;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

/* the night edition */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17160f;
    --ink: #e9e3d3;
    --ink-soft: #a8a08f;
    --rule: #e9e3d3;
    --rule-soft: #3d3a30;
    --tint: #211f17;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--rule-soft);
  text-underline-offset: 2px;
}
a:hover {
  text-decoration-color: currentColor;
}

.paper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

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

.masthead {
  text-align: center;
}

.ears {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-height: 1.2em;
}

.masthead h1 {
  margin: 4px 0 0;
  font-family: var(--masthead);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 104px);
  line-height: 1.05;
}
.masthead h1 a {
  text-decoration: none;
}

.motto {
  margin: 4px 0 12px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
}

.dateline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.banner {
  margin: 16px 0 0;
  padding: 8px 12px;
  background: var(--tint);
  text-align: center;
  font-size: 15px;
}

/* ---------- section heads ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 40px 0 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--rule);
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
}
.section-head small {
  font-family: var(--body);
  font-weight: 400;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- stories ---------- */

.story h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  text-wrap: balance;
}

.byline {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.summary {
  margin: 0 0 8px;
  hyphens: auto;
}

.more,
.also {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.also {
  margin-top: 2px;
  font-style: italic;
}

/* front page */
.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

.story.lead {
  padding-right: 28px;
  border-right: 1px solid var(--rule-soft);
}
.story.lead h3 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 12px;
}
.story.lead .summary {
  font-size: 20px;
  line-height: 1.5;
}
.story.lead .summary::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 900;
  font-size: 64px;
  line-height: 0.85;
  padding: 6px 8px 0 0;
}

.takes {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.takes h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.take + .take {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}
.take-title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
}
.take-title a {
  text-decoration: none;
}
.take-title a:hover {
  text-decoration: underline;
}
.take .byline {
  margin-bottom: 4px;
}
.take-summary {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.front-side {
  padding-left: 28px;
}
.front-side .story + .story {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}
.front-side .story h3 {
  font-size: 19px;
}
.front-side .summary {
  font-size: 15px;
}

/* sections flow like a broadsheet */
.columns {
  column-count: 3;
  column-gap: 40px;
  column-rule: 1px solid var(--rule-soft);
}
.columns .story {
  break-inside: avoid;
  margin-bottom: 26px;
}

.good .columns {
  background: var(--tint);
  padding: 20px 22px 0;
}

/* ---------- the wire ---------- */

.wire ol {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 40px;
  column-rule: 1px solid var(--rule-soft);
  font-size: 15px;
  line-height: 1.4;
}
.wire li {
  break-inside: avoid;
  padding: 7px 0;
  border-bottom: 1px dotted var(--rule-soft);
}
.wire-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.wire a {
  text-decoration: none;
}
.wire a:hover {
  text-decoration: underline;
}

/* ---------- the end ---------- */

.end {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 3px double var(--rule);
  text-align: center;
}
.thirty {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.2em;
}
.done {
  margin: 10px 0 2px;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
}
.nudge {
  margin: 0;
  color: var(--ink-soft);
}

.back-issues {
  margin: 36px auto 0;
  max-width: 640px;
}
.back-issues h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.back-issues ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 15px;
}

.colophon {
  margin: 36px auto 0;
  max-width: 640px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- states ---------- */

.status {
  margin: 80px 0 0;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
}
.status.small {
  margin-top: 8px;
  font-family: var(--body);
  font-style: normal;
  font-size: 16px;
  color: var(--ink-soft);
}
.dots::after {
  content: "";
  animation: dots 1.4s steps(4) infinite;
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* ---------- smaller screens ---------- */

@media (max-width: 960px) {
  .columns {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .front-grid {
    grid-template-columns: 1fr;
  }
  .story.lead {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--rule-soft);
  }
  .story.lead .summary {
    font-size: 18px;
  }
  .front-side {
    padding-left: 0;
  }
  .columns,
  .wire ol {
    column-count: 1;
  }
  .columns .story {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--rule-soft);
  }
  .good .columns .story:last-child {
    border-bottom: 0;
  }
  .ears {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dots::after {
    animation: none;
    content: "...";
  }
}

/* it is a newspaper, after all */
@media print {
  :root {
    --paper: #fff;
    --ink: #000;
    --ink-soft: #333;
    --rule: #000;
    --rule-soft: #999;
    --tint: #f2f2f2;
  }
  .back-issues,
  .banner,
  .nudge,
  .more {
    display: none;
  }
  a {
    text-decoration: none;
  }
}

/* ---------- credit ---------- */

.colophon.credit {
  margin-top: 10px;
}

.colophon.credit a {
  color: inherit;
}
