* {
    box-sizing: border-box;
}

html {
  font-size: 100%;
}

@media (min-width: 1200px) {
  html {
    font-size: 125%;
  }
}
@media (min-width: 2000px) {
  html {
    font-size: 150%;
  }
}

body {
    margin: 0;
    padding: 1.5vw;
    box-sizing: border-box;
    font-family: monospace;
    background: #121212;
    color: #ddd;

    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 1.5rem;
    min-height: 100vh;
}

nav, aside {
    border: 1px dashed #444;
    padding: 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    color: #88c0d0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

main {
    min-width: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1400px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-grid article {
    border: 1px solid #333;
    padding: 1rem;
    background: #181818;
    display: flex;
    flex-direction: column;
}

.project-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin-bottom: 0.75rem;
}

aside {
    display: flex;
    flex-direction: column;
    height: 95vh;
    overflow: hidden;
}

.chat-messages {
    display: flex;
    flex-direction: column-reverse;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    border-bottom: 1px solid #333;
    margin-bottom: 0.5rem;
}

aside input {
    width: 100%;
    padding: 0.5rem;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    box-sizing: border-box;
}

@media (max-width: 900px) {
  body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0;
    list-style: none;
  }

  aside {
    height: 350px;
  }
}

.article-card-link {
  color: inherit;
  text-decoration: inherit;
  display: block;
}
