/* Algaloo (algaloo.top) — planted-tank cross-section / glass-panel theme.
   Pale aqua, deep teal, sand amber, plant green; waterline top bar + stratum-lined cards. */

:root {
  --bg: #f0f7f4;
  --surface: #ffffff;
  --ink: #1d2a26;
  --muted: #5f726b;
  --teal: #0f5e5a;
  --teal-deep: #0a423f;
  --teal-bright: #2f8f88;
  --sand: #d9a441;
  --plant: #3f8f6a;
  --line: #d8e4df;
  --line-strong: #b9ccc4;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --accent: #0f5e5a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image: repeating-linear-gradient(0deg, rgba(15, 94, 90, 0.028) 0 2px, transparent 2px 92px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--teal-bright); text-decoration: none; }
a:hover { color: var(--sand); }

/* Accent per category */
.accent-layout-composition { --accent: #0f5e5a; }
.accent-hardscape-substrate { --accent: #b08d3a; }
.accent-lighting-co2-fertilization { --accent: #d97706; }
.accent-aquatic-plants { --accent: #3f8f6a; }
.accent-maintenance-troubleshooting { --accent: #2f6f8f; }

/* Header with waterline */
.site-head { background: var(--teal-deep); color: #e8f4ef; }
.waterline {
  height: 9px;
  background: repeating-linear-gradient(90deg,
    #7fd0c5 0 60px, #d9a441 60px 96px, #3f8f6a 96px 156px,
    #2f8f88 156px 216px, #d97706 216px 276px);
}
.head-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; flex-wrap: wrap; gap: 10px; }
.brand {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: #f2faf6;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand:hover { color: #a7e0d6; }
.brand-mark {
  width: 18px; height: 18px;
  background: #7fd0c5;
  border-top: 4px solid #d9a441;
  border-bottom: 4px solid #3f8f6a;
}
.nav { display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; }
.nav a { color: #cde6dd; }
.nav a:hover { color: #a7e0d6; }

/* Hero */
.hero { padding: 52px 0 30px; border-bottom: 2px solid var(--line-strong); }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 0 0 10px;
}
.hero h1 {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--teal-deep);
}
.hero-sub { font-size: 18px; color: var(--muted); max-width: 760px; margin: 0; }

/* Category blocks */
.cat-block { margin: 0 0 44px; }
.cat-block:first-of-type { margin-top: 30px; }
.cat-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 8px;
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--teal-deep);
}
.cat-no { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--accent); }
.cat-blurb { color: var(--muted); margin: 0 0 16px; max-width: 720px; }
.cat-blurb.big { font-size: 18px; }

/* Grid + tank-panel cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 6px solid var(--accent);
  border-bottom: 4px solid #d9a441;
  padding: 13px 15px 15px;
  color: var(--ink);
}
.card:hover { border-color: var(--accent); }
.card-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.card-name { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--teal-deep); }
.card:hover .card-name { color: var(--accent); }
.card-meta { font-size: 14px; color: var(--muted); }

/* Article */
.article { max-width: 860px; padding-top: 26px; padding-bottom: 50px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-bright); }
.breadcrumb span { color: var(--line-strong); padding: 0 6px; }

h1 { font-family: var(--display); font-size: 36px; line-height: 1.12; color: var(--teal-deep); margin: 0 0 6px; }
.zh { font-size: 20px; color: var(--accent); font-weight: 400; margin-left: 10px; }
.lede { color: var(--muted); font-size: 18px; margin: 0 0 24px; }

/* Dossier (tank panel) */
.dossier {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line-strong);
  border-top: 6px solid var(--accent);
  border-bottom: 4px solid #d9a441;
  background: var(--surface);
  margin: 0 0 32px;
}
.dossier-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dossier-item:nth-child(odd) { border-right: 1px solid var(--line); }
.d-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.dossier-item > span:last-child { font-size: 15px; }
.dossier-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--teal-bright);
}
a.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag-use { color: var(--ink); }
.tag-dim { color: var(--muted); border-style: dotted; }

/* Sections */
.sections { margin-top: 6px; }
.sec { margin: 0 0 32px; }
.sec h2 {
  font-family: var(--display);
  font-size: 24px;
  color: var(--teal-deep);
  border-left: 5px solid var(--accent);
  padding-left: 12px;
  margin: 0 0 14px;
}
.sec-no { font-family: var(--mono); font-size: 15px; color: var(--accent); margin-right: 12px; }
.sec p { margin: 0 0 14px; color: var(--ink); }

/* Related */
.related-nav { margin-top: 40px; border-top: 2px solid var(--line-strong); padding-top: 16px; }
.related-nav h2 { font-family: var(--display); font-size: 20px; color: var(--teal-deep); margin: 0 0 12px; }

/* Legal / notfound */
.legal, .notfound { max-width: 800px; padding-top: 38px; padding-bottom: 60px; }
.legal h1, .notfound h1 { margin-bottom: 20px; }
.legal h2 { font-family: var(--display); color: var(--teal-deep); font-size: 22px; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal li { margin-bottom: 6px; }
.notfound p { color: var(--muted); }
.back { margin-top: 26px; }

/* Footer */
.site-foot {
  background: var(--teal-deep);
  color: #d3e7df;
  padding: 34px 0 30px;
  margin-top: 20px;
  font-size: 14px;
}
.site-foot p { margin: 0 0 12px; max-width: 720px; }
.foot-links { margin: 10px 0; }
.foot-links a { color: #e3f1ec; }
.foot-links a:hover { color: #a7e0d6; }
.foot-links span { color: var(--sand); padding: 0 8px; }
.foot-fine { color: #93b0a5; }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  h1 { font-size: 28px; }
  .dossier { grid-template-columns: 1fr; }
  .dossier-item:nth-child(odd) { border-right: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; }
}
