/* ==========================================================================
   Alba 2000 — design tokens (from Figma styles)
   ========================================================================== */
:root {
  --a1: #bcc973;          /* accent bar / footer links */
  --a-dark: #223f25;      /* dark green */
  --a-heading: #263e0e;   /* headings, footer */
  --a-links: #5d8a61;     /* links, buttons */
  --bckg-gray: #f0ede6;   /* page background */
  --captions: #727272;    /* dates */
  --alba-black: #121212;  /* body text */
  --alba-white: #fefefe;
  --line: rgba(11, 11, 11, 0.2);
  --signature-line: #9e7f4f;
  --placeholder: #d9d9d9;

  --font-body: "Montserrat", system-ui, sans-serif;
  --font-display: "Montserrat Alternates", "Montserrat", system-ui, sans-serif;

  /* Desktop grid: 117 | logo 108 | 57 | content 795 | 117  (= 1194 frame) */
  --col-logo: 108px;
  --col-gap: 57px;
  --col-content: 795px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bckg-gray);
  color: var(--alba-black);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--a-links); outline-offset: 3px; }

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

/* ==========================================================================
   Icons (unifrog_ico glyphs exported from Figma, tinted via currentColor)
   ========================================================================== */
.icon {
  display: inline-block;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
          mask: var(--icon) no-repeat center / contain;
}
.icon--home      { --icon: url("../assets/icons/home.svg");           width: 28px; height: 29px; }
.icon--chevron-r { --icon: url("../assets/icons/chevron-r.svg");      width: 20px; height: 20px; }
.icon--level-up  { --icon: url("../assets/icons/level-up.svg");       width: 28px; height: 28px; }
.icon--arrow-l   { --icon: url("../assets/icons/arrow-l-circle.svg"); width: 28px; height: 29px; }
.icon--arrow-r   { --icon: url("../assets/icons/arrow-r-circle.svg"); width: 28px; height: 29px; }
.icon--humanfrog { --icon: url("../assets/icons/humanfrog.svg");      width: 17px; height: 17px; }

/* ==========================================================================
   Page grid + header
   ========================================================================== */
.page {
  display: grid;
  grid-template-columns: 1fr var(--col-logo) var(--col-gap) minmax(0, var(--col-content)) 1fr;
  grid-template-rows: auto 1fr;
}

.site-logo {
  grid-column: 2;
  grid-row: 1;
  margin-top: 70px;
}

.nav {
  grid-column: 4;
  grid-row: 1;
  align-self: start;
  margin-top: 119px;
}
.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
}
.nav__dot {
  width: 7px;
  height: 7px;
}
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 28px;
  color: var(--a-links);
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 1.28px;
  text-transform: uppercase;
  transition: color 0.15s;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--a-dark); }

/* Active-page bar under the current item */
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  height: 14px;
  background: var(--a1);
}
.nav__link--home[aria-current="page"]::after { left: -4px; right: -3px; }

.main {
  grid-column: 4;
  grid-row: 2;
  padding-top: 65px;   /* content starts 243px from page top */
  padding-bottom: 56px;
}

/* ==========================================================================
   Shared typography + components
   ========================================================================== */
.title-xl {
  color: var(--a-heading);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  overflow-wrap: break-word;
}

.title-sc {
  color: var(--a-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 1.28px;
  text-transform: uppercase;
}

.bar {
  display: block;
  width: 99px;
  height: 14px;
  background: var(--a1);
}

.stack-20 { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.lead p {
  padding: 4px 0;
  font-size: 20px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 215px;
  min-height: 40px;
  padding: 11px 29px;
  border-radius: 32px;
  background: var(--a-links);
  color: var(--alba-white);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  font-feature-settings: "liga" 0;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--a-dark); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--a-links);
  font-size: 16px;
  line-height: 1.2;
}
.more-link:hover { color: var(--a-dark); }

.date {
  color: var(--captions);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
}

.placeholder-img { background: var(--placeholder); }

/* Links inside body copy */
.main p a:not(.btn) {
  color: var(--a-links);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.main p a:not(.btn):hover { color: var(--a-dark); }

/* ==========================================================================
   Home
   ========================================================================== */
.home {
  display: grid;
  grid-template-columns: 464px 1fr 248px;
  padding-bottom: 3px;
}
.home__intro { grid-column: 1; }

.signature {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 4px 0;
}
.signature::before {
  content: "";
  width: 155px;
  border-top: 1px solid var(--signature-line);
}
.signature span {
  width: 156px;
  text-align: right;
  font-size: 20px;
  line-height: 1.5;
}

.dotted-rule { margin-top: 36px; }

.home__news { margin-top: 16px; }
.home__news .title-sc { margin-bottom: 20px; }
.home__news .bar { margin-bottom: 22px; }

/* 3 × 134px items, 15px gap | 1px rule | 15px gap between them (= 464px) */
.news-mini {
  display: grid;
  grid-template-columns: 134px 165px 165px;
}
.news-mini li { min-height: 121px; }
.news-mini li + li {
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}
.news-mini a { display: block; }
.news-mini .date { display: block; line-height: 1.1; }
.news-mini__title {
  display: block;
  color: var(--a-links);
  font-size: 20px;
  line-height: 1.1;
  transition: color 0.15s;
}
.news-mini a:hover .news-mini__title { color: var(--a-dark); }

.home__older {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

/* Sidebar */
.home__aside {
  grid-column: 3;
  margin-top: 6px;
  padding: 2px 0 0 32px;
  border-left: 1px solid var(--line);
}
.home__aside .title-sc { color: var(--a-dark); }

.story-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 216px;
  height: 360px;
  margin-top: 8px;
  padding-top: 20px;
}
.story-art__title { width: 155px; height: 133px; object-fit: cover; }
.story-art__house { width: 205px; height: 200px; object-fit: cover; }

.home__story { margin-top: 19px; }
.story-name {
  color: var(--a-heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  min-height: 30px;
}
.home__story p {
  padding: 4px 0;
  font-size: 16px;
  line-height: 1.2;
}
.home__story .btn { margin-top: 7px; }

.home__aside-rule {
  margin: 23px 0 11px;
  border: 0;
  border-top: 1px solid var(--line);
}
.home__aside .more-link { margin-left: -5px; }

/* ==========================================================================
   Naše zgodbe
   ========================================================================== */
.page-head { margin-bottom: 29px; }

.story-list > li + li {
  margin-top: 29px;
}
.story-list > li:not(:last-child) {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.story {
  display: grid;
  grid-template-columns: 136px 381px 215px;
  column-gap: 31px;
  align-items: start;
  min-height: 256px;
}
.story__art {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 136px;
}
.story__art-title { width: 103px; height: 88px; margin-left: 16.59px; object-fit: cover; }
.story__art-house { width: 136px; height: 133px; object-fit: cover; }

/* Project logo in place of an illustration (white logo background blends into the page) */
/* The PNG has ~20% empty margin, so it is enlarged and cropped to fill the column */
.story__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 136px;
  overflow: hidden;
}
.story__logo img {
  flex: none;
  width: 220px;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
}

.story .story-name { color: var(--a-dark); }
.story p {
  padding: 4px 0;
  font-size: 20px;
  line-height: 1.5;
}

/* ==========================================================================
   Novice (listing)
   ========================================================================== */
.news-list > li {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.news-list > li + li { margin-top: 21px; }
.news-list > li:last-child { border-bottom: 0; }

.news-item {
  display: grid;
  grid-template-columns: 548px 215px;
  column-gap: 31px;
  min-height: 242px;
  align-items: start;
}
.news-item__body { grid-column: 1; }
.news-item .date { display: block; margin-bottom: 9px; }
.news-item__title {
  display: block;
  margin-bottom: 4px;
  color: var(--a-links);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  transition: color 0.15s;
}
.news-item__title:hover { color: var(--a-dark); }
.news-item p {
  padding: 4px 0;
  font-size: 20px;
  line-height: 1.5;
}
.news-item__img {
  grid-column: 2;
  width: 215px;
  height: 215px;
  object-fit: cover;
}

/* Pagination */
.paging {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 44px;
  border-top: 1px solid var(--line);
}
.paging__arrow {
  display: flex;
  margin: 11px 2px 0;
  color: var(--a-links);
}
.paging__arrow:hover { color: var(--a-dark); }
.paging__pages {
  position: absolute;
  left: calc(50% - 4.5px);
  top: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
}
.paging__pages a {
  position: relative;
  display: block;
  width: 23px;
  padding-top: 17px;
  color: var(--a-links);
  font-size: 20px;
  line-height: 1;
  text-align: center;
}
.paging__pages a:hover { color: var(--a-dark); }
.paging__pages a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 38px;
  height: 6px;
  margin-left: -20px;
  background: var(--a-dark);
}

/* ==========================================================================
   Novica (detail)
   ========================================================================== */
.main--detail { padding-top: 59px; }

.back-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: -1px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--a-links);
  font-size: 16px;
  line-height: 1;
}
.back-link:hover { color: var(--a-dark); }

.article {
  display: grid;
  grid-template-columns: 464px 298px;
  column-gap: 32px;
  align-items: start;
  margin-top: 17px;
}
.article__date { padding-bottom: 9px; }
.article__body { margin-top: 20px; }
.article__body p {
  padding: 4px 0;
  font-size: 20px;
  line-height: 1.5;
}
.article__body p + p { margin-top: 20px; }
.article__body h2 {
  margin-top: 26px;
  padding: 4px 0;
  color: var(--a-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.article__img {
  width: 298px;
  height: 407px;
  margin-top: 5px;
  object-fit: cover;
}
.main--detail { padding-bottom: 99px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  display: grid;
  grid-template-columns: 1fr var(--col-logo) var(--col-gap) minmax(0, var(--col-content)) 1fr;
  min-height: 358px;
  padding-top: 38px;
  background: var(--a-heading);
  color: #fff;
}
.site-footer__logo { grid-column: 2; align-self: start; }
.site-footer__body { grid-column: 4; }
.site-footer address {
  font-style: normal;
  font-size: 14px;
  line-height: normal;
}
.site-footer address strong { font-weight: 700; }
.site-footer a { color: var(--a1); }
.site-footer a:hover { text-decoration: underline; }
.site-footer__email { display: inline-block; margin-top: 17px; }
.site-footer__rule {
  margin: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--alba-black);
}
.site-footer__legal {
  margin-top: 18px;
  font-size: 12px;
  line-height: normal;
}
.site-footer__credit {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 15px;
  color: var(--a1);
  font-size: 12px;
}

/* ==========================================================================
   Responsive — below the 1194px design width
   ========================================================================== */
@media (max-width: 1100px) {
  .page,
  .site-footer {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
  }
  .site-logo { grid-column: 2; margin-top: 24px; }
  .site-logo img { width: 72px; height: 72px; }
  .nav { grid-column: 2; grid-row: 2; margin-top: 20px; }
  .main,
  .main--detail { grid-column: 2; grid-row: 3; padding-top: 48px; }

  .title-xl { font-size: 36px; }

  .home { display: block; }
  .home__aside {
    margin-top: 48px;
    padding: 32px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .home__aside .story-art { width: 216px; }
  .home__aside .more-link { margin-left: -5px; }
  .dotted-rule { width: 100%; height: 6px; }

  .story {
    grid-template-columns: 136px minmax(0, 1fr);
    row-gap: 16px;
    column-gap: 24px;
  }
  .story .btn { grid-column: 2; }

  .news-item { grid-template-columns: minmax(0, 1fr); row-gap: 16px; min-height: 0; }
  .news-item__img { grid-column: 1; grid-row: 1; width: 100%; max-width: 215px; height: auto; aspect-ratio: 1; }

  .article { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .article__img { width: 100%; max-width: 298px; height: auto; aspect-ratio: 298 / 407; }

  .site-footer { padding: 32px 0 40px; min-height: 0; }
  .site-footer__logo { grid-column: 2; margin-bottom: 24px; width: 72px; height: 72px; }
  .site-footer__body { grid-column: 2; }
}

@media (max-width: 600px) {
  .page,
  .site-footer { grid-template-columns: 16px minmax(0, 1fr) 16px; }
  .nav__list { column-gap: 8px; row-gap: 22px; }
  .nav__link { font-size: 13px; letter-spacing: 0.5px; }
  .nav__link[aria-current="page"]::after { top: calc(100% + 4px); height: 8px; }
  .lead p,
  .story p,
  .news-item p,
  .article__body p { font-size: 18px; }

  .news-mini { grid-template-columns: 1fr; row-gap: 16px; }
  .news-mini li { min-height: 0; }
  .news-mini li + li {
    margin-left: 0; padding: 16px 0 0;
    border-left: 0; border-top: 1px solid var(--line);
  }

  .story { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .story__art { width: 96px; }
  .story__logo { width: 96px; height: 96px; }
  .story__logo img { width: 155px; }
  .story__art-title { width: 73px; height: auto; margin-left: 11.7px; }
  .story__art-house { width: 96px; height: auto; }
  .story .btn { grid-column: 1 / -1; width: 100%; }

  .paging__pages { gap: 10px; }
}
