* { box-sizing: border-box; }

:root {
  --ink: #050505;
  --paper: #f7f7f2;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.12) 0.8px, transparent 0.9px) 0 0 / 4px 4px,
    var(--paper);
  color: var(--ink);
}

body {
  font-family: "Courier New", Courier, monospace;
  overflow-x: hidden;
}

button, a {
  font: inherit;
}

.menu-bar {
  min-height: 46px;
  border-bottom: 4px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.menu-left, .menu-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu-bar button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-weight: 700;
  cursor: pointer;
}

.menu-symbol {
  font-size: 22px;
}

.menu-icon {
  border: 2px solid var(--ink);
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.desktop {
  min-height: calc(100vh - 46px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 24px 72px;
}

.card-window {
  width: min(900px, 82vw);
  min-height: min(540px, 56vw);
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink), 18px 18px 0 rgba(0,0,0,.2);
  position: relative;
  display: grid;
  place-items: center;
}

.window-titlebar {
  height: 36px;
  border-bottom: 4px solid var(--ink);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background:
    repeating-linear-gradient(
      to bottom,
      #fff 0 3px,
      #000 3px 4px,
      #fff 4px 7px
    );
}

.window-titlebar span:last-child {
  background: #fff;
  padding: 0 10px;
}

.close-box {
  width: 26px;
  height: 20px;
  border: 3px solid var(--ink);
  position: absolute;
  left: 8px;
  background: #fff;
}

.close-box::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  height: 2px;
  background: var(--ink);
}

.nox-link {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.nox-word {
  display: flex;
  align-items: center;
  gap: .03em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(9rem, 23vw, 17rem);
  line-height: .78;
  letter-spacing: -.05em;
  transform: translateY(15px);
}

.o-letter {
  position: relative;
  display: inline-block;
}

.o-letter img {
  position: absolute;
  width: 41%;
  height: 41%;
  object-fit: cover;
  object-position: center 33%;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: contrast(1.6);
  image-rendering: pixelated;
  mix-blend-mode: multiply;
}

.nox-link:hover .nox-word,
.nox-link:focus-visible .nox-word {
  transform: translateY(15px) scale(1.015);
}

.hand {
  position: absolute;
  right: 13%;
  bottom: 8%;
  font-size: clamp(2rem, 5vw, 4rem);
  transform: rotate(-8deg);
}

.graphic {
  letter-spacing: .6em;
  margin: 54px 0 28px;
  font-weight: 700;
  font-size: clamp(.8rem, 1.4vw, 1.15rem);
}

.enter-button {
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--ink);
  padding: 12px 30px;
  font-size: clamp(.9rem, 1.7vw, 1.25rem);
}

.enter-button:hover,
.enter-button:focus-visible {
  background: var(--ink);
  color: #fff;
}

.desktop-footer {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-weight: 700;
}

.trash {
  font-size: 2.2rem;
}

dialog {
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 0;
  background: #fff;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(255,255,255,.45);
}

.about-box {
  min-width: 310px;
  text-align: center;
  padding: 0 24px 24px;
}

.about-title {
  border-bottom: 3px solid var(--ink);
  padding: 10px 0;
  margin: 0 -24px 22px;
  font-weight: 700;
}

.small {
  font-size: .8rem;
}

.dialog-button {
  background: #fff;
  border: 3px solid var(--ink);
  padding: 6px 24px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 720px) {
  .menu-left button:nth-of-type(n+4) { display: none; }
  .menu-left, .menu-right { gap: 12px; }
  .menu-bar { padding: 0 10px; }
  .card-window {
    width: 92vw;
    min-height: 62vw;
  }
  .nox-word {
    font-size: 31vw;
  }
  .graphic {
    letter-spacing: .35em;
    margin-top: 42px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nox-word {
    transition: transform 120ms steps(2, end);
  }
}
