:root {
  color-scheme: light;
  font-family: "Times New Roman", Times, serif;
  background: #fff;
  color: #090909;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #fff;
}

.page {
  width: min(100%, 39.25rem);
  min-height: 100vh;
  padding: 4.1rem 2.25rem 5rem 6.85rem;
}

h1,
h2,
p {
  margin: 0;
  font: inherit;
}

h1 {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5.65rem;
  margin-top: 7.75rem;
  padding-left: 1.05rem;
}

.feature h2 {
  font-size: 1.55rem;
  line-height: 1;
}

.sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin-top: 0.8rem;
  padding-left: 0.15rem;
  font-size: 1.05rem;
  line-height: 1;
}

.sub-links a:last-child {
  flex-basis: 100%;
}

.apple-icon {
  display: inline-block;
  font-family: Geneva, Arial, sans-serif;
  font-size: 1.05em;
  line-height: 0;
  transform: translateY(0.02em);
}

.shows {
  width: min(25rem, calc(100vw - 9rem));
}

.shows-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.95rem;
  padding-left: 0.15rem;
  font-size: 1rem;
  line-height: 1.08;
}

.event {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  column-gap: 0.8rem;
}

.event time {
  grid-row: 1 / span 2;
  text-transform: uppercase;
}

.event-place {
  font-size: 0.9rem;
}

.links {
  display: grid;
  gap: 0;
  width: 18rem;
  margin-top: 7.05rem;
  font-size: 1.55rem;
  line-height: 0.95;
}

.links a {
  display: grid;
  grid-template-columns: 9.7rem 1fr;
  align-items: baseline;
}

.links a span:first-child {
  text-align: right;
}

.links a span:last-child {
  text-align: right;
}

.world {
  margin-top: 7rem;
  padding-left: 1.05rem;
  font-size: 1.3rem;
  line-height: 1.12;
}

.world h2 {
  margin-bottom: 1.25rem;
  font-size: 1.55rem;
}

.world nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chess {
  width: min(23rem, calc(100vw - 9rem));
  margin-top: 7rem;
  padding-left: 1.05rem;
}

.chess-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.chess h2 {
  font-size: 1.55rem;
  line-height: 1;
}

.chess button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.chess button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.25rem;
}

.chess-game {
  margin-top: 1.15rem;
}

.chess-status {
  min-height: 1.1rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #111;
}

.chess-square {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  border: 0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.chess-square.light {
  background: #b9dbea;
}

.chess-square.dark {
  background: #d5b07a;
}

.chess-square.selected {
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px #000;
  z-index: 1;
}

.chess-piece {
  position: relative;
  z-index: 2;
  display: block;
  line-height: 1;
  transform: translateY(-0.01em);
  pointer-events: none;
}

.white-piece {
  color: #fff;
  text-shadow:
    -1px -1px 0 #111,
    1px -1px 0 #111,
    -1px 1px 0 #111,
    1px 1px 0 #111;
}

.black-piece {
  color: #111;
}

.chess-square.target::after {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  opacity: 0.9;
  position: absolute;
}

.chess-square {
  position: relative;
}

.chess-square.target:not(:empty)::after {
  width: calc(100% - 5px);
  height: calc(100% - 5px);
  border: 3px solid #fff;
  box-shadow: inset 0 0 0 2px #000;
  border-radius: 0;
  background: transparent;
}

.chess-reset {
  margin-top: 0.8rem;
  font-size: 0.95rem !important;
}

.peace {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 1.2rem;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 58rem) {
  .peace {
    display: none;
  }
}

@media (max-width: 34rem) {
  .page {
    width: 100%;
    padding: 3.25rem 1.6rem 4rem 3.2rem;
  }

  .primary {
    margin-top: 6.6rem;
    padding-left: 0.55rem;
  }

  .shows {
    width: calc(100vw - 5.4rem);
  }

  .links {
    width: min(18rem, calc(100vw - 4.8rem));
    margin-top: 6.4rem;
  }

  .links a {
    grid-template-columns: minmax(8.3rem, 1fr) 4.2rem;
  }

  .world {
    margin-top: 6.25rem;
    padding-left: 0.55rem;
  }

  .chess {
    width: min(19rem, calc(100vw - 5.4rem));
    margin-top: 6.25rem;
    padding-left: 0.55rem;
  }
}
