* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: #fff;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

main {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.logo {
  margin: 0 0 36px;
}

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

.links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  min-height: 56px;
  padding: 16px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.links a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .links a:hover {
    background: #000;
    color: #fff;
  }
}

@media (max-width: 520px) {
  .logo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.04;
    margin-bottom: 12px;
  }

  .logo img {
    position: absolute;
    width: 160%;
    max-width: none;
    left: -33%;
    top: -12%;
  }

  .links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .links a {
    width: 100%;
    max-width: 320px;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0;
    border-width: 2px;
  }
}

@media (max-height: 500px) and (min-width: 521px) {
  body {
    padding: 24px;
  }

  main {
    max-width: min(680px, calc((100svh - 140px) * 4 / 3));
  }


}

@media (min-width: 521px) {
  .logo img {
    transform: translateX(-10px);
  }
}
