/* Kirkoid.com — dark & moody redesign */
:root {
  --bg: #0c0e14;
  --surface: #14171f;
  --surface-2: #1b1f2a;
  --accent: #8b5cff;
  --accent-soft: rgba(139, 92, 255, 0.15);
  --text: #e8e6f0;
  --muted: #9a96ab;
  --border: rgba(139, 92, 255, 0.25);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  top: -30%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139,92,255,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12,14,20,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  background: linear-gradient(120deg, #b79bff, #8b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
nav a:hover { color: var(--text); background: var(--accent-soft); }
nav a[aria-current="page"] { color: #fff; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--border); }
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.hero { text-align: center; padding: 40px 0 28px; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, #c9b6ff, #8b5cff 60%, #5c3dbf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--muted); max-width: 620px; margin: 12px auto 0; }
.waveform {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin: 28px auto 0;
  max-width: 420px;
}
.waveform span {
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
h2.section-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 40px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
h2.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
a.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(139,92,255,0.2); }
.icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.card .name { font-weight: 600; }
.card .desc { font-size: 0.85rem; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(139,92,255,0.35); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--border); color: #c9b6ff; }
.note {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  margin: 14px 0;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  color: #c9b6ff;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
/* prose pages (Nanny, Thistlemor) */
.prose { max-width: 820px; }
.prose p { margin-bottom: 1.1em; color: #d6d3e4; }
.prose h1 { margin-bottom: 4px; font-size: 2rem; }
.prose .byline { color: var(--muted); font-style: italic; margin-bottom: 24px; }
figure.float-right, figure.float-left {
  margin: 6px 0 14px 24px;
  float: right;
  width: 320px;
  max-width: 45%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
figure.float-left { float: left; margin: 6px 24px 14px 0; }
figure img { width: 100%; height: auto; border-radius: 8px; display: block; }
figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; padding-top: 8px; }
audio { width: 100%; margin: 10px 0 24px; }
.chapters { text-align: center; margin: 24px 0; font-weight: 600; }
.chapters a { color: #c9b6ff; text-decoration: none; }
.chapters a:hover { text-decoration: underline; }
.chapters .here { color: #ffd166; }
.clear { clear: both; }
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  position: relative; z-index: 1;
}
.embed-frame { width: 100%; border: 0; border-radius: 12px; background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
table.bpm { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
table.bpm th, table.bpm td { padding: 9px 12px; text-align: center; border-bottom: 1px solid rgba(139,92,255,0.12); }
table.bpm th { color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
table.bpm td.bpm-val { background: var(--accent-soft); color: #c9b6ff; font-weight: 700; border-radius: 6px; }
table.bpm tr:hover td:not(.bpm-val) { background: rgba(139,92,255,0.06); }
.top-link { display: inline-block; margin-top: 30px; color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.top-link:hover { color: var(--accent); }
@media (max-width: 700px) {
  figure.float-right, figure.float-left { float: none; width: 100%; max-width: none; margin: 14px 0; }
}
