/* ============================================================
   CUSTOM STYLES — laufuentes.github.io
   Pastel professional aesthetic
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;600&family=DM+Sans:wght@300;400;500&display=swap');
/* --- CSS Variables --- */
:root {
  --color-bg:          #faf9f7;
  --color-surface:     #decbe0;
  --color-border:      #e8e0d8;
  --color-accent:      #3d0356;   
  --color-accent-soft: #ece5f1;
  --color-sage:        #8a9e8c;   /* sage green */
  --color-sage-soft:   #eaf0ea;
  --color-text:        #2e2a26;
  --color-text-muted:  #41364d;
  --color-heading:     #000000;
  --font-display:      'Noto Sans Georgian';
  --font-body:         'DM Sans';
  --radius:            10px;
  --shadow:            0 2px 16px rgba(100, 80, 70, 0.08);
  --shadow-hover:      0 6px 28px rgba(100, 80, 70, 0.15);
  --transition:        all 0.25s ease;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.75;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.page__title,
.archive__item-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: 0.01em;
}

h1, .page__title { font-size: 2.4rem; }
h2               { font-size: 1.8rem; }
h3               { font-size: 1.4rem; }

p, li {
  font-family: var(--font-body);
  font-weight: 300;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--color-sage);
}

/* --- Masthead background --- */
.masthead {
  background: var(--color-surface) !important;
  border-bottom: 1px solid var(--color-bg) !important;
}

.greedy-nav {
  background: var(--color-surface) !important;
}

.greedy-nav a,
.masthead__menu-item a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text) !important;
  transition: var(--transition);
}
.greedy-nav a:hover,
.masthead__menu-item a:hover {
  color: var(--color-accent) !important;
}

/* Dropdown menu */
.dropdown-menu {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dropdown-menu li a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text) !important;
  padding: 10px 20px;
}
.dropdown-menu li a:hover {
  background: var(--color-accent-soft) !important;
  color: var(--color-accent) !important;
}

/* --- Sidebar / Author Profile --- */
.sidebar {
  background: transparent;
}
.author__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-heading);
}
.author__bio {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.author__urls a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.author__urls a:hover {
  color: var(--color-accent);
}

/* --- Page content --- */
.page__content {
  font-family: var(--font-body);
}

/* --- Archive items as styled boxes --- */
.archive__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.archive__item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-left-color: var(--color-sage);
}

.archive__item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  margin-top: 0;
}
.archive__item-title a {
  color: var(--color-heading);
}
.archive__item-title a:hover {
  color: var(--color-accent);
}

/* Date & venue shown as a subtle tag row */
.archive__item-excerpt {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

/* Type badge (e.g. "Talk", "Poster") */
.archive__item::before {
  content: attr(data-type);
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.3rem;
}

/* Section headings (h2 inside archive pages) */
.archive h2.archive__subtitle,
.page__content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-heading);
  border-bottom: 2px solid var(--color-accent-soft);
  padding-bottom: 0.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

/* --- Publications specific --- */
.list__item .archive__item {
  border-left-color: var(--color-sage);
}
.list__item .archive__item:hover {
  border-left-color: var(--color-accent);
}

/* --- Publication box details --- */
.pub__authors {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0.2rem 0;
  font-style: normal;
}
.pub__venue {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
  margin: 0.2rem 0;
}

/* --- Buttons & links in content --- */
.btn,
.page__content a.btn {
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.4em 1em;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  transition: var(--transition);
}
.btn:hover {
  background: var(--color-sage);
  color: #fff;
}

/* --- Footer --- */
.page__footer {
  background: #f0ebe6;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.82rem;
}
.page__footer a {
  color: var(--color-text-muted);
}
.page__footer a:hover {
  color: var(--color-accent);
}

/* --- Smooth fade-in on page load --- */
.page__content,
.archive,
.sidebar {
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  h1, .page__title { font-size: 1.8rem; }
  .archive__item   { padding: 1rem 1.1rem; }
}