@font-face {
  font-family: Manrope;
  src: url("./fonts/Manrope-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter Display";
  src: url("./fonts/InterDisplay-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  color: #10100f;
  background: white;
  font-family: "Inter Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body { position: relative; margin: 0; }

.landing {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
}

.landing::before {
  content: "";
  position: absolute;
  /* Let the gradient reach white before the edges of the expanding layer. */
  inset: -14% -16%;
  z-index: -1;
  background: radial-gradient(ellipse 50% 50% at center,
    #d8c9ae 0%, #e2d6c1 30%, #eee6d9 56%, #f8f5f0 76%, white 100%);
}

.composition {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, clamp(32rem, 36vw, 37rem));
  height: clamp(8.0625rem, 8.25vw, 9.375rem);
}

.identity {
  position: relative;
  container-type: inline-size;
  width: clamp(9.45rem, 9.3vw, 10.5rem);
}

.mark {
  display: block;
  width: 100%;
  height: auto;
}

h1 {
  position: absolute;
  /* Align the visible D with the artwork bounds, accounting for its side bearing and ascent. */
  left: -0.065em;
  top: -0.085em;
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(1.67rem, 24cqi, 2.62rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.operator {
  position: absolute;
  font-size: 1.25rem;
  line-height: 1;
}

.multiply { top: -0.125rem; left: 0; }
.divide { bottom: -0.125rem; right: 0; }

.sign-in, .service, .credit {
  position: absolute;
  font-size: 0.71875rem;
  line-height: 1.3;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.credit {
  inset-inline: 1.25rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  text-align: center;
}

.sign-in {
  top: -0.375rem;
  right: -0.375rem;
  min-height: 2.75rem;
  padding: 0.375rem;
  color: inherit;
  text-decoration: none;
}

.sign-in:hover, .sign-in:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sign-in:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.125rem;
}

.service {
  left: 0;
  bottom: 0;
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    --cream-delay: 200ms;
    --cream-duration: 2200ms;
    --cream-settled: calc(var(--cream-delay) + var(--cream-duration));
  }

  .landing::before {
    animation: spread-cream var(--cream-duration) cubic-bezier(0.22, 0.61, 0.36, 1)
      var(--cream-delay) backwards;
  }

  h1, .operator, .sign-in, .service, .credit {
    animation: show-text 660ms ease-out var(--cream-settled) backwards;
  }

  .sign-in:focus { animation: none; }
}

@keyframes spread-cream {
  from { opacity: 0; transform: scale(0); }
  35% { opacity: 1; }
  to { opacity: 1; transform: scale(1); }
}

@keyframes show-text {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 32rem) {
  .composition { width: 100%; height: 9.75rem; }
  .identity { width: 37.05%; }
}
