/* ── BOOK THE SPACE ── */
.book-head {
  padding: var(--pad);
  padding-top: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.book-jump {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--text-xs);
  color: var(--black);
  border-bottom: 1px solid var(--black);
  text-transform: lowercase;
}
.book-jump:hover { color: var(--mid); border-color: var(--mid); }

/* section strip, same as homepage "explore our recurring series" */
.book-section { border-bottom: 1px solid var(--rule); }
.book-section__header { padding: 0.65rem var(--pad); border-bottom: 1px solid var(--rule); }
.book-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--mid);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* steps */
.book-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.book-steps li { padding: 2rem var(--pad); border-right: 1px solid var(--rule); }
.book-steps li:last-child { border-right: none; }
.book-step__num { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--light); display: block; margin-bottom: 0.5rem; }
.book-steps h3 { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-sm); text-transform: lowercase; margin-bottom: 0.3rem; }
.book-steps p { font-size: var(--text-xs); color: var(--mid); line-height: 1.7; text-transform: lowercase; }

/* tiles (expand like the homepage series cards) */
.book-tiles { display: grid; align-items: start; }
.book-tiles--4 { grid-template-columns: repeat(4, 1fr); }
.book-tiles--3 { grid-template-columns: repeat(3, 1fr); }

.book-tile {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.book-tiles--4 .book-tile:nth-child(4n),
.book-tiles--3 .book-tile:nth-child(3n) { border-right: none; }
.book-tiles--4 .book-tile:nth-last-child(-n+4),
.book-tiles--3 .book-tile:nth-last-child(-n+3) { border-bottom: none; }

.book-tile__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--black);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.book-tile__name { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.02em; line-height: 1; }
.book-tile__arrow { font-size: 1.1rem; color: var(--light); line-height: 1; flex-shrink: 0; transition: color 0.15s; }

.book-tile__body { max-height: 0; overflow: hidden; padding: 0 1.25rem; transition: max-height 0.3s ease, padding 0.3s ease; }
.book-tile__body p { font-size: var(--text-xs); line-height: 1.8; text-transform: lowercase; color: var(--mid); }

.book-tile:hover, .book-tile--open { background: var(--black); }
.book-tile:hover .book-tile__head, .book-tile--open .book-tile__head { color: var(--white); }
.book-tile:hover .book-tile__arrow, .book-tile--open .book-tile__arrow { color: var(--white); }
.book-tile--open .book-tile__body { max-height: 200px; padding: 0 1.25rem 1.5rem; }
.book-tile--open .book-tile__body p { color: rgba(255,255,255,0.6); }

[data-theme="dark"] .book-tile:hover, [data-theme="dark"] .book-tile--open { background: #2e2e2e; }
[data-theme="dark"] .book-tile:hover .book-tile__head, [data-theme="dark"] .book-tile--open .book-tile__head,
[data-theme="dark"] .book-tile:hover .book-tile__arrow, [data-theme="dark"] .book-tile--open .book-tile__arrow { color: #f0f0f0; }
[data-theme="dark"] .book-tile--open .book-tile__body p { color: #aaaaaa; }

/* colored tiles (common uses) */
.book-tile--color { background: color-mix(in srgb, var(--c) 8%, transparent); }
.book-tile--color .book-tile__name { color: var(--c); }
.book-tile--color .book-tile__arrow { color: var(--c); }
.book-tile__body ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.book-tile__body li { font-size: var(--text-xs); line-height: 1.6; text-transform: lowercase; color: var(--mid); }
.book-tile--color:hover, .book-tile--color.book-tile--open { background: var(--c); }
.book-tile--color:hover .book-tile__name, .book-tile--color.book-tile--open .book-tile__name,
.book-tile--color:hover .book-tile__arrow, .book-tile--color.book-tile--open .book-tile__arrow { color: #ffffff; }
.book-tile--color.book-tile--open .book-tile__body li { color: rgba(255,255,255,0.9); }
[data-theme="dark"] .book-tile--color { background: color-mix(in srgb, var(--c-dark) 10%, transparent); }
[data-theme="dark"] .book-tile--color .book-tile__name, [data-theme="dark"] .book-tile--color .book-tile__arrow { color: var(--c-dark); }
[data-theme="dark"] .book-tile--color:hover, [data-theme="dark"] .book-tile--color.book-tile--open { background: var(--c); }
[data-theme="dark"] .book-tile--color:hover .book-tile__name, [data-theme="dark"] .book-tile--color.book-tile--open .book-tile__name,
[data-theme="dark"] .book-tile--color:hover .book-tile__arrow, [data-theme="dark"] .book-tile--color.book-tile--open .book-tile__arrow { color: #ffffff; }

/* cta + form */
.book-cta__body { padding: clamp(1.75rem, 4vw, 3rem) var(--pad); }
.book-cta__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  font-weight: normal;
  margin-bottom: 1.75rem;
}
.book-form { max-width: 720px; display: flex; flex-direction: column; gap: 1.1rem; }
.book-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: var(--text-xs); color: var(--mid); text-transform: lowercase; }
.book-opt { color: var(--light); }
.book-form[hidden] { display: none; }
.book-lab { display: block; }
.book-form input, .book-form select, .book-form textarea {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--black);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  min-height: 2.5rem;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.book-form select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
}
.book-form textarea { resize: vertical; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: var(--black); }
[data-theme="dark"] .book-form input { color-scheme: dark; }
[data-theme="dark"] .book-form select option { background: #111; color: #eee; }
.book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.book-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.book-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }

.book-submit {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-transform: lowercase;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  align-self: flex-start;
}
.book-submit:hover { opacity: 0.8; }
.book-submit:disabled { opacity: 0.5; cursor: default; }
.book-status { font-size: var(--text-xs); color: var(--mid); min-height: 1em; }
.book-status--error { color: #c0392b; }

.book-success { max-width: 720px; border: 1px solid var(--black); padding: 1.75rem; }
.book-success[hidden] { display: none; }
.book-success h3 { font-family: var(--font-display); font-size: 2.5rem; font-weight: normal; line-height: 1; margin-bottom: 0.5rem; }
.book-success p { font-size: var(--text-sm); color: var(--mid); }

@media (max-width: 900px) {
  .book-tiles--4, .book-tiles--3 { grid-template-columns: repeat(2, 1fr); }
  .book-tiles--4 .book-tile, .book-tiles--3 .book-tile { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .book-tiles--4 .book-tile:nth-child(2n), .book-tiles--3 .book-tile:nth-child(2n) { border-right: none; }
  .book-tiles--4 .book-tile:nth-last-child(-n+2), .book-tiles--3 .book-tile:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 768px) {
  .book-steps { grid-template-columns: 1fr; }
  .book-steps li { border-right: none; border-bottom: 1px solid var(--rule); padding: 1.5rem var(--pad); }
  .book-steps li:last-child { border-bottom: none; }
  .book-row, .book-row--3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .book-tiles--4, .book-tiles--3 { grid-template-columns: 1fr; }
  .book-tiles--4 .book-tile, .book-tiles--3 .book-tile { border-right: none; border-bottom: 1px solid var(--rule); }
  .book-tiles--4 .book-tile:last-child, .book-tiles--3 .book-tile:last-child { border-bottom: none; }
  .book-tile__head { padding: 1.4rem var(--pad); }
  .book-tile__body { padding-left: var(--pad); padding-right: var(--pad); }
  .book-tile--open .book-tile__body { padding: 0 var(--pad) 1.25rem; }
}