/* plain.css — an alternative to style.css for the same markup.
   No cards, no gradients, no shadows, no tinted panels. One column,
   left-aligned, hierarchy from type and space alone. Swap the stylesheet
   link in the <head> of any page to try it. */

:root {
  --ink: #1a1a1a;
  --muted: #595959;
  --rule: #cfcac2;
  --link: #7a2718;
  --paper: #fdfcfa;
  --measure: 36rem;   /* prose */
  --wide: 46rem;      /* lists, tables, publication rows */
  --shell: 54rem;     /* outer container, wide enough for text + sidebar */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
}

a { color: var(--link); text-underline-offset: 0.14em; }
a:hover { color: #000; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

img { max-width: 100%; height: auto; }

p { margin: 0 0 0.9em; max-width: var(--measure); }

h1, h2, h3 { font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: 1.9rem; margin: 0 0 0.2em; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 2.2em 0 0.5em; }
h3 { font-size: 1.02rem; margin: 1.4em 0 0.2em; font-weight: 600; }

em, i, cite { font-style: italic; }

/* ---- shell ---------------------------------------------------------- */

.wrap {
  width: calc(100% - 3rem);
  max-width: var(--shell);
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus {
  left: 0.5rem; top: 0.5rem; position: absolute;
  background: var(--ink); color: var(--paper); padding: 0.4rem 0.7rem;
}

.site-header { padding: 2.2rem 0 0; }
.nav-wrap { display: block; min-height: 0; }

.brand {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.15rem;
}

.site-nav {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 0.9rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--link); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---- heroes: no gradient, no frame --------------------------------- */

.hero, .page-hero {
  background: none;
  border: 0;
  padding: 2.4rem 0 0.6rem;
}

.hero-grid {
  display: block;
  padding: 0;
  gap: 0;
}

.eyebrow {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: var(--measure);
  margin-top: 0.7em;
}

.credentials { color: var(--muted); font-size: 0.92rem; max-width: var(--measure); }

/* Portrait becomes a modest inline figure, not a shadowed frame. */
.portrait-frame {
  border: 0;
  background: none;
  padding: 0;
  box-shadow: none;
  margin: 1.6rem 0 0;
  max-width: 20rem;
}
.portrait-frame figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
  padding: 0.3rem 0 0;
}
.portrait-placeholder { display: none; }

/* ---- sections: rules instead of panels ----------------------------- */

.section { padding: 1.6rem 0 0; }
.section.alt { background: none; border: 0; }
.section-heading { max-width: var(--measure); margin-bottom: 0.6rem; }
.section-heading p { color: var(--muted); font-size: 0.95rem; }

/* The "current work" callout: a rule, not a box with a shadow. */
.current-box {
  border: 0;
  border-left: 2px solid var(--rule);
  background: none;
  box-shadow: none;
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin-bottom: 1.2rem;
}
.current-box h3 { margin-top: 0; }

/* ---- the cards, decarded ------------------------------------------- */

.grid-2, .grid-3, .grid-4 {
  display: block;
  gap: 0;
}

.card {
  border: 0;
  background: none;
  padding: 0;
  min-height: 0;
  margin-bottom: 1.1rem;
  max-width: var(--measure);
}
.card h3 { margin-top: 0; }
.card p { color: var(--ink); font-size: 1rem; }
.card-link { font-weight: 400; }

/* ---- lists --------------------------------------------------------- */

/* Deep links (e.g. talks.html#snowbird) land on a specific entry, so mark it
   and leave a little air above it. */
[id] { scroll-margin-top: 1.5rem; }
li:target {
  border-left: 2px solid var(--link);
  margin-left: -0.9rem;
  padding-left: 0.7rem;
}

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li {
  padding: 0.35rem 0;
  border-bottom: 0;
  max-width: var(--wide);
}
.list-clean ul { margin: 0.3rem 0 0 1.1rem; padding: 0; }

/* ---- two-column pages: text left, notes in a narrow right column --- */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12.5rem;
  gap: 0 2.8rem;
  align-items: start;
}

.sidebar {
  border: 0;
  border-left: 1px solid var(--rule);
  background: none;
  padding: 0.2rem 0 0 1.4rem;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
.sidebar h2 {
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.sidebar h2[style] { margin-top: 1.3rem !important; }
.sidebar ul { margin: 0; padding-left: 1rem; }
.sidebar li { margin-bottom: 0.3rem; max-width: none; }
.sidebar p { max-width: none; }

.topic {
  padding: 0.9rem 0 0;
  border-bottom: 0;
}
.topic h2 { font-size: 1.2rem; }

.aside-figure { margin: 0 0 1.2rem; text-align: left; }
.aside-figure img { max-width: 100%; }
.aside-figure figcaption {
  color: var(--muted); font-size: 0.78rem; font-style: italic; margin-top: 0.3rem;
}

/* ---- buttons become links ------------------------------------------ */

.actions {
  display: block;
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}
.button {
  display: inline;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--link);
  font-weight: 400;
  text-decoration: underline;
  margin-right: 1rem;
}
.button:hover, .button.secondary:hover { background: none; color: #000; }
.button.secondary { background: none; color: var(--link); }

/* ---- publication and CV rows: the information-first part ----------- */

.cv-group { margin-bottom: 1.8rem; }
.cv-group h2 { font-size: 1.2rem; }
.cv-rows { border-top: 1px solid var(--rule); }
.cv-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0 1.2rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eceae6;
  max-width: var(--wide);
}
.cv-row .yr {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.cv-row .what { font-size: 0.97rem; }

.pubs { list-style: none; margin: 0; padding: 0; max-width: var(--wide); }
.pubs li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.4rem;
  border-bottom: 1px solid #eceae6;
  font-size: 0.97rem;
}
.pubs li::before {
  content: counter(list-item) ".";
  position: absolute; left: 0; top: 0.5rem;
  color: var(--muted); font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

/* Descending numbering. The implicit list-item counter is unreliable on a
   reversed <ol> whose markers are hidden, so count down from --total instead.
   --total is set on the <ol> itself and must be (number of items + 1). */
.pubs.countdown { counter-reset: pub var(--total, 1); }
.pubs.countdown li::before {
  counter-increment: pub -1;
  content: counter(pub) ".";
}
.pubs .title { font-weight: 600; }
.pubs .venue { color: var(--muted); font-style: italic; }

/* Journal covers: small, quiet, and out of the way. */
.pub-cover {
  float: right;
  width: 38px;
  margin: 0.2rem 0 0.4rem 1rem;
  opacity: 0.85;
}
.pub-cover img { display: block; width: 100%; border: 1px solid var(--rule); }

pre.bibtex {
  background: none;
  border: 0;
  border-left: 2px solid var(--rule);
  padding: 0.2rem 0 0.2rem 1.1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
  max-width: var(--wide);
}

.kid-tested {
  margin: 1.4rem 0 0;
  max-width: 17rem;
}
.kid-tested img { display: block; width: 100%; }
.kid-tested figcaption { margin-top: 0.45rem; font-size: 0.92rem; }

.epigraph {
  font-style: italic;
  color: var(--muted);
  border: 0;
  padding: 0;
  margin: 0 0 1em;
  max-width: var(--measure);
  font-size: 0.98rem;
}

.contact-block {
  border: 0;
  background: none;
  padding: 0;
}
.contact-block address { font-style: normal; }

.quote { text-align: left; margin: 0; max-width: var(--measure); }
.kicker { color: var(--ink); font-weight: 600; }
.small { font-size: 0.85rem; color: var(--muted); }

/* ---- footer -------------------------------------------------------- */

.site-footer {
  background: none;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 0.9rem 0 3rem;
  font-size: 0.85rem;
}
.footer-grid { display: block; }
.site-footer a { color: var(--link); }
.site-footer p { margin: 0 0 0.2rem; max-width: none; }

/* ---- narrow screens ------------------------------------------------ */

/* Below the point where a 12.5rem column still earns its keep, the notes
   drop under the text with a rule above them instead of beside it. */
@media (max-width: 820px) {
  .content-grid { display: block; }
  .sidebar {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 1.1rem 0 0;
    margin-top: 2.2rem;
    max-width: var(--measure);
  }
  .aside-figure img { max-width: 12rem; }
}

@media (max-width: 700px) {
  body { font-size: 18px; }
  .wrap { width: calc(100% - 2rem); }
  .site-nav a { margin-right: 0.7rem; line-height: 1.9; }
  .cv-row { grid-template-columns: 1fr; gap: 0; }
  .cv-row .yr { padding-top: 0; }
  .pub-cover { width: 32px; }
}

@media print {
  .site-header, .site-footer, .actions, .pub-cover { display: none; }
  body { font-size: 11pt; background: #fff; }
  a { color: #000; text-decoration: none; }
  .wrap { max-width: none; width: auto; }
}
