/* ==========================================================================
   Animension — skeleton.css
   Design tokens, reset, typography, header / search / nav.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* surfaces */
  --bg: #0a0b10;
  --bg-header: #0b0c12;
  --bg-elevated: #14151c;
  --bg-elevated-2: #191a22;
  --bg-input: #111219;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-faint: rgba(255, 255, 255, 0.05);

  /* text */
  --text-primary: #ffffff;
  --text-secondary: #a9afbc;
  --text-muted: #6d7280;

  /* brand */
  --accent-blue: #2687bc;
  --accent-blue-deep: #1f6a94;
  --accent-blue-bright: #4dbafb;
  --accent-blue-vivid: #2d76ff;
  --accent-purple: #8b3cf7;
  --accent-purple-2: #a855f7;

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* shadows */
  --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 6px 18px rgba(139, 60, 247, 0.35);

  /* layout */
  --container: 1240px;
  --gap: 14px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent-blue-bright);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

main {
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 16px 48px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-faint);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.brand__logo {
  height: 32px;
  width: auto;
}

.header-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.header-search__input {
  width: 100%;
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  color: var(--text-primary);
  padding: 0 44px 0 16px;
  font-size: 14px;
  font-family: inherit;
}

.header-search__input::placeholder {
  color: var(--text-muted);
}

.header-search__input:focus {
  border-color: var(--accent-blue-bright);
}

.header-search__btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
}

.header-search__btn:hover {
  color: var(--text-primary);
}

.header-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  max-height: 360px;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  z-index: 60;
}

.header-search__results[hidden] {
  display: none;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-faint);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover,
.search-result:focus {
  background: var(--bg-elevated-2);
}

.search-result__cover {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}

.search-result__title {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.search-result__empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.nav-toggle {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}

.site-nav {
  display: none;
  flex-direction: column;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4px 16px 14px;
  gap: 2px;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 11px 10px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.site-nav a:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 16px 40px;
  text-align: center;
  border-top: 1px solid var(--border-faint);
}

.site-footer__logo {
  height: 24px;
  width: auto;
  margin: 0 auto 12px;
  opacity: 0.85;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
