:root {
  --bg: #ffffff;
  --ink: #0d0d0d;
  --soft: #5c5c5c;
  --rule: #0d0d0d;
  --faint: #e6e6e6;
  --accent: #6c5ce7;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d0d0d; --ink: #f2f2f2; --soft: #9a9a9a; --rule: #f2f2f2; --faint: #262626; --accent: #a29bfe;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d; --ink: #f2f2f2; --soft: #9a9a9a; --rule: #f2f2f2; --faint: #262626; --accent: #a29bfe;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--bg); padding: 8px 12px; z-index: 10; }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.logo { font: 700 20px var(--display); text-decoration: none; letter-spacing: -0.02em; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--accent); }
.theme {
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  transition: transform .6s cubic-bezier(.3,1.4,.5,1);
}
.theme.spin { transform: rotate(360deg); }

html { scroll-behavior: smooth; }
body { overflow-x: clip; }

/* hero */
.hero { padding: 64px 0 112px; position: relative; isolation: isolate; }
/* skate drawing for the scroll skate */
.skate__boot, .skate__plate { fill: var(--ink); }
.skate__lace { fill: none; stroke: var(--bg); stroke-width: 1.6; stroke-linecap: round; }
.skate__wheel circle { fill: var(--accent); }
.skate__wheel path { fill: none; stroke: var(--bg); stroke-width: 1.4; stroke-linecap: round; }


/* scroll progress skate */
.rink {
  position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 20; pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
.rink.on { opacity: 1; }
.rink__line { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.rink__skate { position: absolute; left: 0; bottom: 2px; width: 34px; height: 30px; will-change: transform; }
.hero__meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: 14px; font-weight: 500; color: var(--soft); font-variant-numeric: tabular-nums;
}
.hero > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero > :nth-child(2) { animation-delay: .08s; }
.hero > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* hero facts */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0;
  border-top: 1px solid var(--faint);
}
.facts > div { padding: 18px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--faint); }
.facts dt { font-size: 13px; color: var(--soft); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.4; }
.hero h1 {
  font: 700 clamp(30px, 4vw, 54px)/1.12 var(--display);
  letter-spacing: -0.03em; max-width: 20ch;
}
.hero em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); }
#education .item h3 { font-size: clamp(22px, 2.2vw, 28px); }
.list--compact .item { padding: 24px 0; }

/* section label */
.label {
  font: 700 15px var(--display); letter-spacing: -0.01em;
  padding-bottom: 12px; border-bottom: 2px solid var(--rule);
}
.label sup { font: 500 12px var(--body); color: var(--accent); margin-left: 4px; }

/* project list */
.list { list-style: none; margin: 0 0 120px; padding: 0; }
#experience .item h3 { font-size: clamp(24px, 2.6vw, 34px); }
#experience .item__kind { line-height: 1.5; }
.item {
  display: grid; grid-template-columns: 5fr 7fr; gap: 40px;
  padding: 36px 0; border-bottom: 1px solid var(--faint);
}
.item { position: relative; }
.item::before {
  content: ""; position: absolute; left: -20px; top: 0; bottom: -1px; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.item:hover::before { transform: scaleY(1); }
.item h3 {
  font: 700 clamp(28px, 3.4vw, 44px)/1.05 var(--display); letter-spacing: -0.035em;
  transition: color .2s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.item:hover h3 { color: var(--accent); transform: translateX(10px); }
.item__links a, .foot__links a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1.5px no-repeat;
  transition: background-size .3s;
}
.item__links a:hover, .foot__links a:hover { background-size: 0 1.5px; background-position: right bottom; }
.item__kind { display: block; margin-top: 8px; color: var(--soft); font-size: 15px; }
.item > * { min-width: 0; }
.item__text { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.item__stack { color: var(--soft); font-size: 15px; }
.item__links { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.item__links a { color: var(--accent); text-underline-offset: 3px; }
.item__links span { color: var(--soft); font-weight: 500; }
.item--big h3 { font-size: clamp(32px, 3.8vw, 50px); }
.item--big { padding: 48px 0; }

/* about */
.about { margin-bottom: 140px; }
.about__cols { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding-top: 36px; }
.about__intro { font: 500 clamp(24px, 2.6vw, 32px)/1.2 var(--display); letter-spacing: -0.02em; }
.about__cols > div { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.about__tools { color: var(--soft); font-size: 15px; }
.about__tools strong { color: var(--ink); font-weight: 600; }

/* skills */
.about { margin-bottom: 120px; }
.skills { margin-bottom: 140px; }
.skills__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 36px; }
.skills h3 { font: 700 20px var(--display); letter-spacing: -0.02em; margin-bottom: 12px; }
.skills ul { list-style: none; margin: 0; padding: 0; }
.skills li { padding: 9px 0; border-bottom: 1px solid var(--faint); display: flex; justify-content: space-between; gap: 12px; }
.skills li span { color: var(--soft); font-size: 14px; }

/* footer */
.foot { border-top: 2px solid var(--rule); padding: 40px 0 32px; }
.foot__big { font: 700 clamp(28px, 4.6vw, 60px)/1.05 var(--display); letter-spacing: -0.04em; }
.foot__big a { color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.foot__big a { overflow-wrap: anywhere; }
.copy-email { cursor: copy; }
.copied {
  display: inline-block; margin-left: 16px; vertical-align: middle;
  font: 600 15px var(--body); letter-spacing: 0;
  background: var(--accent); color: var(--bg); padding: 4px 10px; border-radius: 4px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.copied:empty { padding: 0; }
.copied.show { opacity: 1; transform: none; }
.foot__links { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 32px 0 0; padding: 0; font-weight: 600; }
.foot__links a { text-underline-offset: 4px; }
.foot__links a:hover { color: var(--accent); }
.foot__small { margin-top: 48px; color: var(--soft); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .facts > div { padding: 16px 12px 16px 0; }
  .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--faint); }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--faint); }
  .item::before { left: -12px; }
  .item, .about__cols { grid-template-columns: 1fr; gap: 16px; }
  .skills__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .top nav a[href="#skills"], .top nav a[href="#experience"] { display: none; }
  .top nav { gap: 16px; }
  .hero { padding: 40px 0 72px; }
  .top nav { font-size: 15px; }
}

/* little wheel next to the location */
.wheel { width: 15px; height: 15px; flex: none; animation: roll 3.2s linear infinite; }
.wheel__tire { fill: var(--green); }
.wheel__core { fill: var(--bg); }
.wheel path { stroke: var(--green); stroke-width: 1.4; stroke-linecap: round; }
@keyframes roll { to { transform: rotate(360deg); } }
:root { --green: #17a84f; }
.locator { position: relative; display: inline-flex; flex: none; }
.locator::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); animation: ping 2s ease-out infinite;
}
.locator .wheel { position: relative; }
@keyframes ping { from { transform: scale(1); opacity: .5; } to { transform: scale(2.6); opacity: 0; } }

/* hero devices */
.hero__top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.devices { position: relative; padding: 0 6% 0 9%; width: 100%; max-width: 450px; justify-self: end; }
.laptop { width: 100%; filter: drop-shadow(0 28px 40px color-mix(in srgb, var(--accent) 22%, transparent)); }
.laptop__screen {
  background: var(--ink); padding: 2.2% 2.2% 3%; border-radius: 12px 12px 4px 4px;
}
.laptop__base {
  height: 12px; margin: 0 -7%; background: var(--ink); opacity: .92;
  border-radius: 2px 2px 14px 14px; position: relative;
}
.laptop__base::after {
  content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 4px;
  background: var(--bg); opacity: .25; border-radius: 0 0 6px 6px;
}
.phone {
  position: absolute; left: 0; bottom: -18px; width: 27%;
  background: var(--ink); padding: 5px; border-radius: 22px;
  box-shadow: 0 24px 40px -18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.screen { background: var(--bg); overflow: hidden; position: relative; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen i, .screen b { display: block; border-radius: 3px; }

/* web screen sketch */
.screen--web { aspect-ratio: 16 / 10; border-radius: 4px; display: grid; grid-template-columns: 17% 1fr; }
.sk-side { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); padding: 18% 14%; display: flex; flex-direction: column; gap: 9%; }
.sk-side i { height: 5px; background: var(--bg); opacity: .22; }
.sk-side i:first-child { opacity: 1; background: var(--accent); width: 70%; }
.sk-main { padding: 6% 6%; display: flex; flex-direction: column; gap: 7%; }
.sk-title { height: 8px; width: 38%; background: var(--ink); border-radius: 3px; }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.sk-card { border: 1px solid var(--faint); border-radius: 6px; padding: 10% 10% 12%; display: flex; flex-direction: column; gap: 8px; }
.sk-card b { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); opacity: .85; }
.sk-card:nth-child(2) b { background: #17a84f; }
.sk-card:nth-child(3) b { background: var(--soft); opacity: .5; }
.sk-card i { height: 4px; background: var(--faint); }
.sk-card i:last-child { width: 60%; }
.sk-rows { display: flex; flex-direction: column; gap: 9px; }
.sk-rows i { height: 5px; background: var(--faint); }
.sk-rows i:nth-child(odd) { width: 85%; }

/* app screen sketch */
.screen--app { aspect-ratio: 9 / 19; border-radius: 17px; display: flex; flex-direction: column; }
.sk-head { background: var(--accent); padding: 26% 12% 10%; }
.sk-head i { height: 5px; width: 55%; background: #fff; opacity: .9; }
.sk-feed { flex: 1; padding: 10% 10%; display: flex; flex-direction: column; gap: 9%; }
.sk-post { display: flex; gap: 8%; align-items: center; }
.sk-post b { width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--faint); }
.sk-post span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sk-post i { height: 3px; background: var(--faint); }
.sk-post i:last-child { width: 60%; }
.sk-photo { height: 22%; border-radius: 6px; background: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.sk-tabs { display: flex; justify-content: space-around; padding: 7% 10% 10%; border-top: 1px solid var(--faint); }
.sk-tabs i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.sk-tabs i:first-child { background: var(--accent); }

@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr; gap: 40px; }
  .devices { max-width: 360px; padding: 0 6% 0 12%; justify-self: start; }
}


/* rollerblader leaning on the phone */
.blader { position: absolute; z-index: 2; left: -25.8%; bottom: -22px; width: 27%; overflow: visible; }
.blader__part, .blader__part path { fill: var(--ink); stroke: var(--bg); stroke-width: 5; stroke-linejoin: round; paint-order: stroke; }
.blader__part .blader__wheel { fill: var(--accent); stroke: var(--bg); stroke-width: 3; paint-order: stroke; }
.blader__limb { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.blader__gap { fill: none; stroke: var(--bg); stroke-linecap: round; stroke-linejoin: round; }
.blader__headout { fill: var(--bg); stroke: var(--bg); stroke-width: 5; stroke-linejoin: round; }
.blader__head { fill: var(--ink); }
.blader__phones { fill: var(--accent); stroke: var(--bg); stroke-width: 2.2; paint-order: stroke; }.blader__phones-band { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
@media (max-width: 900px) {
  .devices { padding-left: 30%; }
  .phone { left: 24%; }
  .blader { left: 1.6%; width: 25%; }
}
