:root {
  --primary: #f7f5ed;
  --secondary: #121111;
}

[light-mode] {
  --primary: #121111;
  --secondary: #e1e1e1;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--primary);
  background-color: var(--secondary);
  font-family: Manrope, sans-serif;
  font-size: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 5em;
  overflow-x: hidden;
}
@media screen and (max-width: 450px) {
  body {
    font-size: 1rem;
  }
}
@media screen and (min-width: 974px) and (max-width: 1199px) {
  body {
    font-size: 1.1rem;
  }
}

::selection {
  color: var(--secondary);
  background: var(--primary);
}

.header {
  display: flex;
  justify-content: space-between;
  padding-block: 1.5em;
  margin: 0 2em;
  position: sticky;
  top: 0;
  background: var(--secondary);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 1em;
}
@media screen and (max-width: 699px) {
  .nav-items {
    display: none;
  }
}

.nav-items a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-items a:hover {
  opacity: 0.7;
}

.btn {
  text-decoration: none;
  color: var(--secondary);
  background: var(--primary);
  width: 7em;
  text-align: center;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 0.2em;
  transition: all 0.2s;
}
.btn:hover {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.hero {
  display: flex;
  justify-content: space-between;
  padding-block: 1.5em;
  padding: 0 2em;
  padding-top: 1.5em;
  gap: 5em;
}
@media screen and (max-width: 1099px) {
  .hero {
    gap: 2.5em;
  }
}

.hero .headline {
  justify-content: center;
  display: flex;
  flex-direction: column;
  font-size: 1.25em;
  gap: 2em;
}
@media screen and (max-width: 974px) {
  .hero .headline {
    text-align: center;
  }
  .hero .headline .btn {
    width: 100%;
  }
}

.hero img {
  max-width: 30%;
  height: 22em;
  object-fit: cover;
  border-radius: 1em;
}
@media screen and (max-width: 1199px) {
  .hero img {
    max-width: 35%;
  }
}
@media screen and (max-width: 974px) {
  .hero img {
    display: none;
  }
}

.section {
  padding: 0 2em;
  padding-top: 5em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.card {
  flex: 1;
  background: var(--primary);
  border-radius: 0.5em;
  color: var(--secondary);
  padding: 1em;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.card .sub {
  display: block;
  font-size: 0.8em;
  text-decoration: underline;
  margin-bottom: 1em;
}

.card:hover {
  color: var(--primary);
  background: var(--secondary);
  border: 1px solid var(--primary);
  cursor: context-menu;
}

.card ::selection {
  color: var(--primary);
  background: var(--secondary);
}

.card:hover ::selection {
  color: var(--secondary);
  background: var(--primary);
}

.services-list {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}
@media screen and (max-width: 1099px) {
  .services-list {
    flex-direction: column;
  }
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}
@media (max-width: 1099px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}
