:root {
  --bg: #f2f2f0;
  --text: #050505;
  --muted: #777;
  --line: rgba(0,0,0,.12);
  --max: 1560px;
  --pad: clamp(18px, 3vw, 48px);
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Libre Baskerville', serif;
}

/* =========================================================
   01. BASE / GLOBAL RESET
   Osnovna podešavanja koja važe za ceo sajt.
   ========================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img {
  display: block;
  max-width: 100%;
}

.page {
  padding: 0 var(--pad) 64px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

/* =========================================================
   02. HEADER / HAMBURGER MENU
   Osnovni header i overlay meni.
   ========================================================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px var(--pad);
  color: #fff;
  background: transparent;
}

.logo {
  font-size: clamp(24px, 3vw, 48px);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 60;
}

.menu-button {
  color: #fff;
  width: 30px;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.menu-button span {
  display: block;
  width: 100%;
  background: currentColor;
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-button span:nth-child(1),
.menu-button span:nth-child(3) {
  height: 4px;
}

.menu-button span:nth-child(2) {
  height: 2px;
}

.overlay-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(460px, 76vh, 760px);
  z-index: 55;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
  padding-left: 120px;
  gap: 28px;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 400;
  letter-spacing: -0.03em;
  transform: translateX(-100%);
  transition: transform .35s ease;
}

.menu-open .overlay-menu {
  transform: translateY(0);
}

.menu-open .menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-button span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-open .site-header,
.menu-open .menu-button,
.menu-open .logo {
  color: #fff;
}

.menu-open .logo,
.menu-open .menu-button {
  z-index: 70;
}

/* =========================================================
   03. HEADER VARIANTS
   Različita ponašanja headera na statičnim, article i store stranama.
   ========================================================= */

.inner-page .site-header {
  color: var(--text);
}

.inner-page .menu-button {
  color: var(--text);
}

.inner-page .overlay-menu {
  background: var(--bg);
  color: var(--text);
}

.inner-page.menu-open .site-header,
.inner-page.menu-open .menu-button,
.inner-page.menu-open .logo {
  color: var(--text);
}

.article-template .site-header {
  position: absolute;
  color: #fff;
  background: transparent;
}

.article-template .menu-button {
  color: #fff;
}

.article-template .overlay-menu {
  background: #111;
  color: #fff;
}

.article-template.menu-open .site-header,
.article-template.menu-open .menu-button,
.article-template.menu-open .logo {
  color: #fff;
}

.store-template .site-header {
  position: relative;
  color: var(--text);
  background: var(--bg);
}

.store-template .menu-button {
  color: var(--text);
}

.store-template .overlay-menu {
  background: var(--bg);
  color: var(--text);
}

/* =========================================================
   04. HOMEPAGE HERO
   Veliki hero članak na index strani.
   ========================================================= */

.hero-card {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(460px, 76vh, 760px);
  overflow: hidden;
  background: #111;
  margin: 0 0 28px;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card::after,
.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.58),
    rgba(0,0,0,.12) 55%,
    rgba(0,0,0,.05)
  );
  transition: background .25s ease;
}

.hero-content,
.article-card-content {
  position: absolute;
  left: var(--pad);
  bottom: clamp(22px, 4vw, 64px);
  z-index: 2;
  color: #fff;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero-meta {
  font-weight: 800;
  font-size: clamp(16px, 1.5vw, 24px);
}

/* =========================================================
   05. INDEX FILTERS / SEARCH / CATEGORIES
   Filteri, pretraga i category select na index strani.
   ========================================================= */

.archive-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
  margin-bottom: 26px;
  background: var(--bg);
}

.filters {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 800;
}

.filters a.active {
  text-decoration: underline;
}

.archive-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

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

.article-search,
.category-select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.article-search {
  width: min(26vw, 280px);
  padding: 0 14px;
}

.category-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 220px;
  padding: 0 38px 0 14px;
  background-color: transparent;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%),
    linear-gradient(#d0d0d0, #d0d0d0);
  background-position:
    calc(100% - 24px) 18px,
    calc(100% - 16px) 18px,
    calc(100% - 46px) 50%;
  background-size:
    8px 8px,
    8px 8px,
    1px 26px;
  background-repeat: no-repeat;
}

.article-search:focus,
.category-select:focus {
  border-color: var(--text);
}

.article-card[hidden] {
  display: none;
}

.section-label {
  font-weight: 900;
  margin: 10px 0 14px;
}

/* =========================================================
   06. INDEX ARTICLE GRID / CARDS
   Kartice članaka na naslovnoj.
   ========================================================= */

.article-grid,
.store-grid,
.logo-grid,
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.article-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.78),
    rgba(0,0,0,.35)
  );
}

.article-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 92%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-type {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
  opacity: 0.85;
}

/* =========================================================
   07. STATIC CONTENT PAGES
   O nama, Pošalji rad, Kontakt i slične statične stranice.
   ========================================================= */

.content-page {
  max-width: 1180px;
  margin: 120px auto 0;
  padding: 0 var(--pad);
}

.content-page h1 {
  font-size: clamp(32px, 4vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 28px;
}

.content-page h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 72px;
  margin-bottom: 18px;
}

.content-page p,
.content-page li {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.5;
}

.content-page .small-text,
.content-page .small-text li {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
}

.submission-note {
  margin-top: 90px;
  max-width: 1200px;
  font-family: var(--font-sans) !important;
  font-size: clamp(28px, 3vw, 56px) !important;
  line-height: 1.15 !important;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.team-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 90px;
}

.team-member strong,
.contact-box strong {
  display: block;
  font-size: 32px;
  text-decoration: underline;
  margin-bottom: 8px;
}

.team-member span {
  color: var(--muted);
  font-size: 24px;
}

.logo-grid > div,
.photo-grid > div {
  aspect-ratio: 1/1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   08. ARTICLE COMMON TEMPLATE
   Zajednički stilovi za Essay, Interview, Photo Story i Product stranice.
   ========================================================= */

.article-template .article-hero {
  position: relative;
  width: 100%;
  height: clamp(460px, 76vh, 760px);
  overflow: hidden;
  background: #111;
}

.article-template .article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-template .article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.58),
    rgba(0,0,0,.12) 55%,
    rgba(0,0,0,.05)
  );
}

.article-hero-content {
  position: absolute;
  left: var(--pad);
  bottom: clamp(34px, 5vw, 80px);
  z-index: 2;
  color: #fff;
  max-width: 1100px;
}

.article-hero-content h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.article-hero-content p {
  margin: 18px 0 0;
  max-width: 760px;
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 700;
}

.article-meta-row {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 var(--pad) 34px;
  border-bottom: 1px solid #d9d9d9;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 900;
  line-height: 1.35;
}

.article-meta-highlight {
  background: #ecff9a;
  padding: 0 .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.article-meta-author {
  font-size: .88em;
  font-weight: 500;
  margin-left: 10px;
}

.article-body {
  max-width: 1100px;
  margin: 64px auto;
  padding: 0 var(--pad);
}

.article-body p {
  max-width: 900px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.article-body figure {
  margin: 48px 0;
}

.article-body figcaption {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
}

/* Stari helper. Trenutno ga ne koristi aktivan template, ali ostavljam za bezbednost. */
.article-hero-meta {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 24px var(--pad);
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.related {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 64px;
}

/* =========================================================
   09. AUTHOR BOX
   Biografija autora/fotografa/umetnika.
   ========================================================= */

.author-box {
  max-width: 1100px;
  margin: 60px auto;
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.author-box img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
}

.author-box p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.35;
}

.author-box a {
  color: #8d8d8d;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.author-box a:hover {
  color: #555;
}

.author-box p:last-child {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 18px;
}

/* Interview-specific author box na vrhu stranice. */
.interview-author-top {
  max-width: 1320px;
  margin-bottom: 72px;
}

.interview-author-top h2 {
  margin-top: 0;
}

.interview-author-top p:last-child {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 18px;
}

/* =========================================================
   10. ARTICLE IMAGES / GALLERY LAYOUTS
   Grid 2, Grid 3 i Stacked layout za slike.
   ========================================================= */

.skip-to-images {
  display: block;
  max-width: 1100px;
  margin: 22px auto 48px;
  padding: 0 var(--pad);
  color: #777;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.article-images {
  max-width: 1320px;
  margin: 0 auto 80px;
  padding: 0 var(--pad);
}

.article-images-stacked {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.article-images-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.article-images-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.article-image {
  margin: 0;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-images-grid-2 .article-image,
.article-images-grid-3 .article-image {
  display: flex;
  flex-direction: column;
}

.article-images-grid-2 .article-image img,
.article-images-grid-3 .article-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.article-image figcaption {
  margin-top: 10px;
  min-height: 18px;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
}

/* =========================================================
   11. STORE PAGE / PRODUCT CARDS
   Prodavnica i product kartice.
   ========================================================= */

.store-page {
  padding: 40px var(--pad) 80px;
}

.store-header {
  max-width: var(--max);
  margin: 0 auto 42px;
}

.store-header h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  margin: 0;
}

.store-grid {
  gap: 44px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #fff;
}

.product-card h2,
.product-card-title {
  font-size: 28px;
  margin: 14px 0 6px;
  letter-spacing: -0.03em;
}

.product-card p,
.product-card-subtitle {
  margin: 0;
  font-size: 17px;
}

.product-card-price,
.product-price {
  margin-top: 10px;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 900;
}

/* =========================================================
   12. PRODUCT DETAIL PAGE
   Product detail stranica generisana iz product-template.html.
   ========================================================= */

.product-info,
.product-technical-description {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 var(--pad);
}

.product-buy a {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 22px;

  background: #050505;
  color: #fff;

  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;

  border: 1px solid #050505;
}

.product-buy a:hover {
  background: transparent;
  color: #050505;
  text-decoration: none;
}

/* =========================================================
   13. INTERVIEW TEMPLATE
   Pitanja, odgovori i slike unutar intervjua.
   ========================================================= */

.interview-body {
  max-width: 1100px;
  margin: 64px auto;
  padding: 0 var(--pad);
}

.interview-body p {
  max-width: 900px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.interview-question {
  font-weight: 900;
  margin-top: 44px;
  margin-bottom: 10px;
}

.interview-answer {
  margin-top: 0;
  line-height: 1.42;
}

.interview-images {
  margin-top: 56px;
  margin-bottom: 56px;
}

/* =========================================================
   14. PHOTO STORY TEMPLATE
   Specifični detalji za foto-priče.
   ========================================================= */

.photo-story-intro {
  margin-bottom: 24px;
}

.photo-story-intro p {
  max-width: 980px;
}

/* =========================================================
   15. FOOTER
   Globalni footer.
   ========================================================= */

.site-footer {
  background: #111;
  color: #8a8a8a;
  padding: 72px var(--pad);
  border-top: 0;
  text-align: left;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-logo {
  color: #fff;
  font-size: clamp(58px, 7vw, 110px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: .85;
  margin-bottom: 28px;
}

.footer-copy {
  font-size: 16px;
  margin-bottom: 28px;
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a,
.footer-nav a {
  color: #8a8a8a;
  text-decoration: none;
  font-weight: 800;
}

.footer-social a:hover,
.footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 190px;
  font-size: 16px;
}

/* =========================================================
   16. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {
  .archive-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .archive-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .article-search,
  .category-select {
    width: 100%;
    min-width: 0;
  }

  .article-grid,
  .store-grid,
  .logo-grid,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .article-images-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
  }

  .site-footer {
    padding: 56px var(--pad);
  }
}

/* =========================================================
   17. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {
  :root {
    --pad: 18px;
  }

  .site-header {
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .logo {
    font-size: clamp(22px, 8vw, 32px);
  }

  .menu-button {
    width: 28px;
    height: 20px;
  }

  .overlay-menu {
    height: 100vh;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 120px;
    padding-left: var(--pad);
    font-size: clamp(28px, 9vw, 38px);
    gap: 22px;
  }

  .hero-card {
    height: 52vh;
    min-height: 320px;
  }

  .hero-content,
  .article-card-content {
    left: var(--pad);
    bottom: 28px;
  }

  .hero-title {
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1.05;
  }

  .hero-meta {
    font-size: 16px;
  }

  .archive-toolbar {
    padding: 14px 0;
    margin-bottom: 22px;
  }

  .filters {
    gap: 14px;
    font-size: 14px;
  }

  .article-search,
  .category-select {
    height: 40px;
    font-size: 14px;
  }

  .section-label {
    margin: 8px 0 12px;
  }

  .article-grid,
  .store-grid,
  .logo-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .article-card-title {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.12;
  }

  .article-card-type {
    margin-top: 8px;
    font-size: 15px;
  }

  .page {
    padding-bottom: 48px;
  }

  .content-page {
    margin-top: 100px;
    padding: 0;
  }

  .content-page h1 {
    font-size: clamp(34px, 11vw, 46px);
    margin-bottom: 22px;
  }

  .content-page h2 {
    font-size: clamp(26px, 8vw, 34px);
    margin-top: 54px;
    margin-bottom: 16px;
  }

  .content-page p,
  .content-page li {
    font-size: 18px;
    line-height: 1.45;
  }

  .content-page .small-text,
  .content-page .small-text li {
    font-size: 15px;
    line-height: 1.5;
  }

  .submission-note {
    margin-top: 60px;
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1.12 !important;
  }

  .team-grid,
  .contact-grid {
    gap: 32px;
  }

  .team-member strong,
  .contact-box strong {
    font-size: 24px;
  }

  .team-member span {
    font-size: 18px;
  }

  .store-grid {
    gap: 34px;
  }

  .product-card h2,
  .product-card-title {
    font-size: 24px;
  }

  .product-card p,
  .product-card-subtitle {
    font-size: 15px;
  }

  .article-hero-meta {
    margin-bottom: 28px;
    padding: 18px var(--pad);
    font-size: 14px;
  }

  .article-template .article-hero {
    height: 52vh;
    min-height: 320px;
  }

  .article-hero-content {
    bottom: 28px;
  }

  .article-meta-row {
    margin-top: 28px;
    padding-bottom: 18px;
  }

  .article-body {
    margin: 24px auto;
    padding: 28px var(--pad);
  }

  .article-body p {
    font-size: 22px;
    line-height: 1.5;
  }

  .article-body figure {
    margin: 34px 0;
  }

  .article-body figcaption {
    font-size: 13px;
  }

  .author-box {
    margin: 44px auto;
    padding: 32px var(--pad);
  }

  .author-box p {
    font-size: 18px;
    line-height: 1.45;
  }

  .skip-to-images {
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .article-images {
    margin-bottom: 56px;
  }

  .article-images-grid-2,
  .article-images-grid-3 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-images-grid-2 .article-image img,
  .article-images-grid-3 .article-image img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }

  .article-images-stacked {
    gap: 34px;
  }

  .interview-body {
    margin: 36px auto;
  }

  .interview-body p {
    font-size: 22px;
    line-height: 1.5;
  }

  .interview-question {
    margin-top: 34px;
  }

  .related {
    padding-bottom: 48px;
  }
}
