.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;
  }
}
.groom-portrait {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: center;
}
.groom-portrait figure {
  background: var(--paper);
  border: 0.16rem solid var(--ink);
  padding: 0.55rem;
  transform: rotate(-2deg);
  max-width: 24rem;
  margin: auto;
}
.groom-portrait img {
  height: clamp(10rem, 15vw, 14rem);
  object-position: center 40%;
}
.groom-portrait figcaption {
  padding: 0.55rem 0.25rem 0.15rem;
  text-align: center;
}
.groom-portrait header p {
  margin-top: 0.7rem;
  max-width: 37ch;
}
.groom-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.groom-path article {
  border-top: 0.25rem solid var(--ink);
  padding: 0.8rem 0.4rem;
}
.groom-path h3 {
  font: 700 clamp(1.4rem, 2.3vw, 2rem)/1.1 var(--display);
  letter-spacing: -0.035em;
}
.groom-path p {
  margin-top: 0.55rem;
}
.studio-frame {
  display: block;
}
.studio-frame > div:first-child {
  margin-bottom: 1.4rem;
}
.studio .tool {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem 3rem;
  align-items: start;
}
.studio .tool > fieldset,
.studio .tool > .result {
  grid-column: 1;
}
.studio .tool > .result {
  margin-top: 0;
}
.dog-card {
  grid-column: 2;
  grid-row: 1/4;
  padding: clamp(1rem, 2.4vw, 2rem);
  background: #f8eee6;
  border-radius: 3rem 0.6rem 2rem 0.6rem;
  border: 0.16rem solid var(--ink);
}
.welcome-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.6rem;
}
.welcome-options label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.8rem;
}
.dog-pass {
  padding: 1.1rem 1.4rem;
  background: #c7e3f3;
  border-radius: 0.5rem 2rem 0.5rem 1.5rem;
  margin: 0.9rem 0;
}
.dog-pass h4 {
  font: 800 1.55rem/1.1 var(--display);
}
.dog-pass strong {
  display: block;
  margin: 0.4rem 0;
}
@media (max-width: 720px) {
  .groom-portrait {
    grid-template-columns: 0.8fr 1fr;
    gap: 1rem;
  }
  .groom-portrait h2 {
    font-size: 2.25rem;
  }
  .groom-portrait figcaption {
    font-size: 0.78rem;
  }
  .groom-path {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .groom-path article {
    padding-bottom: 0.8rem;
  }
  .studio .tool {
    display: block;
  }
  .dog-card {
    margin-top: 1.4rem;
  }
  .welcome-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .groom-portrait {
    grid-template-columns: 1fr;
  }
  .groom-portrait figure {
    width: 76%;
    margin: 0;
  }
  .groom-portrait figure img {
    height: 11rem;
  }
}

.studio .tool > .workbench-controls {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: start;
}
.studio .tool > .dog-card {
  grid-row: 1;
}
.workbench-controls > fieldset + fieldset {
  margin-top: 1.15rem;
}
.workbench-controls > fieldset + figure {
  margin-top: 1rem;
}
.workbench-controls > fieldset + article {
  margin-top: 1.1rem;
}
