:root {
  --bg: #eef2f6;
  --surface: #fff;
  --ink: #14213d;
  --muted: #4d5b73;
  --line: #cfd8e3;
  --accent: #2b50e6;
  --accent-ink: #fff;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1626;
    --surface: #172138;
    --ink: #e8edf7;
    --muted: #a3b0c7;
    --line: #2a3856;
    --accent: #7e98ff;
    --accent-ink: #0f1626;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1626;
  --surface: #172138;
  --ink: #e8edf7;
  --muted: #a3b0c7;
  --line: #2a3856;
  --accent: #7e98ff;
  --accent-ink: #0f1626;
  color-scheme: dark;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.65 "Source Serif 4", Georgia, serif;
}
a {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.1;
  margin: 0;
}
.wrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 32px;
}
aside {
  position: sticky;
  top: 56px;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding-right: 8px;
}
h1 {
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.role {
  font-size: 20px;
  margin: 18px 0 24px;
  color: var(--muted);
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 32px 0;
}
nav a {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--line);
}
nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn {
  display: inline-block;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
}
.btn:hover {
  filter: brightness(1.1);
}
.btn.alt {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.alt:hover {
  filter: none;
  border-color: var(--accent);
  color: var(--accent);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.hl li {
  border-top: 3px solid var(--accent);
  padding-top: 10px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.4;
}
.hl b {
  display: block;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: 26px;
  color: var(--ink);
}
@media (max-width: 560px) {
  .hl {
    grid-template-columns: 1fr;
  }
}
.contact {
  margin-top: 28px;
  font-size: 16px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.contact a {
  color: var(--muted);
}
.theme {
  margin-top: 20px;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
section {
  padding-bottom: 56px;
}
h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.about {
  font-size: 22px;
  line-height: 1.55;
}
.edu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
}
.edu h3 {
  font-size: 24px;
}
.meta {
  color: var(--muted);
  font-size: 16px;
  margin: 4px 0 12px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 10px;
  background: var(--bg);
}
.timeline {
  border-left: 3px solid var(--accent);
  margin-left: 6px;
  padding-left: 28px;
  display: grid;
  gap: 36px;
}
.job {
  position: relative;
}
.job::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 9px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.job h3 {
  font-size: 22px;
}
ul.pts {
  margin: 12px 0 0;
  padding-left: 20px;
}
ul.pts li {
  margin-bottom: 6px;
}
.proj {
  display: grid;
  gap: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
}
.card h3 {
  font-size: 24px;
}
.list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.list b {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
}
.card-subtitle {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}
.contact-card .wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  margin-top: 4px;
}
.contact-form {
  display: grid;
  gap: 14px;
  align-content: start;
}
.contact-input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.contact-input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
textarea.contact-input {
  min-height: 140px;
  resize: vertical;
}
.btn-submit {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  justify-self: start;
}
.btn-submit:hover {
  filter: brightness(1.1);
}
.contact-list {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-content: start;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
}
.contact-item-title {
  font-size: 18px;
  margin-bottom: 2px;
}
.contact-item-link {
  color: var(--muted);
  font-style: normal;
  font-size: 16px;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .contact-card .wrapper {
    grid-template-columns: 1fr;
  }
}
.photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
@media (max-width: 860px) {
  .photo {
    width: 128px;
    height: 128px;
  }
}
footer {
  color: var(--muted);
  font-size: 15px;
  padding-top: 8px;
}
@media (max-width: 860px) {
  .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 20px;
  }
  aside {
    position: static;
  }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  nav a {
    border: 0;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
