@font-face {
  font-family: 'Neue Montreal';
  src: url('fonts/PPNeueMontreal-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('fonts/PPNeueMontreal-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('fonts/PPNeueMontreal-Extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('fonts/PPNeueMontrealText-Book.otf') format('opentype');
  font-weight: 450;
  font-style: normal;
}

:root {
  --bg: #f4f2ed;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #5e17eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Neue Montreal', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.sidebar {
  position: sticky;
  top: 4rem;
  align-self: start;
}

.site-name {
  margin: 0 0 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
}

.site-name a {
  color: var(--accent);
  border-bottom: none;
}

.site-name a:hover {
  color: var(--accent);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.side-nav a {
  font-family: 'Neue Montreal', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--muted);
  border-bottom: none;
  padding: 0.15rem 0;
}

.side-nav a:hover,
.side-nav a:focus {
  color: var(--accent);
}

.side-nav a.active {
  color: var(--accent);
}

section {
  padding: 2.5rem 0;
}

h2 {
  font-family: 'Neue Montreal', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

h3 {
  font-family: 'Neue Montreal', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 1rem;
}

.project {
  margin-bottom: 1.75rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover,
a:focus {
  border-bottom-color: var(--accent);
}

.accent {
  color: var(--accent);
}

.contact-btn {
  display: inline-block;
  font-family: 'Neue Montreal', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 0.4rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.contact-btn:hover {
  background: var(--accent);
  color: #fff;
}

#selected-work h3 {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .sidebar {
    position: static;
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
