@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  font-family: Manrope, system-ui, sans-serif;
  background: #151312;
  color: #f8f1e8;
  --accent: #f0b58d;
  --muted: #c2b1a4;
  --line: #57463b;
  --edge: clamp(20px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

.shell { width: min(100% - 2 * var(--edge), 1420px); margin-inline: auto; }

.top, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  font-size: .875rem;
}

.top { border-bottom: 1px solid var(--line); }
.wordmark, .jump, .footer a, .action { display: inline-flex; align-items: center; gap: 10px; }
.wordmark { font-weight: 750; }
.mark { width: 13px; aspect-ratio: 1; background: var(--accent); rotate: 45deg; }
.jump, .footer a, .action { color: var(--accent); }
.jump, .footer a { min-height: 44px; }

.intro {
  display: grid;
  grid-template-columns: 1fr minmax(245px, 23rem);
  align-items: end;
  gap: 32px;
  padding-block: clamp(38px, 6vw, 100px) clamp(28px, 4vw, 62px);
}

.intro h1 {
  font-size: clamp(2.75rem, 8.1vw, 8.2rem);
  font-weight: 650;
  line-height: .94;
  letter-spacing: -.092em;
}

.intro p { color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.3rem); line-height: 1.55; }

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 64px) clamp(18px, 3vw, 44px);
  scroll-margin-top: 16px;
}

.feature { grid-column: 1 / -1; }
.project { min-width: 0; }
.project-link { display: block; }
.frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #29211e; border: 1px solid var(--line); }
.feature .frame { aspect-ratio: 2.28; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 360ms ease; }
.feature img { object-position: center 49%; }
.project-link:hover img { transform: scale(1.025); }

.caption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  min-height: 106px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.caption h2 { font-size: clamp(1.3rem, 2.6vw, 2.35rem); font-weight: 700; letter-spacing: -.05em; }
.caption p { margin-top: 5px; font-size: .875rem; color: var(--muted); line-height: 1.55; }
.action { flex: none; font-size: .875rem; padding-block: 7px; }
.project-link:hover .action { text-decoration: underline; text-underline-offset: 4px; }
.footer { margin-top: clamp(28px, 6vw, 85px); color: var(--muted); }

@media (max-width: 720px) {
  .top { min-height: 60px; }
  .intro { grid-template-columns: 1fr; gap: 16px; }
  .intro p { max-width: 30rem; }
  .projects { grid-template-columns: 1fr; }
  .feature .frame { aspect-ratio: 16 / 10; }
  .caption { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img { transition: none; }
}
