/* ==========================================================================
   Contact: the details as a production call sheet, and the chess puzzle
   that unlocks the direct line.
   ========================================================================== */

/* --- Call sheet -------------------------------------------------------- */

.ct-sheet {
  background: var(--paper);
  color: var(--ink);
}

.ct-sheet .dc-tag {
  color: rgba(11, 11, 10, 0.6);
}

.ct-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--ink);
}

.ct-sheet-title {
  margin: 0 auto 0 0;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
}

.ct-rows {
  margin: 0;
}

.ct-row {
  display: grid;
  grid-template-columns: minmax(8rem, 16rem) 1fr;
  gap: 1rem 2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid rgba(11, 11, 10, 0.18);
}

.ct-row dt {
  padding-top: 0.5rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 11, 10, 0.6);
}

.ct-row dd {
  margin: 0;
}

.ct-row dd p {
  max-width: 36rem;
  margin: 0.6rem 0 0;
  color: rgba(11, 11, 10, 0.72);
}

.ct-big {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  word-break: break-all;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.ct-big:hover {
  border-color: var(--ink);
}

.ct-mid {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
}

a.ct-mid:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.ct-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ct;
}

.ct-list li {
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: -0.01em;
}

.ct-list li::before {
  counter-increment: ct;
  content: counter(ct, decimal-leading-zero);
  padding-top: 0.35em;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(11, 11, 10, 0.5);
}

@media (max-width: 700px) {
  .ct-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* --- Chess ------------------------------------------------------------- */

.ct-chess {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.ct-chess-copy > p {
  max-width: 30rem;
  color: var(--paper-soft);
}

.ct-chess-sub {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}

.ct-chess-sub em {
  color: var(--accent);
}

.ct-chess-task {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper) !important;
}

.ct-chess-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.ct-feedback {
  margin: 0;
  font-family: var(--display-em);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--paper);
}

.ct-feedback.is-right {
  color: #9fc27a;
}

.ct-feedback.is-wrong {
  color: var(--accent);
}

.ct-board-frame {
  width: 100%;
  max-width: calc(86vh - 2rem);
  justify-self: center;
  padding: clamp(10px, 1.4vw, 18px);
  border: 1px solid var(--paper-faint);
  background: var(--ink-2);
}

.ct-board {
  width: 100%;
  touch-action: none;
}

/* Board colours to match the site */
.ct-board .white-1e1d7 {
  background-color: #d9d2c3;
  color: #6b5a44;
}

.ct-board .black-3c85d {
  background-color: #8a6d4b;
  color: #d9d2c3;
}

.ct-board .board-b72b1 {
  border: 0;
}

.ct-board .notation-322f9 {
  font-family: var(--mono);
}

.ct-board .square-55d63.is-picked {
  box-shadow: inset 0 0 0 4px var(--accent);
}

.ct-reward {
  margin-top: 2rem;
  padding: 1.6rem;
  border: 1px solid var(--accent);
  background: rgba(214, 161, 92, 0.06);
}

.ct-reward p {
  margin: 0 0 1rem;
  color: var(--paper-soft);
}

.ct-phone {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  letter-spacing: 0.01em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ct-phone.is-lost {
  color: var(--paper-dim);
  pointer-events: none;
}

.ct-phone-note {
  margin: 0.8rem 0 0 !important;
  font-size: 13px;
  color: var(--paper-dim) !important;
}

@media (max-width: 860px) {
  .ct-chess {
    grid-template-columns: 1fr;
  }

  .ct-board-frame {
    max-width: 100%;
  }
}
