:root {
  --black: #1a1a1a;
  --bg: #faf9f7;
  --accent: #9d3b32;
  --rule: #e5e2dc;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.7;
}

/* ---- Sticky top nav ---- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.topnav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.topnav-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
}

.topnav-links {
  display: flex;
  gap: 1.5rem;
}

.topnav-links a {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--black);
  text-decoration: none;
}

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

/* ---- Page ---- */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.intro {
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
  margin-bottom: 2rem;
}

.headshot {
  display: block;
  flex-shrink: 0;
  width: 300px;
  height: auto;
  border-radius: 0;
}

.intro-text {
  flex: 1;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.75rem;
  margin: 0 0 1.5rem;
  line-height: 1.15;
}

/* Small-caps section labels */
h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b675f;
  margin: 3rem 0 1.75rem;
  scroll-margin-top: 4.5rem;
}

h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  margin: 2.25rem 0 1rem;
  scroll-margin-top: 4.5rem;
}

p {
  margin: 0 0 1.15rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(157, 59, 50, 0.35);
  text-underline-offset: 2px;
}

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

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3.5rem 0;
}

/* ---- Paper cards ---- */
.paper {
  border-left: 3px solid var(--accent);
  background: #fff;
  border-radius: 0 8px 8px 0;
  padding: 1.35rem 1.5rem;
  margin: 0 0 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.paper > p {
  margin: 0 0 0.6rem;
}

.paper > p:only-child,
.paper > p:last-child {
  margin-bottom: 0;
}

/* Abstract click-reveal toggle (pure CSS checkbox hack) */
.click-reveal {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.content__title {
  padding: 0 0 0 1.1rem;
  margin: 0;
  line-height: 1.2;
  position: relative;
  cursor: pointer;
  user-select: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6b675f;
}

.content__title:before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.check {
  display: none;
}

.content__reveal {
  display: none;
  padding: 0.5rem 0 0 1.1rem;
  margin: 0;
  font-size: 0.95rem;
  color: #3d3a35;
}

.check:checked ~ .content__reveal {
  display: block;
}

.check:checked ~ .content__title:before {
  content: "\2212";
}

/* ---- Footer ---- */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.footer-links {
  font-family: var(--sans);
  font-size: 0.8rem;
  margin: 0;
}

.footer-links span {
  color: #b5b0a6;
  margin: 0 0.4rem;
}

/* ---- Mobile ---- */
@media (max-width: 700px) {
  .page {
    padding: 3rem 1.25rem 4rem;
  }
  .topnav-inner {
    padding: 0.75rem 1.25rem;
  }
  .topnav-links {
    gap: 1rem;
  }
  .intro {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: left;
  }
  .headshot {
    width: 220px;
  }
  h2 {
    font-size: 2.1rem;
    text-align: center;
  }
}
