:root {
  color-scheme: light;
  --ink: #11131a;
  --blue: #0000aa;
  --rule: #5555cc;
  --paper: #f8f8f4;
  --box-light: #ffffff;
  --box-mid: #9b9b9b;
  --box-dark: #383838;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background-color: var(--paper);
  background-image: radial-gradient(#cfcfca 0.45px, transparent 0.55px);
  background-size: 3px 3px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", Courier, ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.28;
}

.page-shell {
  width: min(100% - 28px, 510px);
  margin: 0 auto;
  padding: 30px 0 22px;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 9vw, 43px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #b9b9b9;
}

.rule {
  height: 1px;
  background: var(--rule);
}

.rule--ornamented {
  position: relative;
  margin: 5px 18px 13px;
}

.rule--ornamented::before,
.rule--ornamented::after,
.rule--ornamented span {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid var(--rule);
  background: var(--blue);
  content: "";
  transform: translateY(-50%);
}

.rule--ornamented::before {
  left: -1px;
}

.rule--ornamented::after {
  right: -1px;
}

.rule--ornamented span {
  left: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.subtitle {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.labyrinth {
  width: min(54%, 220px);
  margin: 10px auto 12px;
}

.labyrinth img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(0.92) drop-shadow(1px 1px 0 #b7b7b3);
}

.status-box {
  display: grid;
  grid-template-columns: 27px 1fr;
  align-items: center;
  width: min(100%, 480px);
  min-height: 56px;
  margin: 0 auto;
  padding: 7px 11px 7px 9px;
  border-top: 2px solid var(--box-dark);
  border-left: 2px solid var(--box-dark);
  border-right: 2px solid var(--box-light);
  border-bottom: 2px solid var(--box-light);
  background: #f4f4f1;
  box-shadow:
    inset 1px 1px 0 var(--box-mid),
    inset -1px -1px 0 #c8c8c8,
    1px 1px 0 #777;
  text-align: left;
}

.globe {
  display: inline-block;
  width: 23px;
  height: 23px;
  overflow: hidden;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 20px;
  line-height: 23px;
}

.status-box p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.enter-link {
  margin: 18px 0 17px;
  font-weight: 700;
}

a,
a:visited {
  color: var(--blue);
  text-decoration: underline;
}

a:hover,
a:focus-visible {
  color: #aa0000;
}

a:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: 3px;
}

footer .rule {
  margin: 0 0 14px;
}

footer p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 440px) {
  .page-shell {
    padding-top: 22px;
  }

  .rule--ornamented {
    margin-inline: 4px;
  }

  .status-box {
    grid-template-columns: 25px 1fr;
    padding-inline: 7px;
  }

  .status-box p {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
