/* AKAITSUKI — Northwest Blackgaze */
:root {
  --bg: #000;
  --bg-2: #0d0d0d;
  --card: #111;
  --fg: #fff;
  --fg-2: #c9c9c9;
  --muted: #7a7a7a;
  --line: #262626;
  --accent: #d0434b;        /* red from the La femme d'edm sigil */
  --accent-deep: #9b2a30;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tabs-h: 56px;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p a, .lead a, .card-foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
p a:hover { text-decoration-color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.4em;
  border-radius: 999px; border: 1px solid var(--fg);
  font: inherit; font-weight: 500; font-size: .95rem; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  background: transparent; color: var(--fg);
}
.btn svg { width: 1em; height: 1em; fill: currentColor; }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 36px; padding: .45em 1em; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: progress; }

/* ---------- tabs ---------- */
.app-tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: center;
  height: var(--tabs-h);
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.app-tabs a {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  flex: 0 1 140px; min-width: 0;
  padding: 0 .5rem;
  font-size: .95rem; font-weight: 500; letter-spacing: .04em;
  color: var(--fg-2);
  transition: color .15s, background .15s;
}
.app-tabs a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .2s ease;
}
.app-tabs a:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.app-tabs a[aria-current="page"] { color: var(--fg); background: rgba(208, 67, 75, .08); }
.app-tabs a[aria-current="page"]::after { transform: scaleX(1); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.6s infinite; }

/* ---------- pages ---------- */
.page { position: relative; }
.page-body { padding: clamp(2rem, 6vh, 4rem) 1.25rem 2rem; }
.content { width: 100%; max-width: 680px; margin: 0 auto; }
.content--wide { max-width: 1080px; }
.content--center { text-align: center; }
.content h1, .content > h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 300; margin-bottom: 1.5rem; }

/* Without JS every section stacks; the arrows only make sense in app mode. */
.page-nav { display: none; }
html:not(.app) .page + .page { border-top: 1px solid var(--line); }

/* App mode: one full-height page at a time, like a native app. */
html.app body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
html.app .app-pages { flex: 1; min-height: 0; position: relative; }
html.app .page { display: none; height: 100%; flex-direction: column; }
html.app .page.is-current { display: flex; }
html.app .page-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding-bottom: 6.5rem; /* room for the arrows */
}
html.app .page-body > .content { margin: auto; }
html.app .page.enter .page-body > * { animation: page-in .45s cubic-bezier(.2, .7, .2, 1) both; }

html.app .page-nav {
  display: flex; justify-content: space-between; align-items: flex-end;
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 1080px; margin: 0 auto; padding: 0 1.25rem 1rem;
  pointer-events: none;
}
.page-nav a {
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  max-width: 40vw;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
}
.page-nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-shadow: 0 1px 6px #000; }
.page-nav svg {
  width: 44px; height: 44px; padding: 10px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px);
  transition: border-color .15s, color .15s, transform .15s, background .15s;
}
.page-nav a:hover { color: var(--fg); }
/* Out of the way while scrolling through a long page; back at the top and bottom. */
html.app .page-nav a { transition: opacity .25s, transform .25s; }
html.app .page.mid-scroll .page-nav a { opacity: 0; pointer-events: none; transform: translateY(8px); }
.page-nav a:hover svg { border-color: var(--accent); color: var(--accent); }
.page-nav-prev:hover svg { transform: translateX(-3px); }
.page-nav-next:hover svg { transform: translateX(3px); }

/* ---------- home / hero ---------- */
.page--hero .page-body { position: relative; overflow-x: hidden; }
.hero-wrap { position: relative; width: 100%; padding: clamp(1.5rem, 6vh, 4rem) 0 clamp(2rem, 6vh, 3.5rem); }
.hero-bg {
  position: absolute; inset: -2rem -50vw 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(208, 67, 75, .22), transparent 70%),
    radial-gradient(ellipse at center, transparent 30%, #000 75%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: -10%;
  background: var(--bg-img) center / min(70vh, 640px) no-repeat;
  opacity: .12; filter: blur(2px) grayscale(.3);
  mix-blend-mode: screen;
}
html.app .page--hero .page-body { padding-top: 0; }
html.app .page--hero .page-body > * { margin: 0 auto; }
.hero { position: relative; z-index: 1; text-align: center; width: 100%; max-width: 640px; margin: 0 auto; }
.brand {
  font-weight: 500;
  font-size: clamp(2.4rem, 1rem + 6.5vw, 5rem);
  letter-spacing: .2em; margin-right: -.2em; /* optically centre tracked text */
  line-height: 1;
}
.tagline { margin: 1rem 0 0; color: var(--fg-2); font-size: clamp(.8rem, 1.6vw, .95rem); letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; }

.live-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.5rem; padding: .45rem 1rem;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--fg); font-size: .85rem; font-weight: 600;
  background: rgba(208, 67, 75, .15);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }

.new-release {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  margin: 2.25rem auto 0; width: 100%; max-width: 460px; padding: .75rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(17, 17, 17, .75); backdrop-filter: blur(6px);
  transition: border-color .2s, transform .2s;
}
.new-release:hover { border-color: var(--accent); transform: translateY(-2px); }
.new-release img { width: 80px; height: 80px; border-radius: 8px; flex: none; }
.nr-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nr-text .kicker { color: var(--accent); margin: 0 0 .15rem; font-size: .68rem; }
.nr-text strong { font-weight: 500; font-size: 1.05rem; }
.nr-desc { color: var(--fg-2); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-play {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 3px;
  background: var(--fg); color: var(--bg); font-size: .9rem;
  transition: background .15s, color .15s;
}
.new-release:hover .nr-play { background: var(--accent); color: var(--fg); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }

/* ---------- music grid ---------- */
.release-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.75rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.release-card { display: block; }
.rc-art { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--card); position: relative; }
.rc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s; }
.rc-art::after {
  content: '▶'; position: absolute; inset: auto .6rem .6rem auto;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding-left: 3px;
  background: var(--accent); color: #fff; font-size: .85rem;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.release-card:hover .rc-art img, .release-card:focus-visible .rc-art img { transform: scale(1.04); }
.release-card:hover .rc-art::after, .release-card:focus-visible .rc-art::after { opacity: 1; transform: none; }
.rc-title { display: block; margin-top: .7rem; font-weight: 500; font-size: 1rem; line-height: 1.3; }
.rc-meta { display: block; color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.release-grid--sm { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.25rem 1rem; }
.release-grid--sm .rc-title { font-size: .9rem; }

/* ---------- embeds ---------- */
.embed { border-radius: 12px; overflow: hidden; min-height: var(--embed-h); background: #181818; }
.embed iframe { display: block; border: 0; }

/* ---------- release dialog ---------- */
.release-dialog {
  width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-2); color: var(--fg); overflow: auto;
}
.release-dialog::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(4px); }
.release-dialog[open] { animation: dialog-in .25s ease both; }
.rd-close {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 1.5rem; line-height: 1;
}
.rd-close:hover { background: var(--accent); }
.rd-body { padding: 1.25rem; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.rd-dialog-cover { width: 140px; height: 140px; border-radius: 8px; }
.rd-dialog-info { padding-right: 2rem; }
.rd-body .embed, .rd-body .listen { grid-column: 1 / -1; }
.rd-dialog-info h2 { font-size: 1.5rem; font-weight: 400; }
.rd-dialog-info p:last-child { color: var(--fg-2); margin: .5rem 0 0; }
.rd-body .listen { margin: 0; }
.listen { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }

/* ---------- release page ---------- */
.back { display: inline-block; color: var(--fg-2); font-size: .9rem; margin-bottom: 1.5rem; }
.back:hover { color: var(--accent); }
.release-detail { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.rd-cover { border-radius: 10px; width: 100%; box-shadow: 0 30px 80px rgba(208, 67, 75, .18); }
.rd-info h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 300; margin-bottom: .75rem; }
.rd-info .lead { color: var(--fg-2); margin: 0 0 1.5rem; }
.more-title { font-size: .8rem !important; font-weight: 600 !important; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 4rem 0 1.25rem !important; }

/* ---------- feed (on Home) ---------- */
.feed { scroll-margin-top: 1rem; }
.feed-title {
  display: flex; align-items: center; gap: 1rem;
  font-size: .8rem !important; font-weight: 600 !important; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.25rem !important;
}
.feed-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.card--twitch { scroll-margin-top: 1rem; }
.feed-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas: "yt twitch" "yt spotify";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.card--youtube { grid-area: yt; }
.card--twitch { grid-area: twitch; }
.card--spotify { grid-area: spotify; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.card-head h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; }
.card-head svg { fill: currentColor; }
.status { color: var(--muted); font-size: .8rem; }
a.status:hover { color: var(--fg); }
.status.is-live { color: var(--fg); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.status.is-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.card-foot { margin: .75rem 0 0; font-size: .85rem; color: var(--fg-2); }

.twitch-frame, .yt-player { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.twitch-frame iframe, .yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.twitch-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  text-align: center; padding: 1rem; color: var(--fg-2); font-size: .9rem;
  background: radial-gradient(ellipse at center, rgba(208, 67, 75, .14), transparent 70%), #0b0b0b;
  transition: color .15s;
}
.twitch-placeholder svg { width: 34px; height: 34px; fill: currentColor; opacity: .8; }
.twitch-placeholder strong { color: var(--fg); font-weight: 500; font-size: 1.05rem; }
.twitch-placeholder:hover { color: var(--fg); }

.yt-list-title { margin: 1.1rem 0 .75rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.yt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem .75rem; }
.yt-item { display: block; font-size: .8rem; color: var(--fg-2); line-height: 1.35; }
.yt-item img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 6px; margin-bottom: .4rem; transition: opacity .2s; }
.yt-item:hover { color: var(--fg); }
.yt-item:hover img { opacity: .8; }

.follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.5rem; color: var(--muted); font-size: .85rem; }
.follow-row > span { margin-right: .25rem; }

/* ---------- about ---------- */
.content--about { max-width: 1000px; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.about-text h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 300; margin-bottom: 1.5rem; }
.about-text p { color: var(--fg-2); margin: 0 0 1rem; }
.about-text .lead { color: var(--fg); }
.about-art { border-radius: 10px; margin-bottom: 1.75rem; max-width: 320px; }
.about-side h3 { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 3.2rem 1fr auto; gap: .5rem; padding: .5rem 0 .5rem 1rem; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; left: -4px; top: 1rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline time { color: var(--muted); }
.timeline a:hover { color: var(--accent); }
.timeline span { color: var(--muted); font-size: .8rem; }

/* ---------- contact / forms ---------- */
.form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 500; color: var(--fg-2); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: .75rem .9rem; min-height: 44px;
  transition: border-color .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-size: .9rem; color: var(--fg-2); }
.hp { position: absolute; left: -9999px; }
.form--inline { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.inline-row { display: flex; gap: .5rem; }
.inline-row input { flex: 1; min-width: 0; }

/* ---------- footer ---------- */
.app-footer { border-top: 1px solid var(--line); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); text-align: center; background: #000; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.1rem; }
.social a { display: block; padding: 4px; color: var(--fg-2); transition: color .15s, transform .15s; }
.social a:hover { color: var(--accent); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.copyright { color: var(--muted); font-size: .7rem; margin: .35rem 0 0; letter-spacing: .04em; }

/* ---------- animation ---------- */
@keyframes page-in {
  from { opacity: 0; transform: translateX(calc(var(--enter, 0) * 28px)); }
  to { opacity: 1; transform: none; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(208, 67, 75, .7); }
  70% { box-shadow: 0 0 0 8px rgba(208, 67, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(208, 67, 75, 0); }
}

/* ---------- responsive ---------- */
/* Wide screens: arrows sit in the side gutters, vertically centred, clear of content. */
@media (min-width: 1340px) {
  html.app .page-nav { max-width: none; top: 0; align-items: center; padding: 0 1.5rem; }
  html.app .page-nav a { max-width: 96px; }
  html.app .page-nav a span { white-space: normal; text-align: center; line-height: 1.4; }
  html.app .page-body { padding-bottom: 3rem; }
}
@media (max-width: 860px) {
  .feed-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "twitch" "yt" "spotify"; }
  .content--about { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .release-detail { grid-template-columns: minmax(0, 1fr); }
  .rd-cover { max-width: 420px; }
}
@media (max-width: 560px) {
  :root { --tabs-h: 50px; }
  .app-tabs a { font-size: .85rem; letter-spacing: .02em; padding: 0 .25rem; }
  .page-body { padding-left: 1rem; padding-right: 1rem; }
  html.app .page-nav { padding: 0 1rem .75rem; }
  .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .9rem; }
  .form-row { grid-template-columns: 1fr; }
  .new-release img { width: 64px; height: 64px; }
  .yt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tagline { letter-spacing: .32em; margin-right: -.32em; }
  .social { gap: .35rem .65rem; }
  .nr-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rd-body { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; padding: 1rem; }
  .rd-dialog-cover { width: 96px; height: 96px; }
  .rd-dialog-info h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
