:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f3f9f5;
  --fg: #18241c;
  --fg-muted: #4e5d52;
  --accent: #1f9e5b;
  --accent-strong: #0f7c42;
  --card-bg: #ffffff;
  --border: rgba(18, 128, 80, 0.18);
  --shadow: 0 12px 32px rgba(16, 64, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid rgba(15, 30, 65, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

.hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(31, 158, 91, 0.18), rgba(243, 249, 245, 0.95));
}

.hero h1 {
  font-size: clamp(2rem, 3rem, 4vw);
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 480px;
  color: var(--fg-muted);
}

.news-feed {
  padding: 2.5rem 0 3rem;
}

.news-feed h2,
.news-feed h1 {
  margin-bottom: 1.5rem;
}

.info-page {
  padding: 3rem 0 3.5rem;
}

.info-page .lead {
  font-size: 1.05rem;
  max-width: 720px;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  gap: 2rem;
}

.info-section h2 {
  margin-bottom: 0.75rem;
}

.info-section p {
  margin: 0 0 1rem 0;
}

.info-section ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: var(--fg);
}

.info-section ul li {
  margin-bottom: 0.5rem;
}

.info-meta {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.card-visual {
  width: 100%;
  height: 210px;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(18, 128, 80, 0.22);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  position: relative;
  box-shadow: inset 0 12px 28px rgba(14, 119, 76, 0.06), 0 8px 22px rgba(18, 83, 55, 0.1);
}

.card-visual::after {
  content: '';
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 48px;
  height: 48px;
  background-image: url('/logo.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
  pointer-events: none;
}

.card-visual-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  text-decoration: none;
}

.card-visual-title {
  font-size: clamp(0.85rem, 1.4vw, 1.2rem);
  font-weight: 700;
  color: #116d3d;
  line-height: 1.35;
}

.card-visual--large {
  height: clamp(240px, 32vw, 320px);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.card-visual--large .card-visual-title {
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  color: #0d5a32;
}

.excerpt p {
  margin: 0 0 0.75rem 0;
  color: var(--fg);
}

.read-more-wrapper {
  margin: 0;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
}

.read-more:hover,
.read-more:focus {
  color: var(--accent);
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.category-tags a {
  background: rgba(18, 158, 91, 0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.37rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.article-detail {
  padding: 2.5rem 0 3.5rem;
}

.article-detail h1 {
  font-size: clamp(2rem, 2.6rem, 5vw);
}

.article-detail .meta {
  color: var(--fg-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-hero-image {
  margin: 1.75rem 0;
}

.article-body {
  margin: 1.5rem 0;
  font-size: 1.05rem;
}

.article-body p {
  margin: 0 0 1rem 0;
}

.article-detail .category-tags {
  margin: 1.5rem 0 0 0;
}

.source-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.breadcrumb {
  background: rgba(18, 158, 91, 0.08);
  border-bottom: 1px solid rgba(15, 30, 65, 0.08);
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.breadcrumb span,
.breadcrumb a {
  color: var(--fg-muted);
}

.feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

.rss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.rss-url {
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-alt);
  font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  font-size: 0.85rem;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}

.rss-latest {
  padding: 2.5rem 0 3rem;
}

.rss-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.rss-article-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.rss-article-list .rss-meta {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.pagination {
  margin: 2.5rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  background: var(--bg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-link:hover,
.page-link:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.page-link.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}

.page-link.ellipsis {
  pointer-events: none;
  border-color: transparent;
  min-width: 1.5rem;
}

.page-link.prev,
.page-link.next {
  font-weight: 600;
}

.feedback .button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.empty-state {
  color: var(--fg-muted);
  font-style: italic;
}

.site-footer {
  border-top: 1px solid rgba(15, 30, 65, 0.08);
  background: var(--bg-alt);
  padding: 1.5rem 0 2rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.site-footer .meta {
  margin-top: 0.4rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0;
}

.footer-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--accent-strong);
}

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .primary-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination {
    justify-content: center;
  }

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