/* Lucas Belmudes — www.lucasbelmudes.com
   Hand-written CSS, no build step.

   A single ~760px column: rules, headings and prose all align on the
   same measure. Maroon is taken from the block M in the header, so the
   page carries one accent colour rather than a default blue.
   Light only, by design. */

:root {
  --bg:      #ffffff;
  --text:    #000000;
  --prose:   #2b2b2b;
  --muted:   #5f6368;
  --rule:    #d9d9d9;
  --link:    #7a0019;   /* University of Minnesota maroon */
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  width: min(760px, 100% - 3rem);
  margin: 0 auto;
}

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0;
}

.site-header img {
  display: block;
  width: auto;
  height: 34px;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { text-decoration: underline; }

.site-nav {
  margin-left: auto;
  font-size: 0.9375rem;
}

.site-nav a { margin-left: 1.5rem; }

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

/* ---------- headings and text ---------- */

h2 {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  font-weight: 700;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

p { margin: 0 0 1rem; }

a { color: var(--link); }
a:hover, a:focus { text-decoration: underline; }

/* Two link treatments: inline links inside prose are dark and
   underlined; links that stand for a destination are bold maroon. */
.intro-text a {
  color: var(--text);
  text-decoration: underline;
}

.items a { font-weight: 700; }

.page-title {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.page-title + section { border-top: 0; padding-top: 1.25rem; }

/* ---------- intro ---------- */

.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 34px;
  padding: 2.5rem 0;
}

.intro-photo {
  flex: 0 0 auto;
  width: 190px;
  margin: 0;
}

.intro-photo img {
  display: block;
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;   /* the source file is already a circular crop */
}

.intro-text {
  flex: 1 1 18rem;
  min-width: 0;
  text-align: justify;
}

.intro-text p { margin-bottom: 1.4rem; }
.intro-text p:last-child { margin-bottom: 0; }

/* ---------- sections ---------- */

section {
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid var(--rule);
}

.items {
  margin: 0;
  padding-left: 1.4rem;
  list-style: square;
}

.items > li { margin-bottom: 2.4rem; }
.items > li:last-child { margin-bottom: 0; }

.items.tight > li { margin-bottom: 0.55rem; }

.byline { margin: 0.6rem 0 0; }

.abstract {
  margin: 0.7rem 0 0;
  color: var(--prose);
  text-align: justify;
  text-indent: 2.25em;
}

.pending {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

/* ---------- seasons banner ---------- */

.seasons {
  margin: 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.seasons img {
  display: block;
  width: 100%;
  height: auto;
}

.tail { height: 3.5rem; }

/* ---------- small screens ---------- */

@media (max-width: 34rem) {
  .wrap { width: min(760px, 100% - 2.5rem); }

  .intro {
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .intro-photo,
  .intro-photo img { width: 165px; }
  .intro-photo img { height: 165px; }

  /* justification leaves ragged gaps in a narrow column */
  .intro-text,
  .abstract { text-align: left; }
  .abstract { text-indent: 0; }

  h2 { font-size: 1.25rem; }
  .site-nav a { margin-left: 1rem; }
}
