:root {
  --bg: #f8faf7;
  --surface: #ffffff;
  --surface-soft: #edf7f4;
  --text: #17211f;
  --muted: #63716d;
  --line: #dce7e2;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #d8f3ed;
  --warm: #f59e0b;
  --shadow: 0 18px 48px rgba(23, 33, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

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

.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: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1080px) / 2));
  background: rgba(248, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.hero {
  padding: 72px 0 56px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.14)),
    var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin-bottom: 26px;
  color: #3f4d49;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.secondary {
  color: var(--accent-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.hero-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.hero-panel dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.search-band {
  padding: 34px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.section {
  padding: 56px 0;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
  letter-spacing: 0;
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: var(--text);
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

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

.article-card {
  min-height: 260px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.06);
}

.article-card a {
  display: grid;
  height: 100%;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: #bdd8d2;
  transition: transform 180ms ease, border-color 180ms ease;
}

.article-card h3 {
  margin: 14px 0 10px;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: 0;
}

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

.article-card time {
  align-self: end;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-card.is-coming-soon {
  background: #fbfcfa;
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.empty-message {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.category-grid a {
  min-height: 74px;
  padding: 18px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--warm);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.category-grid a:hover,
.category-grid a:focus-visible {
  border-left-color: var(--accent);
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.08);
}

.about-section {
  padding: 56px 0;
  background: #102321;
  color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
}

.about-section .eyebrow,
.about-copy {
  color: #cce8e2;
}

.about-copy p {
  margin-bottom: 16px;
  font-size: 18px;
}

.footer {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header,
  .hero-grid,
  .about-grid {
    display: block;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero-panel {
    margin-top: 28px;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1080px);
  }

  .site-header {
    padding: 12px 14px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .article-card,
  .hero-panel {
    padding: 20px;
  }
}
