/* ---------------------------------------------------------------- */
/* 1. Tokens — colors, fonts, sizing. Change values here, not below. */
/* ---------------------------------------------------------------- */

:root {
  --bg: #fbf1c7;
  --fg: #654735;
  --muted: #928374;
  --rule: #eee0b7;
  --link: #45707a;
  --font: SF Mono, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 65ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #282828;
    --fg: #d4be98;
    --muted: #928374;
    --rule: #45403d;
    --link: #7daea3;
  }
}


/* ---------------------------------------------------------------- */
/* 2. Reset — strip browser defaults, nothing opinionated.          */
/* ---------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
}

/* ---------------------------------------------------------------- */
/* 3. Base typography — element defaults, no classes.                */
/* ---------------------------------------------------------------- */

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}

h1,
h2 {
  line-height: 1.25;
}

a {
  color: var(--link);
}

/* ---------------------------------------------------------------- */
/* 4. Layout — page-level structure (.wrap, nav positioning).        */
/* ---------------------------------------------------------------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---------------------------------------------------------------- */
/* 5. Components — nav, post-list, site-photo, footer, etc.          */
/* One block per component, named after the class it styles.        */
/* ---------------------------------------------------------------- */

.site-photo {
  max-width: 100%;
  height: auto;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pub-title {
  margin: 0;
}

.pub-authors {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9em;
}

.pub-abstract {
  margin-top: 0.4rem;
}

.pub-abstract summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9em;
}

.pub-abstract p {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* ---------------------------------------------------------------- */
/* 6. Utilities — small single-purpose overrides, used sparingly.    */
/* ---------------------------------------------------------------- */
