/* ==================================================
   LITURGICAL MUSIC — БОИ
   ================================================== */

:root {
  --background: #f7f6f4;
  --surface: #fffdfb;
  --text: #333333;
  --heading: #27474e;
  --muted: #77736f;
  --line: #d9d7d4;

  /* Главни бои на секциите */
  --original: #cd8b76;
  --octoechos: #c45baa;
  --feasts: #7d387d;
  --chants: #27474e;

  /* Посветли позадини на секциите */
  --original-background: #fbf1ed;
  --octoechos-background: #faeef7;
  --feasts-background: #f6f0f8;
  --chants-background: #eef4f5;

  /* Featured */
  --featured: #e1d89f;
  --featured-background: #faf8e8;
}


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

* {
  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;
}

a {
  color: var(--feasts);
}

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

img {
  max-width: 100%;
  height: auto;
}


/* ==================================================
   HEADER
   ================================================== */

.site-heading {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  margin: 0 0 14px;
  flex-direction: row;
  align-items: center;
}

.site-name {
  flex: 0 0 auto;
  margin: 0;
  color: var(--feasts);
  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(--feasts);
  text-decoration: none;
  white-space: nowrap;
}

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

.site-name img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.site-title {
  color: var(--feasts);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-subtitle {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
  white-space: nowrap;
}


/* ==================================================
   ОСНОВНА СОДРЖИНА
   ================================================== */

main {
  margin-top: 24px;
}


/* ==================================================
   FEATURED
   ================================================== */

.featured-section {
  margin: 0 0 38px;
  padding: 24px 26px;
  border-left: 5px solid var(--featured);
  background: var(--featured-background);
}

.featured-section h2 {
  margin: 0 0 14px;
  color: #766e28;
  font-size: 1.6rem;
  line-height: 1.3;
}

.featured-section p {
  margin: 0 0 1.25em;
}

.featured-section p:last-child {
  margin-bottom: 0;
}

.featured-section a {
  color: #766e28;
}

.featured-section a:hover {
  color: var(--heading);
}


/* ==================================================
   ДОБРОДОЈДЕ И УВОДЕН ТЕКСТ
   ================================================== */

.welcome-section {
  margin: 0 0 38px;
  padding: 24px 26px;
  border-left: 5px solid var(--featured);
  background: var(--featured-background);
}

.welcome-section h1 {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 1.8rem;
  line-height: 1.25;
}

.welcome-section p {
  margin: 0 0 1.25em;
}

.welcome-section p:last-child {
  margin-bottom: 0;
}


/* ==================================================
   ГЛАВНИ СЕКЦИИ НА САЈТОТ
   ================================================== */

.section-links h2,
.latest-additions h2 {
  margin: 0 0 18px;
  color: var(--heading);
  font-size: 1.55rem;
  line-height: 1.3;
}

.section-card {
  margin: 0 0 18px;
  padding: 20px 22px;
  border-left: 5px solid;
}

.section-card h3 {
  margin: 0 0 7px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.section-card h3 a {
  color: inherit;
  text-decoration: none;
}

.section-card h3 a:hover {
  text-decoration: underline;
}

.section-card p {
  margin: 0;
}


/* Original Music */

.section-card.section-original,
.section-card.original-section {
  border-left-color: var(--original);
  background: var(--original-background);
}

.section-card.section-original h3,
.section-card.original-section h3,
.section-card.section-original h3 a,
.section-card.original-section h3 a {
  color: var(--original);
}


/* Octoechos */

.section-card.section-octoechos,
.section-card.octoechos-section {
  border-left-color: var(--octoechos);
  background: var(--octoechos-background);
}

.section-card.section-octoechos h3,
.section-card.octoechos-section h3,
.section-card.section-octoechos h3 a,
.section-card.octoechos-section h3 a {
  color: var(--octoechos);
}


/* Feasts */

.section-card.section-feasts,
.section-card.feasts-section {
  border-left-color: var(--feasts);
  background: var(--feasts-background);
}

.section-card.section-feasts h3,
.section-card.feasts-section h3,
.section-card.section-feasts h3 a,
.section-card.feasts-section h3 a {
  color: var(--feasts);
}


/* Chants */

.section-card.section-chants,
.section-card.chants-section {
  border-left-color: var(--chants);
  background: var(--chants-background);
}

.section-card.section-chants h3,
.section-card.chants-section h3,
.section-card.section-chants h3 a,
.section-card.chants-section h3 a {
  color: var(--chants);
}


/* ==================================================
   LATEST ADDITIONS
   ================================================== */

.latest-additions {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.latest-additions h2 {
  color: var(--heading);
}


/* ==================================================
   ОПШТИ ТИПОГРАФСКИ ПОСТАВКИ
   ================================================== */

h1,
h2,
h3 {
  color: var(--heading);
}

p {
  margin: 0 0 1.25em;
}


/* ==================================================
   МОБИЛЕН ПРИКАЗ
   ================================================== */
@media (max-width: 600px) {
  .site-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-name {
    margin: 0;
    line-height: 1.1;
  }

  .site-title {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  .site-subtitle {
    margin: -8px 0 0 62px;
    line-height: 1.2;
  }
}
