/* ==================================================
   ОСНОВНИ БОИ И ПРОМЕНЛИВИ
   ================================================== */

:root {
  --background: #f7f6f4;
  --surface: #fffdfb;
  --text: #333333;
  --heading: #2c2c2c;
  --muted: #77736f;
  --accent: #8b4545;
  --line: #d9d7d4;

  --reading-border: #71858a;
  --reading-background: #eef2f1;

  --music-border: #b08a65;
  --music-heading: #8b6545;
  --music-background: #faf7f2;
}


/* ==================================================
   ОСНОВНИ ПОСТАВКИ
   ================================================== */

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 22px 60px;
  color: var(--text);
  background: var(--surface);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
}


/* ==================================================
   HEADER И ЛОГО
   ================================================== */

.site-name {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-name a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  text-decoration: none;
}

.site-name a:hover {
  text-decoration: underline;
}

.site-name img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.site-name span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}




/* ==================================================
   ОЗНАКА НА ЕПИЗОДАТА
   ================================================== */

.episode-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-align: center;
}

.episode-label a {
  color: inherit;
  text-decoration: underline;
}

.episode-label a:hover {
  color: var(--heading);
}


/* ==================================================
   НАСЛОВ
   ================================================== */

h1 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 2.25rem;
  line-height: 1.2;
  text-align: center;
}

article h2 {
  margin: 2.2em 0 0.7em;
  color: var(--heading);
  font-size: 1.45rem;
  line-height: 1.3;
}

.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-style: italic;
}


/* ==================================================
   ИЛУСТРАЦИЈА
   ================================================== */

.episode-image {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 28px auto 36px;
}


/* ==================================================
   СЕКЦИЈА: СЛУШАЈ ГО ТЕКСТОТ
   ================================================== */

.audio-section {
  margin: 32px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: #f4eeee;
}

.audio-section h2 {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

audio {
  width: 100%;
  margin-top: 8px;
}


/* ==================================================
   СЕКЦИЈА: ЧИТАЈ ГО ТЕКСТОТ
   ================================================== */

.reading-section {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 5px solid var(--reading-border);
  border-top: none;
  border-right: none;
  border-bottom: none;
  background-color: var(--reading-background);
}

.reading-section details {
  margin-top: 0;
  border: none;
}

.reading-section summary {
  display: block;
  margin: 0 0 16px;
  padding: 14px 0;
  color: var(--reading-border);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.reading-section summary::-webkit-details-marker {
  display: none;
}

.reading-section summary .section-icon {
  text-decoration: none;
}

.reading-section summary .summary-label {
  color: inherit;
}

.reading-section summary .summary-label u {
  text-decoration: underline;
}

.reading-section details[open] summary {
  margin-bottom: 28px;
}

article {
  margin-top: 28px;
}

article p {
  margin: 0 0 1.25em;
}


/* ==================================================
   ПОТПИС НА КРАЈОТ НА ТЕКСТОТ
   ================================================== */

.author-signature {
  margin-top: 3rem;
  text-align: right;
  font-style: italic;
}


/* ==================================================
   СЕКЦИЈА: МУЗИЧКИ ДОДАТОК
   ================================================== */

.music-section {
  margin-top: 32px;
  padding: 18px 22px 24px;
  border-left: 5px solid var(--music-border);
  border-top: none;
  border-right: none;
  border-bottom: none;
  background-color: var(--music-background);
}

.music-section h2 {
  margin: 0 0 10px;
  color: var(--music-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.music-title {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.music-title span {
  color: var(--muted);
  font-size: 0.85rem;
}




/* ==================================================
   МОБИЛЕН ПРИКАЗ
   ================================================== */

@media (max-width: 600px) {
  body {
    padding: 24px 16px 44px;
    font-size: 17px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .site-name span {
    font-size: 1.3rem;
  }

  .site-name span {
    font-size: 1.3rem;
    letter-spacing: -0.04em;

}

}


/* ==================================================
   НАДНАСЛОВ НА ЕПИЗОДАТА
   ================================================== */

.episode-label {
  margin: 18px 0 10px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0;
  text-align: center;
}

/* ==================================================
   ВИЗУЕЛНО СКРИЕН НАСЛОВ
   ================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==================================================
   ЛИНКОТ „СЕЗОНА“ ВО ОЗНАКАТА НА ЕПИЗОДАТА
   ================================================== */

.episode-label a {
  color: inherit;
  text-decoration: none;
}

.episode-label a:hover {
  text-decoration: underline;
}

.music-item + .music-item {
  margin-top: 28px;
}
