.archive-banner {
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #f4f2ff;
  background: linear-gradient(100deg, #241d4d, #0d3a4a);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.archive-banner a {
  color: #8be9fd;
  font-weight: 700;
  text-decoration: none;
}

.archive-banner a:hover {
  text-decoration: underline;
}

:root {  color-scheme: light;

  --bg: #fff;
  --surface: #f6f7f8;
  --surface-strong: #eceff1;
  --ink: #131519;
  --muted: #5f6670;
  --soft: #7a828c;
  --border: rgb(19 21 25 / 10%);
  --border-hover: rgb(19 21 25 / 18%);
  --line-width: 1px;
  --shadow: 0 16px 36px rgb(19 21 25 / 8%);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* stylelint-disable-line value-keyword-case */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif; /* stylelint-disable-line value-keyword-case */
  --radius: 8px;
  --measure: 76ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: rgb(19 21 25 / 16%);
  text-decoration-thickness: var(--line-width);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--muted);
  text-decoration-color: var(--border-hover);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

hr {
  margin: 34px 0;
  border: 0;
  border-top: var(--line-width) solid var(--border);
}

.container {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

main {
  display: grid;
  gap: 34px;
}

header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 54px 0 24px;
  border-bottom: var(--line-width) solid var(--border);
}

.profile-img {
  width: clamp(94px, 11vw, 132px);
  height: clamp(94px, 11vw, 132px);
  border-radius: 50%;
  object-fit: cover;
  border: var(--line-width) solid var(--border);
  box-shadow: var(--shadow);
  grid-column: 2;
  grid-row: 1 / span 3;
}

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

h1,
h2,
h3 {
  padding-bottom: 0.08em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 720px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1.1;
}

p {
  max-width: var(--measure);
  margin-bottom: 16px;
  color: var(--ink);
}

header > p {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

.contact-info,
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.contact-info a,
.jump-links a,
.app-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius);
  text-decoration: none;
  max-width: 100%;
  text-align: center;
}

.contact-info a,
.app-card a { /* stylelint-disable-line no-descending-specificity */
  border: var(--line-width) solid var(--border);
  background: var(--surface);
  color: var(--ink);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.contact-info a {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.jump-links {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -16px;
  padding: 14px 16px;
  background: rgb(255 255 255 / 94%);
  border-bottom: var(--line-width) solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); /* stylelint-disable-line property-no-vendor-prefix */
}

.jump-links a {
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

section {
  padding: 28px 0 4px;
  border-top: var(--line-width) solid var(--border);
  scroll-margin-top: 82px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 18px;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
}

ul {
  max-width: var(--measure);
  margin-bottom: 0;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: var(--line-width) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.skills {
  display: grid;
  gap: 18px;
}

.skill-category {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.skill-category strong {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: var(--line-width) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.experience {
  max-width: var(--measure);
  margin-bottom: 24px;
  padding-left: 18px;
  border-left: var(--line-width) solid var(--border);
}

.experience:last-child {
  margin-bottom: 0;
}

.job-title,
.company-name,
.time-location {
  display: block;
}

.job-title {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.company-name {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.time-location {
  margin: 2px 0 10px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.education {
  display: grid;
  gap: 10px;
  max-width: var(--measure);
}

.education p {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: var(--line-width) solid var(--border);
}

.education p:last-child {
  border-bottom: 0;
}

.education strong {
  display: block;
  font-weight: 800;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.app-card {
  --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%23eceff1'/%3E%3Cpath d='M9 16h14M16 9v14' stroke='%235f6670' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");

  grid-column: span 4;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 18px;
  border: var(--line-width) solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.app-card.featured {
  border-color: var(--border-hover);
  background: #fbfbfc;
}

.app-card h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app-card h3::before {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: var(--line-width) solid var(--border);
  border-radius: 7px;
  background-color: var(--surface-strong);
  background-image: var(--app-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
}

.app-card p { /* stylelint-disable-line no-descending-specificity */
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.tech-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: var(--line-width) solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.app-card a,
.app-availability { /* stylelint-disable-line no-descending-specificity */
  width: 100%;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 800;
}

.app-availability {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: var(--line-width) dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--soft);
  text-align: center;
}

.app-drawer {
  margin-top: 18px;
}

.app-drawer summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  border: var(--line-width) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  list-style-position: inside;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.app-drawer summary:hover {
  border-color: var(--border-hover);
  background: var(--surface-strong);
}

.app-drawer summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.app-drawer summary small {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-drawer summary small::after {
  color: var(--ink);
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.app-drawer[open] summary small::after {
  content: "−";
}

.app-drawer[open] summary {
  margin-bottom: 14px;
}

.contact-info a:hover,
.app-card a:hover { /* stylelint-disable-line no-descending-specificity */
  border-color: var(--border-hover);
  background: var(--surface-strong);
  color: var(--ink);
}

.contact-info a:active,
.app-card a:active { /* stylelint-disable-line no-descending-specificity */
  transform: translateY(1px);
}

.jump-links a:hover {
  background: var(--surface);
  color: var(--ink);
}

footer {
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

footer a { /* stylelint-disable-line no-descending-specificity */
  color: inherit;
}

@media (width <= 980px) {
  .app-card {
    grid-column: span 6;
  }
}

@media (width <= 760px) {
  .container {
    width: calc(100% - 24px);
    max-width: 1180px;
  }

  header {
    grid-template-columns: 1fr;
    padding-top: 34px;
    overflow: hidden;
  }

  .profile-img {
    grid-column: 1;
    grid-row: 1;
  }

  .jump-links {
    position: static;
    margin: 0;
    padding: 12px 0;
    border-bottom: 0;
  }

  header > p,
  .jump-links a,
  .contact-info a {
    overflow-wrap: anywhere;
  }

  .section-header {
    grid-template-columns: 1fr;
  }

  .app-drawer summary {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .skill-category {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app-card {
    grid-column: 1 / -1;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .container {
    width: 100%;
  }

  header,
  section {
    break-inside: avoid;
  }

  .jump-links {
    display: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .app-card,
  .skill-tag,
  .tag,
  .contact-info a {
    box-shadow: none;
  }

  .app-drawer summary {
    display: none;
  }

  .app-drawer > .app-drawer-grid {
    display: grid !important;
  }
}
