/* Sarah A. LaMere — professional page
   Edit this file and re-sync; no HTML rebuild needed for pure style changes. */

:root {
  --paper:    #f8f8f5;   /* background            */
  --ink:      #16243b;   /* navy: name, headings  */
  --body:     #2b3745;   /* long-form text        */
  --muted:    #5c6672;   /* meta, dates, notes    */
  --gold:     #b98a34;   /* hairlines, accents    */
  --gold-ink: #8a5e1e;   /* link hover (contrast) */
  --rule:     #e4e3dc;   /* light separators      */
  --measure:  40rem;     /* prose line length     */
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* nav */
nav.mainnav { border-bottom: 1px solid #e7ded2; margin-bottom: 1.5rem; }
nav.mainnav .wrap { display: flex; gap: 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
    flex-wrap: wrap; justify-content: space-evenly;}
nav.mainnav a { color: var(--accent); text-decoration: none; font-weight: 600; }
nav.mainnav a:hover, nav.mainnav a:focus { text-decoration: underline; }

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 2rem) 3rem;
}

/* ---- serif display for identity + section heads ---- */
.name, h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino,
               "Book Antiqua", Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
}

/* ---- hero / identity ---- */
.hero {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.hero img {
  flex: 0 0 auto;
  width: 150px;
  height: 190px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

.name {
  margin: 0 0 .3rem;
  font-size: clamp(1.9rem, 5vw, 2.55rem);
  letter-spacing: -0.01em;
}

.title {
  margin: 0 0 .15rem;
  font-size: 1.075rem;
  color: var(--body);
}

.affil {
  margin: 0;
  color: var(--muted);
  font-size: .975rem;
}

.links {
  margin: .7rem 0 0;
  font-size: .95rem;
  color: var(--muted);
}
.links a { margin-right: .25rem; }
.links .sep { margin: 0 .35rem; color: var(--rule); }

/* ---- links ---- */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--gold-ink); text-decoration-color: var(--gold-ink); }
a:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- sections ---- */
section { margin-top: 2.5rem; }

h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--gold);
}

section p { max-width: var(--measure); }

/* ---- education & training ---- */
.record {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
}
.record:last-child { border-bottom: 0; }
.record .what   { font-weight: 600; color: var(--ink); }
.record .where  { color: var(--body); }
.record .when   { color: var(--muted); font-size: .95rem; margin-left: auto; }

/* ---- research & funding ---- */
.grant {
  padding: .85rem 0 .85rem 1rem;
  border-left: 2px solid var(--gold);
  margin-bottom: 1.1rem;
}
.grant:last-child { margin-bottom: 0; }
.grant .g-title { color: var(--ink); font-weight: 600; }
.grant .g-meta  { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.grant .g-meta a { color: var(--muted); }

/* ---- publications ---- */
.pubs { margin: 0; padding-left: 1.6rem; }
.pubs li {
  margin-bottom: 1rem;
  padding-left: .25rem;
  line-height: 1.5;
}
.pubs .p-title { color: var(--ink); }
.pubs .venue   { font-style: italic; color: var(--muted); }
.pubs strong   { color: var(--ink); }
.pubs .p-links { font-size: .9rem; }

/* ---- footer ---- */
footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}
footer p { margin: .25rem 0; }

/* ---- stack the hero on narrow screens ---- */
@media (max-width: 34rem) {
  .hero { flex-direction: column; align-items: flex-start; }
  .record .when { margin-left: 0; width: 100%; }
}

/* ---- media & organizations ---- */
.medialist, .orglist { list-style: none; margin: 0; padding: 0; }
.medialist li, .orglist li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
}
.medialist li:last-child, .orglist li:last-child { border-bottom: 0; }
.m-title, .o-role { display: block; color: var(--ink); font-weight: 600; }
.m-meta, .o-org  { display: block; color: var(--muted); font-size: .95rem; margin-top: .1rem; }
.m-note, .o-note { display: block; margin-top: .3rem; max-width: var(--measure); }
.m-links, .o-links { display: block; margin-top: .3rem; font-size: .9rem; }

/* ---- captioned photo ---- */
.photo { margin: 1.75rem 0 0; }
.photo img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.photo figcaption {
  margin-top: .5rem;
  max-width: 22rem;
  font-size: .9rem;
  font-style: italic;
  color: var(--muted);
}

/* ---- print: faculty print these ---- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
  .grant { border-left-color: #999; }
  h2 { border-bottom-color: #999; }
}
