/* ==================================================
   LITURGICAL MUSIC — БОИ
   ================================================== */
:root {
  /* Основни бои */
  --background: #f7f6f4;
  --surface: #fffdfb;
  --text: #333333;
  --heading: #6b7d8a;
  --muted: #77736f;
  --line: #d9d7d4;

  /* Главни бои на секциите и менито 
  newsletter, donate, about, contact
  */
  --info: #e1d89f;
  --info-text: #27474e;
  --info-background: #faf6e8; /*  #f3edc2;*/
  --info-text-light: #49676b;

  --dpn: #27474e; /* Guides (зелена) */
  --original: #7b3f00; /* Original (кафеава) */
  --chants: #7d387d; /* Traditional (виолетова) */
  --octoechos: #824670; /* Octoechos (слива) */
  --feasts: #A2708A; /* Feasts (mauve) */

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

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

  /* Catalogue */
  --catalogue: #6b6b6b;
  --catalogue-background: #f0f0f0;

  /* Accent */
--accent: #888888;
}


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

* {
  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: 35px;
  height: 35px;
  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;
}

/* ==================================================
   БАНЕР
   ================================================== */

.home-banner {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 28px auto 32px;
}


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

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;
  text-align: center;
}

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

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


/* ==================================================
   СОЦИЈАЛНИ МРЕЖИ
   ================================================== */
.social-invitation {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.social-invitation a {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
}

.social-invitation a:hover {
  text-decoration: underline;
}


/* ==================================================
   ВТОРОСТЕПЕНО МЕНИ
   ================================================== */
.secondary-nav {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 20px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 12px;
}

.secondary-nav-wrapper {
  display: flex;
  justify-content: center;
  margin: 5px 0 7px;
  font-size: 0;
}

.secondary-nav a {
  color: var(--accent);
  text-decoration: none;
}

.secondary-nav a[href="/catalogue"] {
  font-weight: bold;
}

.secondary-nav a:hover {
  text-decoration: underline;
}

.secondary-nav span {
  color: var(--line);
}

@media (max-width: 600px) {
  .secondary-nav {
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.9rem;
  }

  .secondary-nav-wrapper {
    margin: 40px 0;
  }
}

/* ==================================================
   GLOBAL FOOTER — блага сенка одозгора
   ================================================== */
/*
.site-footer {
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}
*/
/* ==================================================
   ГЛАВНИ СЕКЦИИ НА САЈТОТ
   ================================================== */

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

.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;
}

/* DPN */
.section-card.section-dpn {
  border-left-color: var(--dpn);
  background: var(--dpn-background);
}

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


/* 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: 10px;
  padding-top: 8px;
  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;
  }
}


/* ==================================================
   TEASERS (насловна)
   ================================================== */

.teaser {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-areas:
    "date    date"
    "title   title"
    "image   blurb"
    "image   category";
  gap: 10px 14px;
  padding: 16px 0;
  border-bottom: none; /* го бришеме обичниот бордер */
  background: linear-gradient(to right, transparent, var(--line), transparent) no-repeat bottom center;
  background-size: 90% 1px;
  padding-bottom: 16px; /* за да има простор под линијата */
  align-items: start;
}

.teaser-date {
  grid-area: date;
  text-align: right;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.teaser-title {
  grid-area: title;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  text-align: center;
}

.teaser-title a {
  color: var(--heading);
  text-decoration: none;
}

.teaser-title a:hover {
  text-decoration: underline;
}

.teaser-image {
  grid-area: image;
}

.teaser-image img {
  width: 120px;
  height: auto;
  display: block;
}

.teaser-blurb {
  grid-area: blurb;
  margin: 0;
  font-size: 0.95rem;
}

.teaser-category {
  grid-area: category;
  margin: 0;
  font-size: 0.85rem;
}

.teaser-tags,
.featured-tags {
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.teaser-tags .tag,
.featured-tags .tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 3px;
  font-family: Arial, sans-serif;
}

.tag-source {
  background: var(--original);
  color: #fff;
}

.tag-source:hover {
  opacity: 0.85;
}

.tag-source-dpn {
  background: var(--dpn);
  color: #fff;
}

.tag-source-dpn:hover {
  opacity: 0.85;
}

.tag-source-traditional {
  background: var(--chants);
  color: #fff;
}

.tag-source-traditional:hover {
  opacity: 0.85;
}

.tag-category {
  background: var(--line);
  color: var(--text);
}

.tag-category:hover {
  background: var(--muted);
  color: #fff;
}

/* Мобилен — ист распоред, но слика помала */
@media (max-width: 600px) {
  .teaser {
    display: block; /* наместо grid */
    padding: 16px 0;
  }
  .teaser-image {
    float: left;
    margin-right: 12px;
    margin-bottom: 6px;
    width: 90px;
  }
  .teaser-image img {
    width: 90px;
    height: auto;
    display: block;
  }
  .teaser-date {
    text-align: left;
    margin-bottom: 4px;
  }
  .teaser-title {
    text-align: left;
    margin: 0 0 6px;
  }
  .teaser-blurb {
    margin: 0 0 8px;
  }
  .teaser-tags {
    clear: both; /* за да не се меша со float-от */
    padding-top: 8px;
  }
}

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

.featured-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-areas:
    "date    date"
    "title   title"
    "image   blurb"
    "image   category";
  gap: 10px 18px;
  padding: 18px 0;
  border-bottom: none; /* го бришеме обичниот бордер */
  background: linear-gradient(to right, transparent, var(--line), transparent) no-repeat bottom center;
  background-size: 90% 1px;
  padding-bottom: 16px; /* за да има простор под линијата */
  align-items: start;
}

.featured-item:last-child {
  border-bottom: none;
}

.featured-date {
  grid-area: date;
  text-align: right;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.featured-title {
  grid-area: title;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.featured-title a {
  color: var(--heading);
  text-decoration: none;
}

.featured-title a:hover {
  text-decoration: underline;
}

.featured-image {
  grid-area: image;
}

.featured-image img {
  width: 160px;
  height: auto;
  display: block;
}

.featured-blurb {
  grid-area: blurb;
  margin: 0;
  font-size: 1rem;
}

.featured-category {
  grid-area: category;
  margin: 0;
  font-size: 0.85rem;
}

.featured-category a {
  color: var(--feasts);
  text-decoration: none;
}

.featured-category a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .featured-item {
    display: block;
    padding: 18px 0;
  }
  /* Насловот и датумот се над сликата */
  .featured-title,
  .featured-date {
    text-align: left;
    margin: 0 0 8px;
  }
  /* Сликата е лево, но само за текстот */
  .featured-image {
    float: left;
    margin-right: 12px;
    margin-bottom: 6px;
    width: 90px;
  }
  .featured-image img {
    width: 90px;
    height: auto;
    display: block;
  }
  .featured-blurb {
    margin: 0 0 8px;
  }
  .teaser-tags {
    clear: both;
    padding-top: 8px;
  }
}

.featured-section .tag-source {
  color: #fff;
}

.featured-section .tag-source:hover {
  color: #fff;
  opacity: 0.85;
}

.featured-section .tag-category {
  color: var(--text);
}

.featured-section .tag-category:hover {
  color: #fff;
}

.featured-section .tag-source-dpn {
  color: #fff;
}

.featured-section .tag-source-traditional {
  color: #fff;
}


