body {
  margin: 0;
  font-family: "Storm Baskerville", Baskerville, Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #111827;
  background: #ffffff;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.65;
}

html {
  scroll-padding-top: 96px;
}

section {
  scroll-margin-top: 96px;
}

.site-shell {
  min-height: 100vh;
}

.site-sidebar {
  max-width: 260px;
}

.site-content {
  max-width: 760px;
}

.site-name {
  width: 250px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
}

.profile-container {
  width: 250px;
  height: 250px;
  perspective: 1000px;
  cursor: pointer;
}

.profile-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
}

.profile-container:hover .profile-flipper {
  transform: rotateY(180deg);
}

.profile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
}

.profile-front {
  transform: rotateY(0deg);
}

.profile-back {
  transform: rotateY(180deg);
}

.site-nav-desktop,
.site-nav-mobile {
  --bs-nav-link-color: #111827;
  --bs-nav-link-hover-color: #111827;
}

.site-nav-desktop .nav-link,
.site-nav-mobile .nav-link {
  border-radius: 999px;
  color: #111827;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-nav-desktop .nav-link {
  padding: 8px 14px;
}

.site-nav-mobile .nav-link {
  padding: 7px 12px;
}

.site-nav-desktop .nav-link:hover,
.site-nav-mobile .nav-link:hover {
  background: #f3f4f6;
}

.section-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-card {
  max-width: 680px;
}

.about-card p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
}

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

.section-placeholder {
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  padding: 18px 20px;
  color: #6b7280;
  background: #fafafa;
  font-size: 15px;
}

.education-item {
  width: 100%;
}

.education-logo {
  max-width: 360px;
}

.education-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.education-copy h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.2;
}

.education-degree {
  display: block;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 5px;
  color: #111827;
}

.education-degree:hover {
  text-decoration-thickness: 1px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-card.inline {
  gap: 10px;
  font-size: 14px;
  white-space: nowrap;
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  text-decoration: none;
  background: #f3f4f6;
  transition: transform 0.18s ease, background-color 0.18s ease;
  flex-shrink: 0;
}

.contact-link-icon.inline {
  width: 36px;
  height: 36px;
}

.contact-link-icon:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.contact-link-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-link-icon.inline svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 575.98px) {
  .contact-card.inline {
    gap: 8px;
    justify-content: center;
  }

  .contact-link-icon.inline {
    width: 24px;
    height: 24px;
  }

  .contact-link-icon.inline svg {
    width: 20px;
    height: 20px;
  }

  .contact.inline {
    font-size: 13px;
  }
}

.contact {
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  color: #111827;
}

.contact.inline {
  font-size: 16px;
  white-space: nowrap;
}

.copyright {
  color: #6b7280;
  font-size: 14px;
}

.course-page {
  max-width: 760px;
}

.course-page__title {
  margin: 0;
  font-size: 20px;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.course-page__subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 0.08em;
  color: #6b7280;
  text-transform: uppercase;
}

.course-page__list {
  max-width: 640px;
  color: #4b5563;
}

.course-page__list li {
  line-height: 1.6;
  font-weight: 200;
}

.course-page__list strong {
  color: #111827;
}

@media (max-width: 991.98px) {
  .site-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .row {
    justify-content: center;
  }

  .site-content {
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-content section {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-name {
    width: auto;
    font-size: 30px;
    line-height: 1.15;
  }

  .profile-container {
    width: 132px;
    height: 132px;
  }

  .section-title {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .section-placeholder {
    padding: 16px 18px;
    font-size: 19px;
  }

  .about-card p {
    font-size: clamp(20px, 4.8vw, 22px);
    line-height: 1.75;
  }

  .education-item {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .education-item .col-12 {
    display: flex;
    justify-content: center;
  }

  .education-copy {
    max-width: 520px;
    text-align: left;
  }

  .education-logo {
    max-width: 260px;
  }

  .education-copy h3 {
    font-size: 21px;
  }

  .education-degree {
    font-size: 19px;
  }

  .contact {
    font-size: clamp(19px, 4.2vw, 21px);
  }

  .site-nav-mobile .nav-link {
    font-size: 20px;
  }
}

@media (max-width: 575.98px) {
  .site-content {
    max-width: 520px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-content section {
    max-width: 480px;
  }

  .site-name {
    font-size: 34px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-placeholder {
    font-size: 18px;
  }

  .about-card p {
    font-size: 20px;
  }

  .education-item {
    max-width: 480px;
  }

  .education-item .col-12 {
    justify-content: center;
  }

  .education-copy h3 {
    font-size: 21px;
  }

  .education-degree {
    font-size: 18px;
  }

  .contact {
    font-size: 19px;
  }

  .site-nav-mobile .nav-link {
    font-size: 19px;
  }

  .profile-container {
    width: 112px;
    height: 112px;
  }

  .course-page__title {
    font-size: 16px;
  }

  .course-page__subtitle {
    margin-top: 8px;
    font-size: 12px;
  }

  .course-page__list li {
    font-size: 15px;
  }
}