:root {
  --bg: #f2f2f2;
  --panel: #ffffff;
  --ink: #272727;
  --muted: #737373;
  --line: #dedede;
  --brand: #ef3338;
  --brand-dark: #3b3b3b;
  --nav: #2f2f2f;
  --link: #d92d33;
  --soft: #f8f8f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover,
a:focus {
  color: var(--link);
}

.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 {
  background: var(--brand-dark);
  border-bottom: 5px solid var(--brand);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 128px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: 255px;
}

.brand img {
  width: 255px;
  height: auto;
}

.tagline {
  margin: 10px 0 0;
  color: #d7d7d7;
  font-size: 15px;
}

.main-nav {
  background: var(--nav);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-inner a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-inner a:hover,
.nav-inner a:focus {
  background: var(--brand);
  color: #fff;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 250px;
  gap: 28px;
  align-items: start;
  background: var(--panel);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 24px 18px 44px;
}

.sidebar {
  font-size: 12px;
}

.widget {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.widget:last-child {
  border-bottom: 0;
}

.widget h2,
.post-section h2 {
  margin: 0 0 14px;
  color: #333;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-list,
.month-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li,
.month-list li {
  border-bottom: 1px solid #ececec;
}

.category-list a,
.month-list a {
  display: inline-block;
  padding: 9px 0;
  color: #565656;
  font-weight: 700;
}

.month-list span {
  color: var(--muted);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 44px;
  border: 1px solid var(--line);
}

.search-form input {
  min-width: 0;
  border: 0;
  padding: 11px 10px;
  font: inherit;
}

.search-form button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0;
  cursor: pointer;
}

.search-form button::before {
  content: "Go";
  font-size: 12px;
  font-weight: 700;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
  background: #313131;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.tabs span {
  padding: 7px 5px;
  text-align: center;
}

.tabs span:first-child {
  background: var(--brand);
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-post {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: start;
  color: #444;
  font-weight: 700;
}

.mini-post img {
  width: 70px;
  aspect-ratio: 90 / 65;
  object-fit: cover;
  background: var(--soft);
}

.content-column {
  min-width: 0;
}

.lead-story {
  margin-bottom: 30px;
}

.lead-story img {
  width: 100%;
  aspect-ratio: 820 / 510;
  object-fit: cover;
}

.date {
  margin: 10px 0 3px;
  color: #8a8a8a;
  font-size: 11px;
}

.lead-story h1 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.2;
}

.lead-story p {
  margin: 0;
  color: #555;
}

.post-section {
  margin-top: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.post-card img,
.compact-card img,
.wide-card img,
.side-feature img {
  width: 100%;
  object-fit: cover;
  background: var(--soft);
}

.post-card img {
  aspect-ratio: 560 / 320;
}

.post-card h3,
.compact-card h3,
.wide-card h3,
.side-feature h3 {
  min-width: 0;
  margin: 0 0 7px;
  color: #272727;
  font-size: 16px;
  line-height: 1.25;
}

.post-card p,
.wide-card p,
.side-feature p {
  color: #555;
}

.post-card p:last-child,
.wide-card p:last-child,
.side-feature p:last-child {
  margin-bottom: 0;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
}

.compact-card img {
  aspect-ratio: 280 / 160;
}

.compact-card h3 {
  font-size: 13px;
}

.split-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.inline-list {
  margin-top: 14px;
}

.wide-card {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 22px;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.wide-card:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.wide-card img {
  aspect-ratio: 560 / 320;
}

.updates-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.side-feature {
  margin-bottom: 22px;
}

.side-feature img {
  aspect-ratio: 280 / 160;
}

.side-feature h3 {
  font-size: 14px;
}

.side-feature p {
  margin-top: 6px;
}

.contact-link {
  color: var(--link);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  background: #303030;
  color: #dcdcdc;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner a {
  color: #fff;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .sidebar-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .sidebar-right .widget {
    margin-bottom: 0;
    border-bottom: 0;
  }

  .compact-grid,
  .updates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 110px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 24px 0;
    gap: 10px;
  }

  .tagline {
    margin: 0;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .nav-inner a {
    justify-content: center;
    text-align: center;
    min-width: 0;
    white-space: normal;
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 64px);
    padding: 22px 0 38px;
    border: 0;
  }

  .sidebar-left {
    order: 2;
  }

  .content-column {
    order: 1;
  }

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

  .feature-grid,
  .split-sections,
  .compact-grid,
  .updates-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 460px) {
  .brand,
  .brand img {
    width: 220px;
  }

  .header-inner,
  .nav-inner,
  .footer-inner {
    width: calc(100% - 48px);
  }

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