* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.links {
  position: fixed;
  top: 18px;
  right: 50%;
  z-index: 2;
  display: flex;
  gap: 22px;
  transform: translateX(360px);
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

.links a {
  color: #f4f4f4;
  font-size: 17px;
  line-height: 1;
}

.links a:last-child {
  color: #8d8d8d;
  font-size: 11px;
  letter-spacing: 0.08em;
}

main {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 56px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 88px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sub {
  margin: 16px 0 32px;
  color: #a4a4a4;
  font-size: 19px;
  line-height: 1.3;
}

figure {
  margin: 0;
}

img {
  display: block;
  width: min(100%, 420px);
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: cover;
}

figcaption {
  margin-top: 14px;
  color: #8d8d8d;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}

.facts {
  margin: 30px 0 32px;
  text-align: left;
}

.facts div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #f2f2f2;
}

dt,
dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

dt {
  color: #8f8f8f;
}

dd {
  color: #fff;
  font-weight: 700;
  text-align: right;
}

dd button {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wrong {
  min-width: 150px;
  padding: 12px 18px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
}

.wrong:hover,
dd button:hover,
.links a:hover {
  color: #ff2c2c;
}

@media (max-width: 640px) {
  .links {
    right: 18px;
    transform: none;
  }

  main {
    padding-top: 72px;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  dd,
  dd button {
    text-align: left;
  }
}
