:root {
  --bg: var(--ptg-tertiary, #111827);
  --card: var(--ptg-secondary, #1f2937);
  --text: var(--ptg-text, #f3f4f6);
  --muted: var(--ptg-muted, #cbd5e1);
  --accent: var(--ptg-primary, #9f7bff);
  --accent-hover: var(--ptg-hover, #bda7ff);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(160deg, var(--bg), color-mix(in srgb, var(--bg) 78%, var(--card)) 45%, var(--bg));
  color: var(--text);
  line-height: 1.5;
}

.hero,
main,
footer {
  width: min(960px, 92vw);
  margin: 0 auto;
}



h1,
h2 {
  margin: 0 0 0.5rem;
}

.albums p,
.more-content p {
  color: var(--muted);
  margin-top: 0;
}

.hero p {
  color: var(--muted);
}

.hero {
  background-image: url("../images/logo-removebg-preview.png");
  background-size: contain;   /* show the full image */
  background-position: center;
  background-repeat: no-repeat;

  min-height: 240px;          /* gives the image room to display */
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

section,
footer {
  background: rgba(29, 34, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}



.menu-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent-hover);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.icon-grid a {
  background: #101521;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  padding: 0.9rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.icon-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--accent-hover);
}

.icon-grid img {
  width: 42px;
  height: 42px;
}

.albums ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px; /* space between album covers */
  flex-wrap: wrap; /* lets them wrap on smaller screens */
}

.albums li {
  display: block;
}

.albums a,
.poetry-link {
  color: var(--accent);
}

.albums a:hover,
.poetry-link:hover {
  color: var(--accent-hover);
}

footer {
  margin-bottom: 2rem;
}

.album-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 0.75rem;
  display: block;
}

.menu-wrapper {
  position: relative;
}

.menu-toggle {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--text);
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story {
  background: #101521;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.story h2 {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}

.chapter-list li {
  margin: 0.5rem 0;
}

.chapter-list a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease,
              transform 0.15s ease;
}

.chapter-list a:hover {
  color: var(--accent-hover);
  background: rgba(159, 123, 255, 0.1);
  transform: translateX(4px);
}

.chapter {
    max-width: 850px;
    margin: 2rem auto;
}

.chapter-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.story-text {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    background: #101521;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent-hover);
}
