/* Humans of AI Music — shared styles for /humans/ and every story page.
   Same palette and type as the AIME homepage (index.html). */
:root {
  --ink: #17171f;
  --ink-soft: #4c4c58;
  --paper: #faf7f2;
  --paper-warm: #f4efe6;
  --card: #ffffff;
  --night: #0c0c13;
  --night-soft: #16161f;
  --orange: #f5900b;
  --orange-soft: #ffb14e;
  --orange-deep: #b85f00;
  --blue: #2fa8e8;
  --blue-soft: #6cc9f5;
  --line: rgba(23, 23, 31, 0.1);
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, blockquote { font-family: "Fraunces", Georgia, serif; line-height: 1.15; font-weight: 600; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-deep);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; font-size: 0.98rem; border: 0; cursor: pointer;
  font-family: inherit; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-primary { background: linear-gradient(100deg, var(--orange) 0%, #ffa63a 100%); color: var(--night); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }

/* ---------- Nav (matches homepage) ---------- */
nav.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 19, 0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1080px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; text-decoration: none; color: #fff; }
.nav-logo { height: 30px; width: auto; flex: none; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.72); }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.nav-cta { background: #fff; color: var(--ink) !important; padding: 8px 18px; border-radius: 999px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--orange-soft); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.85rem; color: var(--ink-soft); padding: 22px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; opacity: 0.5; }

/* ================= STORY PAGE ================= */
.story-hero { padding: 28px 0 72px; }
.story-hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px; align-items: center; margin-top: 26px;
}
@media (max-width: 860px) { .story-hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.portrait { position: relative; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 26px;
  box-shadow: 0 30px 60px -24px rgba(23,23,31,0.45);
}
.portrait::before {
  /* warm glow behind the photo, a nod to the neon logo */
  content: ""; position: absolute; inset: 8% -6% -6% 8%; z-index: -1; border-radius: 30px;
  background: linear-gradient(135deg, rgba(245,144,11,0.35), rgba(47,168,232,0.3));
  filter: blur(28px);
}
.portrait-badge {
  position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.94); border-radius: 999px; padding: 6px 14px 6px 6px;
  font-size: 0.78rem; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.portrait-badge img { width: 28px; height: 28px; border-radius: 50%; }
.story-name { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -0.01em; margin: 14px 0 8px; }
.story-alias { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 28px; }
.story-alias b { color: var(--ink); font-weight: 600; }
.hero-quote {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 500; font-style: italic; line-height: 1.3;
  padding-left: 22px; border-left: 4px solid var(--orange); margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-player { margin-top: 22px; max-width: 460px; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(23,23,31,0.5); }
.hero-player iframe { display: block; border: 0; }
.btn .tri { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 0.85rem; color: var(--ink-soft); }
.meta-row a { color: var(--ink); font-weight: 600; text-decoration: none; }
.meta-row a:hover { text-decoration: underline; }

/* ---------- Story body ---------- */
.story-body { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0 88px; }
.prose { max-width: 728px; padding: 0 24px; margin: 0 auto; font-size: 1.16rem; line-height: 1.8; color: #26262f; }
.prose p { margin-bottom: 1.25em; }
.prose p.lead::first-letter {
  font-family: "Fraunces", Georgia, serif; font-weight: 700; float: left;
  font-size: 4.4em; line-height: 0.82; padding: 0.08em 0.1em 0 0; color: var(--orange);
}
.prose .opener { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; font-style: italic; line-height: 1.35; margin-bottom: 1.1em; color: var(--ink); }
.pull {
  margin: 1.6em -48px; padding: 10px 48px; text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; font-style: italic; font-weight: 500;
  color: var(--ink); position: relative;
}
.pull::before, .pull::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 0 auto;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}
.pull::before { margin-bottom: 26px; }
.pull::after { margin-top: 26px; }
@media (max-width: 760px) { .pull { margin: 1.8em 0; padding: 26px 0; } }
.signoff { margin-top: 2em; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.signoff span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; }
figure.inline { margin: 2.4em auto; max-width: 520px; }
figure.inline img { width: 100%; height: auto; border-radius: 18px; }
figure.inline figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 10px; text-align: center; font-style: italic; }
@media (max-width: 900px) { figure.inline { margin: 2em auto; } }
figure.inline.narrow { max-width: 320px; }
figure.inline.narrow img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }

/* ---------- Listen card ---------- */
.listen { padding: 80px 0; background: var(--paper-warm); }
.listen-card {
  max-width: 880px; margin: 0 auto; background: var(--night); color: #fff; border-radius: 28px;
  display: grid; grid-template-columns: 280px 1fr; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(12,12,19,0.6);
}
@media (max-width: 760px) { .listen-card { grid-template-columns: 1fr; } }
.listen-art { background: linear-gradient(135deg, #3a1d0b, #f5900b 55%, #2fa8e8); min-height: 260px; position: relative; }
.listen-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.listen-info { padding: 34px 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.listen-info .kicker { color: var(--orange-soft); }
.listen-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 10px 0 8px; }
.listen-info p { color: rgba(255,255,255,0.72); font-size: 0.98rem; margin-bottom: 22px; }
.player-slot { min-height: 80px; }
.player-slot iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; display: block; }
.play-btn { font-size: 1rem; }
.play-btn .tri { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.elsewhere { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 0.85rem; }
.elsewhere a { color: rgba(255,255,255,0.78); text-decoration: none; border: 1px solid rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 999px; }
.elsewhere a:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ---------- Follow + prev/next ---------- */
.follow { padding: 72px 0 24px; }
.follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .follow-grid { grid-template-columns: 1fr; } }
.follow-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.follow-card h3 { font-size: 1.3rem; margin: 8px 0 10px; }
.follow-card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 18px; }
.handle-list { list-style: none; display: grid; gap: 8px; }
.handle-list a { text-decoration: none; font-weight: 600; display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--paper); }
.handle-list a:hover { background: var(--paper-warm); }
.handle-list a span { color: var(--ink-soft); font-weight: 400; }

.pager { padding: 40px 0 88px; }
.pager-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .pager-grid { grid-template-columns: 1fr; } }
.pager a, .pager .pager-empty {
  display: block; text-decoration: none; border-radius: var(--radius); padding: 24px 28px;
  border: 1px solid var(--line); background: var(--card); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pager a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(23,23,31,0.35); }
.pager small { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.pager b { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 600; }
.pager .next { text-align: right; }
.pager .pager-empty { background: transparent; border-style: dashed; color: var(--ink-soft); }

/* ---------- Tell your story band ---------- */
.tell {
  background: radial-gradient(900px 500px at 20% 0%, #1d1830 0%, var(--night) 60%);
  color: #fff; padding: 80px 0; text-align: center;
}
.tell img { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 20px; }
.tell h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.tell p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.tell .hero-actions { justify-content: center; }

/* ================= HUB PAGE ================= */
.hub-hero {
  background: radial-gradient(1100px 600px at 30% 10%, #1d1830 0%, var(--night) 55%);
  color: #fff; padding: 80px 0 88px;
}
.hub-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
@media (max-width: 760px) { .hub-hero-grid { grid-template-columns: 1fr; text-align: center; } .hub-hero-grid .hero-actions { justify-content: center; } }
.hub-logo { width: 190px; height: 190px; border-radius: 50%; margin: 0 auto; box-shadow: 0 0 60px rgba(245,144,11,0.25), 0 0 40px rgba(47,168,232,0.25); }
.hub-hero .kicker { color: var(--orange-soft); }
.hub-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 700; margin: 10px 0 16px; }
.hub-hero p { color: rgba(255,255,255,0.78); font-size: 1.15rem; max-width: 560px; margin-bottom: 28px; }
@media (max-width: 760px) { .hub-hero p { margin-left: auto; margin-right: auto; } }

.stories { padding: 72px 0 96px; }
.stories-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.stories-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.stories-head p { color: var(--ink-soft); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; } }
.story-card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.story-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(23,23,31,0.45); }
.story-card .thumb { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-warm); }
.story-card .thumb img { width: 100%; height: 100%; object-position: 50% 30%; object-fit: cover; transition: transform 0.4s ease; }
.story-card:hover .thumb img { transform: scale(1.03); }
.story-card .info { padding: 20px 22px 24px; }
.story-card blockquote { font-size: 1.12rem; font-style: italic; font-weight: 500; line-height: 1.35; margin-bottom: 14px; }
.story-card .who { font-weight: 700; }
.story-card .who span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.story-card.invite {
  border: 2px dashed rgba(23,23,31,0.18); background: transparent; justify-content: center; align-items: center;
  text-align: center; padding: 40px 28px; min-height: 360px;
}
.story-card.invite .plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: linear-gradient(135deg, var(--orange-soft), var(--blue-soft)); color: var(--night); margin-bottom: 18px; }
.story-card.invite h3 { font-size: 1.4rem; margin-bottom: 8px; }
.story-card.invite p { color: var(--ink-soft); margin-bottom: 18px; }

/* Play buttons on story cards */
.story-card { position: relative; }
.card-play {
  position: absolute; right: 14px; top: 14px; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(100deg, var(--orange), #ffa63a); color: var(--night);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.5); transition: transform 0.15s ease;
}
.card-play:hover { transform: scale(1.08); }
.card-play .tri { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.card-play .bars { display: none; gap: 3px; height: 16px; align-items: end; }
.card-play .bars i { width: 3px; background: currentColor; border-radius: 2px; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .card-play .bars i { animation: hp-bar 0.9s ease-in-out infinite; }
  .card-play .bars i:nth-child(2) { animation-delay: 0.2s; } .card-play .bars i:nth-child(3) { animation-delay: 0.4s; }
  @keyframes hp-bar { 0%, 100% { height: 30%; } 50% { height: 100%; } }
}
.hp-current:not(.hp-paused) .card-play .tri { display: none; }
.hp-current:not(.hp-paused) .card-play .bars { display: flex; }
.hp-current .story-card, .story-card.hp-current { outline: 3px solid var(--orange); outline-offset: 2px; }
.card-song { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.card-song::before { content: "♪"; color: var(--orange-deep); }

/* ---------- Footer ---------- */
footer.site { background: var(--night); color: rgba(255,255,255,0.5); padding: 28px 0 40px; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer.site a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer.site a:hover { color: #fff; }
