:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --text: #141414;
  --muted: #737373;
  --line: #deded9;
  --line-strong: #bdbdb5;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
}

.logo {
  font-size: 15px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  padding: 6px 0;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.intro {
  max-width: 720px;
  padding: 116px 0 72px;
}

.contact-intro {
  padding-bottom: 56px;
}

.label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.projects,
.contacts {
  border-top: 1px solid var(--line);
}

.project,
.contact-row {
  display: grid;
  align-items: center;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.project {
  grid-template-columns: 64px minmax(0, 1fr) minmax(150px, auto);
  gap: 28px;
}

.project:hover,
.contact-row:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateX(6px);
}

.project-index,
.project-link,
.project-main span,
.contact-row span {
  color: var(--muted);
}

.project-index,
.project-link {
  font-size: 14px;
  font-weight: 600;
}

.project-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.project:hover .project-action {
  background: var(--surface);
  color: var(--text);
}

.project-main {
  display: grid;
  gap: 8px;
}

.project-main strong,
.contact-row strong {
  font-size: 24px;
  line-height: 1.15;
}

.project-main span {
  max-width: 460px;
  font-size: 15px;
  line-height: 1.5;
}

.contacts {
  max-width: 720px;
}

.contact-row {
  grid-template-columns: 1fr auto;
  gap: 24px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 28px, 980px);
    padding-top: 18px;
  }

  .header {
    align-items: flex-start;
  }

  .intro {
    padding: 86px 0 54px;
  }

  .project {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
  }

  .project-link {
    grid-column: 2;
  }

  .project-action {
    grid-column: 2;
    justify-self: start;
  }

  .project,
  .contact-row {
    min-height: auto;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .project:hover,
  .contact-row:hover {
    transform: none;
  }
}
