.book { display: grid; gap: clamp(32px, 5vw, 72px); padding-block: clamp(36px, 7vw, 96px) clamp(48px, 8vw, 120px); }
@media (min-width: 960px) {
  .book { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: 'intro card' 'more card'; align-items: start; row-gap: 28px; }
  .book-intro { grid-area: intro; }
  .book-card { grid-area: card; grid-row: 1 / span 2; }
  .book-more { grid-area: more; }
}
@media (max-width: 959px) { .book { gap: 28px; } }
.book-more { display: grid; gap: 18px; max-width: 34rem; }

.book-intro { display: grid; gap: 20px; align-content: start; max-width: 34rem; }
.book-intro h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.045em; font-weight: 640; text-wrap: balance; }
.book-intro .lede { font-size: 1.0625rem; color: var(--muted); text-wrap: pretty; }
.book-points { display: grid; gap: 12px; padding-block: 6px; }
.book-points li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: baseline; }
.book-points span { font: 500 .75rem 'JetBrains Mono', ui-monospace, monospace; color: var(--accent); }
.fine { font-size: .8125rem; color: var(--muted); }

.book-card { position: relative; padding: clamp(20px, 3vw, 32px); background: var(--raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgb(23 24 27 / .04), 0 8px 24px -6px rgb(23 24 27 / .08); }
@media (min-width: 960px) { .book-card { position: sticky; top: 96px; } }
.step { display: grid; gap: 16px; animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }
.h-sm { font-size: 1.125rem; font-weight: 640; letter-spacing: -.02em; }
.tz { margin-top: -10px; font-size: .8125rem; color: var(--muted); }
.tz b { color: var(--ink); font-weight: 560; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-inline: -2px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day { flex: none; scroll-snap-align: start; display: grid; gap: 2px; justify-items: center; min-width: 64px; min-height: 64px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--ground); transition: border-color .2s, background .2s, transform .5s var(--spring); }
.day small { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.day b { font-size: 1.125rem; font-weight: 620; }
.day i { font-style: normal; font-size: .6875rem; color: var(--muted); }
.day[aria-selected='true'] { border-color: var(--accent); background: var(--soft); }
.day[aria-selected='true'] small, .day[aria-selected='true'] i { color: var(--accent); }
@media (hover: hover) { .day:hover { border-color: var(--accent); } }
.day:active { transform: scale(.96); }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time { min-height: 46px; border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: .9375rem; font-weight: 560; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s, color .2s, transform .5s var(--spring); }
@media (hover: hover) { .time:hover { border-color: var(--accent); color: var(--accent); } }
.time:active { transform: scale(.96); }
.empty { color: var(--muted); font-size: .9375rem; }

form.step label { display: grid; gap: 6px; font-size: .8125rem; font-weight: 560; }
form.step .opt { font-weight: 400; color: var(--muted); }
form.step input, form.step textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--ground); color: var(--ink); font: 400 1rem/1.5 Inter, ui-sans-serif, system-ui, sans-serif; transition: border-color .2s, box-shadow .2s; }
form.step textarea { resize: vertical; min-height: 88px; }
form.step input:focus, form.step textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
form.step .btn { width: 100%; margin-top: 4px; }
.back { justify-self: start; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 12px 0 0; border: 0; background: transparent; color: var(--accent); font-weight: 560; }
.error { color: #b42318; font-size: .875rem; }
:root[data-theme='dark'] .error { color: #ff9b8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .error { color: #ff9b8f; } }

.done { justify-items: start; }
.done:focus { outline: none; }
.done-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--soft); }
.done-mark svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .done-mark svg { animation: none; stroke-dashoffset: 0; } }
.fallback { width: 100%; font-size: .875rem; color: var(--muted); }
.fallback summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent); }
.fallback pre { margin-block: 10px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--ground); border: 1px solid var(--line); border-radius: 6px; font: .8125rem/1.55 'JetBrains Mono', ui-monospace, monospace; color: var(--ink); }
