/* Homepage-only styles (extracted from prototype/index.html) */

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 90px 20px 60px;
  background: var(--bg);
}
.hero-face {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 325%;
  width: auto;
  pointer-events: none;
  user-select: none;
  color: var(--accent);
  opacity: 0.06;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, white 0%, white 65%, transparent 80%);
  mask-image: linear-gradient(to bottom, white 0%, white 65%, transparent 80%);
}
.hero-face svg { height: 100%; width: auto; display: block; }
[data-theme="light"] .hero-face { opacity: 0.075; }
@media (max-width: 700px) { .hero-face { height: 300%; opacity: 0.035; } }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,114,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,114,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(108,114,255,0.12) 0%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(108,114,255,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), #662b97);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero h1 .purple {
  background: linear-gradient(135deg, var(--purple), #b7309d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero-cta-secondary { font-size: 0.9rem; color: var(--text-muted); }
.hero-cta-secondary a { color: var(--text-muted); text-decoration: none; }
.hero-cta-secondary a:hover { color: var(--accent); }

/* ── Optional homepage content from content/_index.md ─────── */
.home-content-section {
  padding: 40px 20px 0;
}
.home-content {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.75;
}
.home-content h2 { color: var(--text); font-size: 1.25rem; margin: 28px 0 10px; }
.home-content h3 { color: var(--text); font-size: 1.05rem; margin: 20px 0 8px; }
.home-content p { margin-bottom: 14px; }
.home-content a { color: var(--accent); text-decoration: none; }
.home-content a:hover { text-decoration: underline; }
.home-content strong { color: var(--text); }

/* ── Featured strip ─────────────────────────────────── */
.featured-strip {
  padding: 60px 20px;
  border-top: 1px solid var(--border);
}

/* ── Project card ───────────────────────────────────── */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108,114,255,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.project-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.project-card-thumb .card-thumb-icon {
  width: 48px;
  height: 48px;
  color: var(--text-dim);
  opacity: 0.5;
}
.project-card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5));
}
.project-card-body { padding: 18px 20px 20px; }
.project-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.project-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.project-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.project-card-meta .views { display: flex; align-items: center; gap: 5px; }

/* ── Latest guides ───────────────────────────────────── */
.latest-guides-section {
  padding: 96px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.guide-row {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  align-items: center;
}
.guide-row:last-child { border-bottom: none; padding-bottom: 0; }
.guide-row:first-child { padding-top: 0; }
.guide-row:hover .guide-row-title { color: var(--accent); }
.guide-row-thumb {
  width: auto;
  height: 112px;
  min-height: 112px;
  aspect-ratio: 4 / 3; /* keep previous 80x60 proportions */
  flex-shrink: 0;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
  align-self: flex-start;
}
.guide-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guide-row-thumb .card-thumb-icon { width: 28px; height: 28px; color: var(--text-dim); opacity: 0.5; }
.guide-row-body { flex: 1; }
.guide-row-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.25;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}
.guide-row-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}
.guide-row-meta { font-size: 0.83rem; color: var(--text-dim); display: flex; gap: 12px; }
.guide-row-tags {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}

/* ── Tools CTA (compact) ─────────────────────────────── */
.tools-cta-section { padding: 64px 20px; border-top: 1px solid var(--border); }
.tools-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tools-cta-text { font-size: 0.95rem; color: var(--text-muted); }
.tools-cta-text a { color: var(--accent); text-decoration: none; }
.tools-cta-text a:hover { text-decoration: underline; }

/* ── Shop banner (compact) ───────────────────────────── */
.shop-banner {
  margin: 0 20px;
  padding: 24px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.shop-banner-text { font-size: 0.95rem; color: var(--text-muted); }
.shop-banner-text strong { color: var(--text); }
.shop-banner-section { padding: 64px 0 64px; }

/* ── About strip ─────────────────────────────────────── */
.about-strip-wrap { background: var(--surface); border-top: 1px solid var(--border); }
.about-strip {
  padding: 72px 20px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Photo frame — 4:3, ready for real <img> */
.about-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
/* subtle dot grid on placeholder background */
.about-photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--border2) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}
/* accent tint overlay */
.about-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(108,114,255,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 3;
}
/* SVG sits at top of frame showing face/bust area */
.about-photo-placeholder {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 175%;
  color: var(--accent);
  opacity: 0.18;
  z-index: 1;
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

/* Content */
.about-content .section-label { margin-bottom: 10px; }
.about-content h2 { margin-bottom: 14px; }
.about-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.about-content p:last-of-type { margin-bottom: 0; }

/* Tech tags */
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 24px;
}
.about-tag {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 11px;
  letter-spacing: 0.02em;
}

/* CTA row */
.about-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 960px) {
  .about-strip { grid-template-columns: 1fr; gap: 40px; padding: 72px 20px; }
  .about-photo { max-width: 400px; }
  .shop-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .featured-strip, .latest-guides-section { padding: 72px 20px; }
  .tools-cta-section { padding: 48px 20px; }
  .shop-banner { margin: 0; border-radius: 0; border-left: none; border-right: none; }
  .about-photo { max-width: 100%; }
}
