* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "IBM Plex Sans", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.site-shell {
  min-height: 100vh;
  padding: 1.25rem;
}

.frame {
  border: 1px solid var(--black);
  min-height: calc(100vh - 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--white);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--black);
  padding-bottom: 1rem;
}

.nav-center {
  justify-self: center;
  display: inline-flex;
  gap: 1.5rem;
}

.nav-link {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px solid var(--white);
  padding-bottom: 0.15rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  border-bottom-color: var(--black);
}

.mode-button {
  justify-self: end;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1;
}

main {
  padding-top: 2rem;
}

section {
  margin-top: 4rem;
}

h1,
h2,
h3 {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 500;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--black);
  padding-bottom: 0.5rem;
  margin-bottom: 1.2rem;
}

p,
li,
a,
small {
  font-size: 0.97rem;
}

a {
  color: var(--black);
}

.hero {
  margin-top: 1.25rem;
}

.hero-meta {
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1rem;
}

.texture {
  border: 1px solid var(--black);
  padding: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Crect width='8' height='8' fill='white'/%3E%3Crect x='0' y='0' width='1' height='1' fill='black'/%3E%3Crect x='4' y='4' width='1' height='1' fill='black'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.texture > * {
  background: var(--white);
  padding: 0.9rem;
  border: 1px solid var(--black);
}

.about-copy p + p {
  margin-top: 0.9rem;
}

.contact-list {
  list-style: none;
}

.contact-list li + li {
  margin-top: 0.6rem;
}

.work-intro {
  max-width: 60ch;
}

.work-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.work-item {
  border: 1px solid var(--black);
  padding: 1rem;
}

.work-item h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.work-item p {
  margin-bottom: 0.7rem;
}

.work-item ul {
  list-style: square;
  padding-left: 1.1rem;
  margin-bottom: 0.6rem;
}

.work-item li + li {
  margin-top: 0.35rem;
}

.note {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
}

.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--black);
  padding-top: 1rem;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .frame {
    padding: 1rem;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
  }

  .nav-center {
    gap: 0.8rem;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 0.5rem;
  }

  .frame {
    min-height: calc(100vh - 1rem);
    padding: 0.75rem;
  }

  .topbar {
    padding-bottom: 0.75rem;
  }

  main {
    padding-top: 1.2rem;
  }

  section {
    margin-top: 2.4rem;
  }

}
