/* Waiyaki — waiyaki.com
   Brand book v3: ink, bone and one red. Inter Tight only. Mobile first (iPhone Safari). */

:root {
  --ink: #121212;
  --bone: #EFE8DC;
  --red: #E3241B;
  --red-press: #C81E16;
  --dim: #A8A196;          /* bone at reduced strength: 7.4:1 on ink */
  --line: rgba(239, 232, 220, .14);
  --line-strong: rgba(239, 232, 220, .55); /* form control edges: >3:1 on ink */
  --teal: #0B2F35;          /* teal-haze grade shadow */
  --hive-bg: #0A0803;       /* Hive gold grade */
  --hive-gold: #D6A33C;

  --f: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --head-h: 60px;
  --radius: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 500 16px/1.55 var(--f);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Subtle film grain: fine texture, not a heavy filter */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--bone); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 8px; }

.dot { fill: var(--red); }

/* ---------- type ---------- */
.lab, .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.h2 {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .95;
  font-size: clamp(36px, 9vw, 72px); margin-top: 10px;
}
.dim { color: var(--dim); }
.nw { white-space: nowrap; }
.h2 .dim { display: block; font-size: .5em; letter-spacing: -.02em; margin-top: .25em; }
.lede { font-size: 18px; color: var(--bone); max-width: 46ch; margin-top: 16px; }
.note { font-size: 14px; color: var(--dim); margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  font: 700 16px/1 var(--f); text-decoration: none; text-align: center;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: var(--bone); }          /* 4.8:1 */
.btn-red:hover { background: var(--red-press); }
.btn-line { border-color: var(--bone); color: var(--bone); background: rgba(18, 18, 18, .35); }
.btn-line:hover { background: var(--bone); color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--bone); background: transparent; }
.btn-ghost:hover { border-color: var(--bone); }
.btn-gold { background: var(--hive-gold); color: var(--hive-bg); }
.btn-gold:hover { background: #E4B653; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.is-pending { cursor: help; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(18, 18, 18, .92); border-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top-in { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: block; color: var(--bone); line-height: 0; }
.brand .wm { display: none; width: 116px; height: auto; }
.brand .sym { width: 40px; height: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--bone);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-book { background: var(--red); color: var(--bone); border-radius: var(--radius); padding: 0 14px; margin-left: 6px; min-height: 40px; text-shadow: none; }
.nav .nav-book:hover { background: var(--red-press); text-decoration: none; }
@media (min-width: 420px) {
  .brand .wm { display: block; }
  .brand .sym { display: none; }
}
@media (min-width: 760px) {
  .brand .wm { width: 140px; }
  .nav { gap: 8px; }
  .nav a { font-size: 16px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--head-h) + 24px) 0 max(32px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 55% 30%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,18,18,.55) 0%, rgba(18,18,18,0) 18%),
    linear-gradient(180deg, rgba(18,18,18,0) 40%, rgba(18,18,18,.75) 68%, var(--ink) 100%);
}
.hero-in { display: flex; flex-direction: column; gap: 12px; }
.eyebrow { color: var(--bone); }
.hero-title {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 17vw, 176px); line-height: .86; letter-spacing: -.045em;
  margin-left: -.04em;
}
.hero-title span { display: block; }
.hero-sub { font-size: 17px; color: var(--bone); opacity: .9; }
.btns { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
@media (min-width: 560px) {
  .btns { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  /* Portrait photo: keep the whole face by giving it the right side of the screen */
  .hero-img { left: auto; width: min(58%, 980px); object-position: 50% 38%; }
  .hero::before {
    background:
      linear-gradient(90deg, var(--ink) calc(42% - 1px), rgba(18,18,18,.85) 46%, rgba(18,18,18,0) 62%),
      linear-gradient(180deg, rgba(18,18,18,.55) 0%, rgba(18,18,18,0) 18%),
      linear-gradient(180deg, rgba(18,18,18,0) 70%, var(--ink) 100%);
  }
  .hero-title { font-size: clamp(88px, 10.5vw, 168px); }
  .hero { align-items: center; }
}

/* ---------- quick row ---------- */
.quick { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }
.quick-card {
  display: flex; flex-direction: column; gap: 4px; padding: 20px var(--gutter-r) 20px var(--gutter);
  text-decoration: none; border-bottom: 1px solid var(--line);
  transition: background-color .15s;
}
.quick-card:last-child { border-bottom: 0; }
.quick-card:hover { background: rgba(239, 232, 220, .04); }
.quick-card b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.quick-card > span:last-child { font-size: 14.5px; color: var(--dim); }
@media (min-width: 760px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); padding-left: var(--gutter); padding-right: var(--gutter-r); }
  .quick-card { padding: 26px 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .quick-card:first-child { padding-left: 0; }
  .quick-card:last-child { border-right: 0; }
}

/* ---------- sections ---------- */
.sec { padding: 72px 0; }
@media (min-width: 900px) { .sec { padding: 112px 0; } }

/* music */
.sec-head { max-width: 720px; }
.feat { display: grid; gap: 24px; margin-top: 36px; }
.feat-art { position: relative; }
.feat-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.feat-art .play { position: absolute; left: 16px; bottom: 16px; width: 64px; height: 64px; }
.feat-title { font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .92; font-size: clamp(34px, 8vw, 64px); margin-top: 8px; }
.feat-title span { display: block; font-size: .45em; letter-spacing: -.015em; color: var(--dim); margin-top: .3em; }
.feat-blurb { color: var(--dim); font-size: 17px; margin-top: 14px; max-width: 44ch; }
.feat-buy { margin: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.small-lab { font-size: 11px; }
.platforms { margin-top: 10px; border-top: 1px solid var(--line); }
.platforms a {
  display: flex; justify-content: space-between; align-items: center; min-height: 52px;
  border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; font-weight: 600;
}
.platforms a:hover { padding-left: 4px; transition: padding .15s; }
.muted { color: var(--dim); font-size: 15px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--bone);
}
.play {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bone); color: var(--ink); border: 0; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.play svg { width: 45%; height: 45%; fill: currentColor; }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: inline; }
.tracks { margin-top: 40px; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 64px 1fr; gap: 6px 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.track-art { position: relative; grid-row: span 2; }
.track-art img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.track-art .play { position: absolute; inset: 10px; width: 44px; height: 44px; }
.track-info { display: flex; flex-direction: column; min-width: 0; }
.track-info b { font-size: 17px; font-weight: 700; }
.track-info > span { font-size: 14px; color: var(--dim); }
.track-dsp { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 2px; }
.track-dsp a { display: inline-flex; min-height: 32px; align-items: center; font-size: 14px; font-weight: 600; color: var(--dim); text-decoration: none; }
.track-dsp a:hover { color: var(--bone); }
.track-dsp.muted { font-size: 13.5px; margin-top: 2px; }
.track-buy { grid-column: 2; }
@media (min-width: 640px) {
  .track { grid-template-columns: 72px 1fr auto; gap: 18px; }
  .track-art { grid-row: auto; }
  .track-art img { width: 72px; height: 72px; }
  .track-art .play { inset: 14px; }
  .track-buy { grid-column: auto; }
}
@media (min-width: 860px) {
  .feat { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

/* BEELIEVERS channel band */
.channel { background: var(--teal); padding: 64px 0; position: relative; overflow: hidden; }
.channel-in { display: grid; gap: 28px; }
.statement {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .95;
  font-size: clamp(34px, 8.6vw, 76px); max-width: 15ch;
}
.statement .pt {
  display: inline-block; width: .34em; height: .34em; border-radius: 50%; background: var(--red);
  margin-left: .08em; vertical-align: baseline;
}
.channel-side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.channel-side p { font-size: 18px; max-width: 40ch; }
@media (min-width: 900px) {
  .channel { padding: 104px 0; }
  .channel-in { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 56px; }
}

/* live: Hive black and gold */
.live { background: var(--hive-bg); }
.lab.gold { color: var(--hive-gold); }
.live-grid { display: grid; gap: 36px; }
.shows { margin-top: 28px; border-top: 1px solid rgba(214, 163, 60, .3); }
.show {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid rgba(214, 163, 60, .3);
}
.show-date { display: flex; flex-direction: column; line-height: 1; color: var(--hive-gold); }
.show-date b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.show-date span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.show-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.show-info b { font-size: 19px; font-weight: 700; }
.show-info span { font-size: 14px; color: var(--dim); }
.live-img { margin: 0; }
.live-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
@media (min-width: 900px) {
  .live-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
}

/* merch */
.merch { display: grid; gap: 20px; margin-top: 32px; }
.merch-card { display: grid; background: #1B1B1B; border-radius: var(--radius); overflow: hidden; }
.merch-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.merch-card-in { padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.merch-card h3 { font-size: clamp(26px, 6vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .95; }
.merch-card p { color: var(--dim); max-width: 40ch; }
.merch-card .price { color: var(--bone); font-size: 20px; font-weight: 700; }
.merch-card .btn { margin-top: 8px; }
.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--bone); color: var(--ink) !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
@media (min-width: 760px) {
  .merch-card { grid-template-columns: 1fr 1fr; align-items: center; }
  .merch-card-in { padding: 40px; gap: 14px; }
}

/* book */
.book { border-top: 1px solid var(--line); }
.book-grid { display: grid; gap: 40px; }
.offer { margin-top: 26px; display: grid; gap: 16px; }
.offer li { color: var(--dim); font-size: 16px; padding-left: 18px; position: relative; }
.offer li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--bone); transform: skewX(-9deg); }
.offer b { display: block; color: var(--bone); font-size: 18px; font-weight: 700; }

.form { display: grid; gap: 16px; background: #1A1A1A; padding: 22px; border-radius: var(--radius); }
.row2 { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.opt { color: var(--dim); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 500 16px/1.4 var(--f); /* 16px stops iOS zoom on focus */
  color: var(--bone); background: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--bone) 50%), linear-gradient(135deg, var(--bone) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field input[type="date"] { min-height: 50px; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8E887E; opacity: 1; } /* 5.4:1 on ink */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--bone); outline-offset: 1px; border-color: var(--bone); }
.field [aria-invalid="true"] { border-color: #FF6B5E; }
.err { font-size: 14px; color: #FF8A80; font-weight: 600; } /* 7:1 on #1A1A1A */
.err::before { content: "! "; }
.form-status { font-size: 15px; min-height: 1.2em; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .book-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .form { padding: 32px; }
}

/* ---------- footer ---------- */
.foot { padding: 64px 0 max(40px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot-wm { display: block; width: 100%; max-width: 760px; height: auto; color: var(--bone); }
.foot-row { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; }
.socials { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.socials a:hover { text-decoration: underline; text-underline-offset: 4px; }
.small { font-size: 13.5px; color: var(--dim); }
@media (min-width: 760px) {
  .foot-row { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 120;
  transform: translateX(-50%);
  background: var(--bone); color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 12px 18px; border-radius: var(--radius); max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- buy dialog (M-Pesa) ---------- */
.buy {
  width: min(440px, calc(100% - 24px)); max-height: calc(100% - 24px);
  padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: #1A1A1A; color: var(--bone);
}
.buy::backdrop { background: rgba(0, 0, 0, .7); }
.buy-in { display: grid; gap: 16px; padding: 24px 20px 20px; position: relative; }
.buy-x {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px;
  background: none; border: 0; color: var(--bone); font-size: 28px; line-height: 1; cursor: pointer;
}
.buy-song { display: flex; gap: 14px; align-items: center; padding-right: 36px; }
.buy-song img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; flex: none; }
.buy-song h3 { font-size: 19px; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.buy-price { color: var(--dim); font-size: 14.5px; margin-top: 2px; }
.buy .btn[disabled] { opacity: .7; cursor: progress; }
.buy .dl { margin: 12px 0 6px; }
.buy .small { line-height: 1.45; }

/* ---------- misc ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.show-empty { display: block; color: var(--dim); }
.form .btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- download page ---------- */
.dl-page { min-height: 100vh; }
.dl-wrap { max-width: 560px; padding-top: max(32px, env(safe-area-inset-top)); padding-bottom: 64px; display: grid; gap: 14px; justify-items: start; }
.dl-brand { display: block; width: 44px; color: var(--bone); margin-bottom: 24px; }
.dl-brand svg { width: 100%; height: auto; display: block; }
.dl-cover { width: min(320px, 100%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; }
.dl-btns { width: 100%; }
.buy .form-status b { display: block; margin-bottom: 4px; }

/* music list: "show all" */
.more-btn { margin-top: 18px; width: 100%; }
@media (min-width: 640px) { .more-btn { width: auto; } }
.track[hidden] { display: none; }

/* hero video: fades in over the photo once it's playing */
.hero-video { opacity: 0; transition: opacity .6s ease; }
.hero-video.on { opacity: 1; }
