/*
  styles.css — simple, readable personal site
*/

:root {
  --bg: #faf8f5;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --text-light: #888;
  --accent: #4a6741;
  --accent-hover: #3d5536;
  --rule: rgba(0, 0, 0, 0.07);
  --max-width: 36rem;
}

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

body {
  margin: 0;
  padding: 1.5rem;
  min-height: 100vh;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}

/* --- Header --- */
.intro {
  margin-bottom: 2.25rem;
}

.intro h1 {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* --- Opening lines --- */
.about {
  margin-bottom: 3rem;
}

.lede {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

.lede-sub {
  margin: 0 0 2rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Highlight list: clean left rule, no bullet dots --- */
.highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.highlights li {
  margin: 0;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 2px solid rgba(74, 103, 65, 0.22);
  line-height: 1.65;
}

.highlights strong {
  font-weight: 600;
  color: var(--text);
}

/* --- Section headings --- */
.section-title {
  font-family: "Lora", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin: 0 0 1.25rem;
}

/* --- Papers --- */
.papers {
  margin-bottom: 3rem;
}

.paper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.paper-list li {
  margin: 0;
  padding: 0;
}

.paper-title {
  display: block;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.paper-venue {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.paper-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid rgba(74, 103, 65, 0.35);
  padding-bottom: 0.05rem;
}

.paper-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* --- Links --- */
a {
  color: var(--accent);
  transition: color 0.15s ease;
}

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

/* --- Footer --- */
.contact {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.9375rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-muted);
}

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

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  opacity: 0.85;
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .page {
    padding: 1.5rem 0 3.5rem;
  }

  .lede {
    font-size: 1.0625rem;
  }
}
