/* ==========================================================================
   Genesis Renji — genesisrenji.com
   Layout modeled on 6lack.com (full-bleed hero → Music row → Videos grid →
   Merch → newsletter → socials footer). Skinned in House of Renji brand:
   Signal Doctrine design system + a nod to the /blu grade on imagery.
   ========================================================================== */

:root {
  /* Signal Doctrine palette */
  --onyx:     #0B0B0D;   /* base                                      */
  --onyx-2:   #121216;   /* raised surface                            */
  --bone:     #F5F2EA;   /* primary text                              */
  --gold:     #C9A24B;   /* Gilded Gold — accent                      */
  --gold-hi:  #E0BE6E;   /* accent highlight                          */
  --burgundy: #6E2233;   /* secondary accent (exact hex not specified) */
  --muted:    rgba(245, 242, 234, 0.56);
  --line:     rgba(245, 242, 234, 0.14);
  --line-2:   rgba(245, 242, 234, 0.26);
  /* /blu image nod: teal split-tone shadows, matte black, warm highlight */
  --blu-fill: linear-gradient(155deg, #0f1e20 0%, #0a0d0f 52%, #16110b 100%);

  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --page-x: clamp(1.1rem, 4vw, 4.5rem);
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--onyx); color: var(--bone);
  font-family: var(--font-body); font-size: 1.075rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  position: relative;
}
/* /blu grain — subtle film grain across everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.02; }
::selection { background: var(--gold); color: var(--onyx); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.skip { position: absolute; left: -999px; background: var(--gold); color: var(--onyx); padding: .6rem 1rem; z-index: 80; font-family: var(--font-mono); }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--page-x); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* Mono label / eyebrow */
.label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.22em; font-size: .68rem; color: var(--gold); font-weight: 500; }
.label.muted { color: var(--muted); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem var(--page-x);
  background: color-mix(in srgb, var(--onyx) 84%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--bone);
  background: none; border: 0; cursor: pointer;
}
.nav-links { display: flex; gap: clamp(1rem, 2.6vw, 2rem); align-items: center; }
.nav-links a, .nav-links button {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: .72rem; font-weight: 500;
  color: var(--muted); text-decoration: none; padding: .3rem 0; position: relative; transition: color .18s ease;
}
.nav-links a:hover, .nav-links button:hover { color: var(--bone); }
.nav-links [aria-current="page"] { color: var(--bone); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-mono); font-weight: 500; font-size: .74rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: .9rem 1.7rem; border-radius: 2px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--onyx); }
.btn-primary:hover { background: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ---- Hero (full-bleed banner, title overlaid) ---- */
.hero { position: relative; height: min(92vh, 900px); min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--blu-fill); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,.15) 0%, rgba(11,11,13,.35) 55%, rgba(11,11,13,.92) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: var(--page-x); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero .kicker { margin: 0 0 1rem; }
.hero-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.8rem, 9vw, 6.5rem); line-height: .95; letter-spacing: -0.01em; max-width: 16ch; }
.hero-title em { font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero .kicker, .hero-title, .hero-actions { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-title { animation-delay: .1s; } .hero-actions { animation-delay: .2s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---- Section head (title left, "view all" right) ---- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.sec-head h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 500; }
.view-all { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: .72rem; color: var(--gold); text-decoration: none; white-space: nowrap; transition: color .18s ease; }
.view-all:hover { color: var(--gold-hi); }

/* ---- Music row (square release cards) ---- */
.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(1rem, 2.5vw, 1.8rem); }
.release { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.release .art { aspect-ratio: 1; background: var(--blu-fill); border: 1px solid var(--line); overflow: hidden; position: relative; }
.release .art img { width: 100%; height: 100%; object-fit: cover; }
.release .art .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--font-mono); font-size: .66rem; letter-spacing: 0.16em; text-transform: uppercase; }
.release .rt { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin-top: .9rem; line-height: 1.15; }
.release .rl { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: .66rem; color: var(--gold); margin-top: .5rem; transition: color .18s ease; }
.release:hover .rl { color: var(--gold-hi); }
.release:hover .art { border-color: var(--line-2); }

/* ---- Videos grid (YouTube facade -> click-to-play embed) ---- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.video .embed { position: relative; aspect-ratio: 16/9; background: var(--blu-fill); border: 1px solid var(--line); overflow: hidden; }
.video .embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video .embed .lite { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.video .embed .lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .embed .lite .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 999px; background: rgba(11,11,13,.55); border: 1px solid var(--line-2); backdrop-filter: blur(2px); transition: background .2s ease, border-color .2s ease; }
.video .embed .lite .play::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-40%,-50%); width: 0; height: 0; border-left: 16px solid var(--bone); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.video .embed .lite:hover .play { background: var(--gold); border-color: var(--gold); }
.video .embed .lite:hover .play::after { border-left-color: var(--onyx); }
.video .vt { display: inline-block; font-family: var(--font-body); font-size: .98rem; color: var(--bone); text-decoration: none; margin-top: .75rem; line-height: 1.35; transition: color .18s ease; }
a.vt:hover { color: var(--gold-hi); }

/* ---- Merch ---- */
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(1rem, 2.5vw, 1.8rem); }
.product { display: flex; flex-direction: column; }
.product .shot { aspect-ratio: 1; background: var(--blu-fill); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center;
  color: var(--muted); font-family: var(--font-mono); font-size: .66rem; letter-spacing: 0.16em; text-transform: uppercase; transition: border-color .2s ease; }
.product .shot img { width: 100%; height: 100%; object-fit: cover; }
.product:hover .shot { border-color: var(--line-2); }
.product .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .9rem; }
.product .name { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.product .price { font-family: var(--font-mono); color: var(--gold); font-size: .85rem; }
.product .desc { color: var(--muted); font-size: .92rem; margin: .35rem 0 1rem; }
.product .btn { margin-top: auto; }
.merch-blurb { max-width: 60ch; color: var(--muted); font-size: 1.02rem; margin: 0 0 clamp(1.8rem,4vw,2.6rem); }
.design-group { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.design-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 3vw, 1.8rem); padding-bottom: .8rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.swatches { display: flex; gap: .4rem; margin: .1rem 0 1.1rem; }
.swatches .sw { width: 15px; height: 15px; border-radius: 999px; border: 1px solid var(--line-2); }
.merch-note { max-width: 64ch; color: var(--muted); font-size: .85rem; line-height: 1.6; margin-top: .5rem; }
.product .shot.carousel { display: block; position: relative; }
.product .shot.carousel .slides { position: absolute; inset: 0; }
.product .shot.carousel.single .slides { position: static; }
.product .shot.carousel img { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.product .shot.carousel img.active { opacity: 1; }
.product .shot.carousel.single img { position: static; opacity: 1; }
.product .shot .car { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(11,11,13,.55); color: var(--bone); font-size: 1.05rem; line-height: 1; cursor: pointer; display: grid; place-items: center; opacity: .6; transition: opacity .2s ease, background .2s ease, color .2s ease; backdrop-filter: blur(2px); }
.product .shot.carousel:hover .car { opacity: 1; }
.product .shot .car.prev { left: 8px; }
.product .shot .car.next { right: 8px; }
.product .shot .car:hover { background: var(--gold); color: var(--onyx); border-color: var(--gold); }
.product .shot .dots { position: absolute; bottom: 8px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.product .shot .dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(245,242,234,.45); cursor: pointer; }
.product .shot .dot.active { background: var(--gold); }

/* ---- Newsletter / drop ---- */
.drop { border-block: 1px solid var(--line); background: var(--onyx-2); }
.drop-inner { max-width: 640px; }
.drop h2 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 500; margin: .8rem 0 .6rem; }
.drop p { color: var(--muted); margin: 0 0 1.6rem; }
.news-form { display: flex; flex-wrap: wrap; gap: .7rem; }
.news-form input[type="email"], .news-form input[type="text"] {
  flex: 1 1 200px; background: var(--onyx); border: 1px solid var(--line-2); color: var(--bone);
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .04em; padding: .9rem 1rem; border-radius: 2px;
}
.news-form input::placeholder { color: var(--muted); }
.news-form input:focus { outline: none; border-color: var(--gold); }
.news-form input:-webkit-autofill, .news-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bone); caret-color: var(--bone);
  box-shadow: 0 0 0 1000px var(--onyx) inset; transition: background-color 9999s ease-out 0s;
}
.news-form .btn { flex: 0 0 auto; }
.mc-msg { flex: 1 0 100%; margin: .3rem 0 0; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .02em; color: var(--muted); }
.mc-msg.ok { color: var(--gold); }
.mc-msg.err { color: #d98a8a; }

/* ---- About strip (artist) ---- */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(1.8rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .about { grid-template-columns: .8fr 1.2fr; align-items: center; } }
.about .portrait { aspect-ratio: 4/5; background: var(--blu-fill); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center;
  color: var(--muted); font-family: var(--font-mono); font-size: .66rem; letter-spacing: 0.16em; text-transform: uppercase; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .lede { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.2; margin: 1rem 0 1.2rem; }
.about p { color: #d8d3c7; margin: 0 0 1.1rem; }
.about .featured { font-family: var(--font-mono); font-size: .74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 1.4rem; }
.about .featured b { color: var(--bone); font-weight: 500; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer .brand { font-size: 1.5rem; }
.footer .tag { color: var(--muted); max-width: 34ch; margin: 1rem 0 0; font-size: .96rem; }
.socials { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.socials a { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: .7rem; color: var(--muted); text-decoration: none; transition: color .18s ease; }
.socials a:hover { color: var(--gold-hi); }
.colophon { color: var(--muted); font-family: var(--font-mono); font-size: .68rem; letter-spacing: 0.06em; margin-top: 2.4rem; line-height: 1.8; }

@media (max-width: 680px) {
  .nav-links .hide-sm { display: none; }
  .sec-head { align-items: baseline; }
}
