/* ===== Graphite + Lime ===== */
:root{
  --bg:#C5C7BC;
  --nav:#B6AE9F;
  --card:#E7E7D8;
  --ink:#374151;
  --muted:#475569;
  --accent:#FBF3D1;
  --radius:14px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);
  font-family:Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;line-height:1.7;letter-spacing:.2px;
}

div.topbar {
  text-align: center;
  background-color: var(--col-second);
  overflow: hidden;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* NAV */
.topnav{
  position:sticky;top:0;z-index:60;background:var(--nav);display:flex;justify-content:center;gap:.8rem;
  padding:0; margin: 0;
  width: 100%; border-bottom:1px solid rgba(255,255,255,.06)
}
.topnav a{
  color:var(--muted);text-decoration:none;padding:.7rem 1.15rem;font-size:19px;border-radius:999px;
  transition:background .15s,color .15s
}
.topnav a:hover,.topnav a:focus-visible{background:rgba(155,225,93,.12);color:var(--accent)}
.topnav a.active{background:var(--accent);color:#0f1113;font-weight:700}

/* CONTENT */
.content{
  width:min(1400px,95%);
  margin:2.6rem auto;
  background:var(--card);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  padding:clamp(2rem,3vw,3rem);
  box-shadow:0 18px 50px rgba(0,0,0,.35);
}



h1{margin:0 0 .6rem;font-size:clamp(30px,3.4vw,46px);line-height:1.2;font-weight:800}
h2{margin:1.8rem 0 .5rem;font-size:clamp(22px,2.2vw,28px);font-weight:700}
h3{margin:1.1rem 0 .35rem}
p,li{font-size:18px}
a{color:var(--ink)} a:hover{text-decoration:underline}

/* FOOTER */
.footer{
  margin-top:auto;background:var(--nav);color:var(--muted);display:flex;align-items:center;justify-content:center;
  padding:1rem 0;border-top:1px solid rgba(255,255,255,.06)
}
img{max-width:100%;height:auto}.footerlogo{max-width:120px}
.Site{display:flex;min-height:100vh;flex-direction:column}.Site-content{flex:1}
@media (max-width:640px){.topnav{flex-wrap:wrap}.topnav a{font-size:17px;padding:.6rem .9rem}}

/* Responsive portrait image */
img[alt="Portret"] {
  display: block;
  max-width: 320px;       /* upper size limit for large screens */
  width: 40vw;            /* scales with viewport width */
  height: auto;
  margin: 0 auto;         /* center horizontally */
  border-radius: 12px;    /* optional, matches site aesthetic */
}

/* Small theme switcher (optional) */
.theme-switcher{ display:flex; gap:.4rem; margin-left:auto; }
.theme-switcher button{ padding:.3rem .6rem; border-radius:999px; cursor:pointer; background:transparent;
  border:1px solid rgba(255,255,255,.3); color:inherit; opacity:.85; }
.theme-switcher button:hover{ opacity:1 }
.theme-switcher .is-active{ outline:2px solid currentColor; opacity:1 }
