/* The workshop pages: one long page per session on top of the lesson books' lodge look (books.css). The cover, the
   recap card, the chapters, the page to photograph, and the one dark surface: the walnut back cover. */

.cover { position: relative; max-width: 48rem; margin: 0.6rem 0 2rem; padding-right: 10rem; }
.cover .kicker { margin: 0; font-style: italic; color: var(--muted); }
.cover h1 { margin: 0.15rem 0 0.9rem; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; }
.cover .bell { position: absolute; right: 0; top: 0.6rem; width: 8.5rem; height: auto; }
.cover .promise p { font-size: 1.15rem; margin: 0 0 0.6rem; }
.cover .room { margin: 0.8rem 0 0; padding-left: 0.8rem; border-left: 3px solid var(--brass); font-size: 0.95rem; color: var(--muted); }

.recap { margin: 0 0 2rem; padding: 1rem 1.2rem 0.4rem; background: var(--card); border: 1px solid var(--ink); }
.recap h2 { margin: 0 0 0.5rem; font-size: 1.25rem; border: 0; box-shadow: none; padding: 0; }
.contents h2 { margin-bottom: 0.6rem; }

.chapter { margin-top: 3rem; }
.chapter .chapter-head h2 { margin: 0.1rem 0 0.4rem; border: 0; box-shadow: none; padding: 0; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.chapter h3 { margin: 1.8rem 0 0.6rem; padding-bottom: 0.25rem; font-size: 1.25rem; border-bottom: 1px solid var(--rule); }
.chapter h3 + ol.steps > li::before { content: counter(step); }
.chapter h3[id$='-check'] + ol.steps > li::before {
  content: ''; top: 0.38rem; width: 1rem; height: 1rem; border: 1.5px solid var(--ink); background: var(--card);
}

.faq p { margin-bottom: 0.9rem; }
.one-page { margin: 2.4rem 0; padding: 1.1rem 1.3rem 0.6rem; background: var(--card); border: 2px solid var(--ink); }
.one-page h2 { margin-top: 0; }
.leave p:first-child { margin-bottom: 0.3rem; }
.next { margin-top: 2rem; }
.next h2 { margin-top: 0; }

.words dl { margin: 0; }
.words dt { margin-top: 0.9rem; font-weight: 650; }
.words dt .from { margin-left: 0.4rem; padding: 0.05rem 0.45rem; font: 400 0.75rem/1.4 var(--text); color: var(--muted); border: 1px solid var(--rule); border-radius: 2px; }
.words dt .from.new { color: var(--walnut); background: var(--brass-lit); border-color: var(--brass-lit); }
.words dd { margin: 0.2rem 0 0; padding-bottom: 0.8rem; border-bottom: 1px dotted var(--rule); color: #3e3022; }

/* the one dark surface: the walnut back cover with the offer */
.backcover { max-width: 48rem; margin: 3.5rem 0 1.2rem; padding: 1.8rem 1.8rem 1.4rem; background: var(--walnut); color: #efe4c8; }
.backcover h2 { margin: 0 0 0.8rem; font-size: 1.6rem; color: #fff8e6; border: 0; box-shadow: none; padding: 0; }
.backcover p { color: #e3d5b4; }
.backcover .offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 1.2rem 0; }
.backcover h3 { margin: 0 0 0.3rem; font-size: 1.05rem; color: var(--brass-lit); }
.backcover .offers p { font-size: 0.95rem; margin: 0; }
.backcover .sign { margin: 0; font-family: var(--display); }
.backcover a { color: var(--brass-lit); }
.colophon { max-width: 48rem; padding: 0.8rem 0 0; border-top: 1px solid var(--ink); font-size: 0.85rem; color: var(--muted); }
.colophon p { margin: 0 0 0.2rem; }

@media (max-width: 959px) {
  .cover { padding-right: 0; }
  .cover .bell { position: static; width: 6rem; margin: 0 0 0.6rem; }
  .backcover .offers { grid-template-columns: 1fr; }
}
@media print {
  .backcover { background: #fff; color: #000; border: 2px solid #000; }
  .backcover h2, .backcover h3, .backcover p, .backcover a { color: #000; }
  .chapter { break-before: page; }
  .one-page, .recap, .message, .prompt { break-inside: avoid; }
}

/* the BrainIT logo: in the key board's brand line, and beside the name on the back cover */
.keys .brand { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem; font-size: 0.85rem; color: #d9c9a4; text-decoration: none; }
.keys .brand:hover span { text-decoration: underline; text-decoration-color: var(--brass-lit); }
.keys .brand .mark { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: 0 0 auto; }
.backcover .sign { display: flex; align-items: center; gap: 0.8rem; }
.backcover .sign .mark { width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: 0 0 auto; }
@media (max-width: 959px) { .keys .brand { margin-top: 0.9rem; } }
