:root,
[data-md-color-scheme="default"] {
  --portfolio-accent: #1e5aa8;
  --portfolio-border: #d9e2ee;
  --portfolio-muted: #657384;
  --portfolio-surface: #f3f6fa;
}

[data-md-color-scheme="slate"] {
  --portfolio-accent: #71b7e6;
  --portfolio-border: #364759;
  --portfolio-muted: #a8b6c5;
  --portfolio-surface: #202c39;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.md-header {
  background: var(--md-default-bg-color);
  border-bottom: 1px solid var(--portfolio-border);
  box-shadow: none;
  color: var(--md-default-fg-color);
}

.md-header__inner {
  max-width: 70rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.md-header__button.md-logo {
  display: none;
}

.md-header__button[for="__drawer"] {
  display: none;
}

.md-header__title {
  margin-left: 0;
}

.md-header__topic {
  font-size: 0.78rem;
  font-weight: 650;
}

.md-header__button,
.md-search__icon {
  color: var(--md-default-fg-color--light);
}

.md-search__form {
  background: var(--portfolio-surface);
  border-radius: 0.25rem;
}

.md-search__input {
  color: var(--md-default-fg-color);
}

.md-header .md-search__icon,
.md-header .md-search__input,
.md-header .md-search__input::placeholder {
  color: var(--portfolio-muted);
  opacity: 1;
}

.md-tabs,
.md-sidebar,
.md-footer {
  display: none;
}

.md-main__inner {
  display: block;
  margin: 0 auto;
  max-width: 70rem;
  padding: 0 2rem;
}

.md-content {
  margin: 0;
}

.md-content__inner {
  margin: 0;
  padding: 4.75rem 0 3rem;
}

.md-content__inner::before {
  display: none;
}

.md-typeset {
  color: var(--md-default-fg-color);
  font-size: 0.84rem;
  line-height: 1.65;
}

.md-typeset a {
  color: var(--portfolio-accent);
  text-decoration: none;
  text-underline-offset: 0.16em;
}

.md-typeset a:hover,
.md-typeset a:focus-visible {
  text-decoration: underline;
}

.md-typeset p {
  margin: 0;
}

.profile-header {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.md-typeset .profile-header h1 {
  color: var(--portfolio-accent);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 0.65rem;
}

.profile-role {
  color: var(--md-default-fg-color);
  font-size: 1rem;
  font-weight: 600;
}

.profile-contact {
  align-items: center;
  color: var(--portfolio-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.2rem 0.55rem;
  justify-content: center;
  margin-top: 0.3rem !important;
}

.profile-contact a {
  color: inherit;
}

.profile-links {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 0.65rem;
}

.profile-links a {
  color: var(--portfolio-accent);
  display: inline-flex;
  transition: opacity 150ms ease, transform 150ms ease;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  opacity: 0.7;
  text-decoration: none;
  transform: translateY(-1px);
}

.profile-links svg {
  fill: currentColor;
  height: 1.15rem;
  width: 1.15rem;
}

.intro {
  font-size: 0.93rem;
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

.intro p + p {
  margin-top: 0.9rem;
}

.resume-columns {
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 3.6rem;
}

.resume-section {
  min-width: 0;
}

.md-typeset .resume-section h2,
.md-typeset .standalone-projects > h1 {
  color: var(--portfolio-accent);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.resume-entry {
  margin-bottom: 1.15rem;
}

.entry-heading {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.md-typeset .resume-entry h3,
.md-typeset .project-entry h3,
.md-typeset .standalone-projects .project-entry h2 {
  color: var(--md-default-fg-color);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
}

.md-typeset .resume-entry h3 a {
  color: inherit;
}

.entry-date {
  color: var(--portfolio-accent);
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.resume-entry > p,
.project-entry > p {
  color: var(--portfolio-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 0.15rem;
}

.projects-section {
  margin-top: 3.2rem;
}

.section-heading {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.section-heading > a {
  font-size: 0.76rem;
}

.project-list {
  border-top: 1px solid var(--portfolio-border);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-entry {
  border-bottom: 1px solid var(--portfolio-border);
  min-width: 0;
  padding: 1rem 1.25rem 1rem 0;
}

.project-entry:nth-child(even) {
  border-left: 1px solid var(--portfolio-border);
  padding-left: 1.25rem;
  padding-right: 0;
}

.site-footer {
  border-top: 1px solid var(--portfolio-border);
  color: var(--portfolio-muted);
  display: flex;
  font-size: 0.7rem;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 1rem;
}

.standalone-projects {
  margin: 0 auto;
  max-width: 58rem;
}

.back-link {
  font-size: 0.76rem;
  margin-bottom: 2.5rem !important;
}

.page-intro {
  color: var(--portfolio-muted);
  margin: -0.6rem 0 2rem !important;
  max-width: 40rem;
}

@media screen and (max-width: 52rem) {
  .resume-columns {
    gap: 2.7rem;
    grid-template-columns: 1fr;
  }

  .projects-section {
    margin-top: 2.7rem;
  }
}

@media screen and (max-width: 44.9375rem) {
  .md-header__inner,
  .md-main__inner {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .md-content__inner {
    padding-top: 3rem;
  }

  .profile-header {
    margin-bottom: 2rem;
  }

  .profile-contact {
    align-items: center;
    flex-direction: column;
    gap: 0.12rem;
  }

  .profile-contact span {
    display: none;
  }

  .intro {
    font-size: 0.88rem;
  }

  .resume-columns {
    margin-top: 2.8rem;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-entry,
  .project-entry:nth-child(even) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .entry-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.05rem;
  }

  .entry-date {
    white-space: normal;
  }
}
