:root {
  --ink: #242421;
  --paper: #eeede9;
  --line: #cac8c1;
  --mono: "IBM Plex Mono", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    400 16px/1.5 "DM Sans",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
body > header,
main {
  width: min(1510px, 92%);
  margin: auto;
}
body > header {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
  text-decoration: none;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.logo img {
  width: 52px;
  height: auto;
  border-radius: 24%;
  flex-shrink: 0;
}
body > header > span,
.domain {
  font: 12px var(--mono);
  letter-spacing: 0.1em;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(44px, 7vh, 85px) 0 33px;
}
.domain {
  margin: 0 0 12px;
  color: #6a655f;
}
.intro h1 {
  font-size: clamp(49px, 6.1vw, 98px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.075em;
  margin: 0;
}
.devices {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 30px;
  align-self: flex-end;
}
.devices button {
  border-radius: 30px;
  padding: 8px 16px;
  background: none;
  color: #56534f;
  border: 0;
  cursor: pointer;
  font:
    500 13px "DM Sans",
    sans-serif;
}
.devices button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.25vw, 40px);
  padding: 12px 0 65px;
}
.preview {
  padding: 0;
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.5;
  border: 1px solid #0002;
  border-radius: 5px;
  overflow: hidden;
  cursor: zoom-in;
  background: #101112;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}
.preview span {
  display: grid;
  place-items: center;
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  color: white;
  background: #171717b3;
  border: 1px solid #ffffff45;
  border-radius: 4px;
}
.preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #17171326;
}
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.title h2 {
  font-weight: 550;
  letter-spacing: -0.055em;
  font-size: clamp(28px, 2.5vw, 43px);
  line-height: 1.12;
  margin: 0;
}
.title i {
  width: 32px;
  height: 6px;
  background: linear-gradient(
    90deg,
    #171819 0 33%,
    #ff723b 33% 66%,
    #c9bfad 66%
  );
}
[data-key="contact-sheet"] .title i {
  background: linear-gradient(
    90deg,
    #f0eadd 0 33%,
    #d63222 33% 66%,
    #191815 66%
  );
}
[data-key="signal-path"] .title i {
  background: linear-gradient(
    90deg,
    #111331 0 33%,
    #596ce3 33% 66%,
    #8ee9d7 66%
  );
}
article {
  display: flex;
  flex-direction: column;
}
article p {
  font-size: 16px;
  color: #5f5b55;
  line-height: 1.5;
  max-width: 400px;
  margin: 10px 0 22px;
}
.open {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 3px;
  margin-top: auto;
  border-bottom: 1px solid #79766f;
}
.open:hover {
  color: #9d3e13;
}
.preview.contact-sheet {
  background: #d2ccbf;
}
.preview.signal-path {
  background: #0d1325;
}
.mobile .preview {
  aspect-ratio: 1.3;
  background-image: linear-gradient(125deg, #ffffff0d, #ffffff20);
}
.mobile .preview img {
  object-fit: contain;
}
.mobile .preview.contact-sheet {
  background: #cec8bc;
}
.mobile .preview.aperture {
  background: #252423;
}
dialog {
  width: max-content;
  max-width: 94vw;
  max-height: 94dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid #625e57;
  border-radius: 8px;
  color: #eee;
  background: #141516;
  box-shadow: 0 18px 100px #0008;
}
dialog::backdrop {
  background: #101111d9;
  backdrop-filter: blur(6px);
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
}
dialog h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 500;
}
dialog header div {
  display: flex;
  align-items: center;
  gap: 20px;
}
dialog a {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
dialog button {
  background: none;
  border: 0;
  color: #eee;
  font-size: 25px;
  cursor: pointer;
}
dialog img {
  display: block;
  max-height: 80dvh;
  max-width: 90vw;
  width: auto;
  height: auto;
}
.mobile dialog img {
  max-width: min(90vw, 420px);
  margin: auto;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bd5427;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .preview {
    aspect-ratio: 1.65;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 32px 0 14px;
  }
  .devices {
    align-self: flex-start;
  }
  body > header {
    height: 66px;
  }
  .logo img {
    width: 46px;
  }
  .mobile .preview {
    max-height: 460px;
  }
  .title {
    margin-top: 14px;
  }
  article p {
    margin-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
