@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --green: #1B4332;
  --green-light: #2D6A4F;
  --gray-bg: #F8F9FA;
  --gray-border: #E9ECEF;
  --text: #212529;
  --text-muted: #6C757D;
  --white: #FFFFFF;
  --max-read: 680px;
  --max-wide: 1100px;
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--gray-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.15s;
}

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

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--green-light);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  margin: 5px 0;
}

/* Hero */
.hero {
  background: var(--green);
  color: var(--white);
  padding: 3rem 1.5rem;
}

.hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-visual svg {
  width: 100%;
  max-height: 220px;
}

/* Main layout */
.main-content {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Article stream */
.article-stream {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stream-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--gray-border);
  background: transparent;
}

.stream-card:first-child {
  padding-top: 0;
}

.stream-card-thumb img,
.stream-card-thumb svg {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
}

.stream-card-body h2 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.stream-card-body h2 a {
  color: var(--text);
}

.stream-card-body h2 a:hover {
  color: var(--green);
}

.stream-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.stream-card-excerpt {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.stream-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-bottom: 0.4rem;
}

/* Flat cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.flat-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  overflow: hidden;
}

.flat-card-thumb img,
.flat-card-thumb svg {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.flat-card-body {
  padding: 1.25rem;
}

.flat-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.flat-card-body h3 a {
  color: var(--text);
}

.flat-card-body h3 a:hover {
  color: var(--green);
}

.flat-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Article reading */
.article-page {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-deck {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-border);
}

.article-featured-img {
  margin: 1.5rem 0 2rem;
  border-radius: 4px;
  overflow: hidden;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--green);
}

.article-body blockquote {
  border-left: 3px solid var(--green);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Author box */
.author-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  margin: 2.5rem 0;
}

.author-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.author-avatar svg {
  width: 64px;
  height: 64px;
}

.author-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Related articles */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-border);
}

.related-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-list a {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Static pages */
.page-content {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.page-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--green);
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.page-content p,
.page-content li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--green-light);
  color: var(--white);
}

/* Intro block on homepage */
.intro-block {
  max-width: var(--max-read);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.intro-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--green);
  color: var(--white);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--white);
  font-size: 0.88rem;
  opacity: 0.9;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 1rem 1.5rem;
  z-index: 200;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.88rem;
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

.btn-outline:hover {
  background: var(--gray-bg);
  color: var(--green);
}

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-border);
    gap: 0.75rem;
  }

  .nav-links.open { display: flex; }

  .menu-toggle { display: block; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 { font-size: 1.6rem; }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .article-header h1 { font-size: 1.6rem; }
}
