.trade-notes {
  padding-block: clamp(3rem, 5.3vw, 6rem);
}
.trade-notes h2 {
  max-width: 17ch;
}
.trade-notes p {
  line-height: 1.58;
}
.trade-notes figure {
  min-width: 0;
}
.trade-notes figcaption {
  font-size: 0.875rem;
  line-height: 1.4;
}
.tool h4 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 0.9rem;
}
.tool textarea,
.tool input:not([type="checkbox"]):not([type="range"]),
.tool select {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid currentColor;
  color: var(--ink);
  background: var(--paper);
  border-radius: 2px;
  max-width: 100%;
}
.tool textarea {
  display: block;
  width: 100%;
  resize: vertical;
}
.tool input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  accent-color: var(--accent);
}
.tool label:has(select),
.tool label:has(textarea),
.tool label:has(input[type="text"]),
.tool label:has(input:not([type])) {
  display: grid;
  gap: 0.4rem;
  margin: 0.8rem 0;
  width: fit-content;
  max-width: 100%;
  font-weight: 600;
}
.tool label:has(textarea) {
  width: 100%;
}
.tool label > span {
  font-weight: 400;
}
.tool section > h3 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.tool section > h3 + p {
  margin: 0.55rem 0 1rem;
}
.tool .takeaway {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
}
.tool .takeaway:hover {
  text-decoration-thickness: 0.2em;
}
.tool textarea:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.tool button:disabled {
  opacity: 0.62;
}
@media (max-width: 720px) {
  .trade-notes {
    padding-block: 2.7rem;
  }
  .tool input:not([type="checkbox"]),
  .tool select,
  .tool textarea {
    font-size: 1rem;
  }
}
.bookroom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  padding-bottom: 1.3rem;
  border-bottom: 0.42rem double var(--ink);
}
.bookroom header p {
  margin-top: 1rem;
  max-width: 40ch;
}

.bookseller-note {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 2rem;
  align-items: center;
  max-width: 64rem;
  margin: 2rem auto 0;
}
.bookseller-note img {
  height: 8.5rem;
}
.bookseller-note p {
  margin: 0.4rem 0;
}
.bookseller-note a {
  display: inline-flex;
  padding: 0.5rem 0;
  font-weight: 700;
}
.studio-frame {
  display: block;
}
.studio-frame > div:first-child {
  max-width: 43rem;
  margin-bottom: 1.5rem;
}
.studio .tool {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem 2rem;
  align-items: start;
}
.studio .tool > fieldset {
  grid-column: 1/-1;
}
.book-rec {
  grid-column: 1;
  grid-row: 2/4;
}
.studio .tool > div[aria-live] {
  grid-column: 2;
  grid-row: 2;
}
.parcel {
  grid-column: 2;
  grid-row: 3;
  background: #f6ecd0;
  padding: 1.1rem;
  color: #37262b;
  border-block: 2px solid #8a5c53;
}
.open-book .sample-toggle {
  margin: 0.55rem 0 0.75rem;
}
.opening-page {
  background: #fff8e7;
  color: #382c29;
  border-left: 0.5rem double #c9aa7a;
  padding: 1.25rem clamp(1rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}
.opening-page span {
  font-style: italic;
}
.opening-page h4 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0.6rem 0;
}
.opening-page p {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
}
.opening-page p::first-letter {
  font-size: 2rem;
  line-height: 1;
}
.opening-page small {
  display: block;
  margin-top: 0.8rem;
}
.parcel .takeaway {
  margin-top: 0.1rem;
}
@media (max-width: 720px) {
  .bookroom,
  .studio .tool {
    display: block;
  }

  .bookseller-note {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bookseller-note img {
    height: 9rem;
  }
  .studio .tool > div[aria-live],
  .parcel {
    margin-top: 1.1rem;
  }
}

.counter-sample summary {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  padding-block: 0.5rem;
  font-weight: 650;
}
.counter-sample p {
  font-family: var(--display);
  line-height: 1.55;
  padding: 1rem;
  border-inline-start: 3px solid var(--accent);
}
