:root {
  --bg: #fff7f0;
  --ink: #111;
  --pink: #ff4fa3;
  --green: #c7ffd8;
  --red: #ffd1e8;
  --black: #303840;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* PAGE */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 28px 45px;
  position: relative;
  overflow: hidden;
}
/* TITLE */
.intro {
  text-align: center;
  margin-bottom: 40px;
}

.intro h1 {
  font-size: 40px;
  font-weight: 300;
  margin: 50px;
}
/* PUZZLE AREA */
.puzzle-section {
  position: relative;
}

.puzzle-layout {
  display: grid;
  grid-template-columns: auto 340px;
  gap: 28px;
  justify-content: center;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* CROSSWORD */
.crossword-card {
  text-align: center;
}

.crossword {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.crossword-row {
  display: grid;
  grid-template-columns: 34px repeat(16, 28px);
  gap: 4px;
  align-items: center;
}

.number {
  color: var(--pink);
  font-size: 22px;
  text-align: right;
  padding-right: 4px;
}

.cell {
  width: 28px;
  height: 28px;
  border: 2px solid var(--black);
  background: white;
  text-align: center;
  font-size: 16px;
  text-transform: uppercase;
  padding: 0;
  outline: none;
}

.cell:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 79, 163, 0.25);
}

.black {
  background: var(--black);
  border-color: var(--black);
}

/* CARNIVAL spine */
.carnival {
  color: var(--pink);
  font-weight: bold;
}

/* BUTTON */
#check-button {
  margin-top: 26px;
  padding: 9px 26px;
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 15px;
  cursor: pointer;
}

#check-button:hover {
  opacity: 0.85;
}

/* hide score */
.message {
  display: none;
}

/* CLUES */
.clues {
  font-size: 13px;
  line-height: 1.55;
}

.clues h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: bold;
}

.clues ol {
  margin: 0;
  padding-left: 18px;
}

.clues li {
  margin-bottom: 0;
}

/* QUOTE */
.quote-section {
  margin-top: 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}

blockquote {
  max-width: 850px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.5;
}

.citation {
  margin-top: 10px;
  font-size: 11px;
}

/* AUTHORSHIP / SIGNATURE */
.footer-meta {
  margin-top: 34px;
  text-align: center;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.6;
}

.authorship {
  margin: 0;
}

.footer-meta a {
  display: inline-block;
  margin-top: 4px;
  color: var(--pink);
  text-decoration: none;
  font-size: 11px;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 950px) {
  .page {
    padding-top: 50px;
  }

  .puzzle-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .clues {
    max-width: 560px;
  }

  .word-cloud {
    display: none;
  }
}
