:root {
  --bg: #f7f4ee;
  --ink: #191714;
  --ink-soft: #8a8479;
  --ink-faint: #c9c2b4;
  --spin-duration: 55s; /* one full rotation of the ring — tune to taste */
  --card-w: 150px;
  --card-h: 102px;

  /* Titles (name, category/nav heading, section headers) */
  --font-title: "Satoshi", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Secondary / body text (paragraphs, captions, bottom nav) */
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Sidebar (also the single page heading) ---------- */
.sidebar {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
}

.sidebar button {
  background: none;
  border: none;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 0;
  cursor: pointer;
  color: var(--ink-faint);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.sidebar button.active,
.sidebar button:hover {
  color: var(--ink);
}

/* ---------- Top right ---------- */
.top-right[hidden] {
  display: none;
}

.top-right {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

#artist-name {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink);
}

#artist-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

#artist-links a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

#artist-links a:hover {
  color: var(--ink);
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
}

.ring-stage[hidden] {
  display: none;
}

.ring-stage {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.ring-card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--card-w);
  height: var(--card-h);
  transform-origin: center center;
  cursor: pointer;
  will-change: transform, opacity;
}

.ring-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(25,23,20,0.10);
  background: #ece7dc;
}

.ring-caption {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  white-space: normal;
}

.ring-card:hover .ring-caption {
  opacity: 1;
}

/* ---------- Text pages (about / hobbies) ---------- */
.text-page[hidden] {
  display: none;
}

.text-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 12% 60px;
  overflow-y: auto;
}

.text-page h2 {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.about-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 56px;
  max-width: 920px;
  margin: 0 auto;
}

#about-photo {
  width: 320px;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(25,23,20,0.14);
  flex-shrink: 0;
}

#about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.text-page p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}

/* ---------- Index (list) page ---------- */
.index-page[hidden] {
  display: none;
}

.index-page {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  overflow-y: auto;
  padding: 100px 12% 100px;
}

.index-column {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
  width: 100%;
}

.index-column li {
  border-bottom: 1px solid rgba(25,23,20,0.08);
  padding-bottom: 14px;
}

.index-column button {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  padding: 0;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.index-column button:hover {
  color: var(--ink);
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 5;
  background: var(--bg);
  padding: 16px 32px;
  border-top: 1px solid rgba(25,23,20,0.06);
}

.bottom-link {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.02em;
}

.bottom-link.active,
.bottom-link:hover {
  color: var(--ink);
}

/* ---------- Lightbox ---------- */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(247,244,238,0.97);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.25s ease;
}

.lightbox figure {
  margin: 0;
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox img {
  max-width: 88vw;
  max-height: 76vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(25,23,20,0.18);
}

.lightbox figcaption {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 480px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Paper grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ring-card { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  :root {
    --card-w: 92px;
    --card-h: 64px;
  }

  .sidebar { left: 20px; top: 20px; gap: 10px; }
  .sidebar button { font-size: 11px; }
  .top-right { top: 20px; right: 20px; }
  #artist-name { font-size: 11px; }
  #artist-contact { font-size: 10px; }
  .bottom-nav { padding: 14px 20px; gap: 14px; }
  .bottom-link { font-size: 12px; }
  .text-page { padding: 60px 8% 64px; }
  .text-page p { font-size: 14px; }
  .about-layout { flex-direction: column; gap: 24px; }
  #about-photo { width: 100%; max-width: 260px; height: 320px; }
  #about-text { text-align: center; }
  .index-page { padding: 80px 8% 80px; flex-direction: column; gap: 28px; }
  .index-column { max-width: 100%; }
  .index-column button { font-size: 13px; }
}
