:root {
  color-scheme: light;
  --canvas: #ffffff;
  --ink: #24231f;
  --line: #deddd9;
  --accent: #3f554d;
  --page-padding: clamp(1.25rem, 3.2vw, 3.5rem);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent);
}

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

.page-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.layout {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4.5rem, 10vw, 9rem);
}

.content {
  max-width: 61rem;
  margin-left: clamp(0rem, 12vw, 10rem);
}

.identity-main {
  display: grid;
  grid-template-columns: clamp(8.5rem, 12vw, 11rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.portrait {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #efefed;
  border-radius: 50%;
}

.portrait video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 7ch;
  margin: 0 0 1.8rem;
  font-size: clamp(3.15rem, 5.2vw, 5.25rem);
  line-height: 0.89;
}

.lead {
  max-width: 30rem;
  margin-bottom: 2rem;
  font-size: clamp(1.03rem, 1.45vw, 1.23rem);
  line-height: 1.48;
}

.identity {
  margin-bottom: clamp(3rem, 5vw, 4.75rem);
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.telegram-link span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.telegram-link:active {
  transform: scale(0.96);
}

svg {
  width: 0.82rem;
  height: 0.82rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
}

.section-heading {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--ink);
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.55rem);
  line-height: 1;
}

.project-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.project {
  padding: clamp(2rem, 4.2vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.project-heading {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

.project-icon {
  width: 3.1rem;
  height: 3.1rem;
  margin-top: 0.05rem;
  object-fit: cover;
  border-radius: 23%;
}

.project-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
}

h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3.1vw, 2.8rem);
  line-height: 0.98;
}

.project-platform {
  width: 1.22rem;
  height: 1.22rem;
  opacity: 0.72;
}

.project-description {
  max-width: 40rem;
  margin: 0 0 1.25rem 4.1rem;
  color: #4e4b44;
  font-size: 1rem;
  line-height: 1.55;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-left: 4.1rem;
  font-size: 0.9rem;
}

.project-links a {
  color: var(--accent);
  font-weight: 500;
}

.project-links svg,
.telegram-link svg {
  transition: transform 180ms ease;
}

.project-links a:hover svg {
  transform: translate(2px, -2px);
}

.telegram-link svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: currentColor;
  stroke: none;
}

.telegram-link:hover svg {
  transform: translate(1px, -1px);
}

.fade-in {
  opacity: 1;
  transform: none;
}

.js .fade-in {
  opacity: 0;
  transform: translateY(0.5rem);
  transition:
    opacity 460ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.js.is-ready .fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .layout {
    padding: 1.25rem 0 4rem;
  }

  .content {
    margin-left: 0;
  }

  .identity-main {
    display: block;
  }

  .intro {
    width: clamp(7rem, 27vw, 9rem);
    margin-bottom: 1.6rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .project-heading {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .project-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .project-description,
  .project-links {
    margin-left: 3.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .fade-in,
  .project-links svg,
  .telegram-link svg {
    transition: none;
  }
}
