:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hero-band {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-card);
}

.hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-image figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline-soft);
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 48px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover {
  border-color: var(--hairline-strong);
}

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 20px 24px 24px;
}

.article-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-card-title a {
  color: inherit;
}

.article-card-title a:hover {
  color: var(--primary);
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-active);
  color: var(--on-primary);
}

.btn-secondary {
  display: inline-block;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.15s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.article-page {
  padding: 64px 0 80px;
}

.article-page-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline-soft);
}

.article-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 16px;
}

.article-h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 14px;
  color: var(--muted);
}

.article-hero-img {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
  height: 420px;
  object-fit: cover;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--primary-active);
}

.article-body .info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.article-body .info-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.article-body .species-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}

.article-body .species-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid var(--hairline);
}

.article-body .species-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
  vertical-align: top;
}

.article-body .species-table tr:last-child td {
  border-bottom: none;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  font-size: 14px;
  color: var(--body);
}

.sidebar-widget ul li a:hover {
  color: var(--primary);
}

.sidebar-img {
  width: 100%;
  border-radius: var(--rounded-md);
  height: 180px;
  object-fit: cover;
  margin-bottom: 12px;
}

.sidebar-caption {
  font-size: 13px;
  color: var(--muted);
}

.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-desc {
  font-size: 16px;
  color: var(--muted);
}

.page-body {
  padding: 64px 0 80px;
}

.page-content {
  max-width: 720px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 14px;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 18px;
}

.page-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 18px;
}

.page-content ul li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.contact-form {
  max-width: 560px;
  margin-top: 48px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--semantic-error);
}

.form-error {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--semantic-success);
  border-radius: var(--rounded-md);
  font-size: 15px;
  color: var(--semantic-success);
  margin-top: 20px;
}

.form-loading {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--hairline);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-heading {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a,
.footer-col ul li span {
  font-size: 14px;
  color: var(--body);
}

.footer-col ul li a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted-soft);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted-soft);
}

.footer-links a:hover {
  color: var(--body);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  z-index: 999;
  padding: 20px 24px;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 14px;
  color: #d4d2ca;
}

.cookie-inner a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn-primary {
  height: 36px;
  padding: 0 16px;
}

.cookie-actions .btn-secondary {
  height: 36px;
  padding: 0 16px;
  background: transparent;
  color: var(--canvas-soft);
  border-color: #555;
}

.cookie-actions .btn-secondary:hover {
  color: var(--canvas);
  border-color: var(--canvas);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

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

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb span {
  color: var(--muted-soft);
}

.disclaimer {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 42px;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .article-page-inner {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
  }
  .site-nav.open {
    display: flex;
  }
  .hero-band {
    padding: 48px 0;
  }
  .hero-title {
    font-size: 32px;
    letter-spacing: -0.5px;
  }
  .section {
    padding: 48px 0;
  }
  .section-title {
    font-size: 26px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-h1 {
    font-size: 28px;
  }
  .page-h1 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
