@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

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

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --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;
}

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

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  line-height: 1.5;
  font-weight: 400;
}

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

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

.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;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.11px;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.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;
}

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

.hero-band {
  padding: 80px 0 80px;
  background: var(--canvas);
}

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

.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: clamp(36px, 4vw, 56px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

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

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

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

.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); }

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

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

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

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

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.feature-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 16px;
}

.feature-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 3px 8px;
  border-radius: var(--rounded-pill);
  display: inline-block;
  margin-bottom: 12px;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

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

.feature-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.article-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.article-card-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.11px;
  margin-bottom: 10px;
}

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

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

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

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.contact-section { padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail-item {
  font-size: 14px;
  color: var(--body);
}

.contact-detail-item strong {
  color: var(--ink);
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

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

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.88px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

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

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-soft);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}

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

.form-status {
  margin-top: 16px;
  font-size: 14px;
  display: none;
}

.form-status.success { color: var(--semantic-success); display: block; }
.form-status.error { color: var(--semantic-error); display: block; }

.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

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

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

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

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

.footer-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
}

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

.footer-bottom a {
  color: var(--muted);
  transition: color 0.15s;
}

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

.footer-disclaimer {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-soft);
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

.cookie-inner {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-inner p {
  font-size: 14px;
  color: #d4d2cc;
  line-height: 1.5;
}

.cookie-inner a { color: #d4d2cc; text-decoration: underline; }

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

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cookie-reject {
  background: transparent;
  color: #d4d2cc;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(212,210,204,0.3);
  cursor: pointer;
  white-space: nowrap;
}

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

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

.page-hero-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.72px;
  max-width: 720px;
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.5;
}

.page-hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.page-hero-meta span {
  font-size: 13px;
  color: var(--muted);
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}

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

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 32px 0 12px;
}

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

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

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

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(245,78,0,0.3);
}

.article-content a:hover {
  text-decoration-color: var(--primary);
}

.article-img-block {
  margin: 32px 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

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

.article-img-caption {
  padding: 10px 16px;
  background: var(--surface-card);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.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: 28px 0;
}

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

.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.data-table td {
  padding: 12px 16px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--canvas-soft); }

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

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

.page-prose {
  max-width: 760px;
  padding: 48px 0 80px;
}

.page-prose h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin: 40px 0 12px;
}

.page-prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

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

.page-prose ul, .page-prose ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

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

.page-prose a { color: var(--primary); text-decoration: underline; }

.species-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.species-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
}

.species-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.species-card-latin {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 8px;
}

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

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@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 24px;
    gap: 0;
  }

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

  .site-nav a {
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 16px;
  }

  .site-nav a:last-child { border-bottom: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero-img img { height: 260px; }
  .hero-title { font-size: 36px; }

  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }

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

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

  .cookie-inner { flex-direction: column; align-items: flex-start; }

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

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .page-hero { padding: 40px 0 32px; }
  .section { padding: 48px 0; }
}
