/* Proveri pa veruj — demo sajt u obliku novina. Boje i pismo po BRAND.md. */
@font-face {
  font-family: "Lora";
  src: url("fonts/Lora-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/Lora-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #E8E5DD;
  --ink: #1B1B1B;
  --ink-soft: #55524B;
  --yellow: #F1E34A;
  --red: #C8372D;
  --head: "Lora", Georgia, "Times New Roman", serif;
  --body: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wrap: 74rem;
  --gutter: 1.1rem;
  --hair: 1px solid var(--ink);
  --thick: 3px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--ink-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { background: var(--yellow); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.012em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2rem); }
h3 { font-size: 1.2rem; line-height: 1.2; }
p { margin: 0 0 0.9rem; max-width: 62ch; }
ul, ol { padding-left: 1.2rem; max-width: 62ch; }
li { margin-bottom: 0.35rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); padding: 0.5rem 0.75rem; z-index: 10; }
.hl { background: var(--yellow); padding: 0 0.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Rubrika iznad naslova: ime sekcije, kao u novinama */
.kicker, .tag {
  display: inline-block; font-family: var(--sans); font-weight: 800; font-size: 0.74rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.4rem; background: none; padding: 0;
}
.deck { font-family: var(--head); font-style: italic; font-weight: 400; font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.note { font-family: var(--sans); font-size: 0.86rem; line-height: 1.45; color: var(--ink-soft); }

/* ---------- Zaglavlje novina ---------- */
.mast { padding-top: 0.5rem; }
.mast-strip {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.04em; padding: 0.3rem 0 0.45rem; border-bottom: var(--hair);
}
.mast-strip .motto { font-family: var(--head); font-style: italic; font-size: 0.95rem; letter-spacing: 0; display: none; }
.mast-strip a { font-weight: 700; }
.mast-name {
  display: flex; align-items: center; justify-content: center; gap: 0.3em; text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: clamp(1.6rem, 8.8vw, 5rem); line-height: 1; white-space: nowrap; letter-spacing: -0.02em;
  padding: 1rem 0 1.1rem; text-align: center;
}
.mast-name:hover { background: none; }
.mast-name img { width: 0.95em; height: 0.95em; border-radius: 50%; flex: none; }
.mast.inner .mast-name { font-size: clamp(1.7rem, 7vw, 2.8rem); padding: 0.7rem 0 0.8rem; }
.nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.2rem;
  border-top: var(--thick); border-bottom: var(--hair); padding: 0.15rem 0; position: relative;
}
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: var(--hair); }
.nav a {
  text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.6rem 0.7rem 0.5rem; white-space: nowrap;
}
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
@media (min-width: 46rem) {
  .mast-strip .motto { display: inline; }
  .nav a { padding: 0.6rem 1.1rem 0.5rem; font-size: 0.8rem; }
}

/* ---------- Dugmad ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 0.65rem 0.95rem; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); cursor: pointer;
}
.btn:hover { background: var(--yellow); color: var(--ink); }
.btn.plain { background: transparent; color: var(--ink); }
.btn.plain:hover { background: var(--yellow); }
.btn.small::before { content: ""; display: inline-block; margin-right: 0.5rem; border-style: solid; border-width: 0.32rem 0 0.32rem 0.55rem; border-color: transparent transparent transparent currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }
.acts { margin-top: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.1rem; }
.go { font-family: var(--sans); font-weight: 700; font-size: 0.9rem; }

/* ---------- Naslovna strana ---------- */
.front { padding: 1.4rem 0 0; }
.front-grid { display: grid; gap: 1.6rem; }
.lead h1 { font-size: clamp(2.1rem, 8vw, 3.5rem); margin-bottom: 0.7rem; }
.lead .deck { margin-bottom: 1rem; max-width: 40rem; }
.lead .player { margin: 0 0 0.5rem; }
.caption { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 0.9rem; max-width: none; }
.lead-text p { max-width: none; }
.rail > * + * { border-top: var(--hair); padding-top: 1.2rem; margin-top: 1.2rem; }
.story h2 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.story h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.story p { font-size: 1rem; margin-bottom: 0.6rem; }
.story .player { margin-bottom: 0.8rem; }
.bignum { display: flex; gap: 0.9rem; align-items: baseline; }
.bignum b { font-family: var(--head); font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; }
.bignum span { font-size: 1rem; line-height: 1.35; }
.briefs { list-style: none; padding: 0; margin: 0; max-width: none; }
.briefs li { padding: 0.65rem 0; border-top: 1px dotted var(--ink); margin: 0; }
.briefs li:first-child { border-top: 0; padding-top: 0.2rem; }
.briefs a { font-family: var(--head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; text-decoration: none; display: block; }
.briefs span { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); }

@media (min-width: 56rem) {
  .front-grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 0; }
  .lead { padding-right: 2rem; }
  .rail { padding-left: 2rem; border-left: var(--hair); }
  .lead-text { column-count: 2; column-gap: 2rem; column-rule: 1px solid #B9B5AA; }
  .lead-text p { break-inside: avoid; }
}

/* Naslov odeljka: debela pa tanka linija */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: var(--thick); padding-top: 0.55rem; margin-bottom: 1.2rem;
}
.sec-head h2 { font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; }
.sec-head a { font-family: var(--sans); font-size: 0.82rem; font-weight: 700; }

.band { padding: 2.2rem 0 0; }
.cols { display: grid; gap: 1.6rem; }
.cols > * + * { border-top: var(--hair); padding-top: 1.4rem; }
@media (min-width: 50rem) {
  .cols { gap: 0; }
  .cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols > * { padding: 0 1.8rem; border-top: 0; }
  .cols > * + * { border-top: 0; padding-top: 0; border-left: var(--hair); }
  .cols > *:first-child { padding-left: 0; }
  .cols > *:last-child { padding-right: 0; }
}
.plainlist { list-style: none; padding: 0; margin: 0; max-width: none; }
.plainlist li { padding: 0.6rem 0; border-top: 1px dotted var(--ink); margin: 0; }
.plainlist li:first-child { border-top: 0; padding-top: 0; }
.plainlist b { font-family: var(--head); }
.sections { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; list-style: none; padding: 0; margin: 0; max-width: none; font-family: var(--head); font-weight: 700; font-size: 1.3rem; }
.sections li { margin: 0; }
.sections a { text-decoration: none; }

/* ---------- Tri / četiri koraka ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; max-width: none; counter-reset: korak; }
.steps li { counter-increment: korak; margin: 0; display: grid; grid-template-columns: 3rem 1fr; column-gap: 0.4rem; border-top: var(--hair); padding-top: 1rem; }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(korak); font-family: var(--head); font-weight: 700; font-size: 3.2rem; line-height: 0.9; grid-row: span 2; color: var(--ink); }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; font-size: 1rem; }
@media (min-width: 50rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { border-top: 0; padding: 0 1.4rem; border-left: var(--hair); }
  .steps li:first-child { padding-left: 0; border-left: 0; }
  .steps li:last-child { padding-right: 0; }
}

/* ---------- Unutrašnje strane ---------- */
section.block { padding: 2rem 0 0; }
section.block > .wrap > :first-child { border-top: var(--hair); padding-top: 1.6rem; }
.page-head + section.block > .wrap > :first-child { border-top: 0; padding-top: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.block-head a { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; }
.page-head { padding: 2rem 0 0; }
.page-head .wrap > * { max-width: 46rem; }
.page-head h1 { margin-bottom: 0.7rem; }
.page-head p { font-family: var(--head); font-style: italic; font-size: 1.2rem; line-height: 1.4; margin-bottom: 0; }
.page-head .wrap::after { content: ""; display: block; border-bottom: var(--thick); margin-top: 1.5rem; }

/* Video */
.video { display: block; }
.video-body { padding-top: 0.8rem; }
.video-body h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin-bottom: 0.6rem; }
.video-body h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.video-body p { margin-bottom: 0.4rem; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: var(--hair); }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player a.cover { position: absolute; inset: 0; display: block; }
.feature { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 58rem) {
  .feature { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0; align-items: start; }
  .feature > .video { padding-right: 2rem; }
  .feature > div { padding-left: 2rem; border-left: var(--hair); }
}
.feature h3, .prose h3 { margin: 1.3rem 0 0.5rem; }
.facts { list-style: none; padding: 0; margin: 0 0 0.9rem; max-width: none; border-top: var(--thick); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.5rem 0; margin: 0; border-bottom: 1px dotted var(--ink); font-family: var(--sans); font-size: 0.92rem; }
.facts b { font-family: var(--head); font-size: 1.25rem; white-space: nowrap; }
details { border-top: var(--hair); margin: 0; }
details:last-of-type { border-bottom: var(--hair); margin-bottom: 0.9rem; }
summary { cursor: pointer; font-family: var(--sans); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.04em; padding: 0.65rem 0; }
summary:hover { background: var(--yellow); }
details ul { padding-left: 1.1rem; font-size: 0.97rem; }
details li { overflow-wrap: anywhere; }

.shorts { display: grid; gap: 0; }
.short { display: block; text-decoration: none; border-top: var(--hair); padding: 0.9rem 0 1rem; }
.short h3 { font-size: 1.2rem; margin: 0 0 0.3rem !important; }
.short p { margin: 0 0 0.4rem; font-size: 0.98rem; }
.short .go { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 46rem) {
  .shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--hair); padding-top: 0.9rem; }
  .short { padding: 0 1.6rem 0.4rem; border-top: 0; border-left: var(--hair); }
  .short:first-child { padding-left: 0; border-left: 0; }
}

/* Kako radimo */
.rules { display: grid; gap: 0; }
.rule { border-top: var(--hair); padding: 1.1rem 0 0.9rem; }
.rule:first-child { border-top: 0; padding-top: 0; }
.rule h3 { font-size: 1.45rem; margin-bottom: 0.45rem; }
.rule p:last-child { margin-bottom: 0; }
@media (min-width: 50rem) {
  .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rule { padding: 1.2rem 1.6rem 1.3rem; border-left: var(--hair); }
  .rule:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .rule:nth-child(-n+3) { border-top: 0; padding-top: 0; }
}
.prose h2 { margin: 2rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
@media (min-width: 58rem) {
  .prose.two { column-count: 2; column-gap: 3.6rem; column-rule: 1px solid var(--ink); }
  .prose.two h2, .prose.two h2 + p { column-span: all; }
  .prose.two h3 { break-after: avoid; }
  .prose.two p { break-inside: avoid; }
}

/* Polje koje vlasnik mora da popuni pre objave */
.todo { border: 2px dashed var(--red); background: #fff; padding: 0.9rem 1rem; margin: 1rem 0 1.4rem; max-width: 62ch; font-family: var(--sans); font-size: 0.95rem; }
.todo strong { color: var(--red); display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; margin-bottom: 0.25rem; }
.todo code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92rem; background: var(--yellow); padding: 0.1rem 0.35rem; }

/* Radionica */
.meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0; list-style: none; padding: 0; margin: 1rem 0 0; max-width: none; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.meta li { margin: 0; }
.meta li + li::before { content: "/"; margin: 0 0.8rem; color: var(--red); }
.flow { list-style: none; padding: 0; margin: 0; max-width: 50rem; }
.flow li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px dotted var(--ink); margin: 0; }
.flow .min { font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.flow .min span { background: var(--yellow); padding: 0 0.2em; white-space: nowrap; }
.flow h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.flow p { margin: 0; }
.scroll { overflow-x: auto; border: var(--hair); background: #fff; max-width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 46rem; font-family: var(--sans); font-size: 0.86rem; }
th, td { border: 1px solid var(--ink); padding: 0.5rem 0.55rem; text-align: left; vertical-align: top; }
th { background: var(--yellow); font-weight: 800; line-height: 1.3; }
td { height: 3.2rem; }

/* Teme */
.topics { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .topics { grid-template-columns: 1fr 1fr; gap: 2.2rem 3.6rem; } }
.topic-group h2 { font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--red); border-top: var(--thick); padding-top: 0.5rem; }
.topic-group .note { margin: 0.3rem 0 0; }
.topic-group ul { list-style: none; padding: 0; margin: 0.5rem 0 0; max-width: none; }
.topic-group li { padding: 0.8rem 0; border-bottom: 1px dotted var(--ink); margin: 0; }
.topic-group .q { font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; display: block; }
.topic-group .trick { display: block; margin-top: 0.25rem; font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); }
.done { display: inline-block; font-family: var(--sans); font-size: 0.76rem; font-weight: 800; background: var(--yellow); padding: 0.1rem 0.45rem; margin-top: 0.4rem; text-decoration: none; }

/* ---------- Podnožje ---------- */
.foot { margin-top: 3rem; padding-bottom: 2rem; }
.foot-in { border-top: var(--thick); padding-top: 1.2rem; position: relative; }
.foot-in::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: var(--hair); }
.foot .sign { font-family: var(--head); font-weight: 700; font-size: clamp(1.4rem, 5vw, 2rem); margin: 0 0 1rem; text-align: center; max-width: none; }
.foot ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.4rem; max-width: none; font-family: var(--sans); font-size: 0.82rem; font-weight: 700; }
.foot li { margin: 0; }
.foot small { display: block; font-family: var(--sans); color: var(--ink-soft); font-size: 0.8rem; line-height: 1.5; text-align: center; }

@media print {
  .mast, .foot, .btn, .btn-row, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .scroll { overflow: visible; border: 0; }
  table { min-width: 0; }
  td { height: 2.2cm; }
}

.standfirst { font-family: var(--head); font-style: italic; font-size: 1.08rem; line-height: 1.45; text-align: center; max-width: 46rem; margin: 0 auto; padding-top: 1rem; padding-bottom: 1rem; }
.standfirst + .front > .wrap { border-top: var(--hair); padding-top: 1.4rem; }
.standfirst + .front { padding-top: 0; }

/* Saveti */
.tips { list-style: none; padding: 0; margin: 0; max-width: none; counter-reset: savet; display: grid; }
.tips li { counter-increment: savet; display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 0.4rem; margin: 0; padding: 1rem 0; border-top: 1px dotted var(--ink); }
.tips li:first-child { border-top: 0; padding-top: 0; }
.tips li::before { content: counter(savet); font-family: var(--head); font-weight: 700; font-size: 2.8rem; line-height: 0.95; grid-row: span 2; color: var(--red); }
.tips h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.tips p { margin: 0; }
@media (min-width: 52rem) {
  .tips { grid-template-columns: 1fr 1fr; column-gap: 3.6rem; }
  .tips li:nth-child(2) { border-top: 0; padding-top: 0; }
}

/* Kolaži */
.art { width: 100%; border: var(--hair); margin-bottom: 1.6rem; }
.page-head + section.block > .wrap > .art { border: var(--hair); }

.figure { margin: 0; }
.figure img { width: 100%; border: var(--hair); }
.figure .caption { margin: 0.5rem 0 0; }
.caption a { color: inherit; }
.art-row { display: grid; gap: 1.4rem; }
.story h3.big { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 0.7rem; }
@media (min-width: 56rem) {
  .art-row { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 0; }
  .art-row .figure { padding-right: 2rem; }
  .art-row .story { padding-left: 2rem; border-left: var(--hair); }
}

.figure.art-top { margin: 0 0 1.8rem; }
section.block > .wrap > .figure.art-top + * { border-top: 0; padding-top: 0; }

/* Potpisi ispod kolaža: sitno i tiho, ali čitljivo (licenca traži da potpis postoji) */
.caption, .figure .caption { font-size: 0.64rem; line-height: 1.4; color: #8C8980; letter-spacing: 0.01em; }
.caption a { text-decoration-color: #B9B5AA; }
