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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:   #141410;
  --dark:    #2a2a24;
  --mid:     #6b6858;
  --light:   #c9bfa8;
  --bg:      #f3ede0;
  --white:   #faf7f0;
  --forest:  #1b3a28;
  --leaf:    #2d5c3f;
  --ochre:   #b85c1a;
  --cream:   #ede8d8;
  --max-w:   740px;
}

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

body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ── Header ── */
header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 10;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

.site-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #d8e8d0;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(216, 232, 208, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #d8e8d0;
}

/* ── Hero ── */
.hero {
  background: var(--forest);
  color: #d8e8d0;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ochre);
}

.hero-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216, 232, 208, 0.55);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: #eef5e8;
}

.hero h1 em {
  font-style: italic;
  color: #a8c89a;
}

.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(216, 232, 208, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}

.hero-bio {
  font-size: 1.08rem;
  color: rgba(216, 232, 208, 0.85);
  max-width: 58ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(168, 200, 154, 0.85);
  border: 1px solid rgba(168, 200, 154, 0.3);
  padding: 0.22rem 0.7rem;
  text-transform: uppercase;
  background: rgba(168, 200, 154, 0.07);
}

/* ── Sections ── */
.section {
  padding: 3.8rem 0;
  border-bottom: 1px solid var(--light);
}

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

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 1.8rem;
}

h2 {
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
  color: var(--forest);
}

h3 {
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

p {
  margin-bottom: 1rem;
  color: var(--dark);
}

p:last-child {
  margin-bottom: 0;
}

/* ── Research block ── */
.research-block {
  border-left: 3px solid var(--leaf);
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

/* ── Entry list ── */
.entry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.entry {
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  gap: 0 1.5rem;
  align-items: start;
}

.entry-year {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--mid);
  padding-top: 0.2rem;
}

.entry-body h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  line-height: 1.35;
  color: var(--dark);
}

.entry-body h3 a {
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.entry-body h3 a:hover {
  color: var(--forest);
  border-bottom-color: var(--leaf);
}

.entry-body .entry-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.71rem;
  color: var(--mid);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.entry-body p {
  font-size: 0.96rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.entry-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.entry-link:hover {
  border-bottom-color: var(--ochre);
}

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

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

.cv-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--leaf);
  border-bottom: 1px solid var(--light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.4rem;
}

.cv-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0 1.5rem;
  margin-bottom: 1.3rem;
  align-items: start;
}

.cv-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.71rem;
  color: var(--mid);
  padding-top: 0.15rem;
  line-height: 1.5;
}

.cv-content strong {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--dark);
}

.cv-content p {
  font-size: 0.89rem;
  color: var(--mid);
  margin-bottom: 0;
  line-height: 1.55;
}

.cv-keywords {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.73rem;
  color: var(--mid);
  line-height: 1.9;
}

/* ── Page header (inner pages) ── */
.page-header {
  background: var(--forest);
  color: #d8e8d0;
  padding: 3rem 0 2.5rem;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ochre);
}

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

/* ── Footer ── */
footer {
  margin-top: auto;
  background: var(--forest);
  padding: 2rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .footer-name {
  font-family: 'EB Garamond', serif;
  font-size: 0.92rem;
  color: rgba(216, 232, 208, 0.5);
}

footer .footer-links {
  display: flex;
  gap: 1.6rem;
}

footer .footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: rgba(216, 232, 208, 0.5);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
}

footer .footer-links a:hover {
  color: #d8e8d0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  html { font-size: 16px; }

  .hero h1 { font-size: 2.4rem; }

  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .cv-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
