:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --text: #1e2523;
  --muted: #66716d;
  --line: #dfe5df;
  --accent: #0f7a5a;
  --accent-strong: #09543e;
  --warning-bg: #fff6d8;
  --warning-border: #e3be4f;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 16px 20px;
}

.brand {
  color: var(--accent-strong);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.search-form {
  display: flex;
  gap: 8px;
  width: min(520px, 100%);
}

.search-form input {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  flex: 1;
  font: inherit;
  min-width: 0;
  padding: 10px 12px;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 122, 90, 0.15);
  outline: none;
}

.search-form button,
.read-link {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.search-form button:hover,
.read-link:hover {
  background: var(--accent-strong);
}

.page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 36px 20px 56px;
}

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

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

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  margin: 0 0 14px;
}

.page-heading p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 680px;
}

.notice,
.empty-state {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  margin: 22px 0;
  padding: 16px;
}

.article-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.article-card img {
  aspect-ratio: 16 / 9;
  background: #e6ebe7;
  display: block;
  object-fit: cover;
  width: 100%;
}

.article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 8px;
  margin: 0 0 10px;
}

.meta span::before {
  content: "/";
  padding-right: 8px;
}

h2 {
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

h2 a {
  text-decoration: none;
}

h2 a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.summary {
  color: var(--muted);
  margin: 0 0 18px;
}

.read-link {
  align-self: flex-start;
  margin-top: auto;
}

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

@media (max-width: 680px) {
  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .search-form {
    width: 100%;
  }

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