/* Hand-written additions to Papyrus's compiled Tailwind (main.css).
   Dark mode follows the theme: a `dark` class on <html>. */

/* ---- Nav: consultancy name beside the personal name ---- */
.brand-tag {
  align-self: center;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid #a1a1aa;
  font-size: 0.875rem;
  line-height: 1.1;
  white-space: nowrap;
}

/* ---- Home page: hero ---- */
.hero {
  margin: 3rem 0 2rem;
}

@media (min-width: 768px) {
  .hero {
    margin: 5rem 0 2.5rem;
  }
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-photo {
  width: 5.5rem;
  height: 5.5rem;
  flex: none;
  border-radius: 9999px;
  object-fit: cover;
}

@media (max-width: 639px) {
  .hero-head {
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-photo {
    width: 4rem;
    height: 4rem;
  }
}

.hero-sub {
  margin-top: 0.5rem;
  max-width: 34rem;
  line-height: 1.55;
}

.hero-sub a {
  text-decoration: underline;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-links a:hover span {
  text-decoration: underline;
}

.hero-links i {
  font-size: 1.15rem;
  width: 1.25rem;
  text-align: center;
}

/* ---- Home page: section labels ---- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52525b;
}

.dark .section-label {
  color: #a1a1aa;
}

.section-label-posts {
  margin: 2.5rem 0 0.75rem;
  padding: 0 0.25rem;
}

/* ---- Home page: highlights ---- */
.highlights {
  padding: 1.25rem 1rem 1rem;
}

@media (min-width: 768px) {
  .highlights {
    padding: 1.5rem 1.5rem 1.25rem;
  }
}

.highlights ul {
  margin-top: 0.5rem;
}

.highlights li + li {
  border-top: 1px solid #e4e4e7;
}

.dark .highlights li + li {
  border-top-color: #3f3f46;
}

.highlights li a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem 1.25rem;
  padding: 0.7rem 0;
}

@media (min-width: 640px) {
  .highlights li a {
    grid-template-columns: 10.5rem 1fr;
    align-items: baseline;
  }
}

.hl-what {
  font-weight: 600;
}

.hl-detail {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.highlights li a:hover .hl-what {
  text-decoration: underline;
}

.highlights-more,
.all-posts {
  font-size: 0.9375rem;
}

.highlights-more {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e4e4e7;
}

.dark .highlights-more {
  border-top-color: #3f3f46;
}

.all-posts {
  margin: 0.5rem 0 1rem;
  padding: 0 0.25rem;
}

.highlights-more a:hover,
.all-posts a:hover {
  text-decoration: underline;
}

/* ---- Research page: reference lists ---- */
.prose .refs,
.prose .refs li {
  text-align: left;
}

.prose .refs h2 {
  margin-top: 2.25em;
}

.prose .refs > h2:first-child {
  margin-top: 0.5em;
}

.prose .refs li {
  margin-top: 0.6em;
  margin-bottom: 0.6em;
}

.prose .refs .meta {
  display: block;
  font-size: 0.9em;
  opacity: 0.8;
}

.prose .refs strong {
  font-weight: 600;
}

.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 1.5rem;
}
