/* The Shoulder Season — editorial styles */

:root {
  --paper: #fafaf7;
  --ink: #17181c;
  --ink-soft: #565b63;
  --ink-faint: #8b9098;
  --accent: #2749e8;
  --accent-deep: #1c36ae;
  --rule: #e8e7e1;
  --tint: #f1f1ec;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  border-top: 4px solid var(--accent);
}

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 22px;
}

a { color: var(--accent); text-decoration-color: rgba(39, 73, 232, 0.3); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--accent); }

/* Masthead */
.masthead {
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.brand { text-decoration: none; color: inherit; }
.brand-mark {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.8px;
  line-height: 1;
  color: var(--ink);
}
.brand-tag {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.nav { display: flex; gap: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* Post */
main { padding: 44px 22px 20px; }
main.wrap { padding-left: 22px; padding-right: 22px; }

.post-date {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}
.post-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.6px;
}
.post-teaser {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.5;
}
.post-byline {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 26px;
  font-weight: 500;
}
.post-hero { margin: 0 0 36px; }
.post-hero img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.post-hero figcaption {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 8px;
  text-align: right;
}

.post-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 42px 0 10px;
  letter-spacing: -0.2px;
}
.post-body h2:first-child { margin-top: 0; }
.post-body p { margin: 0 0 15px; }
.post-body .source { font-size: 14px; font-weight: 600; }
.post-body hr { border: none; border-top: 1px solid var(--rule); margin: 34px 0; }

/* Stat of the day */
.post-body .stat-box, blockquote.stat {
  background: var(--tint);
  border: none;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 40px 0;
}
.stat-box .stat-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.stat-box .stat-figure {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: -1px;
}
.stat-box p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.post-endmark {
  margin: 46px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 500;
}

/* Lists of posts */
.section-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  margin: 52px 0 14px;
}
.post-list { list-style: none; padding: 0; margin: 0 0 16px; }
.post-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.pl-date {
  display: inline-block;
  min-width: 105px;
  color: var(--ink-faint);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.pl-teaser { display: block; margin-left: 105px; font-size: 14px; color: var(--ink-soft); }
.archive-list li { padding: 15px 0; }

/* Prev / next */
.prev-next {
  display: flex;
  justify-content: space-between;
  margin: 30px 0 0;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.prev-next .right { margin-left: auto; }

/* Footer */
.footer {
  margin-top: 70px;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  padding: 30px 0 40px;
  font-size: 13px;
}
.footer strong { color: var(--ink-soft); }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--accent); }
.footer p { margin: 0 0 6px; }

@media (max-width: 560px) {
  .brand-mark { font-size: 29px; }
  .post-title { font-size: 29px; }
  .pl-teaser { margin-left: 0; }
}
