:root {
  color-scheme: dark;
  --ink: #f6f0e7;
  --muted: rgba(246, 240, 231, 0.78);
  --shadow: rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  overflow: hidden;
  background: #0d0d0d;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.home {
  min-height: 100vh;
  position: relative;
}

.home::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0.42), transparent 24rem),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 100%);
  content: "";
  pointer-events: none;
}

.contact {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-align: center;
  text-shadow: 0 1px 20px var(--shadow), 0 0 2px rgba(0, 0, 0, 0.36);
}

h1 {
  margin: 0;
  font: inherit;
  font-size: clamp(1.7rem, 3.1vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

a {
  width: fit-content;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.2;
  text-decoration-color: rgba(246, 240, 231, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.photos {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #111;
}

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

.photos img:first-child {
  object-position: center bottom;
}

.photos img:last-child {
  object-position: 50% 52%;
}

@media (max-width: 44rem) {
  .contact {
    top: 50%;
    width: min(100% - 2rem, 24rem);
  }

  .photos {
    height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .photos img {
    height: 50vh;
  }

  .photos img:first-child {
    object-position: center center;
  }

  h1 {
    white-space: normal;
  }
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
