/* =========================================
   BASE STYLES - Hvala Theme
   Inspiracija: Design for Mankind
   ========================================= */

:root{
  /* Boje */
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #121212;
  --muted: rgba(18,18,18,.68);
  --soft: rgba(18,18,18,.08);
  --hairline: rgba(18,18,18,.14);
  --gold: #a67c52;
  --gold-soft: rgba(166, 124, 82, .08);

  /* Sjene */
  --shadow: 0 22px 70px rgba(0,0,0,.10);
  --shadow-soft: 0 12px 40px rgba(0,0,0,.08);
  --shadow-card: 0 18px 55px rgba(0,0,0,.10);
  --shadow-card-hover: 0 26px 90px rgba(0,0,0,.14);

  /* Tipografija - IDENTIČNO Design for Mankind */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radijus i dimenzije */
  --radius: 0;
  --wrap: 1180px;
  --wrap-narrow: 780px;

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 26px;
  --space-5: 38px;
  --space-6: 56px;
  --space-7: 72px;
  --space-8: 96px;

  /* Typography scale */
  --text-xs: 10px;
  --text-sm: 11.2px;
  --text-base: 13.6px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 34px;
  --text-4xl: 44px;

  /* Line heights */
  --leading-tight: 1.12;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.85;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.2em;
  --tracking-caps: 3px;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after{ 
  box-sizing: border-box; 
}

html{ 
  height: 100%;
  scroll-behavior: smooth;
}

body{
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Links */
a{ 
  color: inherit; 
  text-decoration: none;
  transition: color .15s ease;
}

a:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Images */
img{ 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

/* Headings */
h1, h2, h3, h4, h5, h6{
  font-family: var(--serif);
  font-weight: 500;
  line-height: var(--leading-tight);
  margin: 0;
}

/* Paragraphs */
p{
  margin: 0 0 1em;
}

/* Lists */
ul, ol{
  margin: 0;
  padding: 0;
}

/* Forms */
button, input, textarea, select{
  font-family: inherit;
  font-size: inherit;
}

button{
  cursor: pointer;
}

/* =========================================
   LAYOUT
   ========================================= */
.site-main{
  width: min(var(--wrap), calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 var(--space-7);
}

.site-main--narrow{
  width: min(var(--wrap-narrow), calc(100% - 44px));
}

/* =========================================
   UTILITIES
   ========================================= */

/* Screen reader only */
.sr-only{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}

.skip-link:focus{
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* Dot separator */
.dot{ 
  opacity: .55; 
  padding: 0 8px; 
}

/* Empty state */
.empty{
  padding: 44px 0;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* Text alignment */
.text-center{ text-align: center; }
.text-left{ text-align: left; }
.text-right{ text-align: right; }

/* =========================================
   TYPOGRAPHY UTILITIES
   ========================================= */

/* Caps style - kao Design for Mankind navigation */
.caps,
.text-caps{
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: var(--tracking-caps);
  line-height: 20.16px;
  text-transform: uppercase;
}

/* Serif body text */
.serif-text{
  font-family: var(--serif);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 25.84px;
}

/* =========================================
   SELECTION
   ========================================= */
::selection{
  background: rgba(18, 18, 18, .12);
}

::-moz-selection{
  background: rgba(18, 18, 18, .12);
}

/* =========================================
   FOCUS STYLES
   ========================================= */
:focus{
  outline: none;
}

:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* =========================================
   SCROLLBAR (subtle)
   ========================================= */
::-webkit-scrollbar{
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track{
  background: var(--bg);
}

::-webkit-scrollbar-thumb{
  background: rgba(18, 18, 18, .2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover{
  background: rgba(18, 18, 18, .35);
}

/* =========================================
   RESPONSIVE UTILITIES
   ========================================= */
@media (max-width: 700px){
  :root{
    --text-3xl: 28px;
    --text-4xl: 34px;
  }
  
  .site-main{
    padding: 22px 0 var(--space-6);
  }
}
