@font-face {
  font-family: "Lovechild";
  src: url("./assets/fonts/Lovechild-Regular.woff2") format("woff2"),
    url("./assets/fonts/Lovechild-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --gray-50: #f9fafa;
  --gray-100: #f3f4f6;
  --gray-200: #ebecef;
  --gray-300: #d3d6d9;
  --gray-400: #9ea4ad;
  --gray-500: #6c727f;
  --gray-600: #4e5660;
  --gray-700: #3c424c;
  --gray-800: #252a31;
  --gray-900: #181a20;
  --indigo-500: #6172f3;
  --indigo-600: #444ce7;
  --corai: #ff6d4d;
  --orange-600: #ec4a0a;
  --orange-700: #c4320a;
  --alpha-light-5: rgba(229, 238, 255, 0.05);
  --alpha-light-10: rgba(229, 238, 255, 0.1);
  --alpha-dark-10: rgba(21, 26, 41, 0.1);
  --sharp-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.04), 0px 2px 5px 0px rgba(0, 0, 0, 0.05),
    0px 0px 2px 0px rgba(0, 0, 0, 0.15);
  --button-shadow: 0px 0px 0px 1px rgba(68, 76, 231, 0.12), 0px 4px 8px 0px rgba(68, 76, 231, 0.12),
    0px 2px 0.5px 0px rgba(255, 255, 255, 0.2) inset;
  --bg: var(--white);
  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --border: var(--gray-200);
  --footer-bg: var(--white);
  --card-bg: var(--white);
  --artists-bg: var(--gray-50);
  --featured-from: #e1ebff;
  --featured-to: #d9d9ff;
  --featured-title-from: var(--indigo-500);
  --featured-title-to: rgba(68, 76, 231, 0.6);
  --cap-bg: var(--white);
}

html.dark {
  --bg: var(--gray-900);
  --text: var(--gray-50);
  --text-muted: var(--gray-400);
  --border: var(--gray-700);
  --footer-bg: var(--gray-900);
  --card-bg: var(--alpha-light-5);
  --artists-bg: var(--alpha-light-5);
  --featured-from: rgba(225, 235, 255, 0.05);
  --featured-to: rgba(217, 217, 255, 0.05);
  --featured-title-from: #9095ec;
  --featured-title-to: rgba(119, 125, 238, 0.6);
  --cap-bg: var(--gray-900);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a,
button,
[tabindex="-1"] {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1080px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1312px) {
  .container {
    max-width: 1312px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Sunset banner */
.sunset-banner {
  position: relative;
  z-index: 60;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, var(--orange-600), var(--corai));
  border-bottom: 1px solid var(--orange-700);
}

.sunset-banner p {
  margin: 0;
  max-width: 56rem;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

html.dark .site-header {
  background: var(--gray-900);
  border-bottom-color: var(--gray-800);
}

.site-header.forced-theme {
  background: var(--alpha-dark-10);
  backdrop-filter: blur(86px);
  -webkit-backdrop-filter: blur(86px);
  border-bottom-color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .site-nav {
    height: 79px;
    padding: 0 2rem;
  }
}

@media (min-width: 1280px) {
  .site-nav {
    padding: 0 2.5rem;
    gap: 1.25rem;
  }
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1280px) {
  .nav-left,
  .nav-right,
  .nav-search {
    flex: 1;
  }
}

.nav-right {
  justify-content: flex-end;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--gray-900);
  color: var(--gray-50);
  flex-shrink: 0;
}

html.dark .header-logo,
.site-header.forced-theme .header-logo {
  background: var(--alpha-light-10);
}

@media (min-width: 640px) {
  .header-logo {
    width: 3rem;
    height: 3rem;
  }
}

.header-logo svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

@media (min-width: 640px) {
  .header-logo svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.nav-search {
  display: none;
  flex-grow: 1;
}

@media (min-width: 640px) {
  .nav-search {
    display: block;
  }
}

.search-form {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  transform: translateY(-50%);
  fill: var(--gray-900);
  pointer-events: none;
}

html.dark .search-icon,
.site-header.forced-theme .search-icon {
  fill: var(--gray-50);
}

.search-form input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  background: transparent;
  color: var(--gray-900);
  font: inherit;
  font-size: 16px;
  padding: 11px 1rem 11px 3rem;
  outline: none;
}

html.dark .search-form input {
  border-color: transparent;
  background: rgba(249, 250, 250, 0.1);
  color: var(--gray-50);
}

.site-header.forced-theme .search-form input {
  border-color: transparent;
  background: rgba(249, 250, 250, 0.1);
  color: #fff;
}

.search-form input::placeholder {
  color: var(--gray-500);
}

.site-header.forced-theme .search-form input::placeholder {
  color: var(--gray-400);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--indigo-600);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.17), transparent);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--button-shadow);
  user-select: none;
  white-space: nowrap;
}

.btn-signin {
  height: 40px;
  padding: 0 1rem;
  font-size: 14px;
  border-radius: 14px;
}

.btn-large {
  height: 56px;
  padding: 1rem 2rem;
  font-size: 16px;
  border-radius: 20px;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
}

@media (min-width: 1280px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--gray-900);
}

html.dark .menu-btn span,
.site-header.forced-theme .menu-btn span {
  background: #fff;
}

/* Page content underlaps transparent header */
.page-content {
  position: relative;
  margin-top: -60px;
}

@media (min-width: 640px) {
  .page-content {
    margin-top: -80px;
  }
}

.home-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .home-stack {
    gap: 6rem;
  }
}

/* Spotlight */
.spotlight {
  background: var(--gray-900);
}

.spotlight-rectangles {
  background: url("./assets/backgrounds/rectangles-dark.png") top center / auto no-repeat;
  height: 100%;
}

.spotlight-smoke {
  background: url("./assets/backgrounds/spotlight-smoke.png") top center / auto no-repeat;
  height: 100%;
  padding: 7rem 0 4rem;
}

@media (min-width: 768px) {
  .spotlight-smoke {
    padding: 9rem 0 7.5rem;
  }
}

.spotlight-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .spotlight-inner {
    gap: 3rem;
  }
}

.spotlight-heading {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .spotlight-heading {
    max-width: 750px;
  }
}

.spotlight-heading h1 {
  margin: 0;
  font-family: "Lovechild", Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.48px;
  color: var(--gray-50);
}

@media (min-width: 768px) {
  .spotlight-heading h1 {
    font-size: 80px;
    line-height: 1;
    letter-spacing: -2.4px;
  }
}

/* NFT card grids */
.nft-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(302px, 1fr);
  grid-template-columns: repeat(auto-fill, minmax(302px, 1fr));
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .nft-grid {
    grid-auto-flow: row;
    overflow-x: visible;
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .nft-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .spotlight .nft-grid-3 {
    top: -2rem;
  }

  .nft-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .nft-card.stagger {
    position: relative;
    top: 4rem;
  }

  .nft-card.stagger-inv {
    position: relative;
    top: 4rem;
  }

  .featured-grid {
    padding-bottom: 4rem;
  }
}

.nft-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--sharp-shadow);
  overflow: hidden;
}

@media (min-width: 768px) {
  .nft-card {
    border-radius: 20px;
  }
}

.dark-surface .nft-card,
html.dark .nft-card {
  background: var(--alpha-light-5);
  border: 1px solid var(--alpha-light-5);
}

.nft-card-media {
  margin: 1.5rem;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--gray-100);
}

html.dark .nft-card-media,
.dark-surface .nft-card-media {
  background: var(--alpha-light-5);
}

.nft-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.25));
}

.nft-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
}

html.dark .nft-card-body,
.dark-surface .nft-card-body {
  border-top-color: var(--alpha-light-5);
}

.nft-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .nft-card-title {
    font-size: 20px;
  }
}

html.dark .nft-card-title,
.dark-surface .nft-card-title {
  color: var(--gray-50);
}

.nft-card-artist {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
}

html.dark .nft-card-artist,
.dark-surface .nft-card-artist {
  color: var(--gray-400);
}

.nft-card-artist img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .section {
    gap: 3rem;
  }
}

.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -1.08px;
    text-align: center;
  }
}

.empty-msg {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* Browse */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
}

@media (min-width: 1080px) {
  .browse-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.browse-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: var(--card-bg);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  text-align: center;
}

@media (min-width: 768px) {
  .browse-item {
    box-shadow: var(--sharp-shadow);
  }
}

html.dark .browse-item {
  border: 1px solid var(--alpha-light-5);
}

.browse-item img {
  width: 48px;
  height: 48px;
}

/* Featured */
.featured {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--featured-from), var(--featured-to));
}

@media (min-width: 768px) {
  .featured {
    padding: 10rem 0 15rem;
  }
}

.featured-cap {
  position: absolute;
  left: 50%;
  width: 1000vw;
  aspect-ratio: 1;
  border-radius: 100%;
  background: var(--cap-bg);
  transform: translateX(-50%);
  pointer-events: none;
}

.featured-cap-top {
  bottom: 95%;
}

.featured-cap-bottom {
  top: 95%;
}

.featured-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .featured-inner {
    gap: 3rem;
  }
}

.featured-title {
  margin: 0;
  font-family: "Lovechild", Georgia, serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  text-align: center;
  background: linear-gradient(180deg, var(--featured-title-from), var(--featured-title-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .featured-title {
    font-size: 120px;
  }
}

@media (min-width: 1080px) {
  .featured-title {
    font-size: 164px;
  }
}

/* Series */
.series-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 1fr);
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
}

@media (min-width: 1080px) {
  .series-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    padding: 0;
  }
}

.series-card {
  position: relative;
  border-radius: 1rem;
  background: var(--card-bg);
  box-shadow: var(--sharp-shadow);
  padding: 0.25rem;
}

@media (min-width: 1080px) {
  .series-card {
    padding: 0.5rem;
  }
}

html.dark .series-card {
  border: 1px solid var(--alpha-light-5);
}

.series-artist {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 2.5rem);
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 100px;
  background: var(--white);
  box-shadow: var(--sharp-shadow);
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-900);
}

html.dark .series-artist {
  background: var(--gray-700);
  color: var(--gray-50);
}

.series-artist img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.series-artist span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-thumb {
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--gray-100);
}

.series-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-meta {
  padding: 0.5rem 0.75rem;
}

.series-name {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-cat {
  margin: 0.25rem 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  justify-content: center;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 56px;
  padding: 0.75rem;
  color: var(--indigo-600);
  font-weight: 500;
  font-size: 16px;
  user-select: none;
}

html.dark .btn-text {
  color: var(--indigo-500);
}

.btn-text svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* Artists */
.artists {
  background: var(--artists-bg);
  padding: 4rem 0;
}

@media (min-width: 1080px) {
  .artists {
    padding: 7.5rem 0;
  }
}

.artists-inner {
  gap: 1.5rem;
}

@media (min-width: 1080px) {
  .artists-inner {
    gap: 3rem;
  }
}

.period-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.25rem;
  border-radius: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
}

html.dark .period-pills {
  background: var(--alpha-light-5);
  border-color: var(--alpha-light-10);
}

.period-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  user-select: none;
}

.period-pill.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), transparent), var(--indigo-600);
  color: #fff;
  box-shadow: var(--button-shadow);
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  padding: 3rem 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .site-footer {
    margin-top: 2rem;
  }
}

@media (min-width: 1080px) {
  .site-footer {
    padding: 4rem 0;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    gap: 3rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.footer-brand {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 8;
  }
}

@media (min-width: 1080px) {
  .footer-brand {
    grid-column: span 3;
    gap: 1.5rem;
  }
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  fill: var(--text);
}

.wordmark svg {
  width: 182px;
  height: 28px;
}

.footer-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
}

.theme-toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--gray-200);
  position: relative;
  transition: background 0.2s ease;
}

html.dark .theme-toggle-track,
.theme-toggle.is-on .theme-toggle-track {
  background: var(--indigo-600);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.theme-toggle.is-on .theme-toggle-thumb,
html.dark .theme-toggle .theme-toggle-thumb {
  transform: translateX(20px);
}

.footer-col {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-col {
    grid-column: span 2;
  }
}

.footer-col h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.footer-community {
  display: none;
}

@media (min-width: 768px) {
  .footer-community {
    display: flex;
    grid-column: span 2;
  }
}

@media (min-width: 1080px) {
  .footer-community {
    grid-column: span 3;
  }
}

.social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-900);
}

html.dark .social-btn {
  background: var(--gray-800);
  color: var(--gray-50);
}

.social-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--gray-400);
  font-size: 14px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
    padding-top: 1.5rem;
  }
}

html.dark .footer-bottom {
  color: var(--gray-500);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-row-mobile {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .social-row-mobile {
    display: none;
  }
}
