:root {
  --brown: #A1754F;
  /* brand brown fails 4.5:1 for small text, so text uses these shades */
  --brown-ink: #87603F;   /* on paper / under white text: 4.9 and 5.6:1 */
  --brown-light: #B88A63; /* on charcoal: 5.3:1 */
  --charcoal: #231F20;
  --berry: #A04058;
  --text: #40322B;
  --paper: #F6F0E8;
  --paper-2: #F0E7DB;     /* tinted sections; any darker and --brown-ink drops below 4.5:1 */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px; --s-400: 32px;
  --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; } /* the bar and page keep their place when a scrollbar appears */
body {
  margin: 0;
  /* cotton texture: darkest pixel = --paper-2, average about --paper */
  background: var(--paper) url("/assets/cotton.webp") 0 0 / 512px 512px;
  color: var(--text);
  font: 400 16px/24px "Raleway", system-ui, sans-serif;
  /* Raleway defaults to old-style figures that dip below the line; prices and phone numbers need lining ones.
     The font shorthand resets this, so .btn and form fields set it again */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-family: "Lora", Georgia, serif; font-weight: 500; text-wrap: balance; }
h1 { font-size: 48px; line-height: 1; max-width: 680px; }
h2 { font-size: 36px; line-height: 40px; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; border-radius: 4px; }
/* berry is too dark to see on the dark and brown sections */
.hero :focus-visible, .section-brown :focus-visible, .menu :focus-visible, .footer :focus-visible { outline-color: var(--paper); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-300); }
.section { padding: var(--s-900) 0; }
.section h2 { margin-bottom: var(--s-600); max-width: 680px; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown-ink); margin-bottom: var(--s-200); }
.lead { font-size: 20px; line-height: 28px; max-width: 680px; }

.skip { position: absolute; left: var(--s-200); top: -80px; background: var(--charcoal); color: #fff; padding: var(--s-75) var(--s-100); border-radius: 8px; z-index: 100; transition: top .3s var(--ease); }
.skip:focus { top: var(--s-200); }

/* buttons */
.btn {
  display: inline-block; padding: var(--s-75) var(--s-100); border-radius: 8px; border: 0;
  background: var(--brown-ink); color: #fff; font: 600 16px/24px "Raleway", sans-serif; font-variant-numeric: lining-nums; text-decoration: none; cursor: pointer;
  transition: all 700ms var(--ease);
}
.btn:hover { background: #6F4F34; transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(0.98) translateY(1px); }
.btn-sm { font-size: 14px; line-height: 20px; padding: var(--s-100) var(--s-200); }
.with-icon { display: inline-flex; align-items: center; gap: var(--s-75); } /* WhatsApp icon before a label */
.btn-dark { background: var(--charcoal); }
.btn-dark:hover { background: #000; }
.hero .btn { padding: var(--s-100) var(--s-300); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); }
.btn-ghost:hover { background: rgb(255 255 255 / .1); }
[data-hero="light"] .hero .btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1px rgb(64 50 43 / .3); }
[data-hero="light"] .hero .btn-ghost:hover { background: rgb(64 50 43 / .06); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-100); }

/* nav: full-width bar, transparent over the hero, solid charcoal once scrolled */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
/* the solid fill lives on a pseudo layer: backdrop-filter on .nav-wrap itself would trap the fixed menu inside the bar */
.nav-wrap::before { content: ""; position: absolute; inset: 0; background: rgb(35 31 32 / .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity 700ms var(--ease); }
.nav-wrap.solid::before { opacity: 1; }
/* pages without a hero are always solid: a plain fill, since the blur leaves dark streaks while a new page paints */
.nav-wrap.static::before { background: var(--charcoal); backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
.nav { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--s-400); max-width: 1120px; margin: 0 auto; padding: var(--s-200) var(--s-300); color: #fff; }
.nav-logo img { width: auto; height: 56px; }
.logo-on-light { display: none; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 9999px; background: transparent; color: #fff; cursor: pointer; transition: all 700ms var(--ease); }
.theme-toggle:hover { background: rgb(255 255 255 / .1); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* shows the theme it switches to */
.theme-toggle .icon-moon, [data-hero="dark"] .theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-sun, [data-hero="dark"] .theme-toggle .icon-moon { display: none; }

/* light hero variant (?hero=light): dark text on paper; the bar reads dark until it turns solid or the menu opens */
[data-hero="light"] .hero { background: var(--paper); color: var(--text); }
[data-hero="light"] .hero .eyebrow { color: var(--brown-ink); }
[data-hero="light"] .hero .lead { color: rgb(64 50 43 / .85); }
[data-hero="light"] .hero .proof { color: rgb(64 50 43 / .7); }
[data-hero="light"] .hero :focus-visible { outline-color: var(--berry); }
[data-hero="light"] .nav-wrap:not(.solid):not(.open) .logo-on-dark { display: none; }
[data-hero="light"] .nav-wrap:not(.solid):not(.open) .logo-on-light { display: block; }
[data-hero="light"] .nav-wrap:not(.solid):not(.open) .nav-links a { color: rgb(64 50 43 / .8); }
[data-hero="light"] .nav-wrap:not(.solid):not(.open) .nav-links a:hover { color: var(--text); }
[data-hero="light"] .nav-wrap:not(.solid):not(.open) .nav-links a[aria-current="true"] { color: var(--brown-ink); }
[data-hero="light"] .nav-wrap:not(.solid):not(.open) .burger span { background: var(--text); }
[data-hero="light"] .nav-wrap:not(.solid):not(.open) .theme-toggle { color: var(--text); }
[data-hero="light"] .nav-wrap:not(.solid):not(.open) .theme-toggle:hover { background: rgb(64 50 43 / .08); }
[data-hero="light"] .nav-wrap:not(.solid):not(.open) :focus-visible { outline-color: var(--berry); }
.nav-links { display: flex; gap: var(--s-300); margin-left: auto; }
.nav-links a { display: block; padding: var(--s-100) 0; font-size: 14px; line-height: 20px; font-weight: 500; color: rgb(255 255 255 / .75); text-decoration: none; transition: color 700ms var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--brown-light); }
.nav-wrap :focus-visible { outline-color: var(--paper); }
section[id] { scroll-margin-top: 88px; }
.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 9999px; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 12px; width: 20px; height: 2px; background: #fff; transition: all 700ms var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 1; display: flex; overflow-y: auto;
  background: rgb(35 31 32 / .94); backdrop-filter: blur(64px); -webkit-backdrop-filter: blur(64px); color: #fff;
  opacity: 0; transition: opacity 700ms var(--ease);
}
.menu[hidden] { display: none; }
.menu.open { opacity: 1; }
/* margin auto centres it but, unlike align-items, lets a tall menu scroll instead of spilling under the bar */
.menu-in { width: 100%; margin: auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: end; padding-top: var(--s-900); padding-bottom: var(--s-700); }
.menu-links a { display: flex; align-items: baseline; gap: var(--s-200); padding: var(--s-75) 0; font: 500 48px/1 "Lora", serif; text-decoration: none; transition: color 700ms var(--ease); }
.menu-links span { font-size: 18px; line-height: 28px; color: var(--brown-light); min-width: var(--s-300); }
.menu-links a:hover, .menu-links a[aria-current="true"], .menu-links a[aria-current="page"] { color: var(--brown-light); }
.menu-side { display: grid; justify-items: start; font-size: 14px; line-height: 20px; color: rgb(255 255 255 / .7); }
.menu-side a { text-decoration: none; }
.menu-side a:hover { color: #fff; }
.menu-art { width: 100%; max-width: 420px; height: auto; margin-bottom: var(--s-300); }
.menu li, .menu-side { opacity: 0; transform: translateY(48px); transition: all 700ms var(--ease); }
.menu.open li, .menu.open .menu-side { opacity: 1; transform: none; }
.menu.open li:nth-child(2) { transition-delay: 100ms; }
.menu.open li:nth-child(3) { transition-delay: 150ms; }
.menu.open li:nth-child(4) { transition-delay: 200ms; }
.menu.open li:nth-child(5) { transition-delay: 250ms; }
.menu.open li:nth-child(6) { transition-delay: 300ms; }
.menu.open .menu-side { transition-delay: 350ms; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center; background: var(--charcoal); color: #fff; }
/* 3D mode: the canvas fills the hero; the svg keeps its grid cell (and stays the source for the menu and footer copies) */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero.is-3d .hero-canvas { display: block; }
.hero.is-3d .hero-art, .want-3d .hero-art { visibility: hidden; }
.want-3d .hero:not(.is-3d) .hero-copy { opacity: 0; }
.hero-in { position: relative; }
.hero.is-3d .hero-in { pointer-events: none; }
.hero.is-3d .hero-copy > * { pointer-events: auto; }
/* each word rises out of its own mask; 0.3em below the baseline keeps Lora's descenders (g, j) unclipped */
.hero h1 .wl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.3em; margin-bottom: -0.3em; }
.hero h1 .wi { display: inline-block; }
.hero-in { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-600); align-items: center; padding-top: var(--s-900); padding-bottom: var(--s-800); }
.hero .eyebrow { color: var(--brown-light); }
.hero h1 { margin-bottom: var(--s-300); }
.hero .lead { margin-bottom: var(--s-400); color: rgb(255 255 255 / .8); }
.hero .proof { margin-top: var(--s-300); font-size: 14px; line-height: 20px; color: rgb(255 255 255 / .6); }
.hero-art { width: 100%; height: auto; }
/* no ancestor in the selector: the footer clones this shape with <use> */
.glow { animation: glow 6s var(--ease) infinite alternate; }
@keyframes glow { to { fill-opacity: .13; } }

/* sections, cards, services */
/* fabric textures never cross the contrast limit: light ones never go below --paper-2, the wool never above --brown-ink */
/* the linen band fades in and out over the page cotton, so light sections never meet in a hard line */
.section-tint { position: relative; isolation: isolate; }
.section-tint::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-2) url("/assets/linen.webp") 0 0 / 512px 512px;
  -webkit-mask-image: linear-gradient(transparent, #000 var(--s-900), #000 calc(100% - var(--s-900)), transparent);
          mask-image: linear-gradient(transparent, #000 var(--s-900), #000 calc(100% - var(--s-900)), transparent); }
.section h2:has(+ .section-lead), .section h2:has(+ .about-text) { margin-bottom: var(--s-200); }
.section-lead { max-width: 640px; margin-bottom: var(--s-600); }
.cards { display: grid; gap: var(--s-300); grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border-radius: 16px; padding: var(--s-75); border: 1px solid rgb(64 50 43 / .1); }
/* inner radius = 16 outer - 8 gap */
.card-art { display: block; width: 100%; height: auto; background: var(--charcoal); border-radius: 8px; }
.card-body { padding: var(--s-300) var(--s-200) var(--s-200); }
.card h3 { margin-bottom: var(--s-75); }

.cards.services { align-items: stretch; }
.services .card-body { display: flex; flex-direction: column; height: 100%; }
.services .eyebrow { margin-bottom: var(--s-75); }
.price { margin-top: auto; padding-top: var(--s-300); border-top: 1px solid rgb(64 50 43 / .15); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-75) var(--s-200); }
.services .card-body > p:nth-of-type(2) { margin-bottom: var(--s-300); }
.price strong { font: 500 30px/36px "Lora", serif; color: var(--charcoal); }
.card-featured { background: var(--charcoal); color: #fff; border-color: transparent; }
.card-featured .eyebrow { color: var(--brown-light); }
.card-featured .price { border-color: rgb(255 255 255 / .2); }
.card-featured .price strong { color: #fff; }

/* about */
.about { display: grid; grid-template-columns: 2fr 3fr; gap: var(--s-700); align-items: start; }
.about-photo { position: sticky; top: var(--s-900); width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--charcoal); }
.about-text { display: grid; gap: var(--s-200); max-width: 640px; }
.about-text a { color: var(--brown-ink); font-weight: 600; }
/* signed at the end, like a letter: right-aligned and rising */
.signature { justify-self: end; width: 260px; height: auto; margin: var(--s-100) var(--s-300) 0 0; transform: rotate(-4deg); }
.principles { display: grid; gap: var(--s-100); margin-top: var(--s-500); max-width: 640px; }
.principles li { position: relative; padding-left: var(--s-300); }
.principles li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 9999px; background: var(--berry); }
.principles strong, .about-text strong { font-weight: 600; color: var(--charcoal); }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 2fr 3fr; gap: var(--s-700); align-items: start; }
.faq-side { position: sticky; top: var(--s-900); }
.section .faq-side h2 { margin-bottom: var(--s-300); }
.faq-side a { color: var(--brown-ink); font-weight: 600; }
.faq-art { display: block; width: 100%; max-width: 240px; height: auto; margin-top: var(--s-500); }
.faq details { border-bottom: 1px solid rgb(64 50 43 / .2); }
.faq summary { cursor: pointer; padding: var(--s-300) 0; font-weight: 600; font-size: 18px; line-height: 28px; list-style: none; display: flex; justify-content: space-between; gap: var(--s-200); }
.faq summary::-webkit-details-marker { display: none; }
/* the plus is drawn, not typed: Raleway's "+" is small and sits above centre */
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 9999px;
  background: linear-gradient(#fff 0 0) center / 14px 2px no-repeat, linear-gradient(#fff 0 0) center / 2px 14px no-repeat, var(--brown);
  transition: all 700ms var(--ease);
}
.faq summary:hover::after { background-color: var(--berry); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s-300); max-width: 640px; }

.posts { max-width: 768px; border-top: 1px solid rgb(64 50 43 / .2); }
.post { padding: var(--s-300) 0; border-bottom: 1px solid rgb(64 50 43 / .2); }
.post-meta { font-size: 14px; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown-ink); }
.pills { display: flex; flex-wrap: wrap; gap: var(--s-75); margin: var(--s-100) 0 0; padding: 0; list-style: none; }
.pill { position: relative; display: inline-block; text-transform: none; padding: 4px var(--s-100); border: 1px solid rgb(135 96 63 / .4); border-radius: 9999px; font-size: 12px; line-height: 16px; letter-spacing: 0.04em; color: var(--brown-ink); text-decoration: none; transition: background-color 700ms var(--ease), border-color 700ms var(--ease), color 700ms var(--ease); }
a.pill:hover { background: var(--brown-ink); border-color: var(--brown-ink); color: #fff; }
/* stretches the 26px pill to a 44px touch target */
a.pill::after { content: ""; position: absolute; inset: -9px 0; }
.post-title { margin-top: var(--s-75); font: 500 24px/32px "Lora", serif; color: var(--charcoal); }
/* 44px touch target */
.post-title a { display: block; padding: var(--s-75) 0; text-decoration: none; transition: color 700ms var(--ease); }
.post-title a:hover { color: var(--brown-ink); }
.excerpt { max-width: 640px; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-300); color: var(--brown-ink); font-weight: 600; }
.card .more-link { margin-top: var(--s-75); }
/* Spotify brand rules: the icon stays green, black or white, never recoloured */
.icon-spotify { flex: none; margin-right: var(--s-75); fill: #1DB954; }
.more { max-width: 768px; margin-top: var(--s-900); }
.more h2 { margin-bottom: var(--s-300); font-size: 30px; line-height: 36px; }

/* blog pager: Novije and Starije at the ends, numbered pages in the middle */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-200); margin-top: var(--s-600); }
/* round arrow link: pager steps and the way back to the blog list */
.step-link {
  justify-self: start; display: inline-flex; align-items: center; gap: var(--s-75); min-height: 44px; padding: 0 var(--s-200) 0 var(--s-100);
  border: 1px solid rgb(135 96 63 / .4); border-radius: 9999px; color: var(--brown-ink); font-weight: 600; text-decoration: none;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}
.step-next { justify-self: end; padding: 0 var(--s-100) 0 var(--s-200); }
.step-link:hover { background: var(--brown-ink); border-color: var(--brown-ink); color: #fff; }
.step-link svg { transition: transform 300ms var(--ease); }
.step-link:hover svg { transform: translateX(-2px); }
.step-next:hover svg { transform: translateX(2px); }
.pager-pages { display: flex; align-items: center; gap: var(--s-75); }
.pager-pages a {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s-75); border-radius: 9999px;
  color: var(--text); font-weight: 600; text-decoration: none; transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.pager-pages a:hover { background: var(--paper-2); color: var(--charcoal); }
.pager-pages a[aria-current] { background: var(--brown-ink); color: #fff; }
.pager-gap { width: 24px; text-align: center; color: var(--brown-ink); }
.pager-count { display: none; font-size: 14px; line-height: 20px; white-space: nowrap; }

/* blog article and 404 */
.article { padding: calc(var(--s-900) + var(--s-700)) 0 var(--s-900); }
.article-in { max-width: 768px; }
.article-back { margin-bottom: var(--s-400); }
.more-back { margin-top: var(--s-400); }
.article h1 { margin: var(--s-200) 0 var(--s-500); }
.article-body { display: grid; gap: var(--s-300); max-width: 680px; font-size: 18px; line-height: 28px; }
.article .btn { margin-top: var(--s-600); padding: var(--s-100) var(--s-300); }
/* what the Bard editor can produce */
.article-body h2 { margin-top: var(--s-300); font-size: 30px; line-height: 36px; }
.article-body h3 { margin-top: var(--s-200); font: 500 24px/32px "Lora", serif; }
.article-body ul, .article-body ol { display: grid; gap: var(--s-75); padding-left: var(--s-300); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote { margin: 0; padding-left: var(--s-300); border-left: 4px solid var(--brown); font: italic 400 20px/28px "Lora", serif; color: var(--charcoal); }
.article-body a:not(.btn) { color: var(--brown-ink); font-weight: 600; }
/* call to action set placed inside the article flow */
.cta { display: grid; gap: var(--s-100); justify-items: start; margin: var(--s-300) 0; padding: var(--s-400); border-radius: 16px; background: var(--charcoal); color: rgb(255 255 255 / .8); font-size: 16px; line-height: 24px; }
.cta-title { font: 500 24px/32px "Lora", serif; color: #fff; }
.article .cta .btn { margin-top: var(--s-100); }
.cta :focus-visible { outline-color: var(--paper); }

/* blog list: header, topic filter, card grid */
.blog-head { max-width: 768px; }
.blog-head h1 { margin-bottom: var(--s-300); }
.blog-filter { margin: var(--s-500) 0 var(--s-600); }
.blog-filter .pills { gap: var(--s-100); }
.blog-filter .pill { font-size: 14px; line-height: 20px; padding: 4px var(--s-200); }
.blog-filter .pill[aria-current] { background: var(--brown-ink); border-color: var(--brown-ink); color: #fff; }
.blog-empty { font-size: 18px; line-height: 28px; }
.blog-empty a { color: var(--brown-ink); font-weight: 600; }
.posts-grid { max-width: none; border: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-300); }
.posts-grid .post {
  position: relative; display: flex; flex-direction: column; padding: var(--s-400); border: 1px solid rgb(64 50 43 / .15); border-radius: 16px;
  background: rgb(255 255 255 / .5); transition: background-color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.posts-grid .post:hover { background: rgb(255 255 255 / .85); border-color: rgb(135 96 63 / .4); box-shadow: 0 12px 32px -16px rgb(35 31 32 / .25); }
/* the whole card opens the article */
.posts-grid .post-title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.posts-grid .post-title a:focus-visible { outline: 0; }
.posts-grid .post:has(:focus-visible) { outline: 2px solid var(--berry); outline-offset: 2px; }
.posts-grid .post-title { margin-top: var(--s-200); }
.posts-grid .excerpt { color: var(--text); }
.posts-grid .post::after { content: "Pročitaj →"; margin-top: auto; padding-top: var(--s-300); color: var(--brown-ink); font-weight: 600; }
/* on page 1 the newest article leads, full width */
.posts-lead .post:first-child { grid-column: 1 / -1; padding: var(--s-500); }
.posts-lead .post:first-child .post-title { font-size: 36px; line-height: 40px; max-width: 768px; }
.posts-lead .post:first-child .excerpt { font-size: 18px; line-height: 28px; }
/* the lead card takes a full row, so an even count leaves the last card alone: give it the row too */
.posts-lead .post:last-child:nth-child(even) { grid-column: 1 / -1; }
.blog-cta { grid-template-columns: 1fr auto; align-items: center; margin-top: var(--s-800); padding: var(--s-500); }
.blog .blog-cta .btn { margin: 0; }
@media (max-width: 800px) {
  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid .post, .posts-lead .post:first-child { padding: var(--s-300); }
  .posts-lead .post:first-child .post-title { font-size: 30px; line-height: 36px; }
  .blog-cta { grid-template-columns: 1fr; justify-items: start; padding: var(--s-400); }
  .pager-pages { display: none; }
  .pager-count { display: block; }
}

/* author box at the end of every article */
.author { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-300); align-items: start; max-width: 680px; margin-top: var(--s-700); padding-top: var(--s-500); border-top: 1px solid rgb(64 50 43 / .2); font-size: 16px; line-height: 24px; }
.author-photo { width: 96px; height: 96px; border-radius: 9999px; object-fit: cover; background: var(--charcoal); }
.author-text { display: grid; gap: var(--s-75); }
.author .eyebrow { margin-bottom: 0; }
.author-name { font: 500 24px/32px "Lora", serif; color: var(--charcoal); }
.author-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-300); }
.author-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brown-ink); font-weight: 600; }
@media (max-width: 600px) { .author { grid-template-columns: 1fr; } }

/* social icons (contact section, author box) */
.social { display: inline-flex; align-items: center; gap: var(--s-75); }
.footer-contact .social { margin-top: var(--s-100); margin-left: calc(-1 * var(--s-100)); } /* lines the first icon up with the text above */
.contact-links .social a, .author-links .social a, .footer-contact .social a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 9999px; color: inherit; transition: background-color 700ms var(--ease); }
.author-links .social a { color: var(--brown-ink); }
.social a:hover { background: rgb(64 50 43 / .08); }
.section-brown .social a:hover, .footer .social a:hover { background: rgb(255 255 255 / .12); }

/* contact */
.section-brown { background: var(--brown-ink) url("/assets/wool.webp") 0 0 / 512px 512px; color: #fff; }
.section-brown .eyebrow { color: var(--paper); }
.section-brown h2 { margin-bottom: var(--s-300); }
.contact { display: grid; gap: var(--s-700); grid-template-columns: 1fr 1fr; align-items: start; }
.details { margin-top: var(--s-500); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
.details dd { margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-300); margin-top: var(--s-300); }
.contact-links a { display: inline-block; padding: var(--s-100) 0; }
.contact-links > span:first-child { padding: var(--s-100) 0; opacity: .9; }
.contact-note { font-size: 14px; line-height: 20px; opacity: .9; }
.section-brown a { text-underline-offset: 4px; }
.crisis { margin-top: var(--s-700); padding-top: var(--s-300); border-top: 1px solid rgb(255 255 255 / .25); font-size: 14px; line-height: 20px; max-width: 640px; }
/* the 112 link is the one that must never be missed: a 44px hit area without moving the text */
.crisis a { position: relative; }
.crisis a::after { content: ""; position: absolute; inset: -13px -14px; }
.contact-art { display: block; width: 100%; max-width: 280px; height: auto; margin-top: var(--s-600); }
.details dt { font-size: 14px; line-height: 20px; opacity: .9; }
.details dd { font-size: 16px; line-height: 24px; font-weight: 500; }
.details .addresses { display: grid; justify-items: start; }
.details dd a { display: inline-flex; align-items: center; min-height: 44px; }
.form { background: var(--paper); color: var(--text); border-radius: 16px; padding: var(--s-400); display: grid; gap: var(--s-200); }
.form label { display: grid; gap: var(--s-75); font-weight: 500; font-size: 14px; line-height: 20px; }
.form h3 { font: 500 24px/32px "Lora", serif; color: var(--charcoal); }
.form-note { font-size: 14px; line-height: 20px; margin-top: calc(-1 * var(--s-100)); }
.form-status { font-size: 14px; line-height: 20px; padding: var(--s-100) var(--s-200); border-radius: 8px; background: #fff; }
.form-error { color: var(--berry); }
.form .hp { position: absolute; left: -9999px; }
.form input, .form textarea, .form select { font: 400 16px/24px "Raleway", sans-serif; font-variant-numeric: lining-nums; color: var(--text); padding: var(--s-100); border: 1px solid rgb(64 50 43 / .3); border-radius: 8px; background: #fff; width: 100%; }
.form .btn { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.form select { min-height: 48px; }

.footer { background: var(--charcoal); color: rgb(255 255 255 / .7); padding: var(--s-800) 0 var(--s-400); font-size: 14px; line-height: 20px; }
.footer a { text-decoration: none; transition: color 700ms var(--ease); }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-600); align-items: start; }
.footer-brand img { width: 280px; height: auto; margin-bottom: var(--s-300); }
.footer-brand p { max-width: 320px; }
.footer-links, .footer-contact { display: grid; }
/* 44px touch targets */
.footer-links a, .footer-contact a, .menu-side a { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) 0; }
.footer-contact a, .menu-side a { padding: var(--s-100) 0; }
.footer-links a { font: 500 18px/28px "Lora", serif; color: #fff; }
.footer-links a:hover { color: var(--brown-light); }
.footer-floor { --w: 220px; display: flex; align-items: flex-end; margin-top: var(--s-700); }
/* extends the scene's floor line (y 342 of the 560 wide viewBox) to the left edge */
.footer-floor span { flex: 1; height: 1px; margin-bottom: calc(var(--w) * 18 / 560 - 0.5px); background: rgb(255 255 255 / .12); }
.footer-floor svg { width: var(--w); height: auto; flex: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 0 var(--s-300); flex-wrap: wrap; margin-top: var(--s-300); }
/* agency credit, as on other Kontekst sites; 60% (not 45%) keeps the small label above 4.5:1 on charcoal */
/* agency credit, as on other Kontekst sites: quiet and always monochrome; 60% keeps the label above 4.5:1 */
.footer-credit { display: inline-flex; align-items: center; gap: var(--s-75); min-height: 44px; opacity: .6; color: #fff; font-size: 12px; line-height: 16px; transition: opacity 700ms var(--ease); }
.footer-credit:hover, .footer-credit:focus-visible { opacity: 1; color: #fff; }
.footer-credit img { display: block; width: auto; height: 14px; filter: grayscale(1) brightness(1.5); }
/* the logo's mark hangs below its lettering; lift the label onto the lettering's line */
.footer-credit span { transform: translateY(-1px); }
/* "Postavke kolačića" reopens the analytics choice: after the copyright in the footer, and in the menu */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-300); }
.footer-legal p { padding: var(--s-100) 0; } /* as tall as the 44px link and credit beside it, so stacked rows space evenly */
.cookie-link { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-variant-numeric: lining-nums; cursor: pointer; transition: color 700ms var(--ease); }
.cookie-link span { text-decoration: underline; text-decoration-color: rgb(255 255 255 / .3); text-underline-offset: 4px; transition: text-decoration-color 700ms var(--ease); }
.cookie-link:hover { color: #fff; }
.cookie-link:hover span { text-decoration-color: currentColor; }

/* analytics consent: a quiet card in the corner, under the nav and menu; both choices equally easy */
/* --edge lines it up with .container's content edge at any width */
.consent { --edge: max(var(--s-300), calc((100% - 1120px) / 2 + var(--s-300))); position: fixed; left: var(--edge); right: var(--edge); bottom: var(--s-300); z-index: 40; display: grid; gap: var(--s-200); max-width: 420px; padding: var(--s-300); border-radius: 16px; background: var(--paper); color: var(--text); font-size: 14px; line-height: 20px; box-shadow: 0 8px 32px rgb(35 31 32 / .18); }
.consent[hidden] { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.consent-no { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgb(64 50 43 / .3); }
.consent-no:hover { background: rgb(64 50 43 / .06); }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(64px); filter: blur(8px); transition: all 900ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* below 960 the links move into the menu overlay */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 600px) {
  .nav { gap: var(--s-200); }
  .nav-logo img { height: 44px; }
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
}

@media (max-width: 800px) {
  h1 { font-size: 36px; line-height: 40px; }
  h2 { font-size: 30px; line-height: 36px; }
  .section { padding: var(--s-800) 0; }
  .cards, .contact, .about { grid-template-columns: 1fr; }
  .contact { gap: var(--s-500); }
  .details { grid-template-columns: 1fr; gap: var(--s-200); }
  .contact-art { max-width: 200px; margin-top: var(--s-500); }
  .faq-wrap { grid-template-columns: 1fr; gap: var(--s-500); }
  /* one column: the text wrapper dissolves so "O meni" can sit above the photo, heading and text below it */
  .about { gap: 0; }
  .about > div { display: contents; }
  .about .eyebrow { order: -1; }
  .about-photo { position: static; max-width: 280px; margin-bottom: var(--s-400); }
  .faq-side { position: static; }
  .faq-art { max-width: 160px; margin-top: var(--s-400); }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-500); }
  .menu-in { grid-template-columns: 1fr; gap: var(--s-500); }
  .menu-links a { font-size: 36px; line-height: 40px; }
  .menu-art { max-width: 240px; }
  .footer-floor { --w: 160px; }
  .hero-in { grid-template-columns: 1fr; gap: var(--s-500); }
    .hero h1 br { display: none; }
}

/* short screens: the menu drops the room drawing so the links fit */
@media (max-height: 700px) { .menu-art { display: none; } }

/* phones: tighter gaps between sections and a smaller menu (after the 800px block so it wins) */
@media (max-width: 600px) {
  .section { padding: var(--s-600) 0; }
  #o-meni { padding-top: var(--s-300); } /* the label now sits above the photo; a full 48px left it floating far below the price cards */
  .menu-in { padding-top: var(--s-800); padding-bottom: var(--s-500); }
  .menu-links a { font-size: 30px; line-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .glow { animation: none; }
}
