/* hunter-stanke.com - one page, hand-written, no scripts. */

@font-face {
  font-family: "Source Serif 4";
  src: url(/fonts/SourceSerif4-roman.woff2) format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(/fonts/SourceSerif4-italic.woff2) format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url(/fonts/SourceCodePro-roman.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f2ec;
  --ink: #20211c;
  --spruce: #2f4a38;
  --bark: #5a4a38;
  --muted: #5f6159;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
           "Noto Serif", "Liberation Serif", "Times New Roman", serif;
  --mono: "Source Code Pro", "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
          "DejaVu Sans Mono", "Courier New", monospace;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  column-gap: 1.8rem;
  align-items: center;
}
.masthead-plain {
  display: block;
}
.masthead .nav {
  grid-column: 1 / -1;
}
.masthead p,
.masthead h1 {
  margin: 0;
}
.portrait {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
}
.band {
  margin: 2rem 0 0;
}
.band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: 50% 60%;
  outline: 1px solid rgba(47, 74, 56, 0.18);
  outline-offset: -1px;
}
.name {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.name a {
  color: inherit;
  text-decoration: none;
}
.role {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  color: var(--ink);
}
.place {
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.4rem;
  row-gap: 0;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover,
.nav a:focus {
  color: var(--spruce);
}

section {
  margin-top: 2.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--spruce);
}

h2 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
h3 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.2rem 0 0.6rem;
}

p {
  margin: 0 0 1.1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--spruce);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover,
a:focus {
  color: var(--bark);
}

.bio-photo {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: auto;
  margin: 0.4rem 0 1.4rem;
}

.pubs {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pubs li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  margin: 0.7rem 0;
  text-wrap: pretty;
}
#talks .pubs a {
  white-space: nowrap;
}
.pubs .yr {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 0.3rem;
}

.email a {
  font-size: 1.15rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--spruce);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
footer p {
  margin: 0;
}

@media (max-width: 32rem) {
  body {
    font-size: 1.08rem;
  }
  .page {
    padding: 2.25rem 1.25rem 2.5rem;
  }
  .name {
    font-size: 1.6rem;
  }
  .masthead {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    column-gap: 1.1rem;
    align-items: center;
  }
  .nav a {
    padding: 0.55rem 0;
  }
  .band img {
    aspect-ratio: 3 / 2;
  }
  .portrait {
    width: 5.5rem;
    height: 5.5rem;
  }
  .role {
    font-size: 1rem;
  }
  .band {
    margin-top: 1.6rem;
  }
  .nav {
    column-gap: 1rem;
  }
}
