:root {
  --ink: #080808;
  --muted: #666;
  --line: #dedede;
  --paper: #fff;
  --soft: #f4f4f2;
  --accent: #e22d2d;
  --gold: #f4b000;
  --green: #128a54;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 2px solid var(--ink);
}

.masthead {
  max-width: var(--max);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-logo {
  width: 196px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.footer-logo {
  width: 226px;
  max-height: 54px;
  margin: 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.brand-name {
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.desktop-nav a {
  padding: 26px 0;
}

.desktop-nav a:hover,
.topics-scroll a:hover,
.article-card h3 a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  transition: width 0.2s ease;
}

.search-form.is-open {
  width: min(320px, 48vw);
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0 0 15px;
}

.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.search-form .icon-button {
  border: 0;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.mobile-drawer a {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-drawer.is-open {
  display: block;
}

.topics-bar {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.topics-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
}

.topics-bar h2 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
}

.topics-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.topics-scroll::-webkit-scrollbar {
  display: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 56px;
}

.lead-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.lead-story {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-bottom: 4px solid var(--ink);
  background: var(--soft);
}

.lead-image {
  display: block;
  min-height: 100%;
}

.lead-story h1 a {
  color: inherit;
}

.lead-story > div {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.channel {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-story h1 {
  margin: 12px 0;
  max-width: 12ch;
  font-size: 45px;
  line-height: 0.96;
  font-weight: 900;
}

.lead-story p {
  margin: 0 0 20px;
  color: #333;
  font-size: 17px;
  line-height: 1.45;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.meta span::before {
  content: "/";
  margin: 0 7px;
  color: #999;
}

.quick-list {
  border: 2px solid var(--ink);
  padding: 20px;
}

.quick-list h2,
.side-block h2,
.section-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-weight: 800;
  line-height: 1.25;
}

.quick-list h2 + a {
  margin-top: 12px;
}

.quick-list span {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.ad-band {
  min-height: 92px;
  margin: 28px 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 2px dashed #999;
  background: #fbfbf8;
}

.ad-band span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-band strong {
  font-size: 20px;
  text-align: right;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
}

.filter-tabs {
  display: flex;
  gap: 4px;
}

.filter-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-tabs button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  padding-top: 24px;
}

.article-card {
  min-width: 0;
}

.thumb {
  display: block;
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
  background: var(--soft);
}

.thumb img {
  transition: transform 0.25s ease;
}

.article-card:hover .thumb img {
  transform: scale(1.04);
}

.card-body {
  padding: 13px 0 0;
}

.article-card h3 {
  margin: 7px 0 10px;
  font-size: 19px;
  line-height: 1.12;
  font-weight: 900;
}

.card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.extra-story {
  display: none;
}

.article-grid.show-extra .extra-story {
  display: block;
}

.load-more {
  width: 100%;
  min-height: 48px;
  margin-top: 28px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-block {
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-cloud a {
  padding: 8px 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.compact-posts a {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.compact-posts img {
  height: 64px;
}

.site-footer {
  padding: 34px 18px;
  border-top: 3px solid var(--ink);
  text-align: center;
  background: var(--soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 22px auto 14px;
  font-size: 13px;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.archive-header {
  padding: 28px 0 18px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 26px;
}

.archive-kicker {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.archive-header h1,
.single-header h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.archive-description {
  max-width: 720px;
  margin-top: 12px;
  color: #333;
  font-size: 16px;
  line-height: 1.55;
}

.archive-grid {
  padding-top: 0;
}

.pagination {
  margin-top: 30px;
  font-weight: 900;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.pagination .current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.page-shell,
.single-layout {
  max-width: 820px;
  margin: 0 auto;
}

.page-heading {
  margin-bottom: 24px;
}

.page-content {
  font-size: 18px;
  line-height: 1.7;
}

.page-content p,
.page-content ul,
.page-content ol,
.page-content figure {
  margin: 0 0 1.3em;
}

.page-content a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-header {
  padding: 28px 0 22px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 22px;
}

.single-header h1 {
  margin: 10px 0 12px;
}

.single-hero {
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
  overflow: hidden;
  background: var(--soft);
}

.empty-state {
  padding: 28px;
  border: 2px solid var(--ink);
  background: var(--soft);
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .masthead {
    grid-template-columns: auto 1fr;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .lead-strip,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .masthead {
    min-height: 62px;
    gap: 12px;
    padding-inline: 14px;
  }

  .brand-logo {
    width: 162px;
    max-height: 40px;
  }

  .search-form.is-open {
    position: absolute;
    right: 62px;
    width: calc(100vw - 130px);
  }

  .topics-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-inline: 14px;
  }

  main {
    padding-inline: 14px;
  }

  .lead-story {
    grid-template-columns: 1fr;
  }

  .lead-story img {
    min-height: 235px;
  }

  .lead-story > div {
    padding: 22px;
  }

  .lead-story h1 {
    max-width: 16ch;
    font-size: 34px;
  }

  .ad-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .ad-band strong {
    text-align: left;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-tabs {
    max-width: 100%;
    overflow-x: auto;
  }

  .article-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
  }

  .article-card h3 {
    font-size: 17px;
  }

  .archive-header h1,
  .single-header h1 {
    font-size: 34px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: 142px;
    max-height: 36px;
  }

  .icon-button,
  .search-form {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .lead-story h1 {
    font-size: 29px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }
}
