/* =========================================================
   10Aarch — glavni stilovi
   Varijable su u blocks.css (učitava se prije).
   ========================================================= */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.split { display: grid; grid-template-columns: 1fr 2.1fr; gap: var(--split-gap); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } }

.label { font-size: 15px; font-weight: 600; color: var(--muted); }
.label a:hover { color: var(--ink); }
.text-link { font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.text-link:hover { border-bottom-width: 2px; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

.img-placeholder { display: block; width: 100%; height: 100%; background: var(--paper-dim); }

/* Zajednički okvir za fotografije */
.frame { display: block; overflow: hidden; background: var(--paper-dim); position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
a:hover .frame img { transform: scale(1.035); }

/* =========================================================
   ZAGLAVLJE
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 60;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 22px var(--gutter);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.logo { display: flex; align-items: center; line-height: 0; color: var(--ink); }
.logo-svg, .logo-img { width: 40px; height: 40px; object-fit: contain; }

.site-nav .menu { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 14px; font-weight: 500; }
.site-nav a, .menu-toggle { position: relative; padding-bottom: 2px; }
.site-nav a::after, .menu-toggle::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
	background: currentColor; transition: width .25s ease;
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after,
.site-nav .current-menu-ancestor > a::after,
.menu-toggle:hover::after { width: 100%; }
.menu-toggle { display: none; font-size: 14px; font-weight: 500; }

/* Prozirno zaglavlje preko fotografije (naslovnica, projekt): bijelo preko slike,
   puno (papir) kad se fotografija odskrola. Bez JS-a: boja se okreće prema pozadini. */
.has-overlay-header .site-header {
	position: fixed; left: 0; right: 0;
	background: transparent; border-bottom-color: transparent;
	color: #fff;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, padding .3s ease;
}
.has-overlay-header .site-header .logo { color: inherit; }
html:not(.js) .has-overlay-header .site-header { mix-blend-mode: difference; }
.has-overlay-header.header-solid .site-header {
	background: var(--paper); color: var(--ink); border-bottom-color: var(--line);
}
.has-overlay-header.admin-bar .site-header { top: 32px; }

/* Mobilni izbornik */
.menu-panel {
	position: fixed; inset: 0; z-index: 55;
	background: var(--paper);
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 110px var(--gutter) 40px;
	overflow-y: auto;
}
.menu-panel[hidden] { display: none; }
.admin-bar .menu-panel { padding-top: 156px; }
.menu-panel__list li + li { margin-top: 6px; }
.menu-panel__list a {
	font-family: var(--display); font-weight: 900;
	font-size: clamp(40px, 11vw, 72px); line-height: 1.05; letter-spacing: -0.01em;
}
.menu-panel__list .current-menu-item a { color: var(--stone); }
.menu-panel__contact { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { mix-blend-mode: normal; color: var(--ink); background: var(--paper); }

@media (max-width: 860px) {
	.site-nav { display: none; }
	.menu-toggle { display: block; }
	.site-header { padding-block: 18px; }
}
@media (min-width: 861px) { .menu-panel { display: none !important; } }

/* =========================================================
   NASLOVNICA — UREDNIČKO
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroIn 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroIn { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(20,23,26,.38) 0%, rgba(20,23,26,0) 26%, rgba(20,23,26,0) 45%, rgba(20,23,26,.58) 100%);
}
.hero__copy {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 0 var(--gutter) clamp(36px, 5vw, 64px);
	color: var(--paper);
	max-width: calc(100% - 260px);
}
.hero__title {
	font-family: var(--display); font-weight: 900;
	font-size: clamp(36px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.01em;
	max-width: 15ch; text-wrap: balance;
}
.hero__text { margin-top: 22px; max-width: 46ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; color: rgba(246,244,239,.88); }
.hero__caption {
	position: absolute; right: var(--gutter); bottom: clamp(36px, 5vw, 64px); z-index: 2;
	color: rgba(246,244,239,.85); font-size: 13px; text-align: right; max-width: 220px;
}
.hero__caption a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
	.hero__copy { max-width: none; padding-bottom: 72px; }
	.hero__caption { left: var(--gutter); right: auto; bottom: 28px; text-align: left; max-width: none; }
}

.statement { padding: clamp(90px, 12vw, 150px) 0; border-bottom: 1px solid var(--line); }
.statement__text {
	font-family: var(--display); font-weight: 600;
	font-size: clamp(24px, 3vw, 40px); line-height: 1.28; letter-spacing: -0.005em;
	max-width: 22ch; text-wrap: balance;
}

.portfolio { padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 110px); }
.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.01em; }

.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.tile { display: flex; flex-direction: column; gap: 14px; }
.tile .meta { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.tile .name { font-weight: 600; }
.tile .place { color: var(--muted); text-align: right; }
.t-a { grid-column: span 7; } .t-a .frame { aspect-ratio: 4 / 3; }
.t-b { grid-column: span 5; } .t-b .frame { aspect-ratio: 3 / 4; }
.t-c { grid-column: span 4; } .t-c .frame { aspect-ratio: 3 / 4; }
.t-d { grid-column: span 8; } .t-d .frame { aspect-ratio: 16 / 9; }
.t-e { grid-column: span 5; } .t-e .frame { aspect-ratio: 4 / 3; }
.t-f { grid-column: span 7; } .t-f .frame { aspect-ratio: 16 / 9; }
.mosaic > .tile { align-self: start; }
@media (max-width: 860px) {
	.mosaic > .tile { grid-column: span 12; }
	.mosaic > .tile .frame { aspect-ratio: 4 / 3; }
}

/* =========================================================
   NASLOVNICA — TIŠINA (mir.no)
   ========================================================= */
.silence-intro {
	min-height: 78vh; min-height: 78svh;
	display: grid; place-items: center;
	padding: 60px var(--gutter);
	text-align: center;
}
.silence-intro__text {
	font-family: var(--display); font-weight: 700;
	font-size: clamp(28px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -0.015em;
	max-width: 26ch; text-wrap: balance;
}
.silence-intro__text span { display: block; color: var(--muted); font-weight: 600; margin-top: .25em; }

.silence { padding: 0 clamp(12px, 1.8vw, 28px) clamp(60px, 8vw, 110px); }
.silence-lead { display: block; position: relative; color: #fff; }
.silence-lead .frame { aspect-ratio: 16 / 9; max-height: 92vh; width: 100%; }
.silence-lead::after {
	content: ""; position: absolute; inset: 55% 0 0 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(20,23,26,0), rgba(20,23,26,.45));
}
.silence-caption {
	position: absolute; left: 0; right: 0; bottom: clamp(18px, 3vw, 36px); z-index: 2;
	display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
}
.silence-caption__place { font-size: 13px; opacity: .85; }
.silence-caption__name { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.005em; }

.silence-grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: clamp(12px, 1.8vw, 28px); margin-top: clamp(12px, 1.8vw, 28px);
}
.silence-item .frame { aspect-ratio: 4 / 5; }
.silence-item__meta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 14px 8px 8px; }
.silence-item__meta .silence-caption__place { color: var(--muted); opacity: 1; }
.silence-item__meta .silence-caption__name { font-size: 17px; }
.silence-more { text-align: center; margin-top: clamp(40px, 6vw, 80px); }
@media (max-width: 1100px) { .silence-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
	.silence-grid { grid-template-columns: 1fr; }
	.silence-lead .frame { aspect-ratio: 4 / 5; }
}

/* =========================================================
   ZAGLAVLJE UNUTARNJE STRANICE
   ========================================================= */
.page-header { padding: clamp(64px, 10vw, 120px) 0 clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-header .label { margin-bottom: 18px; }
.page-title {
	font-family: var(--display); font-weight: 900;
	font-size: clamp(34px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -0.01em;
	max-width: 18ch; text-wrap: balance;
}
.page-header .sub { margin-top: 24px; max-width: 54ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: var(--muted); }

/* =========================================================
   INDEKS PROJEKATA (big.dk)
   ========================================================= */
.page-header--index { border-bottom: 0; padding-bottom: clamp(28px, 4vw, 48px); }
.page-title .count { font-size: .32em; font-weight: 700; vertical-align: super; color: var(--stone); margin-left: .1em; letter-spacing: 0; }

.index-bar {
	position: sticky; top: 85px; z-index: 20;
	background: var(--paper);
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.admin-bar .index-bar { top: 117px; }
.index-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; font-weight: 500; }
.filter { color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.filter span { font-size: 11px; vertical-align: super; color: var(--stone); }
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.view-toggle { display: none; gap: 4px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.js .view-toggle { display: flex; }
.view-toggle button { padding: 6px 12px; border: 1px solid var(--line); color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
	.index-bar { top: 77px; }
	.admin-bar .index-bar { top: 77px; }
	.index-bar__inner { flex-direction: column; align-items: stretch; gap: 12px; }
	.filters { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; padding-bottom: 4px; scrollbar-width: none; }
	.filters::-webkit-scrollbar { display: none; }
	.view-toggle { align-self: flex-start; }
}

.index { padding: clamp(36px, 5vw, 64px) 0 clamp(70px, 9vw, 120px); }
.index-empty { color: var(--muted); padding: 40px 0; }
.index-item[hidden] { display: none; }

/* Mreža */
.index[data-view="grid"] .index-head { display: none; }
.index[data-view="grid"] .index-list {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px);
}
.index[data-view="grid"] .index-item a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.index[data-view="grid"] .index-item__thumb { grid-column: 1 / -1; aspect-ratio: 4 / 3; margin-bottom: 10px; }
.index[data-view="grid"] .index-item__name { font-weight: 600; font-size: 15px; }
.index[data-view="grid"] .index-item__year { font-size: 14px; color: var(--muted); text-align: right; }
.index[data-view="grid"] .index-item__place { grid-column: 1; font-size: 14px; color: var(--muted); }
.index[data-view="grid"] .index-item__type { display: none; }
.index[data-view="grid"] .index-item__status { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.index[data-view="grid"] .index-item__status:empty { display: none; }
@media (max-width: 1100px) { .index[data-view="grid"] .index-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .index[data-view="grid"] .index-list { grid-template-columns: 1fr; } }

/* Popis */
.index[data-view="list"] .index-head,
.index[data-view="list"] .index-item a {
	display: grid;
	grid-template-columns: 96px 2.2fr 1.4fr 1fr 1fr 90px;
	gap: 20px; align-items: center;
}
.index-head {
	font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
	padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.index[data-view="list"] .index-item a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; transition: background .2s ease; }
.index[data-view="list"] .index-item a:hover { background: var(--paper-dim); }
.index[data-view="list"] .index-item__thumb { aspect-ratio: 4 / 3; }
.index[data-view="list"] .index-item__name { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -0.005em; }
.index[data-view="list"] .index-item__place,
.index[data-view="list"] .index-item__type,
.index[data-view="list"] .index-item__status { color: var(--muted); }
.index[data-view="list"] .index-item__year { text-align: right; font-variant-numeric: tabular-nums; }
.index[data-view="list"] .index-head span:last-child { text-align: right; }
.index[data-view="list"] a:hover .frame img { transform: none; }
@media (max-width: 860px) {
	.index[data-view="list"] .index-head { display: none; }
	.index[data-view="list"] .index-item a { grid-template-columns: 72px 1fr auto; gap: 4px 16px; }
	.index[data-view="list"] .index-item__thumb { grid-row: span 2; }
	.index[data-view="list"] .index-item__place { grid-column: 2; }
	.index[data-view="list"] .index-item__year { grid-column: 3; grid-row: 1; }
	.index[data-view="list"] .index-item__type,
	.index[data-view="list"] .index-item__status { display: none; }
}

/* =========================================================
   PROJEKT
   ========================================================= */
.project-hero { position: relative; height: 92vh; height: 92svh; min-height: 520px; background: var(--ink); overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; pointer-events: none;
	background: linear-gradient(180deg, rgba(20,23,26,.35), rgba(20,23,26,0));
}
/* Projekt bez slika: tipografsko zaglavlje umjesto fotografije */
.project-hero--empty {
	height: auto; min-height: 0; background: var(--paper-dim);
	background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(20,23,26,.045) 14px 15px);
	border-bottom: 1px solid var(--line);
}
.project-hero--empty::after { display: none; }
.project-hero--empty__inner {
	min-height: clamp(260px, 42vh, 460px);
	display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
	padding-block: clamp(40px, 6vw, 72px);
}
.project-hero--empty__year {
	font-family: var(--display); font-weight: 900; line-height: .85; letter-spacing: -0.03em;
	font-size: clamp(88px, 17vw, 260px); color: transparent;
	-webkit-text-stroke: 1.5px var(--stone);
}
.project-hero--empty__note {
	font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
	display: inline-flex; align-items: center; gap: 10px;
}
.project-hero--empty__note::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.project-head { padding: clamp(56px, 8vw, 110px) 0; }
.project-head .label { margin-bottom: 14px; }
.project-title {
	font-family: var(--display); font-weight: 900;
	font-size: clamp(34px, 5vw, 72px); line-height: 1.03; letter-spacing: -0.01em;
	max-width: 14ch; text-wrap: balance;
}
.project-intro .lead { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.45; max-width: 34ch; margin-bottom: clamp(30px, 4vw, 48px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); column-gap: clamp(20px, 3vw, 40px); }
.facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 500; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.entry--project { padding-top: 0; }

/* =========================================================
   NAGRADE
   ========================================================= */
.award {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 9px 4px 7px;
	background: var(--ink); color: var(--paper);
	font: 600 11px/1 var(--body); letter-spacing: .04em; text-transform: uppercase;
	white-space: nowrap; vertical-align: middle;
}
.award__icon { width: 12px; height: 12px; flex-shrink: 0; }
.award--large { font-size: 12px; padding: 6px 11px 6px 9px; }
.award--large .award__icon { width: 14px; height: 14px; }
.project-award { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.index-item a { position: relative; }

.awards-list { border-top: 1px solid var(--ink); }
.awards-list a { text-decoration: none; display: grid; grid-template-columns: 110px 150px 1.2fr 1.6fr; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.awards-list a:hover { background: var(--paper-dim); }
.awards-list__year { font-variant-numeric: tabular-nums; color: var(--muted); }
.awards-list__project strong { font-family: var(--display); font-weight: 700; }
.awards-list__note { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
	.awards-list a { grid-template-columns: 1fr; gap: 6px; }
}

/* =========================================================
   BANNER (O nama, sljedeći projekt)
   ========================================================= */
.banner { position: relative; display: block; height: 56vh; min-height: 380px; overflow: hidden; background: var(--ink); color: var(--paper); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.banner:hover img { transform: scale(1.03); }
.banner::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(20,23,26,.15) 0%, rgba(20,23,26,.08) 40%, rgba(20,23,26,.62) 100%);
}
.banner__copy {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: clamp(30px, 5vw, 56px) var(--gutter);
	display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.banner__label { display: block; font-size: 14px; opacity: .85; margin-bottom: 8px; }
.banner__title { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 38px); max-width: 16ch; line-height: 1.1; text-wrap: balance; }
.banner__link { font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(246,244,239,.8); padding-bottom: 3px; white-space: nowrap; }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact { padding: clamp(60px, 8vw, 110px) 0; }
.contact__main { display: flex; flex-direction: column; gap: 6px; }
.contact__big {
	font-family: var(--display); font-weight: 800;
	font-size: clamp(26px, 4vw, 56px); line-height: 1.12; letter-spacing: -0.01em;
	width: fit-content; border-bottom: 2px solid transparent;
	overflow-wrap: anywhere;
}
.contact__big:hover { border-bottom-color: currentColor; }
.contact__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.8; }
.contact__cols .heading { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
@media (max-width: 600px) { .contact__cols { grid-template-columns: 1fr; } }
.entry--contact { padding-top: 0; }

/* Obrasci (Contact Form 7 i sl.) */
.entry input[type="text"],
.entry input[type="email"],
.entry input[type="tel"],
.entry input[type="url"],
.entry textarea,
.entry select {
	width: 100%; font: inherit; font-size: 16px; color: var(--ink);
	background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
	padding: 12px 0;
}
.entry textarea { min-height: 140px; resize: vertical; }
.entry input:focus, .entry textarea:focus, .entry select:focus { outline: none; border-bottom-width: 2px; }
.entry input[type="submit"], .entry button[type="submit"] {
	background: var(--ink); color: var(--paper); border: 0; padding: 14px 24px; font: 600 14px/1 var(--body); cursor: pointer;
}
.entry label { font-size: 14px; color: var(--muted); }

/* =========================================================
   NOVOSTI / POPIS OBJAVA
   ========================================================= */
.posts { padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); }
.post-list { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 140px 1.2fr 2fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.post-row time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-row__title { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); }
.post-row__excerpt { color: var(--muted); font-size: 15px; }
.post-row:hover .post-row__title { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .post-row { grid-template-columns: 1fr; gap: 6px; } }
.post-cover { margin-top: clamp(30px, 4vw, 50px); }
.nav-links { display: flex; gap: 20px; margin-top: 40px; font-size: 14px; font-weight: 600; }

/* =========================================================
   PODNOŽJE
   ========================================================= */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(60px, 8vw, 100px) 0 32px; }
.footer-top {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
	padding-bottom: clamp(50px, 7vw, 90px);
	border-bottom: 1px solid rgba(246,244,239,.16);
}
.footer-cta { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 54px); line-height: 1.08; max-width: 11ch; }
.footer-cta a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.footer-col p, .footer-col a { font-size: 14px; line-height: 1.9; color: rgba(246,244,239,.8); }
.footer-col a:hover { color: #fff; }
.footer-col .heading { font-size: 13px; color: #a3a89b; margin-bottom: 12px; }
.footer-bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap;
	padding-top: 24px; font-size: 13px; color: rgba(246,244,239,.6);
}
.footer-menu { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-menu a:hover { color: #fff; }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }

/* =========================================================
   Pojavljivanje fotografija pri skrolanju (samo s JS-om, bez skrivanja sadržaja inače)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
	.js .reveal.is-in { opacity: 1; transform: none; }
}
