/* aquaponicsfilter.com -- Mintlify-inspired editorial + Ghibli hero */

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

/* ── Tokens ── */
:root {
  --canvas: #E8EDE9;
  --surface: #F4F6F4;
  --ink: #1A2B22;
  --ink-muted: #5E7366;
  --accent: #2B8C5A;
  --accent-hover: #1E6B42;
  --water: #3A8FB7;
  --col: 860px;
  --col-wide: 1120px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ── Shell ── */
.shell { max-width: var(--col); margin: 0 auto; padding: 0 24px; }
.shell-wide { max-width: var(--col-wide); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(232, 237, 233, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 43, 34, 0.08);
}
.site-header .shell-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}
.fish-mark svg {
  width: 112px;
  height: 48px;
  color: #fff;
  transition: color 0.15s;
}
.site-header.is-scrolled .wordmark { color: var(--ink); }
.site-header.is-scrolled .fish-mark svg { color: var(--ink); }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: #fff; }
.site-header.is-scrolled .site-nav a { color: var(--ink-muted); }
.site-header.is-scrolled .site-nav a:hover { color: var(--ink); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1a2b22;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 15, 0.3) 0%,
    rgba(10, 20, 15, 0.08) 35%,
    rgba(10, 20, 15, 0.05) 65%,
    rgba(10, 20, 15, 0.35) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 48px 52px;
  background: rgba(10, 20, 15, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 48px -12px rgba(0, 0, 0, 0.25);
}
.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.hero-tagline {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 0 auto 32px;
}
.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ── Articles (homepage inlined) ── */
.articles-feed { padding: 80px 0 40px; }
.article-block { margin-bottom: 80px; }
.article-block:last-child { margin-bottom: 40px; }
.article-meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.article-block h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.article-block h2 a {
  color: var(--ink);
  text-decoration: none;
}
.article-block h2 a:hover { color: var(--accent); }

.article-block h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin: 36px 0 14px;
  color: var(--ink);
}
.article-block p {
  margin-bottom: 18px;
  color: var(--ink);
}
.article-block p:last-child { margin-bottom: 0; }
.article-block strong { font-weight: 600; }

.article-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  opacity: 0.25;
  margin: 0 auto 80px;
}

/* ── Featured article image ── */
.article-featured-img {
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
}
.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Blog index ── */
.blog-index { padding: 120px 0 60px; }
.blog-index h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.blog-card {
  display: block;
  padding: 28px 0;
  border-top: 1px solid rgba(26, 43, 34, 0.1);
  text-decoration: none;
  transition: background 0.15s;
}
.blog-card:last-child { border-bottom: 1px solid rgba(26, 43, 34, 0.1); }
.blog-card-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.blog-card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-excerpt {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── About ── */
.about-page { padding: 120px 0 60px; }
.about-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.about-page p { margin-bottom: 18px; }

/* ── Single article page ── */
.article-page { padding: 120px 0 60px; }
.article-page h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.article-page .article-meta { margin-bottom: 36px; }
.article-page h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  margin: 40px 0 16px;
}
.article-page h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin: 32px 0 12px;
}
.article-page p { margin-bottom: 18px; }
.article-page ol,
.article-page ul {
  margin: 0 0 18px 24px;
}
.article-page li {
  margin-bottom: 6px;
}

/* ── Cross-links ── */
.cross-links {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(26, 43, 34, 0.1);
}
.cross-links p {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.cross-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cross-links li { margin-bottom: 8px; }
.cross-links a {
  font-size: 16px;
  font-weight: 500;
}

/* ── Footer ── */
.site-footer {
  padding: 48px 0;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
}
.footer-fish {
  margin-bottom: 10px;
}
.footer-fish svg {
  width: 128px;
  height: 56px;
  color: var(--ink);
  opacity: 0.5;
}
.site-footer p { font-size: 14px; }

/* ── 404 ── */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
}
.page-404 h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-404 p { color: var(--ink-muted); margin-bottom: 24px; }
.page-404 a { font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { min-height: 85vh; min-height: 85svh; }
  .hero-content { padding: 32px 28px; margin: 0 16px; }
  .site-nav { gap: 20px; }
  .articles-feed { padding: 48px 0 24px; }
  .article-block { margin-bottom: 56px; }
  .article-divider { margin-bottom: 56px; }
  .blog-index,
  .about-page,
  .article-page { padding-top: 80px; }
}
