:root {
  --paper: #ffffff;
  --ink: #1a221d;
  --muted: #5a665e;
  --rule: #dde4de;

  /* Colorado State University green, and the three ribbons of the Energy Institute emblem */
  --green: #1e4d2b;
  --leaf: #8cc63f;
  --sky: #32bbed;
  --gold: #fdb714;
  --link: #0d75a4;

  --text: "Libre Baskerville", Baskerville, "Book Antiqua", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", "Edwardian Script ITC", "Libre Baskerville", Georgia, serif;

  --page: 60rem;
  --gutter: 1.5rem;
  --rail: 8.5rem;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}

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

/* Links are marked by colour alone (3:1 against the text around them); the underline appears on hover and keyboard focus */

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

h1,
h2 {
  color: var(--green);
  line-height: 1.3;
}

h1 {
  margin: 0 0 2rem;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

p {
  margin: 0;
}

.wrap {
  max-width: var(--page);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: -100rem;
  top: 0;
  padding: 0.5rem 1rem;
  background-color: var(--gold);
  color: var(--ink);
}

.skip:focus {
  left: 0;
  z-index: 1;
}

/* Banner */

.banner {
  background-color: var(--green);
  border-bottom: 5px solid var(--gold);
  border-image: linear-gradient(90deg, var(--leaf) 0 33.34%, var(--sky) 33.34% 66.67%, var(--gold) 66.67% 100%) 1;
}

.banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-name {
  color: #ffffff;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.375rem;
  font-size: 0.875rem;
}

.site-nav:only-child {
  margin-left: auto;
}

.site-nav a {
  padding: 0.125rem 0;
  border-bottom: 2px solid transparent;
  color: #ffffff;
  text-decoration: none;
}

.site-name:hover,
.site-name:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  text-decoration: none;
  outline-color: var(--gold);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--leaf);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* Page body */

main {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* Footer: the banner's green and ribbon, mirrored */

.site-footer {
  background-color: var(--green);
  border-top: 5px solid var(--gold);
  border-image: linear-gradient(90deg, var(--leaf) 0 33.34%, var(--sky) 33.34% 66.67%, var(--gold) 66.67% 100%) 1;
  color: #ffffff;
  font-size: 0.875rem;
}

.site-footer .wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  margin-top: 1.25rem;
}

.footer-logos a {
  display: block;
}

.footer-logos img {
  display: block;
  width: auto;
}

/* College lockup: its background is the footer green, and it stays a ram-face width clear of the wordmark */

.footer-college {
  height: 6rem;
}

.footer-csu {
  height: 3rem;
}

.footer-links {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.9;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  outline-color: var(--gold);
}

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8125rem;
}

/* Entries: a left rail (years, issuer mark or group name), the text, and an institution mark */

.entry {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.entry:first-of-type {
  padding-top: 0.5rem;
  border-top: none;
}

.years {
  color: var(--green);
  font-family: var(--script);
  font-size: 2.0625rem;
  line-height: 1.05;
  white-space: nowrap;
}

.years span {
  display: block;
}

.entry-body > * + * {
  margin-top: 0.375rem;
}

.entry-body h2 a {
  color: inherit;
}

.role {
  font-style: italic;
}

.dates,
.issuer {
  color: var(--muted);
  font-size: 0.875rem;
}

.entry-body .detail {
  margin-top: 0.75rem;
}

/* Marks are sized by a box, not by one fixed height, so a round seal and a wide wordmark carry similar weight */

.entry-logo {
  grid-column: 3;
  justify-self: end;
}

.entry-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 12.5rem;
  max-height: 7rem;
}

/* Experience: every employer mark at one height, as wide as that makes it */

.entry-work .entry-logo img {
  height: 4rem;
  max-width: none;
  max-height: none;
}

.rail-logo {
  justify-self: start;
}

.rail-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 8.25rem;
  max-height: 3.75rem;
}

.rail-title {
  padding-top: 0.5rem;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-body .tools {
  margin-top: 1rem;
}

.tools a {
  display: block;
  text-decoration: none;
}

.tools img {
  display: block;
  width: auto;
  height: 2.5rem;
  max-width: 10rem;
  object-fit: contain;
}

.tools-labelled {
  align-items: flex-start;
  gap: 1.5rem 0;
}

.tools-labelled a {
  width: min-content;
  min-width: 6.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.tools-labelled a:hover {
  color: var(--green);
}

.tools-labelled img {
  height: 3rem;
  max-width: 12rem;
  margin: 0 auto 0.5rem;
}

/* Home */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13.5rem;
  column-gap: 3rem;
  align-items: start;
}

.intro h1 {
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
}

.affiliation {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.intro-text .bio {
  margin-top: 1.5rem;
}

.portrait {
  display: block;
  width: 13.5rem;
  border: 1px solid var(--rule);
}

.section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.section h2 {
  margin-bottom: 1rem;
  font-size: 1.375rem;
  font-weight: 400;
}

.focus-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 3rem;
}

.focus-list li {
  padding: 0.375rem 0 0.375rem 1rem;
  border-left: 2px solid var(--leaf);
  break-inside: avoid;
}

.focus-list li + li {
  margin-top: 0.5rem;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Publications and projects */

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.plain-list li:first-child {
  padding-top: 0.5rem;
  border-top: none;
}

.plain-list .status {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Inside an entry the entry's own rule separates groups, so the items go unruled */

.entry .plain-list li {
  padding: 0.5rem 0;
  border-top: none;
  font-style: italic;
}

.entry .plain-list li:first-child {
  padding-top: 0.375rem;
}

@media (max-width: 56rem) {
  .entry-dated .years {
    grid-row: 1 / span 2;
  }

  .entry-dated .entry-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin-bottom: 1rem;
  }

  .entry-dated .entry-body {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 44rem) {
  h1 {
    font-size: 1.875rem;
  }

  .site-nav:only-child {
    margin-left: 0;
  }

  .entry {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.75rem;
  }

  .years {
    font-size: 1.875rem;
  }

  .years span {
    display: inline;
  }

  .entry-dated .years,
  .entry-dated .entry-logo,
  .entry-dated .entry-body {
    grid-column: auto;
    grid-row: auto;
  }

  .entry-dated .entry-logo {
    order: -1;
    margin-bottom: 0;
  }

  .entry-logo img {
    max-height: 5.25rem;
  }

  .entry-work .entry-logo img {
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }

  .rail-title {
    padding-top: 0;
  }

  .tools-labelled a {
    min-width: 5rem;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
  }

  .portrait {
    order: -1;
    width: 11rem;
  }

  .focus-list {
    columns: 1;
  }
}
