/* ==========================================================================
   Oddball Fish — bioluminescence in dark water
   Heritage palette: cyan #53B6D3 · gold #FFC80B · red #D10808 on near-black
   ========================================================================== */

:root {
  --abyss: #020a0f;
  --deep: #04141d;
  --panel: rgba(126, 209, 232, 0.06);
  --panel-solid: #071c27;
  --line: rgba(83, 182, 211, 0.24);
  --line-soft: rgba(83, 182, 211, 0.13);
  --cyan: #5fc6e4;
  --cyan-deep: #1074ac;
  --gold: #ffc80b;
  --red: #ff5a4e;
  --ink: #eaf6fa;
  --muted: #a4c2cc;
  --display: "Michroma", "Impact", sans-serif;
  --body: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--abyss);
}

/* cheap fixed backdrop: a dedicated layer instead of background-attachment:fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1100px 700px at 78% -12%, rgba(31, 121, 152, 0.34), transparent 62%),
    radial-gradient(800px 560px at 8% 18%, rgba(16, 116, 172, 0.16), transparent 58%),
    radial-gradient(900px 900px at 50% 115%, rgba(6, 42, 58, 0.55), transparent 70%),
    linear-gradient(#041018, var(--abyss) 55%);
}

img { max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cyan); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.25;
  text-wrap: balance;
}

h1 { color: var(--cyan); font-size: clamp(1.5rem, 4.2vw, 2.4rem); letter-spacing: 0.04em; margin: 0 0 0.5em; }
h2 { color: var(--gold); font-size: clamp(1.05rem, 2.6vw, 1.35rem); letter-spacing: 0.08em; margin: 2em 0 0.7em; }
h3 { color: var(--cyan); font-size: 0.95rem; letter-spacing: 0.1em; margin: 1.6em 0 0.5em; }

p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

.muted { color: var(--muted); }
.sci { font-style: italic; color: var(--muted); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 14, 20, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 4vw, 32px);
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand img { width: 54px; height: 54px; object-fit: contain; }

.brand .word {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand .word em { font-style: normal; color: var(--gold); }
.brand:hover .word { color: var(--cyan); }

.nav-toggle { display: none; }

.nav-btn {
  display: none;
  cursor: pointer;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-btn span,
.nav-btn span::before,
.nav-btn span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-btn span::before { position: absolute; top: -6px; }
.nav-btn span::after { position: absolute; top: 6px; }

nav.site-nav ul {
  display: flex;
  gap: clamp(10px, 2.2vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover { color: var(--gold); }
nav.site-nav a[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--cyan); }

@media (max-width: 780px) {
  .nav-btn { display: block; }

  .brand img { width: 42px; height: 42px; }
  .brand .word { font-size: 0.85rem; letter-spacing: 0.1em; }

  nav.site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #030e14;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }

  nav.site-nav a {
    display: block;
    padding: 13px clamp(16px, 4vw, 32px);
    font-size: 0.78rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  nav.site-nav a[aria-current="page"] { border-left-color: var(--cyan); }

  .nav-toggle:checked ~ nav.site-nav { max-height: 480px; }
  .nav-toggle:checked ~ .nav-btn span { transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-btn span::before { transform: rotate(-90deg) translateX(-6px); }
  .nav-toggle:checked ~ .nav-btn span::after { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Buttons, notices, misc
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); color: var(--gold); box-shadow: 0 6px 22px rgba(255, 200, 11, 0.18); }

.btn.solid { background: var(--gold); color: #121002; }
.btn.solid:hover { color: #121002; }

.btn.ghost { border-color: var(--line); color: var(--cyan); }
.btn.ghost:hover { border-color: var(--cyan); box-shadow: 0 6px 22px rgba(95, 198, 228, 0.15); }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(255, 200, 11, 0.1), rgba(255, 200, 11, 0.03));
  border: 1px solid rgba(255, 200, 11, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 0.98rem;
}

.notice strong { color: var(--gold); }

.crumbs { font-size: 0.85rem; color: var(--muted); margin: 26px 0 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero { padding: clamp(36px, 7vw, 84px) 0 0; position: relative; overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.hero .kicker {
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 3rem);
  color: var(--ink);
  line-height: 1.18;
}

.hero h1 .glow { color: var(--cyan); text-shadow: 0 0 26px rgba(95, 198, 228, 0.55); }

.hero .lede { font-size: clamp(1.02rem, 2.4vw, 1.18rem); color: var(--muted); max-width: 48ch; }

.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-art { position: relative; }

.hero-art .photo {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 42px rgba(31, 121, 152, 0.25);
  display: block;
}

.hero-art .photo.back {
  position: absolute;
  width: 58%;
  right: -4%;
  bottom: -14%;
  transform: rotate(3deg);
  border-color: rgba(255, 200, 11, 0.35);
  z-index: 2;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { margin-bottom: 30px; }
  .hero-art .photo.back { bottom: -8%; }
}

.bubbles { position: absolute; inset: 0; pointer-events: none; }

.bubbles i {
  position: absolute;
  bottom: -30px;
  border-radius: 50%;
  border: 1px solid rgba(95, 198, 228, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(234, 246, 250, 0.18), rgba(95, 198, 228, 0.04));
  animation: rise linear infinite;
}

@keyframes rise {
  from { transform: translateY(0); opacity: 0.9; }
  to { transform: translateY(-110vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles { display: none; }
  html { scroll-behavior: auto; }
}

.tickline {
  margin-top: clamp(36px, 6vw, 64px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(4, 20, 29, 0.5);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.tickline .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding-top: 13px;
  padding-bottom: 13px;
  text-align: center;
}

.tickline b { color: var(--gold); font-weight: 400; }

/* --------------------------------------------------------------------------
   Card grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin: 26px 0 10px;
  padding: 0;
  list-style: none;
}

.grid.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(95, 198, 228, 0.12);
  color: var(--ink);
}

.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--deep); }

.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }

.card:hover .ph img { transform: scale(1.06); }

.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }

.card .name {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
}

.card .sub { font-size: 0.88rem; color: var(--muted); font-style: italic; }

.card .price { margin-top: auto; padding-top: 8px; color: var(--gold); font-weight: 700; font-size: 0.95rem; }

.card .count { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Feature strip (bio difference) & quotes
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.feature {
  background: linear-gradient(160deg, rgba(16, 116, 172, 0.22), rgba(6, 42, 58, 0.35));
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px 22px;
}

.feature h3 { margin: 0 0 8px; color: var(--gold); }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--cyan);
  background: var(--panel);
  border-radius: 0 14px 14px 0;
  color: #bfe9f3;
  font-size: 1.06rem;
  font-style: italic;
}

blockquote footer { font-style: normal; color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

/* --------------------------------------------------------------------------
   Species page
   -------------------------------------------------------------------------- */

.species {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: clamp(22px, 4.5vw, 48px);
  margin-top: 18px;
}

@media (max-width: 820px) { .species { grid-template-columns: 1fr; } }

.species .gallery img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  display: block;
}

.species .gallery img.lowres { width: min(300px, 100%); margin: 0 auto; }

.species .gallery .alts { display: flex; gap: 10px; margin-top: 10px; }

.species .gallery .alts img { width: calc(50% - 5px); border-color: var(--line-soft); }

table.variants {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.98rem;
}

table.variants th {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

table.variants td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }

table.variants tr:nth-child(even) td { background: rgba(16, 116, 172, 0.08); }

table.variants .p { color: var(--gold); font-weight: 700; white-space: nowrap; }

dl.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

dl.facts div {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 14px;
}

dl.facts dt {
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

dl.facts dd { margin: 0; font-size: 0.96rem; }

details.care {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
  margin: 16px 0;
  overflow: hidden;
}

details.care summary {
  cursor: pointer;
  padding: 13px 18px;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  list-style: none;
}

details.care summary::before { content: "▸ "; color: var(--gold); }
details.care[open] summary::before { content: "▾ "; }
details.care summary::-webkit-details-marker { display: none; }
details.care .inner { padding: 0 18px 16px; color: var(--muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Prose pages / sections
   -------------------------------------------------------------------------- */

.page { padding-bottom: clamp(40px, 7vw, 80px); }

section.band { padding: clamp(28px, 5vw, 56px) 0 0; }

.prose { max-width: 76ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }

.divider {
  display: block;
  width: 100%;
  height: 46px;
  margin: clamp(30px, 6vw, 60px) 0 0;
  color: rgba(31, 121, 152, 0.3);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.contact-cards .feature h3 { color: var(--cyan); }
.contact-cards .feature p { color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(48px, 8vw, 90px);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(rgba(4, 20, 29, 0.65), rgba(2, 10, 15, 0.95));
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
  padding: clamp(28px, 5vw, 44px) 0 18px;
}

.site-footer h3 { margin-top: 0; font-size: 0.7rem; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }

.site-footer .fin {
  border-top: 1px solid var(--line-soft);
  padding: 16px 0 22px;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
