:root {
  --black: #231f20;
  --gray: #666666;
  --font:
    "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", Roboto, "Liberation Sans", sans-serif;
  --tight-kern: -0.04em;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 6rem;
  font-family: var(--font);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  max-width: 1080px;
  margin: 0 auto;
}

body::selection {
  background-color: hsl(355, 100%, 60%);
  color: var(--black);
}

body::-moz-selection {
  background-color: hsl(355, 100%, 60%);
  color: var(--black);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: var(--tight-kern);
  margin: 0;
}

p {
  font-size: 1.2rem;
  max-width: 500px;
}

a {
  color: var(--black);
  transition: color 0.2s;
}
a:hover {
  color: var(--gray);
}

.container {
  max-width: 600px;
}

header {
  border-bottom: 3px solid var(--black);
  padding-bottom: 0.5rem;
  margin-bottom: 6rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  margin-left: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo svg {
  display: block;
}

.waterfall-grid {
  max-width: 1080px;
  column-count: 3;
  column-gap: 0.9rem;
  margin-top: 2rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.9rem;
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  filter: grayscale(100%);
  transition: filter 0.2s ease-in-out;
}

.gallery-item:hover img {
  filter: grayscale(20%);
}

.lightbox-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  outline: none;
  overflow: hidden;
}

.lightbox-modal img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-modal::backdrop {
  background-color: rgba(35, 31, 32, 0.85);
  backdrop-filter: blur(4px);
}

.services-grid-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
  max-width: 1080px;
}

.services-grid-section .section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--black);
  padding-bottom: 0.4rem;
  margin: 0 0 1.5rem 0;
}

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

.service-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 0.35rem 0;
  letter-spacing: 0.02em;
}

.service-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-col ul li {
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 0.25rem;
  color: var(--black);
}

.status-block {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 3px solid var(--black);
}

.label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  display: block;
  padding-bottom: 1rem;
}

.cta-link {
  font-weight: 500;
  text-decoration: underline;
  padding-bottom: 3em;
  font-size: 2rem;
}

.email-link {
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid var(--black);
}

footer {
  position: fixed;
  bottom: 0;
  right: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.05rem 1rem;
}

footer p {
  font-size: 0.75em;
  color: var(--gray);
}

.resume-body {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.job {
  margin-bottom: 3.5rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--black);
}

.job-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--tight-kern);
}

.job-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray);
}

.company {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
  margin: 0 0 0.5rem 0;
}

.job-description {
  font-size: 1.05rem;
  margin: 0;
  color: var(--black);
}

@media (max-width: 768px) {
  body {
    padding: 2.5rem;
  }
  header {
    margin-bottom: 4rem;
  }
  .header-top {
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
  }
  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
  h1 {
    font-size: 2.5rem;
    max-width: 80%;
  }
  .waterfall-grid {
    column-count: 1;
  }
  .services-columns {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  footer {
    position: static;
    margin-top: 4rem;
  }
  .job-header {
    flex-direction: column;
    gap: 0.25rem;
  }
  .job-date {
    font-size: 0.85rem;
  }
}
