/* hello :) */
:root {
  color-scheme: light;
  --background: #fff1ce;
  --foreground: #47332c;
  --card: #f5e7c2;
  --card-foreground: #47332c;
  --primary: #9c2128;
  --primary-foreground: #fff1ce;
  --muted: #f5e7c2;
  --muted-foreground: #877c6a;
  --accent: #4e6498;
  --accent-foreground: #fff1ce;
  --border: #e2ded0;
  --input: #e2ded0;
  --ring: #9c2128;
  --radius: 0rem;
}

html {
  background-color: var(--background);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-osx-font-smoothing: grayscale;
}

.ac-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background-color: var(--foreground);
  color: var(--background);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border: 1px solid var(--foreground);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.ac-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ac-copyable {
  cursor: copy;
}


html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

img,
svg {
  max-width: 100%;
}


#themes [style*="height: 340px"] {
  height: clamp(220px, 62vw, 340px) !important;
}

@media (max-width: 639px) {
  header .max-w-6xl {
    gap: 0.5rem;
  }

  header nav {
    gap: 0.75rem !important;
  }

  header nav a[href^="https://github.com"] {
    padding: 0.4rem 0.65rem !important;
    font-size: 10px !important;
    gap: 0.35rem !important;
  }

  #top h1 {
    font-size: 2.75rem !important;
    line-height: 1.02 !important;
  }

  #themes article header {
    row-gap: 0.5rem;
  }

  #themes article>div.grid {
    display: block !important;
    padding: 1rem !important;
  }

  #themes article>div.grid>div:last-child {
    margin-top: 1.25rem;
  }

  #themes .ml-2.opacity-80 {
    font-size: 10px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  #themes article>div.grid {
    display: block !important;
  }

  #themes article>div.grid>div:last-child {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  header a span.font-serif {
    font-size: 1rem;
  }

  header nav a[href^="https://github.com"] {
    font-size: 0 !important;
  }

  header nav a[href^="https://github.com"] svg {
    font-size: initial;
  }

  #top h1 {
    font-size: 2.35rem !important;
  }

  #collection ul {
    grid-template-columns: 1fr 1fr !important;
    gap: 1px !important;
  }

  #collection li>div {
    padding: 0.625rem !important;
  }

  #themes article header>div:first-child {
    gap: 0.75rem !important;
  }

  #themes article h3 {
    font-size: 1.375rem !important;
  }
}

@media (max-width: 360px) {
  #top h1 {
    font-size: 2rem !important;
  }

  #themes nav[aria-label="Activity bar"] {
    width: 2rem !important;
  }

  #collection ul {
    grid-template-columns: 1fr !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #themes [style*="height: 340px"] {
    height: 200px !important;
  }
}

@media (min-width: 1536px) {
  #top h1 {
    font-size: 6rem !important;
  }
}