:root {
  --ink: #141210;
  --paper: #fffdf9;
  --muted: #6d645a;
  --rule: #ddd5c8;
  --accent: #8c1c2b;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 20;
}

.skip:focus { left: 12px; top: 12px; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.masthead {
  border-bottom: 4px double var(--ink);
  padding: 14px 0 16px;
}

.masthead-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead-bar .edition { color: var(--accent); }

.brand {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: clamp(34px, 6.4vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 16px 0 10px;
  font-weight: 700;
}

.brand a { color: inherit; text-decoration: none; }

.tagline {
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.sections {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.tabs {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs button {
  flex: 0 0 auto;
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 3px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tabs button:hover { color: var(--ink); }

.tabs button.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

main { padding: 30px 0 60px; }

.hero { margin-bottom: 34px; }

.hero .story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: start;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 34px;
}

.hero .story-media {
  order: 2;
  position: relative;
  aspect-ratio: auto;
  min-height: 340px;
}

.hero .story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .story-cat { font-size: 12px; }

.hero .story-title {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 6px 0 12px;
}

.hero .story-desc {
  font-size: 18px;
  color: #3d3730;
  max-width: 46ch;
}

.story { margin: 0 0 26px; }

.story-media {
  display: block;
  overflow: hidden;
  background: #ece7de;
  aspect-ratio: 16 / 10;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.story-media:hover img { transform: scale(1.03); }

.story-media--empty { background: #ece7de; }

.story-cat {
  margin: 10px 0 4px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-title {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.005em;
}

.story-title a { text-decoration: none; }

.story-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.story-desc {
  margin: 0 0 8px;
  font-size: 15.5px;
  color: #4a433b;
  line-height: 1.5;
}

.story-meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.story-meta span + time::before {
  content: "·";
  margin-right: 10px;
}

.feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 28px;
  border-top: 1px solid var(--rule);
  padding-top: 30px;
}

.sponsored {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 18px 20px 6px;
  margin: 0 0 34px;
  background: #faf6ee;
}

.sponsored-title {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sponsored-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 30px;
}

.sponsored .story {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  align-items: center;
  margin: 0 0 18px;
}

.sponsored .story-media { aspect-ratio: 16 / 9; }

.sponsored .story-title { font-size: 24px; }

.sponsored .story-title { font-size: 18px; }

.sponsored .story-cat { color: var(--muted); }

.feed-note {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  padding: 30px 0;
}

.site-foot {
  border-top: 4px double var(--ink);
  padding: 34px 0 40px;
  background: #fbf7f0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 26px;
}

.foot-brand {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.foot-note {
  margin: 0;
  font-size: 14.5px;
  color: #4a433b;
  max-width: 38ch;
}

.foot-label {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-foot a { text-decoration: none; font-size: 14.5px; line-height: 1.9; }

.site-foot a:hover { text-decoration: underline; }

.copyright {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

@media (max-width: 900px) {
  .hero .story { grid-template-columns: 1fr; gap: 18px; }
  .hero .story-media { order: 0; }
  .feed { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead-bar { font-size: 9.5px; letter-spacing: .08em; gap: 8px; white-space: nowrap; }
  .masthead-bar .edition { display: none; }
  .feed { grid-template-columns: 1fr; }
  .sponsored-list { grid-template-columns: 1fr; }
  .sponsored .story { grid-template-columns: 1fr; gap: 14px; }
  .sponsored .story-title { font-size: 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .tabs { gap: 18px; }
}

/* document pages */
.page-doc { background: var(--paper); }

.doc-head { border-bottom: 1px solid var(--rule); }

.doc-head-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--sans);
  font-size: 13px;
}

.doc-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.doc-back { color: var(--muted); text-decoration: none; }

.doc-back:hover { color: var(--ink); }

.doc-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 22px 70px;
}

.doc-kicker {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc-title {
  margin: 0 0 26px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -.015em;
}

.doc-body { font-size: 17.5px; line-height: 1.7; }

.doc-body h2 {
  margin: 38px 0 12px;
  font-size: 22px;
  letter-spacing: -.01em;
}

.doc-body p { margin: 0 0 16px; }

.doc-body ul { margin: 0 0 18px; padding-left: 22px; }

.doc-body li { margin-bottom: 8px; }

.doc-body a { color: var(--accent); }

.doc-foot {
  border-top: 1px solid var(--rule);
  padding: 24px 22px 50px;
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

.doc-foot a { color: var(--muted); }

.doc-foot p { margin: 0 0 8px; }

@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; overflow: visible; row-gap: 4px; }
}

.feed-more {
  margin: 30px 0 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.feed-more[hidden] { display: none; }

.feed-more button {
  appearance: none;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, .28);
  padding: 11px 26px;
  font: inherit;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s ease, opacity .15s ease;
}

.feed-more button:hover { border-color: currentColor; }
.feed-more button[hidden] { display: none; }

.feed-more p {
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(0, 0, 0, .5);
}

.feed-sentinel { height: 1px; width: 100%; }

.story-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hero .story-desc { -webkit-line-clamp: 4; }

.sponsored .story-desc { -webkit-line-clamp: 2; }
