@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;
  --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;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

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;
  font-weight: 400;
  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; }

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

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

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  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-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-toggle svg { display: block; }

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

.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(--ink);
  background: var(--surface-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}

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

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

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
  background: var(--surface-strong);
}

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

/* SECTIONS */
.section {
  padding: 80px 0;
}

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

.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;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 560px;
}

.section-head { margin-bottom: 48px; }

/* ARTICLE CARDS */
.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(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

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

.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-strong);
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-card-img img { transform: scale(1.02); }

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

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

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

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

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

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

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

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

/* SPECIES TABLE */
.species-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.species-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
  font-size: 14px;
}

.species-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--canvas-soft);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

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

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

.species-table td:first-child { color: var(--ink); font-weight: 500; }

/* TWO-COL LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.two-col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
  background: var(--surface-strong);
}

.two-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  margin-top: 24px;
  line-height: 1.4;
}

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

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

.prose li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--body);
}

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

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

.prose strong { color: var(--ink); font-weight: 600; }

/* ARTICLE PAGE */
.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
  max-width: 760px;
}

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

.article-header h1 {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}

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

.article-body {
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 760px 1fr;
  gap: 48px;
  align-items: start;
}

.article-content { max-width: 760px; }

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

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

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-links { list-style: none; }

.sidebar-links li { border-bottom: 1px solid var(--hairline-soft); }
.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 10px 0;
  line-height: 1.4;
  transition: color 0.15s;
}

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

/* ARTICLE HERO IMAGE */
.article-hero-img {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: var(--surface-strong);
  margin-bottom: 40px;
}

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

/* INFO BOX */
.info-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box p {
  margin: 0;
  font-size: 14px;
  color: var(--body-strong);
}

/* CONTACT FORM */
.contact-section {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
}

.contact-section h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-section .form-intro {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 32px;
  line-height: 1.6;
}

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

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

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

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

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

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

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

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: none;
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--success);
  font-size: 14px;
  margin-top: 16px;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

/* 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: 48px;
  margin-bottom: 48px;
}

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

.footer-brand h3 span { color: var(--primary); }

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 260px;
}

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

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

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

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

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

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

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

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  max-width: 600px;
  width: calc(100% - 48px);
  z-index: 9999;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

#cookie-banner p {
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
  color: var(--canvas);
  margin: 0;
}

#cookie-banner p a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

.btn-cookie-reject {
  background: transparent;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.4); color: var(--canvas); }

/* DISCLAIMER */
.disclaimer-bar {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* PAGES (about, privacy, terms) */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
  max-width: 760px;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
}

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

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .article-body { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open li { border-bottom: 1px solid var(--hairline-soft); }
  .nav-links.open a { display: block; padding: 12px 0; }
  .site-nav { position: relative; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; letter-spacing: -0.72px; }
  .two-col { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  #cookie-banner { flex-direction: column; gap: 16px; }
  .cookie-actions { width: 100%; }
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero h1 { font-size: 30px; }
  .article-header h1 { font-size: 28px; }
  .page-header h1 { font-size: 28px; }
  .contact-section { padding: 24px; }
}
