/* ==========================================================================
   nemanjatomic.com — neutral minimal
   ========================================================================== */

:root {
  --ink: #1d2129;          /* near-black text */
  --ink-soft: #5a6072;     /* secondary text */
  --accent: #2455a4;       /* single restrained accent */
  --accent-ink: #1c4487;   /* accent for text/hover (darker, AA on white) */
  --line: #e6e8ec;         /* hairline borders */
  --wash: #f6f7f9;         /* subtle background wash */
  --bg: #ffffff;
  --max: 44rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }

a {
  color: var(--accent-ink);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.nav-name {
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
.nav-name:hover { text-decoration: none; color: var(--accent-ink); }

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 600; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3rem;
  text-align: center;
}

.headshot {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
}

.hero-role {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.hero-tagline {
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 550;
  transition: border-color 120ms ease, background 120ms ease;
}
.btn:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
}

.btn-small { padding: 0.35rem 0.9rem; font-size: 0.875rem; }

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.section + .section { border-top: 1px solid var(--line); }

.bio { font-size: 1.1rem; }

.page-intro { padding-top: 4rem; }
.page-intro h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); }
.page-intro p { color: var(--ink-soft); max-width: 34rem; }

/* ---------- resume ---------- */

.resume { scroll-margin-top: 4.5rem; }

.resume-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.resume-header h2 { font-size: 1.8rem; margin: 0; }

.resume-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.entry { margin-bottom: 1.75rem; }
.entry:last-of-type { margin-bottom: 0; }

.entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.entry-head h4 { font-size: 1.05rem; margin: 0; }

.entry-dates {
  color: var(--ink-soft);
  font-size: 0.875rem;
  white-space: nowrap;
}

.entry-org {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0.1rem 0 0.5rem;
}

.entry ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.entry li { margin-bottom: 0.4rem; }

/* skills as quiet chips */
.skills, .tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1rem;
}
.skills li, .tags li {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.875rem;
  color: var(--ink);
}

.languages { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- projects ---------- */

.project { scroll-margin-top: 4.5rem; }

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.project-head h2 { font-size: 1.5rem; margin: 0; }

.badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
}
.badge-active {
  color: #1a6b3c;
  background: #eef7f1;
  border-color: #d3e9dc;
}

.project-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0.35rem 0 1.25rem;
}

.project h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.project > ul:not(.tags) {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}
.project > ul:not(.tags) li { margin-bottom: 0.6rem; }

.project-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- contact / footer ---------- */

.contact h2 { font-size: 1.5rem; }
.contact p { color: var(--ink-soft); }

.contact-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  padding: 0;
  margin: 1.25rem 0 0;
}
.contact-links a { font-weight: 550; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.site-footer p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* ---------- small screens ---------- */

@media (max-width: 480px) {
  .nav { flex-direction: column; align-items: center; gap: 0.4rem; }
  .nav-links { gap: 1rem; }
  .hero { padding-top: 3.5rem; }
  .entry-head, .resume-header, .project-head { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
}

/* ---------- print ---------- */

@media print {
  .site-header, .hero-actions, .btn { display: none; }
  .section { padding: 1rem 0; }
  body { font-size: 11pt; }
}
