/* ==============================================================
   Apps With Andrew — site styles
   Dark-mode-only by design. Brand colors locked.
   Typography: Inter. Layout: responsive single-page.
   ============================================================== */

:root {
  --bg: #000000;
  --bg-elev: #0d0d0d;
  --bg-elev-2: #161616;

  --border: #2a2a2a;
  --border-strong: #3a3a3a;

  --text: #ffffff;
  --text-muted: #aaaaaa;
  --text-faint: #666666;

  --brand-red: #DC2626;
  --brand-orange: #F97316;
  --brand-grad: linear-gradient(135deg, #DC2626 0%, #F97316 100%);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --container: 1200px;
  --content: 720px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
  padding: 8px 4px;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  text-align: center;
  padding: 120px 32px 96px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 36px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 600;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 20px;
}

.tagline {
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 500;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.cta:hover { transform: translateY(-1px); }
.cta.primary {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}
.cta.ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.cta.ghost:hover { border-color: var(--text); }
.cta i { font-size: 16px; }

/* ============================================================
   Sections (about, apps, youtube, connect)
   ============================================================ */

.section {
  padding: clamp(64px, 8vw, 96px) clamp(24px, 4vw, 32px);
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--brand-orange);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-lede {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: var(--content);
  margin-bottom: 48px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: 32px;
}

.about-photo {
  aspect-ratio: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}
.about-prose p:last-child { margin-bottom: 0; }

/* Apps */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.app-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.app-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-grad);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}
.app-card.placeholder .app-icon {
  background: var(--bg-elev-2);
  color: var(--text-faint);
  border: 1px dashed var(--border-strong);
}

.app-name {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--text);
}
.app-card.placeholder .app-name { color: var(--text-muted); }

.app-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.app-platforms {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  font-weight: 500;
}

/* YouTube */

.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.yt-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform 0.2s, border-color 0.2s;
}
.yt-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-thumb .yt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  pointer-events: none;
}
.yt-thumb .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: background 0.2s, transform 0.2s;
}
.yt-thumb:hover .yt-play {
  background: var(--brand-red);
  transform: translate(-50%, -50%) scale(1.05);
}
.yt-thumb .yt-title {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.yt-thumb.skeleton {
  background: linear-gradient(90deg, var(--bg-elev) 0%, var(--bg-elev-2) 50%, var(--bg-elev) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.yt-thumb.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.yt-thumb.error i {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-faint);
}

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

/* Connect */

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: var(--content);
}

.connect-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 2px;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: border-color 0.2s, transform 0.15s;
}
.connect-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.connect-pill > i {
  grid-row: span 2;
  align-self: center;
  font-size: 22px;
  color: var(--brand-orange);
}
.connect-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  font-weight: 500;
}
.connect-value {
  font-weight: 500;
  color: var(--text);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 64px 32px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-wordmark {
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 16px;
}
.footer-tag {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.footer-meta {
  font-size: 12px;
  color: var(--text-faint);
}

/* ============================================================
   Responsive — mobile
   ============================================================ */

@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-brand { font-size: 11px; gap: 10px; }
  .nav-brand img { width: 32px; height: 32px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
  }
  .nav-links[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s, transform 0.2s, visibility 0s;
  }
  .nav-links li {
    list-style: none;
  }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 80px 24px 64px; }
  .hero-logo { width: 120px; height: 120px; margin-bottom: 28px; }

  .section { padding: 64px 24px; }
  .section-lede { font-size: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { aspect-ratio: 16/10; max-width: 280px; }
  .about-prose p { font-size: 16px; }

  .apps-grid { grid-template-columns: 1fr; }
  .yt-grid { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }

  .footer { padding: 48px 24px 32px; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: 4px; }
  .tagline { letter-spacing: 3px; font-size: 11px; }
  .cta { padding: 12px 22px; font-size: 13px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Tablet — 768px to 1024px
   ============================================================ */

@media (min-width: 769px) and (max-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(200px, 1fr) 1.6fr;
    gap: 32px;
  }
  .about-prose p { font-size: 16px; }
}
