.cover-wrap > img {
  max-height: 450px;
}

.materials-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  max-width: 550px;
  margin-top: 24px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: #223940;
  text-align: left;
}

.cover-wrap .materials-card img {
  width: 220px;
  height: 220px;
  max-height: none;
  object-fit: contain;
  background: white;
}

.materials-card strong {
  display: block;
  color: var(--gold);
  font-size: 20px;
}

.materials-card p {
  margin: 8px 0;
  color: var(--paper);
  line-height: 1.4;
}

.materials-card div a {
  color: var(--paper);
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.activity-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 52px;
  min-height: 520px;
  border-top: 8px solid var(--gold);
  background: #f2ede3;
}

.activity-access-copy h2 {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1.05;
}

.activity-access-copy {
  min-width: 0;
}

.activity-access-copy > p:not(.eyebrow) {
  max-width: 670px;
  font: 24px/1.45 Georgia, serif;
  color: var(--muted);
}

.activity-url {
  display: inline-block;
  margin-top: 12px;
  color: var(--dark);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.activity-qr {
  display: block;
  width: 400px;
  max-width: 100%;
  padding: 20px;
  background: white;
  box-shadow: 0 12px 30px #142a3326;
}

.activity-qr img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.example-toggle {
  display: inline-block;
  margin: 12px 0 0 12px;
  padding: 10px 16px;
  border: 1px solid #9b762e;
  background: transparent;
  color: var(--dark);
  font-weight: 700;
}

.example-toggle:hover {
  background: #e8e0d0;
}

.code-window > .example-toggle {
  margin: 0 28px 22px;
  color: var(--paper);
  border-color: var(--gold);
}

.code-window > .example-toggle:hover {
  color: var(--dark);
}

.prompt-example {
  margin-top: 18px;
  border: 1px solid #c9cbc2;
}

.prompt-example[hidden] {
  display: none;
}

.prompt-example .code-head {
  font-size: 14px;
  line-height: 1.4;
}

.prompt-body .prompt-example pre,
.code-window .prompt-example pre {
  max-height: 390px;
  overflow: auto;
  padding: 24px;
  background: #fff;
  color: var(--ink);
}

.code-window .prompt-example {
  margin: 0 28px 28px;
}

.alternative-brief {
  margin-top: 30px;
  border-bottom: 1px solid #c9cbc2;
}

@media (max-width: 900px) {
  .cover-wrap {
    display: block;
    width: min(100%, 550px);
    margin: 24px auto 0;
  }

  .cover-wrap > img {
    max-height: 360px;
  }

  .activity-access {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .activity-qr {
    justify-self: center;
    width: min(400px, 100%);
  }
}

@media (max-width: 620px) {
  .materials-card {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .cover-wrap .materials-card img {
    width: 150px;
    height: 150px;
  }

  .materials-card strong {
    font-size: 17px;
  }

  .materials-card p,
  .materials-card div a {
    font-size: 14px;
  }

  .activity-access {
    padding: 54px 22px;
    min-height: 0;
  }

  .activity-access-copy > p:not(.eyebrow) {
    font-size: 20px;
  }

  .activity-qr {
    padding: 14px;
  }

  .code-window > .example-toggle {
    margin-left: 20px;
    margin-right: 20px;
  }

  .code-window .prompt-example {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 410px) {
  .materials-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
