:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: #213547;
  background-color: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-y: scroll;
  background-color: #ffffff;
  color: #213547;
}

a {
  font-weight: 500;
  color: inherit;
  text-decoration: inherit;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #000;
  line-height: 1.2;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.name:hover {
  color: #545454;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 400;
}

.nav a:hover {
  color: #333;
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-icon svg {
  display: block;
}

.main {
  margin-bottom: 2rem;
}

.description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #333;
  margin: 0 0 0.5rem;
}

.description:last-child {
  margin-bottom: 0;
}

.description a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #aaa;
  text-underline-offset: 2px;
  font-weight: 400;
}

.description a:hover {
  text-decoration-color: #333;
}

.interests-label {
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.interests {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #333;
}

.interests li {
  margin: 0.1rem 0;
}

.note {
  margin-top: 0.75rem;
  color: #555;
}

.note span[lang="he"] {
  font-weight: 600;
  color: #333;
}

.ai-only {
  margin: 0;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.6;
  user-select: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #ffffffde;
    background-color: #242424;
  }

  body {
    background-color: #242424;
    color: #ffffffde;
  }

  .name {
    color: #fff;
  }

  .name:hover {
    color: #dedede;
  }

  .nav a {
    color: #999;
  }

  .nav a:hover {
    color: #fff;
  }

  .description {
    color: #ccc;
  }

  .description a {
    text-decoration-color: #555;
  }

  .description a:hover {
    text-decoration-color: #ccc;
  }

  .interests {
    color: #ccc;
  }

  .note {
    color: #999;
  }

  .note span[lang="he"] {
    color: #ccc;
  }

  .ai-only {
    color: #242424;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 2rem 1.5rem;
  }

  .header {
    margin-bottom: 2rem;
  }

  .nav {
    gap: 0.75rem;
  }

  .name {
    font-size: 1.25rem;
  }

  .description,
  .interests {
    font-size: 0.875rem;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 1.5rem 1.15rem;
  }

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

  .name {
    font-size: 1.125rem;
  }
}
