:root {
  --ink: #f4f2ee;
  --muted: #c5c1b8;
  --faint: #9b968e;
  --card: rgba(34, 37, 46, 0.88);
  --bar: rgba(28, 31, 38, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --pill: rgba(255, 255, 255, 0.08);
  --ring: #e7a0c4;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #12141a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(14, 16, 22, 0.62), rgba(14, 16, 22, 0.74)),
    url("background.jpg") center / cover no-repeat;
}

::selection {
  background: #e7a0c4;
  color: #1a1c22;
}

:focus-visible {
  outline: 2px solid #f2c6dc;
  outline-offset: 3px;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.45rem 0.75rem;
  background: #111;
  color: white;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.75rem;
  background: var(--bar);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.bar nav a {
  color: #eeeae4;
  text-decoration: none;
  font-size: 0.98rem;
}

.bar nav a:hover,
.bar nav a[aria-current="page"] {
  color: white;
}

.bar nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.icons {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
}

.icon svg {
  width: 100%;
  height: 100%;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem 1.25rem;
}

.card {
  width: min(45rem, 100%);
  padding: 2rem 2rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.card.wide {
  width: min(52rem, 100%);
}

.who {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.avatar {
  flex: none;
  display: block;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  border: 3px solid var(--ring);
  overflow: hidden;
  background: #1b1e26;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 25%;
  transform: scale(1.55);
  transform-origin: 45% 25%;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.15;
  font-weight: 700;
}

.profile h1 {
  font-size: 1.45rem;
}

.role-line {
  margin-top: 0.15rem;
  font-weight: 650;
}

.place {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.flag {
  margin-left: 0.15rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: var(--pill);
  color: #ddd8d0;
  font-size: 0.82rem;
}

.profile p a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.profile p a:hover {
  text-decoration-color: white;
}

.profile p + p:not(.place) {
  margin-top: 1rem;
}

.profile .who + p {
  margin-top: 1.5rem;
}

.sheet {
  place-items: start center;
  padding-top: 2.25rem;
  padding-bottom: 3rem;
}

.repo-group {
  margin-top: 1.5rem;
}

.repo-group h2 {
  font-size: 1.15rem;
}

.repo-group h2 a {
  text-decoration: none;
}

.repo-group h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prs {
  margin-top: 0.35rem;
  padding: 0;
  list-style: none;
}

.prs a {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.prs li:last-child a {
  border-bottom: 1px solid var(--line);
}

.prs .num {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.what {
  color: var(--muted);
}

.prs a:hover .what {
  color: white;
}

.more-wrap {
  margin-top: 0.9rem;
}

.more-wrap[open] {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.more-wrap[open] summary {
  order: 2;
}

.more-wrap[open] .prs {
  order: 1;
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.more-wrap[open] .prs li:first-child a {
  border-top: 0;
}

.more-wrap summary {
  width: fit-content;
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 0.82rem;
  list-style: none;
}

.more-wrap summary::-webkit-details-marker {
  display: none;
}

.more-wrap summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.more-wrap .open-label {
  display: none;
}

.more-wrap[open] .closed-label {
  display: none;
}

.more-wrap[open] .open-label {
  display: inline;
}

.button {
  display: block;
  width: fit-content;
  margin: 1.6rem auto 0.25rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: white;
  text-decoration: none;
}

.button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.band {
  display: grid;
  justify-items: center;
  scroll-margin-top: 5.5rem;
  padding: 0.5rem 1.25rem 2.5rem;
}

h2 {
  font-size: 1.45rem;
  font-weight: 700;
}

.intro,
.note {
  margin-top: 0.7rem;
  color: var(--muted);
}

.note a {
  color: white;
}

.job {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.job:first-of-type {
  margin-top: 0.4rem;
}

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

.job-head p,
.job-meta {
  color: var(--faint);
  font-size: 0.92rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.job-meta {
  margin-top: 0.15rem;
}

.job > p:last-child {
  margin-top: 0.55rem;
}

.entries {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.entries a {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.entries li:last-child a {
  border-bottom: 1px solid var(--line);
}

.entries a:hover .what {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.where,
.state {
  color: var(--faint);
  font-size: 0.82rem;
}

.state.open {
  color: #f0b7d0;
}

.contact {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.contact a {
  display: inline-block;
  padding: 0.35rem 0;
  color: white;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .bar {
    flex-wrap: wrap;
    row-gap: 0.65rem;
    padding-inline: 1rem;
  }

  .brand {
    white-space: nowrap;
  }

  .bar nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.85rem 1rem;
  }

  .bar nav a:not(.icon) {
    font-size: 0.95rem;
  }

  .who {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 0.45rem 1rem;
  }

  .profile p {
    line-height: 1.45;
  }

  .card {
    padding: 1.1rem 1.15rem 1rem;
  }

  .avatar {
    width: 4.6rem;
    height: 4.6rem;
  }

  .who {
    gap: 0.8rem;
  }

  .profile .who + p {
    margin-top: 1.05rem;
  }

  .profile p + p:not(.place) {
    margin-top: 0.7rem;
  }

  .profile .button {
    margin-top: 1.05rem;
  }

  .prs a {
    grid-template-columns: 4.3rem minmax(0, 1fr) auto;
    gap: 0.45rem;
    font-size: 0.9rem;
  }

  .job-head,
  .entries a {
    grid-template-columns: 1fr;
    display: grid;
    gap: 0.1rem;
  }

  .job-head {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
