:root {
  --bg: #f9f8f4;
  --surface: #ffffff;
  --text: #1f2428;
  --muted: #545f6a;
  --line: #d9dee3;
  --rule-color: #d9dee3;
  --accent: #0f3a57;
  --accent-contrast: #ffffff;
  --max-width: 46rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
}

.content {
  padding: 2.2rem 0 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.home-profile {
  display: flex;
  flex-direction: column;
  margin: 1.25rem 0 2rem;
}

.home-headshot {
  width: min(90%, 260px);
  max-width: 260px;
  margin: 0 0 1.25rem;
  align-self: center;
}

.home-headshot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.home-intro p {
  margin: 0;
}

.book-intro {
  margin: 1rem 0 2rem;
}

.book-cover img {
  width: auto;
  max-width: 100%;
  display: block;
  height: auto;
}

.book-publine {
  color: var(--muted);
}

.book-meta > p {
  margin-top: 0;
}

.book-meta > *:last-child {
  margin-bottom: 0;
}

.book-reviews {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-color);
}

.book-links {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-color);
}

.article-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0 1.6rem;
  margin: 0;
}

.work-title {
  margin-bottom: 0.25rem;
}

.work-title a {
  color: var(--text);
  text-decoration: none;
}

.work-title a:hover,
.work-title a:focus {
  text-decoration: underline;
}

.work-hero {
  display: block;
  margin: 0 0 1.25rem;
}

.work-hero-media {
  text-align: center;
  margin-bottom: 1rem;
}

main .work-hero-media img.work-hero-img {
  max-width: 320px;
  width: 90%;
  margin: 0 auto;
  height: auto;
  display: block;
}

.work-meta {
  margin-bottom: 1rem;
}

.work-body {
  max-width: 100%;
}

.article-meta,
.citation-line {
  color: var(--muted);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
}

.button {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  border-radius: 2px;
}

.button-muted {
  background: #6d7781;
}

.text-link {
  font-size: 0.95rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  border: 1px solid var(--line);
  background: #f2f3f5;
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0.18rem 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.reviews-list {
  margin-top: 1.25rem;
}

.review-item {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.review-quote {
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 1.04rem;
}

.review-attribution {
  margin: 0.7rem 0 0 1rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .content {
    padding-top: 1.6rem;
  }

  body {
    font-size: 0.98rem;
  }

}

@media (min-width: 48rem) {
  .home-profile {
    flex-direction: row;
    gap: 2rem;
    align-items: start;
    margin: 1.5rem 0 2.25rem;
  }

  .home-headshot {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
    margin: 0;
    align-self: flex-start;
  }

  .home-intro {
    flex: 1;
  }

}

.work-card.has-thumb {
  display: grid;
  grid-template-columns: 140px 1fr;
  grid-template-areas:
    "thumb head"
    "details details";
  column-gap: 1.5rem;
  row-gap: 0.4rem;
  align-items: start;
}

.work-thumb {
  grid-area: thumb;
}

.work-head {
  grid-area: head;
}

.work-details {
  grid-area: details;
  margin-top: 0;
}

.work-kind {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-details > :first-child {
  margin-top: 0;
}

.work-citation {
  font-size: 0.94rem;
  line-height: 1.55;
}

.work-abstract {
  margin: 0.5rem 0 0;
}

.work-links {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.work-links a {
  color: inherit;
  text-decoration: none;
}

.work-links a:hover,
.work-links a:focus {
  text-decoration: underline;
}

.work-card.no-thumb {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "head"
    "details";
  row-gap: 0.4rem;
}

.work-thumb img {
  display: block;
  width: 100%;
  max-width: 140px;
  height: 96px;
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .work-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumb"
      "head"
      "details";
    row-gap: 0.4rem;
  }

  .work-card.has-thumb {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumb"
      "head"
      "details";
  }

  .work-thumb {
    display: block;
    width: 100%;
  }

  .work-thumb img {
    width: 100%;
    max-width: none;
    height: 180px;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 767px) {
  .work-hero {
    display: block;
  }

  .work-hero-media {
    text-align: center;
    margin-bottom: 1rem;
    width: auto;
    max-width: none;
  }

  main .work-hero-media img.work-hero-img {
    max-width: 320px;
    width: 90%;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .work-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 1.25rem;
  }

  .work-hero--no-image {
    grid-template-columns: 1fr;
  }

  .work-hero-media {
    width: 320px;
    max-width: 320px;
    text-align: left;
    margin-bottom: 0;
  }

  main .work-hero-media img.work-hero-img {
    width: 320px;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0;
  }

  .work-meta,
  .work-body {
    max-width: none;
  }

  main .book-intro {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
    margin: 1.25rem 0 2.25rem;
  }

  main .book-cover {
    align-self: start;
    text-align: left;
  }

  main .book-cover img {
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0;
  }
}

@media (max-width: 767px) {
  main .book-intro {
    display: block;
  }

  main .book-cover {
    text-align: center;
  }

  main .book-cover img {
    width: auto;
    max-width: 260px;
    margin: 0 auto 1rem;
  }
}
