/* ================================================
   Custom design — alessandrogiacardi.github.io
   Nav colour is handled in _sass/minimal-mistakes/skins/_mint.scss
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* --- Base --- */
body {
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

/* --- Masthead title --- */
.masthead__title a,
.site-title {
  font-family: 'Lora', serif !important;
  font-size: 1.05em !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
}

/* Nav link styling only — no background override (done in SCSS) */
.greedy-nav a {
  color: #444 !important;
  font-size: 0.87em !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}
.greedy-nav a:hover { color: #2c5f3e !important; }

/* ─────────────────────────────────────────
   SIDEBAR
   ───────────────────────────────────────── */
.author__avatar img {
  border-radius: 50% !important;
  width: 190px !important;
  max-width: 190px !important;
  height: 190px !important;        /* ← add this to force equal dimensions */
  object-fit: cover !important;    /* ← crops cleanly to circle */
  border: 3px solid #e0ebe0 !important;
  box-shadow: 0 2px 12px rgba(44,95,62,0.10) !important;
}

.author__name {
  display: none !important;
}

.author__bio {
  font-size: 0.95em !important;
  color: #555 !important;
  font-style: italic !important;
  line-height: 1.5 !important;
}

.author__employer,
.author__location,
.author__pronouns {
  font-size: 0.9em !important;
  color: #666 !important;
}

.author__urls-wrapper li { line-height: 2.1 !important; }

.author__urls a {
  font-size: 0.88em !important;
  color: #333 !important;
  text-decoration: none !important;
  border: none !important;
}
.author__urls a:hover { color: #2c5f3e !important; }

/* DO NOT override .ai or .fa here — let academicons/fontawesome load naturally */

.author__urls-wrapper .btn {
  font-size: 0.84em !important;
  background: #f4f9f5 !important;
  color: #2c5f3e !important;
  border: 1px solid #c8ddc8 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

/* Force light mode regardless of OS setting */
@media (prefers-color-scheme: dark) {
  :root {
    --global-bg-color: #ffffff !important;
    --global-text-color: #1a1a1a !important;
    --global-masthead-link-color: #444444 !important;
    --global-link-color: #2c5f3e !important;
  }
  body, .masthead, .greedy-nav, .masthead__inner-wrap {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
  }
}
/* ─────────────────────────────────────────
   MAIN CONTENT
   ───────────────────────────────────────── */
.page__content {
  font-size: 0.97em;
  color: #222;
  line-height: 1.8;
}

h1.page__title {
  font-family: 'Lora', serif !important;
  font-size: 1.5em !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0.4em;
  margin-bottom: 1.2em;
}

.page__content h2 {
  font-size: 0.72em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: #7aaa8a !important;
  margin-top: 2.5em !important;
  margin-bottom: 1em !important;
  border-bottom: 1px solid #eef4ee !important;
  padding-bottom: 0.4em !important;
}

a { color: #2c5f3e; text-decoration: none; transition: color 0.15s; }
a:hover { color: #4a7c59; }

/* ─────────────────────────────────────────
   RESEARCH PAPER CARDS
   ───────────────────────────────────────── */
.paper {
  background: #f9fbf9 !important;
  border: 1px solid #e0ebe0 !important;
  border-left: 3px solid #4a7c59 !important;
  padding: 1em 1.3em !important;
  margin-bottom: 1.1em !important;
  border-radius: 0 5px 5px 0 !important;
  transition: box-shadow 0.2s;
}
.paper:hover { box-shadow: 0 2px 10px rgba(74,124,89,0.10); }
.paper h3 { font-size: 0.97em !important; font-weight: 700 !important; color: #1a1a1a !important; margin: 0 0 0.2em 0 !important; }
.paper .coauthors { color: #555 !important; font-size: 0.87em !important; margin-bottom: 0.25em !important; }
.paper .venue { color: #4a7c59 !important; font-size: 0.84em !important; font-weight: 600 !important; }

.paper details { margin-top: 0.5em; }
.paper details summary {
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4a7c59;
  cursor: pointer;
  list-style: none;
  display: inline-block;
}
.paper details summary::-webkit-details-marker { display: none; }
.paper details summary::before { content: "▸  "; }
.paper details[open] summary::before { content: "▾  "; }
.paper details .abstract-text {
  font-size: 0.87em;
  color: #444;
  line-height: 1.65;
  margin-top: 0.5em;
  padding-left: 0.8em;
  border-left: 2px solid #c8ddc8;
}

.paper .links a {
  display: inline-block !important;
  margin-right: 0.5em !important;
  margin-top: 0.55em !important;
  font-size: 0.76em !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  background: #2c5f3e !important;
  color: #fff !important;
  padding: 3px 11px !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  border: none !important;
  transition: background 0.15s !important;
}
.paper .links a:hover { background: #4a7c59 !important; }
.paper .links a.gray { background: #aaa !important; }
.paper .links a.gray:hover { background: #888 !important; }

.wip { border-left-color: #ccc !important; background: #fafafa !important; }
.wip .venue { color: #aaa !important; }

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.page__footer {
  background: #f8fbf8 !important;
  border-top: 1px solid #e0ebe0 !important;
  color: #bbb !important;
  font-size: 0.75em !important;
}
.page__footer a { color: #bbb !important; border: none !important; }
hr { border: none; border-top: 1px solid #eef4ee; margin: 2em 0; }
