/* =========================================================
   dejanbekic.com — single stylesheet
   No external dependencies: no remote fonts, no CDN.
   To change the colours, edit only the :root block below.
   ========================================================= */

:root {
  --paper:   #faf8f2;   /* warm white — background */
  --panel:   #f5efe0;   /* ivory — callout blocks */
  --ink:     #2c3e50;   /* midnight blue — headings and name */
  --body:    #3d3d3d;   /* anthracite — body text */
  --muted:   #a89685;   /* taupe — metadata */
  --rule:    #b8b5a8;   /* stone — dividers */
  --accent:  #6b8e7f;   /* forest — links */
  --accent2: #b05d3f;   /* rust — hover and focus */
  --figure:  #7a5c3e;   /* tobacco — figure column */

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--rule); }
a:hover { color: var(--accent2); border-bottom-color: var(--accent2); }
a:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

/* ---------- two-column layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
}

.sidebar { position: sticky; top: 56px; align-self: start; }

.sitename {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.sitename a { color: var(--ink); border: 0; }

nav ul { list-style: none; margin: 0; padding: 0; }
nav li { margin: 0 0 6px; }
nav a {
  border: 0;
  color: var(--body);
  font-size: 16px;
  display: inline-block;
  padding-bottom: 1px;
}
nav a:hover { color: var(--accent2); }
nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.elsewhere {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12.5px;
}
.elsewhere a { display: block; margin-bottom: 5px; color: var(--muted); border: 0; }
.elsewhere a:hover { color: var(--accent2); }

/* ---------- content ---------- */

main { min-width: 0; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: -14px 0 26px;
  max-width: 62ch;
}

p { margin: 0 0 18px; max-width: 62ch; }

.lead { font-size: 18.5px; }

/* ---------- list with a figure column (recurring element) ----------
   The figure on the right is always data: year, ranking, record.
   Every list on the site shares the same grid, so the figures stay
   aligned from one page to the next. */

.entries { list-style: none; margin: 0; padding: 0; }

.entry {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.entry:first-child { border-top: 1px solid var(--rule); }

.entry-title { font-size: 17px; margin: 0 0 4px; font-weight: 600; }
.entry-title a { color: var(--ink); border: 0; }
.entry-title a:hover { color: var(--accent2); }

.entry-desc { margin: 0 0 6px; color: var(--body); max-width: 60ch; }

.entry-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.entry-meta a { color: var(--muted); }

.figure {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--figure);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- images inside an entry ----------
   Put the image as the first element inside the left <div>.
   Recommended file width: 1200px. Format: .webp or .jpg. */

.thumb {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
  margin: 0 0 12px;
  background: #fff;
}

/* Gallery: 2-3 images side by side inside one entry */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  max-width: 520px;
  margin: 0 0 12px;
}
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

/* Link to a downloadable file (PDF, slides, poster) */
a.file::after {
  content: " ↓";
  font-family: var(--mono);
}

/* ---------- independence statement ---------- */

.disclaimer {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent2);
  border-radius: 2px;
  padding: 20px 22px 8px;
  margin: 0 0 40px;
  max-width: 68ch;
}
.disclaimer p { font-size: 14px; line-height: 1.55; max-width: none; }
.disclaimer-head {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 0 0 10px;
}

/* ---------- project cards ----------
   Richer layout for Projects: framed card, image strip, headline figures.
   The .entry list style is kept for Publications and Memory sport. */

.projects { list-style: none; margin: 0; padding: 0; }

.project {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 0 28px;
}

.project-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.project-shots img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: var(--paper);
}

.project-body { padding: 22px 24px 20px; }

.project-year {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.project-year .tag { color: var(--accent2); }

.project-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}

/* headline figures: the three numbers that carry the result */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 16px;
}
.fig-value {
  font-family: var(--mono);
  font-size: 21px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.fig-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.project p { font-size: 16px; margin: 0 0 14px; max-width: 66ch; }

.project-meta {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.project-meta a { color: var(--accent); }

@media (max-width: 760px) {
  .project-body { padding: 18px 16px 16px; }
  .project-title { font-size: 20px; }
  .project-shots img { height: 150px; }
  .fig-value { font-size: 19px; }
}

/* ---------- publication cards ----------
   Same family as the project cards, deliberately lighter: paper background,
   accent spine on the left, tag pills instead of an image strip. */

.pubs { list-style: none; margin: 0; padding: 0; }

.pub {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  padding: 22px 24px 18px;
  margin: 0 0 24px;
}

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.tag-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.tag-thesis { color: var(--accent); }
.tag-field  { color: var(--figure); }
.pub-year {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pub-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}

.pub p { font-size: 15.5px; line-height: 1.6; margin: 0 0 14px; max-width: 68ch; }

.pub-meta {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
}
.pub-meta a { color: var(--accent); }
.pub-request { color: var(--accent2); }

@media (max-width: 760px) {
  .pub { padding: 18px 16px 14px; }
  .pub-title { font-size: 19px; }
  .pub-year { margin-left: 0; width: 100%; }
}

.note {
  font-size: 15px;
  color: var(--body);
  background: var(--panel);
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  margin: 28px 0;
  max-width: 60ch;
}

footer {
  grid-column: 1 / -1;
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer a { color: var(--muted); border: 0; }
footer a:hover { color: var(--accent2); }

/* ---------- mobile ---------- */

@media (max-width: 760px) {
  .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 20px 64px;
  }
  .sidebar { position: static; }
  nav ul { display: flex; flex-wrap: wrap; gap: 18px; }
  nav li { margin: 0; }
  .elsewhere a { display: inline-block; margin-right: 16px; }
  h1 { font-size: 28px; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
  .figure { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

















