@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0a0a0a;
  --primary-active: #1f1f1f;
  --primary-disabled: #e5e5e5;
  --ink: #0a0a0a;
  --body: #3a3a3a;
  --body-strong: #1a1a1a;
  --muted: #6a6a6a;
  --muted-soft: #9a9a9a;
  --hairline: #e5e5e5;
  --hairline-soft: #f0f0f0;
  --canvas: #fffaf0;
  --surface-soft: #faf5e8;
  --surface-card: #f5f0e0;
  --surface-strong: #ebe6d6;
  --surface-dark: #0a1a1a;
  --surface-dark-elevated: #1a2a2a;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #a0a0a0;
  --brand-pink: #ff4d8b;
  --brand-teal: #1a3a3a;
  --brand-lavender: #b8a4ed;
  --brand-peach: #ffb084;
  --brand-ochre: #e8b94a;
  --brand-mint: #a4d4c5;
  --brand-coral: #ff6b5a;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --rounded-xs: 6px;
  --rounded-sm: 8px;
  --rounded-md: 12px;
  --rounded-lg: 16px;
  --rounded-xl: 24px;
  --rounded-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* TOP NAV */
.top-nav {
  background: var(--canvas);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline);
}
.top-nav .container { display: flex; align-items: center; height: 100%; gap: 32px; }
.nav-logo { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; color: var(--ink); flex-shrink: 0; }
.nav-logo span { color: var(--brand-teal); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: var(--rounded-md);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-card); text-decoration: none; }
.nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: 0.3s; }
.mobile-menu { display: none; flex-direction: column; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 32px; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
.mobile-menu a:last-child { border-bottom: none; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--on-primary);
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 12px 20px; height: 44px; border-radius: var(--rounded-md);
  border: none; cursor: pointer; transition: background 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-active); text-decoration: none; color: var(--on-primary); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--canvas); color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 12px 20px; height: 44px; border-radius: var(--rounded-md);
  border: 1px solid var(--hairline); cursor: pointer; transition: background 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn-secondary:hover { background: var(--surface-card); text-decoration: none; color: var(--ink); }

/* HERO */
.hero-band {
  padding: 96px 0;
  background: var(--canvas);
}
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center;
  background: var(--surface-card); color: var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--rounded-pill); margin-bottom: 24px;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 72px; font-weight: 500; line-height: 1; letter-spacing: -2.5px;
  color: var(--ink); margin-bottom: 24px;
}
.hero-subtitle { font-size: 18px; font-weight: 400; color: var(--body); line-height: 1.55; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img-card {
  background: var(--surface-soft); border-radius: var(--rounded-xl);
  overflow: hidden; aspect-ratio: 4/3;
}
.hero-img-card img { width: 100%; height: 100%; object-fit: cover; }

/* SECTION HEADINGS */
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; display: block;
}
.section-title {
  font-size: 40px; font-weight: 500; line-height: 1.1; letter-spacing: -1px;
  color: var(--ink); margin-bottom: 16px;
}
.section-subtitle { font-size: 18px; color: var(--body); line-height: 1.55; max-width: 560px; }

/* FEATURE CARDS */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  border-radius: var(--rounded-xl); padding: 32px;
}
.feature-card h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.feature-card p { font-size: 16px; line-height: 1.55; }
.feature-card-pink { background: var(--brand-pink); color: var(--on-primary); }
.feature-card-teal { background: var(--brand-teal); color: var(--on-dark); }
.feature-card-lavender { background: var(--brand-lavender); color: var(--ink); }
.feature-card-peach { background: var(--brand-peach); color: var(--ink); }
.feature-card-ochre { background: var(--brand-ochre); color: var(--ink); }
.feature-card-cream { background: var(--surface-card); color: var(--ink); }

/* ARTICLE CARDS */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg); overflow: hidden;
  transition: box-shadow 0.15s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.article-card-img { aspect-ratio: 16/9; overflow: hidden; }
.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.03); }
.article-card-body { padding: 24px; }
.article-card-cat {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; display: block;
}
.article-card-title { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.3px; color: var(--ink); margin-bottom: 10px; }
.article-card-excerpt { font-size: 14px; color: var(--body); line-height: 1.55; margin-bottom: 16px; }
.article-card-meta { font-size: 13px; color: var(--muted-soft); font-weight: 500; }

/* SECTIONS */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-soft); }
.section-header { margin-bottom: 48px; }
.section-header-flex { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }

/* FISH SPECIES GRID */
.species-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.species-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg); overflow: hidden;
}
.species-card-img { aspect-ratio: 3/2; overflow: hidden; }
.species-card-img img { width: 100%; height: 100%; object-fit: cover; }
.species-card-body { padding: 20px 24px; }
.species-card-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.species-card-latin { font-size: 13px; font-style: italic; color: var(--muted); margin-bottom: 10px; }
.species-card-desc { font-size: 14px; color: var(--body); line-height: 1.55; }

/* BADGE PILLS */
.badge { display: inline-flex; align-items: center; background: var(--surface-card); color: var(--ink); font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: var(--rounded-pill); }
.badge-teal { background: var(--brand-teal); color: var(--on-dark); }
.badge-mint { background: var(--brand-mint); color: var(--ink); }

/* CTA BAND */
.cta-band {
  background: var(--surface-soft);
  border-radius: var(--rounded-xl);
  padding: 80px;
  text-align: center;
  margin: 96px 0;
}
.cta-band h2 { font-size: 40px; font-weight: 500; letter-spacing: -1px; color: var(--ink); margin-bottom: 16px; line-height: 1.1; }
.cta-band p { font-size: 18px; color: var(--body); margin-bottom: 32px; }

/* CONTACT FORM */
.contact-form { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 40px; max-width: 560px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--body-strong); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%; background: var(--canvas); color: var(--ink);
  font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.55;
  padding: 12px 16px; height: 44px; border-radius: var(--rounded-md);
  border: 1px solid var(--hairline); outline: none; transition: border-color 0.15s;
}
.form-textarea { height: auto; min-height: 100px; resize: vertical; }
.form-input:focus, .form-textarea:focus { border-color: var(--ink); }
.form-success { display: none; background: #f0fdf4; border: 1px solid var(--success); color: #15803d; padding: 12px 16px; border-radius: var(--rounded-md); font-size: 14px; font-weight: 500; margin-top: 12px; }

/* ARTICLE PAGE */
.article-hero { padding: 64px 0 48px; }
.article-hero-inner { max-width: 780px; }
.article-hero h1 { font-size: 56px; font-weight: 500; line-height: 1.05; letter-spacing: -2px; color: var(--ink); margin-bottom: 20px; }
.article-hero-meta { font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.article-hero-img { border-radius: var(--rounded-xl); overflow: hidden; margin-bottom: 64px; aspect-ratio: 2/1; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.article-body { max-width: 100%; }
.article-body h2 { font-size: 32px; font-weight: 500; letter-spacing: -0.5px; color: var(--ink); margin: 40px 0 16px; line-height: 1.15; }
.article-body h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.article-body p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 24px; }
.article-body li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.article-body a { color: var(--ink); text-decoration: underline; }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--surface-soft); border-radius: var(--rounded-lg); padding: 24px; margin-bottom: 24px; }
.sidebar-card h4 { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li { font-size: 14px; color: var(--body); padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--ink); font-weight: 500; font-size: 14px; }
.related-articles { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--hairline); }

/* ABOUT / PAGES */
.page-hero { padding: 80px 0 48px; border-bottom: 1px solid var(--hairline); margin-bottom: 64px; }
.page-hero h1 { font-size: 56px; font-weight: 500; letter-spacing: -2px; color: var(--ink); margin-bottom: 16px; line-height: 1.05; }
.page-hero p { font-size: 18px; color: var(--body); max-width: 560px; }
.page-content { max-width: 780px; padding-bottom: 96px; }
.page-content h2 { font-size: 28px; font-weight: 500; color: var(--ink); margin: 40px 0 12px; letter-spacing: -0.3px; }
.page-content h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.page-content p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }

/* FOOTER */
.footer {
  background: var(--surface-soft);
  padding: 80px 0 40px;
  border-top: 1px solid var(--hairline);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 12px; max-width: 280px; }
.footer-col h5 { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--hairline); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--muted-soft); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--muted-soft); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface-dark); color: var(--on-dark);
  border-radius: var(--rounded-xl); padding: 24px 32px;
  max-width: 680px; width: calc(100% - 48px);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  z-index: 200; box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.cookie-banner p { font-size: 14px; color: var(--on-dark-soft); line-height: 1.55; flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--on-dark); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept {
  background: var(--on-primary); color: var(--ink);
  font-size: 14px; font-weight: 600; padding: 10px 18px;
  border-radius: var(--rounded-md); border: none; cursor: pointer;
  transition: opacity 0.15s;
}
.cookie-reject {
  background: transparent; color: var(--on-dark-soft);
  font-size: 14px; font-weight: 600; padding: 10px 18px;
  border-radius: var(--rounded-md); border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  transition: border-color 0.15s;
}
.cookie-reject:hover { border-color: rgba(255,255,255,0.5); }

/* BREADCRUMBS */
.breadcrumbs { padding: 16px 0; font-size: 13px; color: var(--muted-soft); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 6px; }

/* DIVIDERS */
.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* TWO COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-title { font-size: 52px; letter-spacing: -2px; }
  .section-title { font-size: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .species-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero-band { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 36px; letter-spacing: -1px; }
  .hero-img-card { display: none; }
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .species-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
  .cta-band h2 { font-size: 28px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-right { display: none; }
  .article-hero h1 { font-size: 36px; letter-spacing: -1px; }
  .page-hero h1 { font-size: 36px; letter-spacing: -1px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .article-layout { gap: 40px; }
  .section-header-flex { flex-direction: column; align-items: flex-start; gap: 16px; }
}
