:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #e8eef6;
  --ink: #111827;
  --muted: #667085;
  --line: #d4dce8;
  --green: #0f766e;
  --blue: #1d4ed8;
  --accent: #f5b301;
  --header: #111827;
  --shadow: 0 16px 44px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--green);
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.layout--narrow {
  width: min(880px, calc(100% - 40px));
}

.layout--article {
  width: min(760px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 4px solid var(--accent);
}

.site-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  gap: 10px;
  align-items: baseline;
  font-weight: 850;
  letter-spacing: 0;
}

.site-brand span {
  font-size: 24px;
  color: #fff;
}

.site-brand small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.site-nav .menu,
.footer-nav .menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav {
  min-width: 0;
  flex: 1 1 auto;
}

.site-nav .menu {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.site-nav li {
  min-width: 0;
}

.site-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero-section {
  padding: 34px 0 30px;
  background:
    linear-gradient(90deg, rgba(29, 78, 216, 0.08), transparent 48%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 30px;
  align-items: stretch;
}

.hero-copy h1,
.archive-hero h1,
.page-hero h1,
.single-article__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.page-hero p,
.single-article__excerpt {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-band {
  padding: 44px 0;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.site-main > .section-band:first-child {
  padding-top: 58px;
  padding-bottom: 58px;
  border-top: 0;
}

.section-band--white {
  background: var(--surface);
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading--center {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
}

.section-heading > p:not(.eyebrow) {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--muted);
}

.section-heading--inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-card {
  min-height: 132px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.08), transparent 58%),
    var(--surface);
}

.quick-card:hover {
  border-color: rgba(29, 78, 216, 0.38);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.quick-card strong {
  font-size: 20px;
  line-height: 1.16;
}

.quick-card span {
  color: var(--muted);
  font-size: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.category-tile {
  position: relative;
  min-height: 158px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.84)),
    var(--tile-image) center / cover,
    var(--header);
  color: #fff;
  overflow: hidden;
}

.category-tile:hover {
  border-color: rgba(245, 179, 1, 0.8);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.18);
  transform: translateY(-2px);
}

.category-tile span {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.2;
}

.category-tile small {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 5px 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent);
  border-radius: 4px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

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

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: none;
}

.article-card--feature {
  box-shadow: var(--shadow);
}

.article-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  overflow: hidden;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(29, 78, 216, 0.72)),
    radial-gradient(circle at 70% 20%, rgba(245, 179, 1, 0.62), transparent 34%);
}

.article-card__body {
  padding: 16px;
}

.article-card__title {
  margin: 10px 0 0;
  font-size: 19px;
  line-height: 1.22;
}

.article-card--feature .article-card__title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.08;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.content-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-panel__image {
  display: block;
  min-height: 100%;
  background: var(--surface-soft);
}

.feature-panel__image img,
.feature-panel__image .image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-panel__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-panel__body h3 {
  margin: 14px 0 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.content-hub__list {
  display: grid;
  gap: 10px;
}

.compact-link {
  padding: 15px 16px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.compact-link:hover {
  border-color: rgba(29, 78, 216, 0.38);
}

.compact-link span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.compact-link strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.22;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--accent);
  border-radius: 50%;
}

.post-meta__category {
  color: var(--blue);
}

.archive-hero,
.page-hero {
  padding: 44px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.archive-description {
  max-width: 760px;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.single-article {
  padding: 44px 0 0;
  background: var(--surface);
}

.single-article__title {
  margin-top: 16px;
}

.single-article__cover {
  margin: 32px 0;
  overflow: hidden;
  border-radius: 4px;
}

.single-article__cover img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-content {
  padding-bottom: 54px;
}

.article-content h2,
.article-content h3 {
  margin: 1.6em 0 0.55em;
  line-height: 1.15;
}

.article-content h2 {
  font-size: 32px;
}

.article-content h3 {
  font-size: 24px;
}

.article-content p,
.article-content li {
  color: #26302b;
}

.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--surface-soft);
  color: var(--ink);
}

.article-content figure {
  margin: 30px 0;
}

.article-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  max-width: 680px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.empty-state h2 {
  margin-top: 0;
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.pagination-wrap {
  margin-top: 34px;
}

.site-footer {
  padding: 38px 0;
  background: var(--header);
  color: #fff;
  border-top: 4px solid var(--accent);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.trust-band {
  background: var(--header);
  color: #fff;
  border-top: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
}

.trust-grid h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-points div {
  min-height: 160px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.trust-points strong {
  font-size: 18px;
  line-height: 1.18;
}

.trust-points span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-brand--footer small,
.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1240px) {
  .site-header__inner {
    width: min(100% - 28px, 1180px);
  }

  .site-nav .menu {
    gap: 12px;
  }

  .site-nav a {
    font-size: 12px;
  }
}

@media (max-width: 1080px) {
  .site-header__inner {
    min-height: 72px;
  }

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

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

  .quick-grid,
  .content-hub,
  .feature-panel,
  .trust-grid,
  .trust-points {
    grid-template-columns: 1fr;
  }

  .feature-panel__image {
    min-height: 280px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px 20px;
    background: var(--header);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .site-nav a {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .layout,
  .layout--narrow,
  .layout--article,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 28px, 1180px);
  }

  .hero-section,
  .section-band {
    padding: 36px 0;
  }

  .site-main > .section-band:first-child {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .site-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .site-brand span {
    font-size: 22px;
  }

  .site-brand small {
    font-size: 10px;
  }

  .category-grid,
  .article-grid,
  .article-grid--compact,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 132px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .site-nav .menu {
    grid-template-columns: 1fr;
  }

  .feature-panel__image {
    min-height: 220px;
  }

  .feature-panel__body {
    padding: 20px;
  }

  .feature-panel__body h3 {
    font-size: 26px;
    -webkit-line-clamp: 4;
  }

  .trust-points div {
    min-height: 132px;
  }

  .section-heading--inline,
  .site-footer__inner {
    align-items: start;
    flex-direction: column;
  }

  .footer-nav .menu {
    align-items: start;
    flex-direction: column;
  }
}
