:root {
  color-scheme: light;
  --canvas: #f7f7f5;
  --ink: #151515;
  --muted: #6c6c68;
  --line: #d9d9d5;
  --media: #e9e9e5;
  --accent: #3157e8;
  --page-gutter: clamp(20px, 3.1vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-width {
  width: min(100%, 1536px);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.wordmark {
  font-family: "Onest", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a,
.text-button {
  position: relative;
  border: 0;
  padding: 4px 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.site-nav__instagram {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.site-nav__instagram img {
  display: block;
  width: 16px;
  height: 16px;
  opacity: 0.65;
}

.site-nav a::after,
.text-button::after,
.site-footer a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 160ms ease, transform 220ms var(--ease-out);
}

.site-nav a:hover::after,
.text-button:hover::after,
.site-footer a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.intro {
  padding-block: 48px 34px;
}

.intro h1 {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.intro > p {
  max-width: 54ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.search-combobox {
  position: relative;
  width: min(100%, 460px);
  margin-top: 24px;
}

.search {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  color: var(--muted);
  transition: border-color 160ms ease, box-shadow 220ms var(--ease-out);
}

.search-suggestions {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: #fbfbfa;
  box-shadow: 0 14px 30px rgb(21 21 21 / 10%);
  list-style: none;
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestions li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
}

.search-suggestions li:hover,
.search-suggestions li.is-active {
  background: #eaeaE6;
}

.search-suggestions small {
  color: var(--muted);
  font-size: 12px;
}

.category-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-filter__button,
.category-tag {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.category-filter__button {
  flex: 0 0 auto;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.category-filter__button:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.category-filter__button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(49 87 232 / 12%);
}

.search svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 13px;
}

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

.search input::placeholder {
  color: #72726e;
  opacity: 1;
}

.video-grid {
  position: relative;
  width: 100%;
  transition: height 460ms var(--ease-out);
}

.cell {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  transform-origin: top left;
  transition: width 460ms var(--ease-out), transform 460ms var(--ease-out);
}

.cell:not(.has-position) {
  visibility: hidden;
  transition: none;
}

.cell::before {
  position: absolute;
  z-index: -1;
  inset: -8px;
  border-radius: 10px;
  background: #eee;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cell:hover::before,
.cell:focus-within::before,
.cell.is-expanded::before {
  opacity: 1;
}

.cell.is-expanded {
  z-index: 1;
  padding-top: 40px;
}

.cell[hidden] {
  display: none;
}

.cell__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  background: var(--media);
}

.cell__media--youtube {
  aspect-ratio: 16 / 9;
}

.cell__media--instagram {
  aspect-ratio: 9 / 16;
  background: #fff;
}

.cell__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.cell__placeholder-link,
.creator-entry__placeholder-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #111;
}

.cell__placeholder-link img,
.creator-entry__placeholder-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 180ms ease;
}

.cell__placeholder-link:hover img,
.creator-entry__placeholder-link:hover img {
  opacity: 1;
}

.cell__placeholder-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  border-radius: 4px;
  padding: 6px 8px;
  background: rgb(17 17 17 / 82%);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.cell.is-expanded .cell__media--instagram {
  max-width: 620px;
  margin-inline: auto;
}

.cell__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding-top: 10px;
}

.cell__identity {
  min-width: 0;
}

.creator-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cell__title {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 1px;
}

.cell__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.cell__action:hover {
  background: #e8e8e4;
  color: var(--ink);
}

.cell__action svg {
  width: 16px;
  height: 16px;
}

.cell__resize {
  gap: 6px;
  transition: width 220ms var(--ease-out), border-radius 220ms var(--ease-out), background 160ms ease, color 160ms ease;
}

.cell__resize-icon {
  display: inline-flex;
}

.cell__resize-icon--contract,
.cell__resize-label {
  display: none;
}

.cell.is-expanded .cell__resize {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: auto;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding-inline: 9px;
  background: rgb(247 247 245 / 94%);
  color: var(--ink);
}

.cell.is-expanded .cell__resize-icon--expand {
  display: none;
}

.cell.is-expanded .cell__resize-icon--contract,
.cell.is-expanded .cell__resize-label {
  display: inline-flex;
}

.cell__resize-label {
  font-size: 12px;
  line-height: 1;
}

.cell.is-expanded .cell__title {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.empty-state,
.noscript-message {
  min-height: 240px;
  padding-block: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.empty-state p {
  margin: 0 0 8px;
}

.underlined-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.site-footer {
  margin-top: 54px;
  padding-block: 22px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  position: relative;
  color: var(--ink);
}

.drawer-layer {
  position: fixed;
  z-index: 20;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 360ms;
}

.drawer-layer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgb(21 21 21 / 28%);
  cursor: default;
  opacity: 0;
  transition: opacity 260ms ease;
}

.drawer-layer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  height: 100%;
  overflow-y: auto;
  background: var(--canvas);
  box-shadow: -12px 0 40px rgb(21 21 21 / 14%);
  transform: translateX(102%);
  transition: transform 360ms var(--ease-out);
}

.drawer-layer.is-open .drawer {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-inline: 28px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__context {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  background: #e8e8e4;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.drawer__body {
  padding: 42px 28px 48px;
}

.drawer__body h2 {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.drawer__meta {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.drawer__description {
  margin: 32px 0 0;
  line-height: 1.65;
}

.drawer__note {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.drawer__note:empty {
  display: none;
}

.drawer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 34px;
}

.drawer__links a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.drawer__links a:hover {
  border-color: var(--ink);
}

.drawer__links svg {
  width: 15px;
  height: 15px;
}

.route-main {
  min-height: calc(100vh - 150px);
}

.route-intro {
  max-width: 620px;
  padding-block: 54px 42px;
}

.route-intro h1,
.creator-heading h1 {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.route-intro > p:last-child,
.creator-heading__description {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.name-index {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 9px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 28px 0 64px;
  list-style: none;
}

.name-index li {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.name-index li:not(:last-child)::after {
  color: var(--muted);
  content: "/";
}

.name-index a {
  font-family: "Onest", sans-serif;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.name-index a:hover {
  color: var(--accent);
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(220px, 1fr);
  gap: clamp(52px, 9vw, 150px);
  align-items: start;
  padding-bottom: 72px;
}

.request-form {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 21px;
}

.form-field label {
  font-size: 12px;
  font-weight: 500;
}

.form-field label span {
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  padding: 10px 11px;
  background: #fbfbfa;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 220ms var(--ease-out);
}

.form-field input {
  min-height: 42px;
}

.form-field textarea {
  min-height: 108px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(49 87 232 / 12%);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--ink);
}

.form-field__hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-button {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 9px 15px;
  background: var(--ink);
  color: var(--canvas);
  cursor: pointer;
  font-weight: 500;
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}

.submit-button:hover {
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.form-status {
  min-height: 21px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status[data-state="success"] {
  color: var(--ink);
}

.form-status[data-state="error"] {
  color: var(--ink);
}

.request-aside {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.request-aside p {
  max-width: 34ch;
  margin: 0 0 14px;
}

.creator-page {
  padding-block: 54px 72px;
}

.creator-heading {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 56px;
  align-items: end;
  padding-bottom: 32px;
}

.creator-heading__meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.creator-entry {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: clamp(36px, 7vw, 104px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.creator-entry__media {
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  background: var(--media);
}

.creator-entry__media--youtube {
  aspect-ratio: 16 / 9;
}

.creator-entry__media--instagram {
  max-width: 480px;
  aspect-ratio: 9 / 16;
  background: #fff;
}

.creator-entry__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.creator-entry__media--link img {
  aspect-ratio: 16 / 9;
}

.creator-entry__details h2 {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.creator-entry__details > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.creator-entry__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
}

.creator-entry__links a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.creator-entry__links a:hover {
  border-color: var(--ink);
}

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

@media (max-width: 820px) {
  .request-layout,
  .creator-heading,
  .creator-entry {
    grid-template-columns: 1fr;
  }

  .request-layout,
  .creator-entry {
    gap: 38px;
  }

  .creator-heading {
    gap: 20px;
  }

  .category-list {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    min-height: 58px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav > a:first-child {
    display: none;
  }

  .intro {
    padding-block: 38px 28px;
  }

  .search {
    width: 100%;
  }

  .category-filter {
    margin-right: calc(var(--page-gutter) * -1);
    padding-right: var(--page-gutter);
  }

  .drawer__header {
    padding-inline: 20px 12px;
  }

  .drawer__body {
    padding: 34px 20px 42px;
  }

  .route-intro,
  .creator-page {
    padding-top: 40px;
  }

}

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