/* Explicit theme overrides to ensure hover colours match the site palette. */

a:hover,
a:focus,
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus,
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus,
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:focus,
.post-preview a:hover,
.post-preview a:focus,
.blog-tags a:hover,
.blog-tags a:focus,
#search-results-container a:hover,
#search-results-container a:focus {
  color: #C197D2;
}

footer a:hover,
footer a:focus {
  color: #C197D2;
}

.pagination .page-item .page-link:hover,
.pagination .page-item .page-link:focus,
.pagination .page-item.active .page-link {
  border-color: #C197D2;
  background-color: #C197D2;
}

html {
  scroll-behavior: smooth;
}

.aboutme-headshot {
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 2rem;
}

.home-intro {
  margin: 0 0 2.75rem;
}

.home-section-heading {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  color: #2f2f35;
  scroll-margin-top: 6.5rem;
}

.home-intro-blurb {
  margin: 0 0 2.5rem;
  max-width: 52rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.75;
  color: #4a4752;
}

.home-section-intro {
  margin: 0 0 1.25rem;
  max-width: 48rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #5c5866;
}

.home-section-list {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.home-skills-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.home-skill-card {
  position: relative;
  overflow: hidden;
}

.home-skill-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #c197d2 0%, #e6d9f5 100%);
}

.home-section-card {
  padding: 1.5rem;
  border: 1px solid #e6d9f5;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcf9ff 0%, #ffffff 100%);
  box-shadow: 0 10px 25px rgba(64, 64, 64, 0.06);
}

.home-featured-card {
  margin: 1.25rem 0 1.75rem;
  padding: 1.9rem;
  border-color: #d9c0ef;
  background: linear-gradient(135deg, #faf3ff 0%, #ffffff 72%);
  box-shadow: 0 14px 34px rgba(64, 64, 64, 0.09);
}

.home-featured-card h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.28;
}

.home-featured-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #efe2fb;
  color: #6e4b8f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-featured-summary {
  margin: 0.65rem 0 0.85rem;
  max-width: 42rem;
  color: #4f4a5b;
  font-size: 1.02rem;
}

.home-section-card h3 {
  margin-bottom: 0.35rem;
}

.home-section-card p:last-child {
  margin-bottom: 0;
}

.home-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.home-skill-list li {
  margin: 0;
}

.home-skill-description {
  margin: 0.25rem 0 0;
  color: #5c5866;
  line-height: 1.65;
}

.home-skill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid #e5d8f3;
  border-radius: 999px;
  background: #f8f3fd;
  color: #4a4752;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.home-skill-link::after {
  content: "↗";
  font-size: 0.82em;
  opacity: 0.7;
}

.home-skill-link:hover,
.home-skill-link:focus {
  color: #4a4752;
  background: #efe4fb;
  box-shadow: 0 8px 18px rgba(64, 64, 64, 0.08);
  transform: translateY(-1px);
}

.home-section-meta,
.home-section-submeta {
  margin-bottom: 0.5rem;
}

.home-section-meta {
  font-weight: 600;
  color: #404040;
}

.home-section-authors p {
  margin-bottom: 0.35rem;
  font-weight: 400;
}

.home-section-authors strong {
  font-weight: 700;
}

.home-section-note {
  margin-bottom: 0.5rem;
  font-style: italic;
  color: #6b6480;
}

.home-section-submeta {
  color: #6b6480;
}

.portfolio-intro {
  margin: 0 0 2.25rem;
}

.portfolio-kicker {
  display: inline-flex;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #efe2fb;
  color: #6e4b8f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-lede {
  max-width: 48rem;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #4f4a5b;
}

.portfolio-grid {
  display: grid;
  gap: 1.75rem;
  margin: 0 0 2.5rem;
}

.portfolio-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid #e6d9f5;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffaf5 0%, #ffffff 70%);
  box-shadow: 0 14px 32px rgba(64, 64, 64, 0.07);
}

.portfolio-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 1rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(193, 151, 210, 0.22), transparent 52%),
    linear-gradient(180deg, #f8f1fc 0%, #fffdf8 100%);
}

.portfolio-image {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.portfolio-type {
  margin: 0 0 0.45rem;
  color: #7a618f;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.portfolio-title {
  margin: 0 0 0.35rem;
  color: #2f2f35;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.2;
}

.portfolio-event {
  margin: 0 0 0.85rem;
  color: #5d5a66;
  font-weight: 600;
}

.portfolio-summary {
  margin: 0 0 1rem;
  color: #4f4a5b;
  line-height: 1.75;
}

.portfolio-detail-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #4f4a5b;
}

.portfolio-detail-list li + li {
  margin-top: 0.4rem;
}

.portfolio-note {
  margin-top: 1rem;
  color: #645f71;
  font-style: italic;
}

@media (max-width: 767px) {
  .portfolio-card {
    grid-template-columns: 1fr;
  }

  .portfolio-image-wrap {
    min-height: 200px;
  }
}
