html {
  scroll-behavior: smooth;
}

:root {
  --bg: #6f0b09;
  --ink: #f3e8c8;
  --muted: rgba(243, 232, 200, 0.72);
  --card: rgba(243, 232, 200, 0.9);
  color: var(--ink);
  background: var(--bg);
  font-family: "Euphoria Extra Light", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-weight: 200;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 24px clamp(20px, 4vw, 68px) 0;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 200;
}

.nav-right {
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 30px);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
}

.social-link svg {
  width: 26px;
  height: 26px;
  display: block;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(28px, 4.2vw, 72px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(54px, 7vw, 96px) clamp(24px, 6vw, 150px) 80px;
}

.contact-copy {
  display: grid;
  gap: clamp(54px, 8vw, 116px);
  align-content: center;
  justify-self: end;
  width: min(100%, 440px);
  transform: translateX(clamp(18px, 2.4vw, 44px));
}

.editable {
  outline: 0;
}

.editable:focus {
  box-shadow: 0 1px 0 var(--ink);
}

.contact-title {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 200;
  line-height: 1.08;
  text-transform: uppercase;
}

.contact-details {
  display: grid;
  gap: 18px;
  max-width: 440px;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
}

.contact-details p {
  margin: 0;
}

.contact-photo {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  overflow: hidden;
  background: var(--card);
  border-radius: 18px;
}

.contact-photo img {
  filter: saturate(0.92) contrast(0.98);
}

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.change-image {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 7px;
  border: 1px solid rgba(243, 232, 200, 0.45);
  background: rgba(111, 11, 9, 0.55);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 200;
  line-height: 1;
  opacity: 0;
  transition: opacity 160ms ease;
}

.contact-photo:hover .change-image,
.contact-photo:focus-within .change-image {
  opacity: 1;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 70px;
    padding-inline: 20px;
  }

  .nav-left {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .nav-right {
    gap: 12px;
  }

  .contact-page {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-inline: 20px;
    padding-top: 56px;
  }

  .contact-copy {
    gap: 42px;
  }

  .contact-photo {
    width: min(100%, 560px);
    justify-self: center;
  }

  .change-image {
    opacity: 1;
    font-size: 10px;
  }
}
