/* Zen-style minimal academic site */

@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;500&display=swap');

:root {
  --accent: #2d8a4e;
  --accent-bg: rgba(45, 138, 78, 0.12);
  --text: #333;
  --light: #888;
  --lighter: #aaa;
}

body {
  font-family: "Inconsolata", "Monaco", "Consolas", "Courier New", monospace;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.95rem;
}

h1, h2, h3 {
  font-weight: 500;
  margin-top: 2.5rem;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: none;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

p {
  margin: 0.8rem 0;
}

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

a:hover {
  text-decoration: underline;
}

/* Header links with background */
.links {
  margin: 0.3rem 0 1.5rem 0;
  font-size: 0.9rem;
}

.links a {
  background-color: var(--accent-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.1rem;
}

.links a:hover {
  background-color: var(--accent);
  color: white;
  text-decoration: none;
}

/* Header with photo */
.header-photo {
  float: left;
  margin-right: 1.8rem;
  margin-bottom: 0.5rem;
}

.header-photo img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.header-photo img:hover {
  filter: grayscale(0%);
}

/* Footer photo */
.footer-photo {
  margin: 1.5rem 0;
}

.footer-photo img {
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.footer-photo img:hover {
  filter: grayscale(0%);
}

/* Selected works */
.work-item {
  margin-bottom: 2rem;
}

.work-item p {
  margin: 0.3rem 0;
}

.work-item p:first-of-type {
  font-weight: 500;
}

.work-item em {
  color: var(--light);
  font-style: normal;
  font-size: 0.9rem;
}

.work-links {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.work-links a {
  background-color: var(--accent-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.work-links a:hover {
  background-color: var(--accent);
  color: white;
  text-decoration: none;
}

/* Clear floats */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* Quarto overrides */
.quarto-title {
  display: none;
}

#quarto-content {
  padding-top: 0;
}

.content {
  margin-top: 0;
}

main.content {
  max-width: 800px;
  margin: 0 auto;
}

.page-columns {
  display: block;
}
