:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: #12141a;
  --text: #f4f6fb;
  --muted: #a3a9b8;
  --line: #242833;
  --accent: #7dd3fc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 15, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(960px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
  gap: 18px;
}

.brand {
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.tabs a:hover,
.tabs a:focus-visible,
.tabs a[aria-current="page"] {
  background: #1b1f29;
  color: var(--text);
  outline: none;
}

main {
  width: min(960px, calc(100% - 32px));
  min-height: calc(100vh - 115px);
  margin: 0 auto;
}

.page {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 115px);
  padding: 72px 0;
}

.home-page {
  justify-items: center;
  text-align: center;
}

.profile-photo {
  width: clamp(140px, 20vw, 184px);
  height: clamp(140px, 20vw, 184px);
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.lead,
.page p {
  max-width: 680px;
  color: var(--muted);
}

.lead {
  margin-bottom: 30px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.app-list {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.app-row:last-child {
  border-bottom: 1px solid var(--line);
}

.app-row p {
  margin-bottom: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.contact-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 750;
  text-decoration: none;
}

.site-footer {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 10px;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tabs a {
    flex: 1 0 auto;
  }

  .page {
    min-height: auto;
    padding: 64px 0 52px;
  }

  .app-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .actions,
  .button {
    width: 100%;
  }
}
