:root {
  color-scheme: light;
  font-family: "Inter", sans-serif;
  color: #382b2f;
  background: #fbf7f2;
}

* {
  box-sizing: border-box;
}

.toolbox-skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  border-radius: 0.4rem;
  background: #382b2f;
  padding: 0.7rem 1rem;
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
}

.toolbox-skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid #d89a31;
  outline-offset: 3px;
}

.toolbox-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgb(239 194 112 / 20%), transparent 34rem),
    #fbf7f2;
}

.toolbox-site-header,
.toolbox-site-footer {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

.toolbox-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.toolbox-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #382b2f;
  font-family: "Caladea", serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.toolbox-brand__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #8d3850;
  color: #fff;
}

.toolbox-site-nav {
  display: flex;
  gap: 1.25rem;
}

.toolbox-site-nav a,
.toolbox-site-footer a {
  color: #8d3850;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.toolbox-site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e5d9d0;
  padding: 2rem 0 3rem;
  color: #695b5f;
}

.toolbox-site-footer p {
  margin: 0;
}

.toolbox-related {
  width: min(100% - 2rem, 58rem);
  margin: 0 auto 5rem;
  border-top: 1px solid #e5d9d0;
  padding-top: 2rem;
}

.toolbox-related h2 {
  margin: 0 0 1rem;
  font-family: "Caladea", serif;
}

.toolbox-related__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.toolbox-related__links a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid #eadfd5;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  color: #382b2f;
  text-decoration: none;
}

.toolbox-related__links a:hover {
  border-color: #c993a1;
}

.toolbox-related__links span {
  color: #695b5f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.toolbox-home {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0 6rem;
}

.toolbox-home__hero {
  max-width: 52rem;
  margin-bottom: 5rem;
}

.toolbox-home__hero h1 {
  margin: 0;
  font-family: "Caladea", serif;
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  line-height: 0.93;
}

.toolbox-home__hero > p:last-child {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: #695b5f;
  font-size: 1.15rem;
  line-height: 1.7;
}

.toolbox-category + .toolbox-category {
  margin-top: 3.5rem;
}

.toolbox-category > h2 {
  font-family: "Caladea", serif;
  font-size: 1.6rem;
}

.toolbox-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.toolbox-card {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  border: 1px solid #eadfd5;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 88%);
  padding: 1.5rem;
  color: #382b2f;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.toolbox-card:hover {
  border-color: #c993a1;
  box-shadow: 0 1rem 2.5rem rgb(92 57 64 / 8%);
  transform: translateY(-2px);
}

.toolbox-card h3 {
  margin: 0;
  font-family: "Caladea", serif;
  font-size: 1.5rem;
}

.toolbox-card p {
  color: #695b5f;
  line-height: 1.6;
}

.toolbox-card span {
  margin-top: auto;
  color: #8d3850;
  font-weight: 700;
}

.toolbox-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 5rem;
  border-radius: 1.5rem;
  background: #f0e2dc;
  padding: 2rem;
}

.toolbox-support h2 {
  margin: 0;
  font-family: "Caladea", serif;
}

.toolbox-support .toolbox-placeholder__primary-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.toolbox-placeholder {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1.25rem;
}

.toolbox-placeholder__card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid #eadfd5;
  border-radius: 2rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 1.5rem 4rem rgb(92 57 64 / 10%);
  text-align: center;
}

.toolbox-placeholder__eyebrow {
  margin: 0 0 1rem;
  color: #a4475e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.toolbox-placeholder h1 {
  margin: 0;
  font-family: "Caladea", serif;
  font-size: clamp(2.75rem, 9vw, 5rem);
  line-height: 0.95;
}

.toolbox-placeholder__intro {
  max-width: 30rem;
  margin: 1.5rem auto 0;
  color: #695b5f;
  font-size: clamp(1rem, 3vw, 1.15rem);
  line-height: 1.7;
}

.toolbox-placeholder__link {
  display: inline-block;
  margin-top: 2rem;
  color: #8d3850;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.toolbox-placeholder__link:hover {
  color: #642437;
}

.toolbox-placeholder__primary-link,
.toolbox-form__submit {
  display: inline-block;
  margin-top: 2rem;
  border: 0;
  border-radius: 999px;
  background: #8d3850;
  padding: 0.8rem 1.25rem;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.toolbox-placeholder__primary-link + .toolbox-placeholder__link {
  margin-left: 1rem;
}

.toolbox-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.toolbox-list .toolbox-placeholder__primary-link {
  margin-top: 0;
}

.toolbox-page {
  width: min(100% - 2rem, 58rem);
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.toolbox-page__header h1,
.toolbox-result h2,
.toolbox-note h2 {
  font-family: "Caladea", serif;
}

.toolbox-page__header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
}

.toolbox-page__header > p:last-child {
  color: #695b5f;
  line-height: 1.6;
}

.toolbox-page__back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: #8d3850;
  font-weight: 700;
}

.toolbox-form,
.toolbox-result,
.toolbox-note {
  margin-top: 2rem;
  border: 1px solid #eadfd5;
  border-radius: 1.25rem;
  background: #fff;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.toolbox-form__section {
  margin: 0;
  border: 0;
  padding: 0;
}

.toolbox-form__section + .toolbox-form__section {
  margin-top: 2rem;
}

.toolbox-form legend {
  margin-bottom: 1rem;
  font-family: "Caladea", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.toolbox-form__yield-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.toolbox-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.toolbox-form label,
.toolbox-form label span {
  display: block;
}

.toolbox-form label span {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.toolbox-form input[type="text"],
.toolbox-form input[type="number"],
.toolbox-form select,
.toolbox-form textarea,
.toolbox-form input[type="date"] {
  width: 100%;
  border: 1px solid #cdbfc1;
  border-radius: 0.6rem;
  padding: 0.7rem 0.75rem;
  background: #fff;
  color: #382b2f;
  font: inherit;
}

.toolbox-form textarea {
  resize: vertical;
}

.toolbox-form__section > label + label {
  margin-top: 1rem;
}

.toolbox-form input[type="text"]:focus {
  border-color: #8d3850;
  outline: 2px solid rgb(141 56 80 / 15%);
}

.toolbox-result:focus {
  outline: 0;
}

.toolbox-form__hint {
  margin-top: -0.5rem;
  color: #695b5f;
  font-size: 0.9rem;
}

.toolbox-row-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.toolbox-secondary-button,
.toolbox-row-remove,
.toolbox-result-actions button,
.toolbox-result-actions a {
  border: 1px solid #cdbfc1;
  border-radius: 999px;
  background: #fff;
  padding: 0.55rem 0.9rem;
  color: #6f2d40;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.toolbox-row-remove {
  align-self: end;
  padding: 0.45rem 0.7rem;
}

.toolbox-ingredient-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(6rem, 0.8fr) minmax(5rem, 0.7fr) auto;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.toolbox-cost-row {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 0.5fr 0.8fr auto;
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid #eee5de;
  padding-top: 1rem;
}

.toolbox-tier-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr auto;
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid #eee5de;
  padding-top: 1rem;
}

.toolbox-price-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.7fr auto;
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid #eee5de;
  padding-top: 1rem;
}

.toolbox-ingredient-row--headings {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.toolbox-mobile-label {
  display: none !important;
}

.toolbox-errors {
  margin-bottom: 2rem;
  border-radius: 0.8rem;
  background: #fff0f2;
  padding: 1rem 1.25rem;
  color: #762c40;
}

.toolbox-errors h2 {
  margin-top: 0;
  font-size: 1rem;
}

.toolbox-errors ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.toolbox-result h2,
.toolbox-note h2 {
  margin-top: 0;
}

.toolbox-result dl {
  margin: 1.5rem 0 0;
}

.toolbox-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  border-top: 1px solid #eee5de;
  padding-top: 1.25rem;
}

.toolbox-result-support,
.toolbox-feedback {
  margin-top: 1.5rem;
  border-top: 1px solid #eee5de;
  padding-top: 1.5rem;
}

.toolbox-result-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.toolbox-result-support strong,
.toolbox-feedback h3 {
  font-family: "Caladea", serif;
  font-size: 1.2rem;
}

.toolbox-result-support p,
.toolbox-feedback p {
  margin: 0.35rem 0 0;
  color: #695b5f;
  line-height: 1.5;
}

.toolbox-result-support a,
.toolbox-feedback button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #8d3850;
  padding: 0.7rem 1rem;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.toolbox-feedback h3 {
  margin: 0;
}

.toolbox-feedback__form {
  margin-top: 1rem;
}

.toolbox-feedback__form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.toolbox-feedback__form textarea {
  width: 100%;
  border: 1px solid #cdbfc1;
  border-radius: 0.6rem;
  padding: 0.7rem 0.75rem;
  color: #382b2f;
  font: inherit;
  resize: vertical;
}

.toolbox-feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.toolbox-feedback button.toolbox-feedback__secondary {
  border: 1px solid #cdbfc1;
  background: #fff;
  color: #6f2d40;
}

.toolbox-feedback__error {
  color: #762c40 !important;
  font-weight: 700;
}

.toolbox-feedback--message {
  border-top: 0;
  border-radius: 0.8rem;
  background: #f5eee9;
  padding: 1rem;
}

.toolbox-result__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #eee5de;
  padding: 0.85rem 0;
}

.toolbox-result__row dt {
  font-weight: 700;
}

.toolbox-result__row dd {
  margin: 0;
  white-space: nowrap;
}

.toolbox-order-brief__notes {
  margin-top: 1.5rem;
  border-top: 1px solid #eee5de;
  padding-top: 1rem;
}

.toolbox-order-brief__notes h3 {
  margin: 0 0 0.5rem;
  font-family: "Caladea", serif;
}

.toolbox-order-brief__notes p {
  margin: 0.35rem 0;
  line-height: 1.6;
}

.toolbox-note {
  color: #695b5f;
  line-height: 1.65;
}

@media (max-width: 40rem) {
  .toolbox-site-header,
  .toolbox-site-footer,
  .toolbox-support {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbox-site-nav {
    flex-wrap: wrap;
  }

  .toolbox-result-support {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbox-card-grid {
    grid-template-columns: 1fr;
  }

  .toolbox-related__links {
    grid-template-columns: 1fr;
  }

  .toolbox-placeholder__primary-link,
  .toolbox-placeholder__link {
    display: block;
  }

  .toolbox-placeholder__primary-link + .toolbox-placeholder__link {
    margin-left: 0;
  }

  .toolbox-form__yield-grid,
  .toolbox-form__grid,
  .toolbox-ingredient-row {
    grid-template-columns: 1fr;
  }

  .toolbox-cost-row {
    grid-template-columns: 1fr;
  }

  .toolbox-tier-row {
    grid-template-columns: 1fr;
  }

  .toolbox-price-row {
    grid-template-columns: 1fr;
  }

  .toolbox-ingredient-row {
    border-top: 1px solid #eee5de;
    padding-top: 1rem;
  }

  .toolbox-ingredient-row--headings {
    display: none;
  }

  .toolbox-mobile-label {
    display: block !important;
  }
}

@media print {
  .toolbox-site-header,
  .toolbox-site-footer,
  .toolbox-page__back,
  .toolbox-form,
  .toolbox-note,
  .toolbox-result-actions {
    display: none;
  }

  .toolbox-related,
  .toolbox-skip-link {
    display: none;
  }

  .toolbox-result-support,
  turbo-frame#tool-feedback {
    display: none;
  }

  .toolbox-body,
  .toolbox-result {
    background: #fff;
  }

  .toolbox-result {
    border: 0;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
