@charset "UTF-8";
/* =============================================
   Kavinda Athapaththu — Academic Portfolio
   ============================================= */
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400&display=swap");
/* ── Variables ── */
:root {
  --bg: #f9f8f6;
  --surface: #ffffff;
  --text: #1a1a18;
  --text-muted: #6b6b65;
  --text-light: #9a9a94;
  --accent: #c0392b;
  --accent-soft: #f5ede9;
  --border: #e8e6e0;
  --sidebar-w: 300px;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 4px;
  --transition: 0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ── Layout ── */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 3rem 2rem 2rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
  z-index: 100;
  overflow-y: auto;
}

.sidebar-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 3px solid var(--border);
  filter: grayscale(10%);
}

.sidebar-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
  font-weight: 400;
}

.sidebar-degree {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

/* Nav */
.sidebar-nav {
  list-style: none;
  margin-bottom: 2rem;
}

.sidebar-nav li {
  margin-bottom: 0.15rem;
}

.sidebar-nav a {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.6rem;
  margin-left: -0.6rem;
  transition: color var(--transition), border-color var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--text);
  border-left-color: var(--accent);
  opacity: 1;
}
.sidebar-nav a.active {
  color: var(--accent);
  font-weight: 500;
}

/* Social links */
.sidebar-social {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-social a {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 1;
}
.sidebar-social a:hover {
  color: var(--text);
}

.sidebar-social svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.sidebar-copy {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 1.25rem;
}

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.page-content {
  max-width: 900px;
  width: 100%;
  padding: 4rem 3rem 5rem;
}

/* ── Typography ── */
h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

strong {
  font-weight: 500;
}

/* ── Bio Section ── */
.bio-intro {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.bio-interests {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 400;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--transition);
  margin-right: 0.5rem;
  margin-top: 0.75rem;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
  background: var(--accent-soft);
}

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

/* ── Publications ── */
.pub-list {
  list-style: none;
}

.pub-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.pub-title a {
  color: var(--text);
}
.pub-title a:hover {
  color: var(--accent);
  opacity: 1;
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.pub-authors .me {
  font-weight: 500;
  color: var(--text);
}

.pub-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.pub-link {
  font-size: 0.72rem;
  font-weight: 400;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}
.pub-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
  background: var(--accent-soft);
}

.pub-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--accent);
  color: white;
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── Projects ── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(192, 57, 43, 0.07);
}

.project-name {
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.project-links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* ── Contact ── */
.contact-info {
  list-style: none;
  margin-top: 1rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-label {
  font-weight: 500;
  color: var(--text);
  min-width: 100px;
  flex-shrink: 0;
}

/* ── CV page ── */
.cv-section {
  margin-bottom: 2.5rem;
}

.cv-entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
}

.cv-year {
  color: var(--text-light);
  padding-top: 0.1rem;
}

.cv-institution {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }
  .sidebar-photo {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
  }
  .sidebar-info {
    flex: 1;
  }
  .sidebar-degree {
    margin-bottom: 0;
  }
  .sidebar-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    margin-bottom: 0;
  }
  .sidebar-nav a {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.1rem;
  }
  .sidebar-nav a:hover, .sidebar-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
  .sidebar-social {
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 0;
  }
  .sidebar-copy {
    display: none;
  }
  .site-wrapper {
    flex-direction: column;
  }
  .main-content {
    margin-left: 0;
  }
  .page-content {
    padding: 2rem 1.25rem;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=style.css.map */