:root {
  color-scheme: dark;
  --background: #111311;
  --surface: #181b18;
  --surface-hover: #1d211d;
  --text: #e9e9e2;
  --muted: #969a91;
  --accent: #c02c38;
  --border: #2b302a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: 94px 0 44px;
}

.intro { padding-bottom: 42px; }

.eyebrow, .project-type {
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .16em;
}

.eyebrow { margin: 0 0 20px; }

.intro h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 560;
  letter-spacing: -.065em;
  line-height: 1.05;
}

.intro h1 span { color: var(--accent); }

.intro-copy {
  max-width: 460px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.intro-links { display: flex; gap: 22px; }

.intro-links a {
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: color .18s ease;
}

.intro-links a span { color: var(--accent); margin-left: 3px; }
.intro-links a:hover { color: var(--accent); }

.experience {
  padding: 27px 0 37px;
  border-top: 1px solid var(--border);
}

.experience-overview { max-width: 700px; margin: 21px 0 27px; }
.experience-overview h3, .role-heading h3 { margin: 0 0 8px; font-size: 13px; font-weight: 560; }
.experience-overview p, .company-name { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.company-name { color: var(--accent); font-size: 11px; letter-spacing: .08em; }
.experience-role { padding-top: 20px; border-top: 1px solid var(--border); }
.role-heading { display: flex; justify-content: space-between; align-items: baseline; }
.experience-list { display: grid; gap: 13px; margin: 16px 0 0; padding: 0; list-style: none; }
.experience-list li { position: relative; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.experience-list li::before { position: absolute; left: 0; color: var(--accent); content: "•"; }

.projects { margin-top: 34px; padding: 31px 0 48px; border-top: 1px solid var(--border); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.section-heading h2, .socials h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -.015em;
}

.section-heading span { color: var(--muted); font-size: 11px; }

.project-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.project-card:hover {
  border-color: #454d40;
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.project-card + .project-card { margin-top: 18px; }

.project-image {
  position: relative;
  height: clamp(190px, 35vw, 285px);
  overflow: hidden;
  background: #20251f;
}

.project-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.project-card:hover .project-image img { transform: scale(1.025); }

.project-image {
  flex: 0 0 148px;
  width: 148px;
  height: 112px;
  align-self: center;
  margin: 14px 0 14px 14px;
  border-radius: 5px;
}

.project-info { flex: 1; min-width: 0; }

.project-mark {
  position: relative;
  display: grid;
  flex: 0 0 148px;
  width: 148px;
  height: 112px;
  place-items: center;
  align-self: center;
  margin: 14px 0 14px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #201719;
  color: var(--accent);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.06em;
}

.project-mark span {
  position: absolute;
  right: 10px;
  top: 7px;
  font-size: 13px;
  font-weight: 400;
}

.project-card-compact:hover .project-mark { background: #28191b; }

.project-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(17,19,17,.72);
  color: var(--text);
  font-size: 16px;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 19px 20px 21px;
}

.project-info h3 { margin: 0 0 6px; font-size: 15px; font-weight: 550; }
.project-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.project-type { flex: none; font-size: 9px; }

.socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.socials p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.social-links { display: flex; gap: 8px; }

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.social-links a:hover {
  border-color: #454d40;
  background: var(--surface);
  color: var(--accent);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a:nth-child(2) svg,
.social-links a:nth-child(3) svg { fill: currentColor; stroke: none; }
.social-links svg .fill { fill: currentColor; stroke: none; }
.social-links a:last-child svg { fill: currentColor; stroke: none; }
.social-links a:last-child svg .play { fill: var(--background); }

.article-container { max-width: 700px; }
.back-link { color: var(--muted); font-size: 12px; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.article { margin-top: 55px; }
.article-header { padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.article-header .eyebrow { margin-bottom: 17px; }
.article-header h1 { max-width: 600px; margin: 0; font-size: clamp(38px, 7vw, 58px); font-weight: 550; letter-spacing: -.055em; line-height: 1.08; }
.article-header h1 span { color: var(--accent); }
.article-lede { max-width: 500px; margin: 17px 0 21px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.repo-link { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: 13px; text-decoration: none; }
.repo-link:hover { color: #e34b57; }
.article-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.article-section { padding: 29px 0; border-bottom: 1px solid var(--border); }
.article-section h2 { margin: 0 0 13px; font-size: 17px; font-weight: 550; letter-spacing: -.02em; }
.article-section p { margin: 0 0 13px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.article-section p:last-child { margin-bottom: 0; }
.article-section em { color: var(--text); font-style: normal; }
.inline-link { color: var(--accent); text-decoration: none; }
.inline-link:hover { color: #e34b57; }
.steps { display: grid; gap: 14px; margin: 19px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 35px; color: var(--muted); font-size: 13px; line-height: 1.7; counter-increment: step; }
.steps li::before { position: absolute; left: 0; top: 0; color: var(--accent); content: "0" counter(step); font-size: 11px; letter-spacing: .05em; }
.steps strong { color: var(--text); font-weight: 550; }
.article-section > p strong { color: var(--text); font-weight: 550; }
.benchmark-figure { margin: 22px 0 0; padding: 16px; border: 1px solid var(--border); border-radius: 7px; background: #080a08; }
.benchmark-figure img { display: block; width: 100%; height: auto; }
.benchmark-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 11px; }
.article-next { border-bottom: 0; }
.article-next p { margin-bottom: 17px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 560px) {
  .container { width: min(100% - 36px, 760px); padding-top: 62px; }
  .intro { padding-bottom: 34px; }
  .intro-copy { font-size: 14px; }
  .experience { padding-bottom: 29px; }
  .experience-overview { margin: 18px 0 22px; }
  .experience-list { gap: 11px; }
  .experience-list li, .experience-overview p { font-size: 12px; }
  .projects { margin-top: 26px; padding-top: 25px; }
  .project-image, .project-mark { flex-basis: 96px; width: 96px; height: 82px; margin: 10px 0 10px 10px; }
  .project-info { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding: 14px; }
  .project-info p { font-size: 11px; }
  .socials { align-items: flex-start; flex-direction: column; }
  .social-links { gap: 7px; }
  .article { margin-top: 42px; }
  .article-section p { font-size: 13px; }
  .benchmark-figure { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
