:root {
  color-scheme: light;
  --ink: #1d2927;
  --muted: #78827e;
  --paper: #f7f8f3;
  --green: #c9ef9a;
  --green-deep: #7eac58;
  --line: #e7eae3;
  --serif: "Manrope", sans-serif;
  --sans: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.topbar,
main,
.footer {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.7px;
  text-decoration: none;
}

.wordmark-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  font-size: 18px;
  letter-spacing: -1px;
}

.wordmark-light {
  color: #78827e;
  font-weight: 500;
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #737e79;
  font-size: 12px;
  font-weight: 500;
}

.status-dot,
.caption-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #88bb64;
}

.search-hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 20px;
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #71805f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.eyebrow-line {
  width: 23px;
  height: 1px;
  background: #90ad72;
}

h2,
p {
  margin-top: 0;
}

.hero-description {
  max-width: 420px;
  margin-bottom: 22px;
  color: #6f7a75;
  font-size: 15px;
  line-height: 1.75;
}

.search-form {
  width: min(555px, 100%);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px;
  border: 1px solid #e8ebe4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(34 51 41 / 5%);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-form:focus-within {
  border-color: #b7d79b;
  box-shadow: 0 0 0 4px rgb(177 218 143 / 18%), 0 10px 30px rgb(34 51 41 / 5%);
}

.search-icon {
  width: 20px;
  height: 20px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin-left: 9px;
  color: #9aa39d;
}

.search-icon svg {
  width: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
}

.search-form input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.search-form input::placeholder {
  color: #a1a8a3;
}

.search-form input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-form button {
  height: 46px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  color: #263224;
  background: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.search-form button:hover {
  background: #b9e685;
}

.search-form button:disabled {
  background: #dce5d2;
  cursor: wait;
}

.search-form button:active {
  transform: scale(0.98);
}

.search-form button svg {
  width: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.search-hint {
  margin: 12px 0 0 2px;
  color: #929a95;
  font-size: 11px;
}

.hero-art {
  min-height: 335px;
  position: relative;
  display: grid;
  place-items: center;
}

.art-orbit {
  position: absolute;
  border: 1px solid #e4e9dc;
  border-radius: 50%;
}

.orbit-one {
  width: 320px;
  height: 320px;
}

.orbit-two {
  width: 245px;
  height: 245px;
  border-style: dashed;
  opacity: 0.75;
}

.soundwave {
  position: absolute;
  top: 61px;
  right: 3px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: rotate(-17deg);
}

.soundwave span {
  width: 3px;
  height: var(--bar-height, 22px);
  border-radius: 4px;
  background: #b2d58f;
  opacity: 0.8;
}

.soundwave span:nth-child(3n) { --bar-height: 38px; }
.soundwave span:nth-child(4n) { --bar-height: 15px; }
.soundwave span:nth-child(5n) { --bar-height: 29px; }

.caption-card {
  z-index: 1;
  width: 282px;
  padding: 22px 23px 16px;
  border: 1px solid #e9ede4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 55px rgb(49 67 52 / 10%);
  transform: rotate(-3deg);
}

.caption-card select {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #e9ede4;
  border-radius: 8px;
  color: #435044;
  background: #fbfcf9;
  font: 600 12px var(--sans);
}

.caption-card select:focus-visible {
  outline: 3px solid rgb(177 218 143 / 35%);
  border-color: #b7d79b;
}

.caption-card select:disabled {
  color: #a1a8a3;
}

.caption-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8a968e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.caption-label span {
  width: 5px;
  height: 5px;
}

.caption-card p {
  margin: 21px 0 23px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.7px;
}

.caption-card em {
  color: #86a86a;
  font-style: normal;
}

.caption-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #eff1ec;
  color: #99a19b;
  font-size: 9px;
}

.channel-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #88bb64;
}

.play-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  color: #567746;
  background: #eaf5df;
  font-size: 8px;
}

.art-caption {
  position: absolute;
  right: 13px;
  bottom: 28px;
  color: #929c91;
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  transform: rotate(-4deg);
}

.art-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid #aacd87;
  transform: rotate(45deg);
}

.spark-one {
  top: 60px;
  left: 47px;
}

.spark-two {
  right: 47px;
  bottom: 79px;
  width: 6px;
  height: 6px;
}

.results-section {
  min-height: 255px;
  padding: 48px 0 66px;
}

.results-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.results-eyebrow {
  margin-bottom: 10px;
  font-size: 9px;
}

.results-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1.1px;
}

#results-count {
  color: #9ca69e;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.results-note {
  margin-bottom: 3px;
  color: #9aa29c;
  font-size: 11px;
}

.search-status {
  margin: 0;
  padding: 20px 22px;
  border: 1px dashed #dfe5d9;
  border-radius: 10px;
  color: #7f8982;
  background: rgb(255 255 255 / 54%);
  font-size: 13px;
  line-height: 1.6;
}

.search-status[data-state="error"] {
  border-color: #edc8bd;
  color: #965d4f;
  background: #fff8f5;
}

.results-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.results-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7f8982;
  font-size: 12px;
}

.results-pagination-bottom {
  margin-top: 24px;
}

.results-pagination[hidden] {
  display: none;
}

.pagination-button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #526148;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.pagination-button:hover:not(:disabled) {
  border-color: #b9c9ad;
  background: #f7faf4;
}

.pagination-button:disabled {
  color: #aab1ab;
  cursor: not-allowed;
}

.result-card-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  padding: 19px 21px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.result-card-link:hover {
  border-color: #d3e2c4;
  box-shadow: 0 6px 20px rgb(34 51 41 / 4%);
  transform: translateY(-1px);
}

.result-card-link:focus-visible {
  outline: 3px solid rgb(137 170 107 / 55%);
  outline-offset: 3px;
}

.result-title {
  overflow: hidden;
  color: #435044;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-timestamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #698851;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.result-card-link:hover .result-timestamp {
  color: #45692e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.result-play {
  font-size: 8px;
}

.result-text {
  grid-column: 1 / -1;
  margin: 0;
  color: #737e77;
  font-size: 13px;
  line-height: 1.65;
}

.result-text mark {
  padding: 1px 3px;
  border-radius: 3px;
  color: #465f38;
  background: #edf7e4;
}

.footer {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: #99a19c;
  font-size: 10px;
}

.footer > span:first-child {
  color: #717e73;
  font-family: var(--serif);
  font-weight: 700;
}

.footer > span:last-child span {
  color: #89aa6b;
}

.footer a {
  margin-left: 10px;
  color: #717e73;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: #45692e;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 760px) {
  .topbar,
  main,
  .footer {
    width: min(100% - 40px, 560px);
  }

  .topbar {
    height: 70px;
  }

  .search-hero {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 54px 0 40px;
  }

  .hero-art {
    min-height: 275px;
  }

  .orbit-one {
    width: 270px;
    height: 270px;
  }

  .orbit-two {
    width: 210px;
    height: 210px;
  }

  .soundwave {
    right: 8%;
  }

  .results-section {
    padding-top: 38px;
  }
}

@media (max-width: 480px) {
  .topbar,
  main,
  .footer {
    width: calc(100% - 32px);
  }

  .topbar-note {
    font-size: 10px;
  }

  .search-form {
    height: 58px;
    gap: 7px;
  }

  .search-form input {
    font-size: 11px;
  }

  .search-form button {
    height: 44px;
    gap: 5px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .search-hint {
    font-size: 10px;
  }

  .results-heading-row {
    align-items: start;
  }

  .results-note {
    max-width: 115px;
    text-align: right;
    line-height: 1.5;
  }

  .result-card-link {
    gap: 9px 10px;
    padding: 16px;
  }

  .result-title {
    font-size: 12px;
  }

  .result-text {
    font-size: 12px;
  }

  .footer {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 14px;
    font-size: 9px;
  }
}

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