:root {
  --bg: #FBFBF7;
  --surface: #FFFFFF;
  --tint: #EEF5E8;
  --ink: #2B2C2E;
  --muted: #5E625F;
  --rule: #DAD9CD;
  --forest: #00704A;
  --meadow: #2E9B6B;
  --leaf: #8DC35B;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest); text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--meadow); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
h1, h2 { text-wrap: balance; }

.stripe { height: 6px; background: linear-gradient(90deg, var(--forest) 0 33.3%, var(--meadow) 33.3% 66.6%, var(--leaf) 66.6% 100%); }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.bar {
  max-width: 1000px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--sans); font-size: 0.9rem;
}
.bar .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.bar .brand img { height: 68px; width: auto; display: block; }
.bar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.bar nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.bar nav a:hover { color: var(--forest); }
.bar nav a[aria-current="page"] { color: var(--forest); box-shadow: inset 0 -2px 0 var(--leaf); }

main { max-width: 1000px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Home: name and photo */
.hero {
  display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center;
  padding: 64px 0 48px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.12; margin: 0 0 10px; font-weight: 700; letter-spacing: -.01em; }
.title-line { font-size: 1.3rem; color: var(--forest); margin: 0 0 18px; }
.role { font-size: 1.12rem; color: var(--muted); margin: 0 0 22px; }
.quicklinks { margin: 0; font-size: 1.06rem; }
.quicklinks a + a::before {
  content: "·"; display: inline-block; color: var(--muted); margin: 0 12px; text-decoration: none;
}
.headshot { position: relative; }
.headshot img {
  position: relative; display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 14px; box-shadow: 0 10px 30px rgba(43,44,46,.12);
}

/* Home: introduction with logo column */
.intro {
  background: linear-gradient(180deg, var(--bg) 0, var(--surface) 96px);
  padding-block: 40px 72px; width: 100%;
}
.intro-inner {
  max-width: 1000px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start;
}
.side-logo { position: sticky; top: 130px; padding-top: 6px; }
.side-logo img { width: 100%; height: auto; display: block; }
.intro .prose { min-width: 0; max-width: 720px; }

.prose { max-width: 690px; }
.prose p { margin: 0 0 1.1em; }
.lede { font-size: 1.32rem; line-height: 1.55; }

.readmore { margin-top: 2.2em; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); scroll-margin-top: 120px; }
.readmore summary {
  list-style: none; cursor: pointer; padding: 18px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: 1.2rem; font-weight: 700; color: var(--forest);
}
.readmore summary::-webkit-details-marker { display: none; }
.readmore summary::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s;
}
.readmore[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.readmore summary:hover span { color: var(--meadow); }
.readmore-body { padding: 4px 0 24px; }
.readmore-body .lede { font-size: 1.12rem; line-height: 1.7; }

/* Inner pages */
.pagehead { padding: 56px 0 8px; }
.pagehead h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.12; margin: 0 0 10px; font-weight: 700; letter-spacing: -.01em; }
.pagehead .sub { color: var(--muted); margin: 0; max-width: 690px; }
.pagehead + section { padding-top: 36px; }

section { padding: 60px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: 1.45rem; font-weight: 700; margin: 0 0 22px; color: var(--ink); }

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { padding: 18px 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.65; }
.pubs li:first-child { border-top: 0; padding-top: 0; }
.pubs .me { font-weight: 700; }
.pubs .venue { font-style: italic; }
.pnote { font-family: var(--sans); font-size: .82rem; color: var(--meadow); }
.pubs .actions { margin-top: 6px; font-size: .95rem; }
.pubs .actions a { margin-right: 16px; }
.note { font-family: var(--sans); font-size: .9rem; color: var(--muted); background: var(--tint); border-radius: 8px; padding: 14px 18px; }

/* Public writing */
.pwlist { list-style: none; margin: 0; padding: 0; }
.pwlist li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--rule); }
.pwlist li:first-child { border-top: 0; padding-top: 0; }
.outlet {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden;
}
.outlet img { width: 32px; height: 32px; object-fit: contain; display: block; }
.pw { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oname { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted); }
.pw a { font-size: 1.05rem; }
.yr { font-family: var(--sans); font-size: .82rem; color: var(--muted); }

/* Contact */
.contactcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 720px; }
.ccard {
  display: block; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--meadow);
  border-radius: 10px; padding: 26px; text-decoration: none; color: var(--ink);
}
.ccard:hover { border-color: var(--meadow); color: var(--ink); }
.ccard .k { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.ccard .v { font-size: 1.1rem; color: var(--forest); word-break: break-word; }

/* Footer */
footer { margin-top: auto; border-top: 1px solid var(--rule); }
.foot {
  max-width: 1000px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--sans); font-size: .85rem; color: var(--muted);
}
.foot img { height: 36px; width: auto; display: block; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr 260px; gap: 40px; }
  .intro-inner { grid-template-columns: 1fr; gap: 28px; }
  .side-logo { position: static; max-width: 220px; }
}
@media (max-width: 680px) {
  .bar { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 8px; }
  .bar .brand img { height: 54px; }
  header.site { position: static; }
  .hero h1 { font-size: 2.1rem; }
  .title-line { font-size: 1.15rem; }
  .role { font-size: 1.02rem; }
  .quicklinks a + a::before { margin: 0 8px; }
  .lede { font-size: 1.18rem; }
  .side-logo { max-width: 180px; }
  .pwlist li { gap: 14px; }
  .outlet { flex-basis: 44px; width: 44px; height: 44px; }
  .outlet img { width: 28px; height: 28px; }
  .pubs li { font-size: .97rem; }
  .bar nav { gap: 6px 18px; font-size: .9rem; flex-wrap: wrap; width: 100%; padding-bottom: 4px; }
  .bar nav a { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 44px; }
  .headshot { order: -1; max-width: 260px; }
  .pagehead { padding-top: 36px; }
  .intro { padding-block: 24px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .readmore summary::after { transition: none; }
}
