/* f00.sh hub — HSB video field + Bleach album catalog layout */

:root {
  --max: 68rem;
  --pad: clamp(1rem, 3vw, 2rem);
  --splash-size: clamp(6.5rem, 22vw, 15rem);
  --splash-tracking: -0.06em;

  --hub-sky: #5ec8e8;
  --hub-sky-bright: #7ad8f0;
  --hub-sky-mid: #3aa8c4;
  --hub-sky-deep: #1f6a80;
  --hub-ink: #1a1214;
  --hub-white: #ffffff;
  --hub-cream: #f4ebe0;
  --hub-poppy: #e02030;
  --hub-silver: #b8c0c8;
  --hub-panel: #1a1214;
  --hub-panel-border: #f4ebe0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  background: var(--hub-sky) !important;
  color: var(--hub-white) !important;
  line-height: 1.5;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

/* Painted technicolor verse blue */
.crt {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 18% 22%, rgba(122, 216, 240, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 80% 65% at 82% 18%, rgba(58, 168, 196, 0.9) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(14, 58, 74, 0.75) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 70%, rgba(94, 200, 232, 0.55) 0%, transparent 60%),
    linear-gradient(165deg, var(--hub-sky-bright) 0%, var(--hub-sky) 38%, var(--hub-sky-mid) 72%, var(--hub-sky-deep) 100%);
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 60% at 50% 40%, transparent 40%, rgba(14, 58, 74, 0.35) 100%);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--hub-ink);
  color: var(--hub-white);
  padding: 0.5rem 1rem;
  z-index: 100;
  border: 1px solid var(--hub-cream);
  border-radius: 0;
}
.skip:focus { left: 1rem; top: 1rem; }

.top, main, .foot { position: relative; z-index: 1; }

/* Bleach header bar: hard white rules, white text */
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--pad) 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--hub-white);
  text-decoration: none;
}
.brand-mark {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  color: var(--hub-white) !important;
}
.brand-sub {
  font-family: var(--font-chip);
  color: rgba(255, 255, 255, 0.8) !important;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  text-transform: lowercase;
}

.nav {
  display: flex;
  gap: 1.15rem;
  font-family: var(--font-chip);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  text-transform: uppercase;
}
.nav a:hover {
  color: var(--hub-white) !important;
  border-color: var(--hub-white);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 3rem) var(--pad) 0.75rem;
  text-align: center;
}

.splash-frame {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Black Onyx logo */
.splash {
  margin: 0;
  display: inline-block;
  font-family: var(--font-brand) !important;
  font-size: var(--splash-size) !important;
  line-height: 0.88 !important;
  letter-spacing: var(--splash-tracking) !important;
  font-weight: 400 !important;
  user-select: none;
  white-space: nowrap;
  transform: none !important;
  width: max-content;
}

.splash .glyph {
  display: inline;
  position: relative;
  font-size: inherit !important;
  font-family: inherit !important;
  color: var(--hub-ink) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: flicker 7s infinite steps(2, end);
}
.splash .glyph:nth-child(2) { animation-delay: 0.45s; }
.splash .glyph:nth-child(3) { animation-delay: 1.1s; }

.splash .glyph::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  color: var(--glitch-color, var(--hub-poppy));
  transform: translate(var(--glitch-x, 1px), var(--glitch-y, -1px));
  pointer-events: none;
}
.splash .glyph.is-glitching::after { opacity: 0.95; }

@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  98% { opacity: 0.88; }
  99% { opacity: 0.95; }
}

.mono { font-family: var(--font-chip); letter-spacing: 0.12em; }
.muted { color: rgba(255, 255, 255, 0.78) !important; }
.accent { color: var(--hub-poppy); }

/* Bleach buttons on hub cards */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-chip) !important;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--hub-poppy) !important;
  border-radius: 0 !important;
  padding: 0.45rem 0.75rem;
  color: var(--hub-poppy) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.btn:hover {
  background: rgba(224, 32, 48, 0.12) !important;
}
.btn.primary {
  background: var(--hub-poppy) !important;
  border-color: var(--hub-poppy) !important;
  color: var(--hub-cream) !important;
  font-weight: 700;
}
.btn.primary:hover {
  background: #ff4a58 !important;
  border-color: #ff4a58 !important;
  color: var(--hub-white) !important;
}
.btn.sm { padding: 0.35rem 0.6rem; font-size: 0.64rem; }

.products {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad) 3rem;
}

.section-head {
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 0.45rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-chip);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--hub-white) !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--hub-cream);
  border-left: 1px solid var(--hub-cream);
}

/* Bleach product boxes — hard cream rules, hospital ink fill, poppy text */
.card {
  border: 0;
  border-right: 1px solid var(--hub-cream);
  border-bottom: 1px solid var(--hub-cream);
  background: var(--hub-panel);
  backdrop-filter: none;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 0 !important;
  box-shadow: none;
  color: var(--hub-poppy);
}
.card h3 {
  margin: 0.15rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(224, 32, 48, 0.45);
  font-family: var(--font-chip);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--hub-poppy) !important;
}
.card p {
  margin: 0;
  color: var(--hub-poppy) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}
.card p strong,
.card code,
.card .mono {
  color: var(--hub-poppy) !important;
}

.card-meta {
  font-family: var(--font-chip);
  font-size: 0.65rem;
  color: var(--hub-poppy) !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.facts {
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--hub-poppy) !important;
}
.facts li {
  margin: 0.15rem 0;
  color: var(--hub-poppy) !important;
  border-bottom: 1px dotted rgba(224, 32, 48, 0.25);
  padding: 0.15rem 0;
}
.facts li::before {
  content: "· ";
  color: var(--hub-poppy);
  opacity: 0.7;
}

.card-actions {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(224, 32, 48, 0.35);
  padding-top: 0.65rem;
}
.card-actions .btn {
  margin-right: 0.4rem;
  margin-bottom: 0.35rem;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--pad) 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  font-family: var(--font-chip);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hub-white) !important;
}
.foot > * { font-family: inherit; color: inherit; }
.foot-stars {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88) !important;
}
.foot-stars:hover { color: var(--hub-white) !important; }

@media (prefers-reduced-motion: reduce) {
  .splash .glyph { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 520px) {
  .nav { gap: 0.7rem; font-size: 0.72rem; }
  .splash { font-size: clamp(5rem, 24vw, 10rem) !important; }
  .card h3 { font-size: 0.88rem; }
}
