/* Robotist catalog — Outfit + Space Grotesk, brand tokens from robotist.fun */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-primary: #f5f5f8;
  --bg-secondary: #eaeaef;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.62);
  --text-muted: rgba(26, 26, 46, 0.38);
  --accent-orange: #ff6b2b;
  --accent-red: #ff3d57;
  --accent-purple: #a855f7;
  --gradient-primary: linear-gradient(135deg, #ff6b2b 0%, #ff3d57 100%);
  --gradient-hero: linear-gradient(135deg, #ff6b2b 0%, #ff3d57 50%, #a855f7 100%);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(255, 107, 43, 0.12);
  --font-primary: 'Outfit', system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(255, 107, 43, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 90%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
}

.header, .catalog, .footer { position: relative; z-index: 1; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6%;
  background: rgba(245, 245, 248, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  height: 2.65rem;
  width: auto;
  max-width: min(240px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.header-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
}

.header-link:hover { text-decoration: underline; }

.catalog {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 5% 4rem;
}

.catalog-hero {
  text-align: center;
  margin: 0 auto 2.25rem;
  max-width: 40rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.catalog h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 32rem;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .shelf { grid-template-columns: 1fr; max-width: 28rem; }
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.book-card--featured:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 107, 43, 0.35);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.book-card--featured .flip-stage {
  aspect-ratio: 16 / 10;
  min-height: 200px;
}

.book-card--soon .soon-stage {
  aspect-ratio: 16 / 11;
  min-height: 180px;
}

.flip-stage, .soon-stage {
  position: relative;
  background: #1a1a2e;
  overflow: hidden;
}

.flip-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.flip-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 10, 15, 0.72));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.book-card--featured:hover .flip-hint { opacity: 1; }

.soon-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background:
    linear-gradient(160deg, #eaeaef, #f5f5f8);
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-subtle);
}

.soon-stage span {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  opacity: 0.35;
}

.soon-stage p {
  font-size: 0.85rem;
  font-weight: 600;
}

.card-meta {
  padding: 1rem 1.15rem 1.2rem;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 107, 43, 0.12);
  color: var(--accent-orange);
  margin-bottom: 0.45rem;
}

.badge--muted {
  background: rgba(26, 26, 46, 0.06);
  color: var(--text-muted);
}

.card-meta h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.book-card--featured .card-meta h3 {
  font-size: 1.35rem;
}

.card-meta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.book-card--soon {
  opacity: 0.85;
  box-shadow: none;
}

.footer {
  text-align: center;
  padding: 1.5rem 6% 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
}


.book-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn-open,
.btn-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-open {
  background: rgba(255, 107, 43, 0.12);
  color: var(--accent-orange);
}

.btn-pdf {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 43, 0.28);
}

.btn-open:hover,
.btn-pdf:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
