:root {
  --ink: #111827;
  --blue: #2a4bff;
  --line: #dbe0e9;
  --paper: #f7f9fc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
.skip {
  position: absolute;
  top: -60px;
}
.skip:focus {
  top: 8px;
  background: white;
  z-index: 10;
}
header,
main,
footer {
  max-width: 1280px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 56px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700;
  letter-spacing: -0.4px;
}
.brand span {
  color: var(--blue);
  margin: 0 12px;
}
nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.hero {
  padding: 74px 56px 0;
}
.eyebrow,
.type {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 1px;
}
.eyebrow {
  color: var(--blue);
}
h1 {
  font-size: clamp(64px, 8.5vw, 112px);
  line-height: 1.02;
  letter-spacing: -6px;
  font-weight: 600;
  margin: 32px 0 36px;
}
h1 span {
  color: var(--blue);
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: center;
}
.hero-bottom p {
  max-width: 580px;
  font-size: 21px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.button {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 14px 22px;
  border: 1px solid var(--blue);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.button:hover {
  background: #1838db;
  text-decoration: none;
}
.text-link {
  border-bottom: 1px solid var(--ink);
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 55px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  gap: 20px;
}
.facts strong,
.facts span {
  display: block;
}
.facts strong {
  font-size: 19px;
}
.facts span {
  font-size: 14px;
  color: #647084;
  margin-top: 4px;
}
.section {
  padding: 90px 56px 0;
}
.section-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 15px 40px;
  margin-bottom: 38px;
}
.section-top .eyebrow {
  grid-column: 1;
}
.section-top h2 {
  grid-column: 2;
  grid-row: 1/3;
}
h2 {
  font-size: clamp(35px, 4.4vw, 56px);
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 0;
  font-weight: 600;
}
.section-top > p {
  grid-column: 1;
  margin: 12px 0;
  color: #647084;
  font-size: 15px;
}
.project {
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
}
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #101b35;
  color: white;
  gap: 56px;
  padding: 42px;
}
.number {
  display: inline-block;
  font-family: monospace;
  color: var(--blue);
  margin-right: 14px;
}
.featured .number {
  color: #9cabff;
}
.type {
  font-size: 12px;
  color: #647084;
  letter-spacing: 0.6px;
}
.featured .type {
  color: #b0bfd8;
}
h3 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 24px 0 18px;
}
p {
  margin: 14px 0;
  color: #465166;
}
.featured p {
  color: #bac6dc;
}
.project-intro h3 {
  font-size: 39px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 27px;
}
.tags span {
  font-family: monospace;
  font-size: 12px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: #58657a;
}
.featured .tags span {
  border-color: #3c4865;
  color: #d4ddef;
}
h4 {
  font-size: 17px;
  margin: 20px 0 8px;
}
.project-detail h4:first-child {
  margin-top: 0;
}
.flow {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #3c4865;
  padding-top: 24px;
  margin-top: 30px;
  font-family: monospace;
  font-size: 12px;
  flex-wrap: wrap;
}
.flow b {
  color: #8498ff;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
details {
  margin-top: 22px;
}
summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 14px;
}
details p {
  font-size: 14px;
}
.personal {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  background: #edf1ff;
}
.personal h3 {
  margin-top: 20px;
}
.personal > div:last-child {
  align-self: center;
}
.outline {
  background: transparent;
  color: var(--blue);
  margin-top: 15px;
}
.outline:hover {
  color: white;
}
.job {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.job h3 {
  margin: 15px 0 8px;
}
.job h4 {
  margin-top: 0;
}
.job > div:first-child p {
  font-size: 14px;
}
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.skills h4 {
  margin-top: 0;
}
.learning {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 25px;
}
.learning p {
  font-size: 14px;
}
.contact {
  background: var(--blue);
  color: white;
  margin: 85px 0 0;
  padding: 65px 56px;
}
.contact .eyebrow {
  color: #d5dcff;
}
.contact h2 {
  font-size: clamp(42px, 6vw, 72px);
  margin-top: 25px;
}
.contact p {
  color: #e0e5ff;
  margin-top: 25px;
}
.email {
  display: inline-block;
  font-size: clamp(17px, 3vw, 29px);
  margin: 20px 0;
  border-bottom: 1px solid #a2b0ff;
  overflow-wrap: anywhere;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 20px;
  font-size: 14px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 56px;
  font-size: 14px;
  color: #647084;
}
@media (max-width: 800px) {
  header {
    padding: 24px;
  }
  nav {
    gap: 18px;
  }
  .brand span {
    margin: 0 5px;
  }
  .hero {
    padding: 50px 24px 0;
  }
  h1 {
    letter-spacing: -3px;
  }
  .hero-bottom {
    display: block;
  }
  .hero-bottom p {
    font-size: 19px;
  }
  .hero-actions {
    margin-top: 25px;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 40px;
  }
  .section {
    padding: 65px 24px 0;
  }
  .section-top {
    display: block;
  }
  .section-top h2 {
    margin-top: 20px;
  }
  .section-top > p {
    max-width: 400px;
    margin-top: 20px;
  }
  .featured,
  .project-grid,
  .personal,
  .job,
  .skills {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project,
  .featured {
    padding: 26px;
  }
  .project-intro h3 {
    font-size: 33px;
  }
  .job {
    gap: 12px;
  }
  .contact {
    padding: 45px 24px;
    margin-top: 60px;
  }
  footer {
    padding: 24px;
  }
  .contact-links {
    gap: 18px;
  }
}
@media (max-width: 430px) {
  header {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  nav {
    width: 100%;
    justify-content: space-between;
  }
  h1 {
    font-size: 60px;
  }
  .hero-actions {
    gap: 20px;
  }
  .contact h2 {
    font-size: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
