.home-shell {
  --home-yellow: #ffd700;
  --home-yellow-soft: #fff8cc;
  --home-ink: #111111;
  --home-muted: #616161;
  --home-line: #dedede;
  --home-panel: #ffffff;
  --home-wash: #f4f4f4;
  --home-radius: 0.75rem;
  width: min(100%, 86rem);
  margin-inline: auto;
  padding: clamp(1rem, 2.4vw, 2rem);
  color: var(--home-ink);
}

.home-shell *,
.home-shell *::before,
.home-shell *::after {
  box-sizing: border-box;
}

.home-shell [hidden] {
  display: none !important;
}

.home-shell .home-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-shell .home-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
  min-height: 29rem;
}

.home-shell .home-intro__content {
  position: relative;
  z-index: 4;
  align-self: center;
  padding: clamp(2rem, 5vw, 4.75rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
}

.home-shell .home-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: #636363;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-shell .home-intro h1 {
  max-width: 48rem;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 4.6vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.home-shell .home-intro__summary {
  max-width: 43rem;
  margin: 1.15rem 0 1.5rem;
  color: var(--home-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 500;
  line-height: 1.65;
}

.home-shell .home-search {
  position: relative;
  z-index: 6;
  max-width: 43rem;
}

.home-shell .home-search__label {
  display: block;
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-shell .home-search__field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 3.75rem;
  gap: 0.75rem;
  padding: 0 0.85rem 0 1rem;
  border: 1px solid #bdbdbd;
  border-radius: var(--home-radius);
  background: #fff;
  outline: 1px solid rgba(255, 215, 0, 0.5);
  outline-offset: 1px;
  transition: border-color 160ms ease, outline-color 160ms ease;
}

.home-shell .home-search:focus-within .home-search__field {
  border-color: var(--home-yellow);
  outline-color: rgba(255, 215, 0, 0.95);
}

.home-shell .home-search__field > .material-symbols-outlined {
  font-size: 1.45rem;
}

.home-shell .home-search__field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--home-ink);
  font-size: 0.96rem;
  font-weight: 600;
  outline: 0;
  box-shadow: none;
}

.home-shell .home-search__field input::placeholder {
  color: #747474;
  font-weight: 500;
}

.home-shell .home-search__field input::-webkit-search-cancel-button {
  cursor: pointer;
}

.home-shell .home-search__field kbd {
  min-width: 1.8rem;
  padding: 0.28rem 0.45rem;
  border: 1px solid #d5d5d5;
  border-bottom-width: 2px;
  border-radius: 0.35rem;
  background: #f5f5f5;
  color: #555;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.home-shell .home-search__results {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  right: 0;
  max-height: min(25rem, 60vh);
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.17);
}

.home-shell .home-search-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 3.65rem;
  gap: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  color: var(--home-ink);
  text-decoration: none;
}

.home-shell .home-search-result:hover,
.home-shell .home-search-result[aria-selected="true"] {
  background: var(--home-yellow-soft);
}

.home-shell .home-search-result__icon {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 0.5rem;
  background: #fff;
}

.home-shell .home-search-result__copy {
  min-width: 0;
}

.home-shell .home-search-result__copy strong,
.home-shell .home-search-result__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shell .home-search-result__copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.home-shell .home-search-result__copy span {
  margin-top: 0.15rem;
  color: var(--home-muted);
  font-size: 0.72rem;
}

.home-shell .home-search__empty {
  display: flex;
  min-height: 6.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  color: var(--home-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.home-shell .home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1.35rem 0 0;
  padding: 0;
  color: #505050;
  list-style: none;
}

.home-shell .home-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.home-shell .home-trust .material-symbols-outlined {
  color: #3f3f3f;
  font-size: 1rem;
}

.home-shell .home-intro__mascot {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: center;
}

.home-shell .home-intro__mascot picture {
  position: relative;
  z-index: 1;
  display: block;
  width: min(93%, 21rem);
  height: 95%;
  background: transparent;
}

.home-shell .home-intro__mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.home-shell .home-shortcuts,
.home-shell .home-library {
  scroll-margin-top: calc(var(--header-offset, 69px) + 1rem);
  margin-top: clamp(2.75rem, 6vw, 5.25rem);
}

.home-shell .home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.home-shell .home-section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.home-shell .home-section-heading > div > p:last-child {
  max-width: 45rem;
  margin: 0.55rem 0 0;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-shell .home-section-heading--compact h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
}

.home-shell .home-text-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--home-ink);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--home-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.home-shell .home-text-button {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
}

.home-shell .home-text-button:hover {
  background: var(--home-ink);
  color: #fff;
}

.home-shell .home-text-button .material-symbols-outlined {
  font-size: 1.1rem;
}

.home-shell .home-shortcut-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-shell .home-shortcut-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 5.5rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: #fff;
  color: var(--home-ink);
  text-decoration: none;
  box-shadow: 0 4px 13px rgba(0, 0, 0, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-shell .home-shortcut-card:hover {
  transform: translateY(-2px);
  border-color: #b89b00;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.075);
}

.home-shell .home-tool-icon {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dedede;
  border-radius: 0.6rem;
  background: var(--home-yellow-soft);
  color: var(--home-ink);
  font-size: 1.3rem;
}

.home-shell .home-shortcut-card__copy {
  min-width: 0;
}

.home-shell .home-shortcut-card__copy strong,
.home-shell .home-shortcut-card__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shell .home-shortcut-card__copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.93rem;
  font-weight: 800;
}

.home-shell .home-shortcut-card__copy span {
  margin-top: 0.22rem;
  color: var(--home-muted);
  font-size: 0.73rem;
}

.home-shell .home-card-arrow {
  color: #777;
  font-size: 1rem;
}

.home-shell .home-shortcut-card:hover .home-card-arrow {
  color: var(--home-ink);
}

.home-shell .home-library {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  scroll-margin-top: 5.5rem;
  padding: clamp(1.1rem, 2.8vw, 2.25rem);
  border: 1px solid var(--home-line);
  border-radius: calc(var(--home-radius) + 0.25rem);
  background: #efefef;
}

.home-shell .home-category-rail {
  position: relative;
  margin: 1.4rem -0.15rem 1.25rem;
  overflow-x: auto;
  padding: 0.15rem 0.15rem 0.65rem;
  scrollbar-color: #111 #d8d8d8;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 0.75rem;
}

.home-shell .home-category-tabs {
  display: flex;
  width: 100%;
  gap: clamp(0.65rem, 1.8vw, 1.4rem);
}

.home-shell .home-category-tabs button {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #4e4e4e;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.home-shell .home-category-tabs button span {
  display: none;
}

.home-shell .home-category-tabs button:hover {
  border-bottom-color: #9a9a9a;
  color: var(--home-ink);
}

.home-shell .home-category-tabs button[aria-selected="true"] {
  border-bottom-color: var(--home-yellow);
  color: var(--home-ink);
}

.home-shell .home-tool-panel {
  outline: none;
}

.home-shell .home-tool-panel:focus-visible {
  border-radius: 0.4rem;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.72);
}

.home-shell .home-tool-sections {
  display: grid;
  gap: 2rem;
}

.home-shell .home-tool-category {
  min-width: 0;
}

.home-shell .home-tool-category__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.home-shell .home-tool-category__heading h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.home-shell .home-tool-category__about {
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.78rem;
}

.home-shell .home-tool-category__about summary {
  display: inline-block;
  cursor: pointer;
  font-weight: 650;
  color: #6b7280;
}

.home-shell .home-tool-category__about summary:hover,
.home-shell .home-tool-category__about summary:focus-visible {
  color: #111827;
}

.home-shell .home-tool-category__about p {
  max-width: 42rem;
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.home-shell .home-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-shell .home-tool-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #f0f0f0;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--home-ink);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-shell .home-tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--home-yellow);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.07);
}

.home-shell .home-tool-card__body {
  min-width: 0;
}

.home-shell .home-tool-card__body strong,
.home-shell .home-tool-card__body > span {
  display: block;
}

.home-shell .home-tool-card__body strong {
  display: block;
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shell .home-tool-card__body > span {
  display: -webkit-box;
  margin-top: 0.28rem;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 0.72rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.home-shell .home-tool-card__footer {
  display: none;
}

.home-shell .home-tool-card > .home-tool-icon {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 0.375rem;
  background: #f7f7f7;
  font-size: 1.35rem;
  transition: background 160ms ease, color 160ms ease;
}

.home-shell .home-tool-card:hover > .home-tool-icon {
  background: var(--home-yellow);
  color: var(--home-ink);
}

.home-shell .home-tool-card > .home-card-arrow {
  margin-left: auto;
  color: #9a9a9a;
  font-size: 1.05rem;
  transition: transform 160ms ease;
}

.home-shell .home-tool-card:hover > .home-card-arrow {
  transform: translateX(0.18rem);
  color: var(--home-ink);
}

.home-shell .home-library-empty {
  display: flex;
  min-height: 14rem;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px dashed #a8a8a8;
  border-radius: var(--home-radius);
  background: #fff;
}

.home-shell .home-library-empty[hidden] {
  display: none;
}

.home-shell .home-library-empty picture {
  display: block;
  width: 5.5rem;
  height: 7rem;
  overflow: hidden;
  border-radius: 3rem 3rem 0.5rem 0.5rem;
  background: #fff;
}

.home-shell .home-library-empty img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-shell .home-library-empty h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.home-shell .home-library-empty p {
  margin: 0.35rem 0 0;
  color: var(--home-muted);
  font-size: 0.84rem;
}

.home-shell a:focus-visible,
.home-shell button:focus-visible,
.home-shell input:focus-visible {
  outline: 3px solid var(--home-yellow);
  outline-offset: 3px;
}

@media (max-width: 70rem) {
  .home-shell .home-intro {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  }

  .home-shell .home-intro__content {
    padding: 2.5rem;
    padding-right: 1.75rem;
  }

  .home-shell .home-intro h1 {
    font-size: clamp(2.5rem, 5.4vw, 3.8rem);
  }

  .home-shell .home-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 53rem) {
  .home-shell .home-intro {
    grid-template-columns: minmax(0, 1fr) 14rem;
    min-height: 27rem;
  }

  .home-shell .home-intro__content {
    padding: 2rem;
    padding-right: 1.5rem;
  }

  .home-shell .home-intro h1 {
    font-size: clamp(2.2rem, 5.7vw, 3.2rem);
  }

  .home-shell .home-intro__mascot picture {
    width: 96%;
  }

  .home-shell .home-shortcut-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shell .home-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  .home-shell {
    padding: 0.75rem;
  }

  .home-shell .home-intro {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .home-shell .home-intro__content {
    padding: 1.55rem 1.25rem 1.65rem;
  }

  .home-shell .home-intro h1 {
    max-width: 32rem;
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 1;
  }

  .home-shell .home-intro__summary {
    margin-top: 0.9rem;
    font-size: 0.9rem;
  }

  .home-shell .home-search__field {
    min-height: 3.4rem;
    padding-right: 0.75rem;
  }

  .home-shell .home-search__field kbd {
    display: none;
  }

  .home-shell .home-intro__mascot {
    min-height: 14rem;
  }

  .home-shell .home-intro__mascot picture {
    width: 10.5rem;
    height: 13.5rem;
  }

  .home-shell .home-shortcuts,
  .home-shell .home-library {
    margin-top: 2.75rem;
  }

  .home-shell .home-section-heading {
    align-items: flex-start;
  }

  .home-shell .home-shortcut-list {
    display: flex;
    margin-inline: -0.75rem;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.15rem 0.75rem 0.8rem;
    scroll-padding-inline: 0.75rem;
    scroll-snap-type: x proximity;
  }

  .home-shell .home-shortcut-card {
    width: min(83vw, 19rem);
    min-width: min(83vw, 19rem);
    min-height: 5rem;
    scroll-snap-align: start;
  }

  .home-shell .home-library {
    padding: 1rem;
  }

  .home-shell .home-category-tabs {
    width: max-content;
    gap: 1rem;
  }

  .home-shell .home-category-tabs button {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding-inline: 0.25rem;
  }

  .home-shell .home-tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-shell .home-tool-card {
    min-height: 4.75rem;
  }
}

@media (max-width: 23rem) {
  .home-shell .home-intro__content {
    padding-inline: 1rem;
  }

  .home-shell .home-intro h1 {
    font-size: 2rem;
  }

  .home-shell .home-search__field {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    padding-left: 0.75rem;
  }

  .home-shell .home-search__field input {
    font-size: 0.85rem;
  }

  .home-shell .home-trust {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-shell .home-section-heading {
    display: block;
  }

  .home-shell .home-text-button {
    margin-top: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell *,
  .home-shell *::before,
  .home-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
