*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #14110e;
}

body {
  margin: 0;
  color: #f4efe4;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.mast {
  background: #f4efe4;
  border-bottom: 1px solid #cfc6b8;
  padding: 0.5rem 6vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
}

.mark {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
}

.wordmark {
  color: #002868;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@media (max-width: 22.5rem) {
  .mast {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .wordmark {
    letter-spacing: 0.02em;
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.8rem);
  padding: 7.5rem 6vw 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #1a1612;
}

.hero-photo,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 13, 10, 0.95) 0%,
    rgba(16, 13, 10, 0.93) 34%,
    rgba(16, 13, 10, 0.45) 46%,
    rgba(16, 13, 10, 0.06) 58%,
    rgba(16, 13, 10, 0) 72%
  );
}

@media (max-width: 52rem) {
  .hero {
    justify-content: flex-end;
    padding-top: 2rem;
  }

  .hero-photo img {
    object-position: 55% 70%;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(16, 13, 10, 0) 0%,
      rgba(16, 13, 10, 0.02) 38%,
      rgba(16, 13, 10, 0.62) 62%,
      rgba(16, 13, 10, 0.92) 80%,
      rgba(16, 13, 10, 0.95) 100%
    );
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 26rem;
}

h1,
h2 {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 500;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1.5rem;
  color: #c4b8a8;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem;
}

.hero-copy p {
  color: #e8e0d4;
  font-size: 1.125rem;
}

main {
  margin: 0 auto;
  max-width: 68.75rem;
  padding: 4.5rem 6vw 3rem;
}

.work ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 52rem) {
  .work ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.work li {
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid #5c5348;
  color: #e8e0d4;
}

.contact {
  margin-top: 4rem;
}

.mail {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.7rem 1.15rem;
  min-height: 2.75rem;
  border: 1px solid #c4b8a8;
  color: #f4efe4;
  text-decoration: none;
}

.mail:hover {
  background: #f4efe4;
  color: #14110e;
}

.mail:focus-visible {
  outline: 2px solid #f4efe4;
  outline-offset: 3px;
}

footer {
  margin: 0 auto;
  max-width: 68.75rem;
  padding: 0 6vw 3rem;
  color: #9a9186;
  font-size: 0.95rem;
}

footer p {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid #3a342e;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.9s ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
