/* ============================================
   ACADEMIC PERSONAL WEBSITE — style.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=DM+Mono:wght@400;500&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink:         #1a1a18;
  --ink-muted:   #6b6b66;
  --ink-faint:   #a8a8a2;
  --paper:       #faf9f6;
  --paper-warm:  #f2f0ea;
  --accent:      #3b4a6b;
  --accent-hover:#2a3756;
  --rule:        #dddbd4;
  --serif:       'EB Garamond', Georgia, serif;
  --mono:        'DM Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}

/* ---- NAVIGATION ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-name {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* ---- LAYOUT ---- */
.container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ============================================
   INDEX PAGE
   ============================================ */

.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

/* ---- PHOTO ---- */
.photo-wrap {
  flex-shrink: 0;
}

.photo {
  width: 200px;
  height: 200px;
  border-radius: 200%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid var(--rule);
}

/* ---- HERO TEXT ---- */
.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.hero-text .position {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.hero-text p {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 480px;
}

/* ---- CONTACT LINKS ---- */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.contact-link:hover {
  color: var(--accent-hover);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- HOME SECTIONS ---- */
.home-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.home-section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

/* ---- NEWS ---- */
.news-list {
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 1.5rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}

.news-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: 0.1rem;
  letter-spacing: 0.03em;
}

/* ============================================
   CV PAGE
   ============================================ */

.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 400;
}

.page-header p {
  color: var(--ink-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
  max-width: 500px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.download-link:hover {
  color: var(--accent-hover);
}

.download-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- CV GRID ---- */
.cv-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 2rem;
}

.cv-section:last-of-type {
  border-bottom: none;
}

.cv-section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.15rem;
}

/* ---- CV ENTRIES ---- */
.cv-entry {
  margin-bottom: 1.6rem;
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.cv-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.cv-entry-title {
  font-size: 1rem;
  font-weight: 500;
}

.cv-entry-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.cv-entry-sub {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.cv-entry-detail {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* ---- PUBLICATIONS (CV) ---- */
.pub-entry {
  margin-bottom: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}

.pub-entry:last-child {
  margin-bottom: 0;
}

.pub-title {
  font-size: 1rem;
}

.pub-authors {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: italic;
}

.pub-venue {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.pub-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.pub-link:hover {
  text-decoration: underline;
}

/* ---- SKILLS (CV) ---- */
.skill-group {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  display: inline-block;
  width: 90px;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */

.project-list {
  padding: 2.5rem 0;
}

.project {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.project:first-child {
  padding-top: 0;
}

.project:last-child {
  border-bottom: none;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.project-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}

.status-active {
  background: #e8f0e8;
  color: #3a6b3a;
}

.status-ongoing {
  background: #fef3c7;
  color: #92400e;
}

.status-complete {
  background: var(--paper-warm);
  color: var(--ink-faint);
}

.project-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.project h2 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  padding: 1px 7px;
  border-radius: 2px;
  letter-spacing: 0.03em;
}

.project p {
  color: var(--ink-muted);
  font-size: 0.97rem;
}

.project-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.9rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.project-link:hover {
  color: var(--accent-hover);
}

.project-link svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .nav-name        { display: none; }
  .hero            { padding: 3rem 0 2.5rem; }
  .hero-inner      { flex-direction: column; gap: 1.5rem; }
  .hero-text h1    { font-size: 1.9rem; }
  .page-header     { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .cv-section      { grid-template-columns: 1fr; }
  .cv-section-label{ margin-bottom: 0.8rem; }
}
