:root {
  color-scheme: light;
  background: #ffffff;
  color: #171515;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 20rem;
  min-height: 100%;
  margin: 0;
  background: #ffffff;
}

body {
  min-height: 100svh;
}

main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 4rem 2rem;
}

.brand {
  width: min(46rem, 68vw);
  margin: 0;
  line-height: 0;
}

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

.home {
  min-height: max(36rem, 100svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 8svh, 5rem);
}

a {
  color: inherit;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.5rem;
}

.products {
  transform: translateY(40px);
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.products-label {
  display: inline-block;
  margin: 0;
  color: #595757;
  font: inherit;
}

.products-label:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.5rem;
}

.works {
  margin: 0;
  padding: 1.25rem 0 0;
  list-style: none;
}

.work-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.25rem 0.85rem;
  padding-block: 0.5rem;
  color: #595757;
  text-decoration: none;
}

.work-number {
  font-size: 0.75rem;
}

.work-description {
  letter-spacing: 0.06em;
}

.products-label:hover,
.products-label:focus-visible,
.work-link:hover,
.work-link:focus-visible {
  color: #171515;
}

@media (min-width: 40.001rem) and (hover: hover) and (pointer: fine) {
  .products .works {
    /* Reserve the list's space so revealing it never moves the logo. */
    visibility: hidden;
    opacity: 0;
    transition: opacity 160ms ease;
  }

  .products-label:hover + .works,
  .products:focus-within .works,
  .products .works:hover {
    visibility: visible;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products .works {
    transition: none;
  }
}

.kami {
  padding-block: 1rem 3rem;
  text-align: center;
}

.kami-icon {
  display: block;
  width: 5rem;
  height: auto;
  margin-inline: auto;
}

.kami h1 {
  margin: 1.75rem 0 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.kami-copy {
  margin: 2.5rem 0 0;
  font-size: 1rem;
  line-height: 2.2;
  letter-spacing: 0.06em;
}

.kami-download {
  margin-top: 4rem;
  font-size: 0.875rem;
  line-height: 1.8;
}

.kami-download a {
  display: inline-block;
  padding-block: 0.75rem;
}

.kami-version {
  margin: 0.5rem 0 0;
  color: #3b3939;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.kami-note {
  max-width: 32rem;
  margin: 1.5rem auto 0;
  color: #888888;
  font-size: 0.6875rem;
  line-height: 1.8;
}

.kami-note span {
  display: inline-block;
}

footer {
  position: relative;
  min-height: 3rem;
  margin-top: -3rem;
  padding: 0 1.5rem max(1.15rem, env(safe-area-inset-bottom));
  color: #3b3939;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 40rem) {
  main {
    padding-inline: 1.5rem;
  }

  .brand {
    width: min(19rem, 76vw);
  }

  footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (forced-colors: active) {
  .brand img {
    forced-color-adjust: none;
  }
}
