/* =========================================================
   PRAVNIK.AI — design system
   Editorial pravniški slog. Cream paper, ink, sober umbra.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter+Tight:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---- Paleta ---- */
  --paper:      #FAF8F3;
  --paper-2:    #F2EEE5;
  --paper-3:    #E8E2D3;
  --surface:    #FFFFFF;

  --ink:        #0A0E1A;
  --ink-2:      #1B2030;
  --ink-3:      #3A4154;
  --ink-4:      #6B7286;
  --ink-5:      #9CA1B0;
  --ink-6:      #C5C8D2;

  --hair:       rgba(10, 14, 26, 0.08);
  --hair-2:     rgba(10, 14, 26, 0.14);
  --hair-3:     rgba(10, 14, 26, 0.22);

  --umbra:      #7A5C2E;     /* sober tobacco akcent */
  --umbra-2:    #5C4520;
  --umbra-soft: #EDE3CB;

  --rust:       #8C3A1F;     /* za "ne" / opozorila */
  --rust-soft:  #F0DDD3;

  --moss:       #3D5240;     /* za uspeh / pozitivno */
  --moss-soft:  #DCE3DA;

  /* ---- Tipografija ---- */
  --serif:      "Fraunces", "Iowan Old Style", "Cambria", Georgia, serif;
  --sans:       "Inter Tight", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* ---- Layout ---- */
  --max:        1200px;
  --max-narrow: 760px;
  --gutter:     32px;
  --radius:     2px;        /* skoraj brez radiusa — pravniški resen videz */
  --radius-md:  4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "kern", "liga";
  text-rendering: optimizeLegibility;
}

/* === Tipografija === */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
}

h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  font-weight: 380;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.018em;
}
h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  font-weight: 450;
  letter-spacing: -0.008em;
  font-variation-settings: "opsz" 36;
}
h4 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  font-variation-settings: "opsz" 24;
}

em, i { font-style: italic; }
strong, b { font-weight: 500; color: var(--ink); }

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

p { line-height: 1.65; color: var(--ink-3); }

::selection { background: var(--umbra); color: var(--paper); }

/* === Layout helpers === */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }

/* === Eyebrow / labels === */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--umbra);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--umbra);
}
.eyebrow.no-line::before { display: none; }

.section-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--hair);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 450;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand .ai {
  font-style: italic;
  color: var(--umbra);
  font-weight: 400;
}
.brand .dot {
  color: var(--umbra);
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.15s;
  font-weight: 450;
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom: 1px solid var(--umbra); padding-bottom: 2px; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair-3);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--surface);
}
.btn-umbra {
  background: var(--umbra);
  color: var(--paper);
  border: 1px solid var(--umbra);
}
.btn-umbra:hover {
  background: var(--umbra-2);
  border-color: var(--umbra-2);
}
.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--hair-2);
  border-radius: 0;
  padding-bottom: 4px;
  letter-spacing: -0.01em;
}
.btn-link:hover {
  border-color: var(--umbra);
  color: var(--umbra);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.15s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* === Sections === */
section { padding: 110px 0; }
section.tight { padding: 80px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}
.section-head .meta-col {
  position: sticky;
  top: 100px;
}
.section-head .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-style: italic;
}

/* === Cards === */
.card {
  background: var(--surface);
  border: 0.5px solid var(--hair);
  padding: 32px;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--hair-2); }
.card.flat {
  background: transparent;
  border-top: 0.5px solid var(--hair-2);
  border-bottom: none;
  border-left: none;
  border-right: none;
  padding: 28px 0;
}

/* === Roman numerals === */
.roman {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--umbra);
  letter-spacing: 0.02em;
  font-variation-settings: "opsz" 36;
}

/* === Footer === */
footer.site-foot {
  background: var(--ink);
  color: var(--ink-5);
  padding: 80px 0 32px;
  margin-top: 0;
}
footer.site-foot .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
footer.site-foot .brand-block .brand {
  color: var(--paper);
  margin-bottom: 16px;
}
footer.site-foot .brand-block p {
  color: var(--ink-5);
  font-size: 14px;
  line-height: 1.65;
  max-width: 320px;
}
footer.site-foot h4 {
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  font-weight: 500;
}
footer.site-foot ul { list-style: none; }
footer.site-foot ul li { padding: 6px 0; font-size: 14px; }
footer.site-foot ul a { color: var(--ink-5); transition: color 0.15s; }
footer.site-foot ul a:hover { color: var(--paper); }
footer.site-foot .foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-5);
  letter-spacing: 0.02em;
}
footer.site-foot .foot-bottom em { font-style: italic; color: var(--ink-5); }

.foot-disclaimer {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-5);
  line-height: 1.65;
  margin-bottom: 48px;
}
.foot-disclaimer strong { color: var(--paper); font-weight: 500; }

/* === Animacije === */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.45s; }
.rise-6 { animation-delay: 0.55s; }

/* === Responsive === */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head .meta-col { position: static; }
  section { padding: 72px 0; }
  footer.site-foot .container { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer.site-foot .brand-block { grid-column: 1 / -1; }
  footer.site-foot .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --gutter: 22px; }
  footer.site-foot .container { grid-template-columns: 1fr; }
}
