@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

: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;
  --success: #1f8a65;
  --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 {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: 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;
}

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.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: 24px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.hero-image {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  max-height: 480px;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* BADGE */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
}

/* SECTIONS */
.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: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 48px;
}

/* CARDS */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--hairline-strong);
}

.card-image {
  border-radius: var(--rounded-md);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--hairline-soft);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-title a {
  color: var(--ink);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ARTICLE */
.article-hero {
  padding: 64px 0 0;
  border-bottom: 1px solid var(--hairline);
}

.article-hero-inner {
  max-width: 800px;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-meta .badge {
  font-size: 11px;
}

.article-date {
  font-size: 13px;
  color: var(--muted);
}

.article-h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.article-lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 40px;
  max-width: 680px;
}

.article-cover {
  border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-bottom: none;
}

.article-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article-body {
  padding: 64px 0 80px;
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.25;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
  letter-spacing: 0.08px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-content a {
  color: var(--primary);
  border-bottom: 1px solid rgba(245, 78, 0, 0.3);
}

.article-content a:hover {
  border-bottom-color: var(--primary);
}

.article-content strong {
  color: var(--ink);
  font-weight: 600;
}

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin: 32px 0;
}

.info-box-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.info-box p {
  margin-bottom: 0;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

.species-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px;
}

.species-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.species-latin {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 8px;
}

.species-desc {
  font-size: 13px;
  color: var(--body);
  line-height: 1.5;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.toc-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.toc-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.toc-list a:hover {
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

/* PAGES */
.page-hero {
  padding: 64px 0;
  border-bottom: 1px solid var(--hairline);
}

.page-h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.55;
  max-width: 560px;
}

.page-body {
  padding: 64px 0 80px;
}

.page-content {
  max-width: 720px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.25;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-content ul, .page-content ol {
  margin: 0 0 20px 24px;
}

.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-content strong {
  color: var(--ink);
  font-weight: 600;
}

.page-content a {
  color: var(--primary);
  border-bottom: 1px solid rgba(245, 78, 0, 0.3);
}

.page-content a:hover {
  border-bottom-color: var(--primary);
}

/* FORM */
.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
  max-width: 560px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-input {
  display: block;
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}

.form-input:focus {
  border-color: var(--ink);
}

.form-input::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;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-active);
  color: var(--on-primary);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  font-weight: 500;
}

.form-message.success {
  background: rgba(31, 138, 101, 0.1);
  color: var(--success);
  border: 1px solid rgba(31, 138, 101, 0.2);
  display: block;
}

/* FOOTER */
.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: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-top: 12px;
  max-width: 240px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--ink);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(38, 37, 30, 0.18);
  display: none;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--canvas);
}

.cookie-text a {
  color: var(--canvas);
  border-bottom: 1px solid rgba(247, 247, 244, 0.4);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-direction: column;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(247, 247, 244, 0.3);
  border-radius: var(--rounded-md);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-cookie-reject:hover {
  border-color: rgba(247, 247, 244, 0.6);
}

/* DIVIDERS */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 32px 0;
}

/* RELATED */
.related-articles {
  padding: 64px 0;
  border-top: 1px solid var(--hairline-soft);
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--muted-soft);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 56px;
    letter-spacing: -1.5px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
    display: none;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .article-h1, .page-h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .section-title {
    font-size: 28px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 12px 24px;
  }

  .nav-hamburger {
    display: flex;
  }

  .site-nav {
    position: relative;
  }

  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero-image img {
    height: 280px;
  }

  .species-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
  }

  .cookie-actions {
    flex-direction: row;
    width: 100%;
  }

  .btn-cookie-accept, .btn-cookie-reject {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
