:root {
  --bg: #fbfbf9;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --rule: #c4c4c0;
  --accent: #0b3d91;
  --serif: "Computer Modern Serif", "Source Serif 4", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --mono: "Computer Modern Typewriter", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 1.5px;
}

.page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.25rem 1.2rem 4rem;
}

@media (min-width: 640px) {
  html {
    font-size: 19px;
  }

  .page {
    padding: 3.25rem 1.5rem 5rem;
  }
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

header.site {
  margin-bottom: 0;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--rule);
}

/* Photo sits left of the name; text column keeps the original rhythm. */
.site-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.site-headings {
  min-width: 0;
}

.avatar {
  flex: none;
  display: block;
  width: 4.6rem;
  height: 4.6rem;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: #fff;
}

.avatar[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .avatar {
    width: 3.6rem;
    height: 3.6rem;
  }
}

.crumb {
  margin: 0 0 0.25rem;
  color: var(--muted);
}

.crumb a {
  color: inherit;
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.name {
  margin: 0 0 0.65rem;
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.thesis {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
}

.identity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.identity-links a {
  text-decoration: none;
}

.identity-links a:hover {
  text-decoration: underline;
}

/* Equal space on both sides of every hairline rule. */
section {
  margin: 0;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
}

.page > section:first-of-type {
  border-top: 0;
}

.page > section:last-of-type {
  padding-bottom: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.7rem;
}

.section-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

/* Baseline-aligned in .section-head, so a default <p> margin would shove the whole row down. */
.stamp {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.prose {
  margin: 0;
}

.prose + .prose {
  margin-top: 0.7rem;
}

.recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent li {
  display: grid;
  grid-template-columns: 6.6rem 4.6rem minmax(0, 1fr) auto;
  gap: 0.45rem 0.7rem;
  align-items: baseline;
  padding: 0.28rem 0;
  font-size: 0.92rem;
}

.recent .meta {
  color: var(--muted);
}

.recent .title {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.recent .title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.recent .arrow {
  color: var(--muted);
  text-decoration: none;
}

.recent .arrow:hover {
  color: var(--accent);
}

@media (max-width: 560px) {
  .recent li {
    grid-template-columns: 6.4rem 4.4rem minmax(0, 1fr);
  }

  .recent .arrow {
    display: none;
  }
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.4rem;
}

[data-filter-venture],
[data-filter-type] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-label {
  color: var(--muted);
  margin-right: 0.25rem;
}

.chip {
  appearance: none;
  margin: 0;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.feed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}

.feed li:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.feed-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
}

.feed-title {
  color: inherit;
  text-decoration: none;
}

.feed-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.feed-blurb {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.empty {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.stub {
  margin: 0;
}

.muted {
  color: var(--muted);
}
