/* Base */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f6368;
  --brand: #111111; /* tweak to your brand */
  --brand-contrast: #ffffff;
  --card: #f7f7f8;
  --radius: 14px;
}

html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 96px 20px;
  border-radius: var(--radius);
  margin: 24px auto 8px;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.headshot {
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.75);
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  margin: 8px 0 8px;
  font-weight: 800;
}
.hero-subtitle {
  font-size: clamp(16px, 2.4vw, 20px);
  color: rgba(255,255,255,.92);
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .06s ease, opacity .15s ease, background .2s ease;
  margin: 4px 6px;
  font-weight: 600;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
}
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-sm { padding: 8px 12px; border-radius: 9px; font-size: 14px; }

/* Sections */
.section {
  max-width: 1024px;
  margin: 40px auto;
  padding: 0 20px;
}
.section-title {
  font-size: 24px;
  margin: 8px 0 16px;
}
.section-cta { margin-top: 8px; }

/* Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  gap: 16px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
}
.card-icon { border-radius: 20%; margin-bottom: 8px; }
.card-title { margin: 6px 0 4px; font-size: 18px; }
.card-body { color: var(--muted); margin: 0 0 10px; }

.post-item { margin-bottom: 18px; }
.post-meta { color: var(--muted); margin: 0 0 4px; }
.post-excerpt { color: var(--muted); }

/* About */
.about-brief p { margin: 0 0 12px; }

/* Minima tweaks (optional) */
.site-title, .site-nav .page-link { font-weight: 600; }

.about-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.about-headshot {
  border-radius: 50%;
  width: 160px;
  height: 160px;
  object-fit: cover;
}
.about-intro {
  flex: 1;
  min-width: 240px;
}
.float-right {
  float: right;
  margin: 0 0 12px 20px;
  border-radius: 12px;
}
.float-left {
  float: left;
  margin: 0 20px 12px 0;
  border-radius: 12px;
}

.site-header {
  display: none;
}
.page-content {
  padding-top: 0px;
  padding-left: 20px;
  padding-right: 20px;
}

.site-footer {
  margin-top: 48px;
  background: #0f1115;  /* dark footer */
  color: #c9ced6;
  font-size: 15px;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;  /* brand | nav | meta */
  gap: 32px;
}

.footer-logo {
  font-weight: 800;
  font-size: 22px;
  display: inline-block;
  margin-bottom: 6px;
  color: #fff;
  text-decoration: none;
}

.footer-tagline {
  margin: 0;
  color: #99a1ab;
  max-width: 28ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #c9ced6;
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact {
  color: #c9ced6;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a img {
  width: 22px;
  height: 22px;
  filter: invert(85%) grayscale(100%); /* makes SVGs light in dark footer */
  transition: opacity 0.2s ease;
}
.footer-social a:hover img {
  opacity: 0.7;
}

.footer-copy {
  margin-top: 8px;
  font-size: 13px;
  color: #99a1ab;
}

/* Responsive */
@media (max-width: 760px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .footer-meta { align-items: center; }
}

/* Responsive */
@media (max-width: 760px) {
  .footer-wrap {
    grid-template-columns: 1fr;
  }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 12px 16px; }
}

/* App hero overrides */
.app-hero .app-icon { border-radius: 22%; border: 3px solid rgba(255,255,255,.7); margin-bottom: 10px; }

/* Lead paragraph */
.section.lead p { font-size: clamp(16px, 2.1vw, 20px); color: #333; max-width: 60ch; }

/* Steps list */
.steps { padding-left: 18px; line-height: 1.7; max-width: 60ch; }

/* Screenshot grid */
.grid-screens {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  gap: 12px;
}
.grid-screens img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

/* Meta grid */
.meta-grid {
  display: grid; gap: 18px; grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
}

/* Apps index */
.apps-intro {
  color: #5f6368;
  max-width: 60ch;
  margin-bottom: 14px;
}


.app-card {
  background: #f7f7f8;
  border-radius: 14px;
  transition: transform .06s ease, box-shadow .2s ease;
}

.app-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }

.app-card-link {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.app-icon { border-radius: 22%; box-shadow: 0 2px 10px rgba(0,0,0,.06); }

.app-title { margin: 2px 0 6px; font-size: 18px; line-height: 1.2; }
.app-desc  { margin: 0; color: #636a73; }

.app-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: #e9eaee;
  color: #3a3f45;
}

/* Small screens: icon on top */
@media (max-width: 420px) {
  .app-card-link { grid-template-columns: 1fr; text-align: center; }
  .app-icon { margin: 0 auto; }
}

/* Force 3 cols on desktop, 2 on tablet, 1 on phones */
section.apps-grid,
.apps-grid {
  display: grid;
  gap: 20px;
}

/* Desktop / large screens */
@media (min-width: 1025px) {
  section.apps-grid,
  .apps-grid {
    grid-template-columns: repeat(3, 1fr) !important; /* last resort override */
    max-width: 1200px;         /* optional: keep grid from stretching too wide */
    margin: 0 auto;            /* center the grid */
  }
}

/* Tablets / small laptops */
@media (max-width: 1024px) and (min-width: 641px) {
  section.apps-grid,
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones */
@media (max-width: 640px) {
  section.apps-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

/* Simple colorful hover effect for app cards */
.app-card.fancy {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
  border: 2px solid transparent;
}

.app-card.fancy:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  border-color: #6C5CE7; /* accent colour — tweak to your brand */
}

/* Icon lifts slightly */
.app-card.fancy .app-icon {
  transition: transform .2s ease;
}
.app-card.fancy:hover .app-icon {
  transform: translateY(-3px);
}

/* ---------- Grid layout: 3/2/1 columns ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .apps-grid { grid-template-columns: 1fr; } }

/* ---------- Fancy card base ---------- */
.app-card.fancy {
  --accent:  #6C5CE7;         /* fallback if not provided via style= */
  --accent2: #A29BFE;

  position: relative;
  border-radius: 16px;
  /* Gradient border trick */
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent2)) border-box;
  border: 1px solid transparent;

  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .25s ease;
  will-change: transform;
}

/* Inner layout stays like you had it */
.app-card-link {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}

/* Animated background blobs */
.app-card.fancy::before,
.app-card.fancy::after {
  content: "";
  position: absolute;
  inset: -20% -10%;                 /* extend outside edges for soft glow */
  background: radial-gradient(35% 35% at 30% 20%, color-mix(in oklab, var(--accent) 35%, transparent), transparent 70%),
              radial-gradient(40% 40% at 80% 10%, color-mix(in oklab, var(--accent2) 35%, transparent), transparent 70%);
  filter: blur(20px);
  opacity: .25;
  z-index: 0;
  transition: transform .5s ease, opacity .3s ease;
}
.app-card.fancy::after {
  inset: -15% -20%;
  transform: translate3d(-6px, -4px, 0);
  opacity: .18;
}

/* Lift + subtle tilt on hover; background glows a bit more */
.app-card.fancy:hover {
  transform: translateY(-6px) rotate(.15deg);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.app-card.fancy:hover::before { opacity: .33; transform: translate3d(4px, -2px, 0) scale(1.02); }
.app-card.fancy:hover::after  { opacity: .24; transform: translate3d(-2px, 3px, 0) scale(1.03); }

/* Icon float/parallax */
.app-icon {
  position: relative;
  z-index: 1;                       /* above blobs */
  border-radius: 22%;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .2s ease;
}
.app-card.fancy:hover .app-icon { transform: translateY(-4px) scale(1.03); }

/* Title/desc */
.app-meta { z-index: 1; position: relative; }
.app-title { margin: 2px 0 6px; font-size: 18px; line-height: 1.2; }
.app-desc  { margin: 0; color: #3c4046; }

/* Chips read a subtle tint from accent */
.chip {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, #e9eaee);
  color: #222;
}

/* Shine sweep (tasteful) */
.app-card.fancy .app-card-link::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-16deg);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.app-card.fancy:hover .app-card-link::after {
  animation: sweep 900ms ease forwards;
  opacity: 1;
}
@keyframes sweep {
  0%   { left: -120%; }
  100% { left: 130%;  }
}

/* Keyboard focus ring on the link */
.app-card-link:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 50%, transparent);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .app-card.fancy,
  .app-card.fancy::before,
  .app-card.fancy::after,
  .app-card.fancy .app-icon,
  .app-card.fancy .app-card-link::after {
    transition: none !important;
    animation: none !important;
  }
}
/* Featured Apps Section */
.featured-apps-highlight {
  padding: 3.5rem 0;
  background: linear-gradient(90deg, #f1f5f9 0%, #e0e7ff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(60,60,120,0.08);
  margin-bottom: 2.5rem;
}

.featured-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.featured-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Featured Card Base */
.featured-card {
  flex: 1 1 350px;
  min-width: 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: #1e293b;
}

/* Hover invert effect */
.featured-card:hover {
  background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  color: #fff;
}

/* Title styling */
.featured-card .card-title {
  font-size: 1.35rem;
  color: #4f46e5;
  margin-bottom: 0.7rem;
  transition: color 0.18s;
}
.featured-card:hover .card-title {
  color: #fff;
}

/* Body text */
.featured-card .card-body {
  font-size: 1.08em;
  line-height: 1.6;
  margin-bottom: 2rem;
  margin-bottom: 2rem;
  color: #374151;
  transition: color 0.18s;
}
.featured-card:hover .card-body {
  color: #f8fafc;
}

/* Icon */
.card-icon {
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform .2s ease, filter .2s ease;
}
.featured-card:hover .card-icon {
  transform: translateY(-4px);
  filter: brightness(1.1) contrast(1.05);
}

/* Actions */
.card-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-accent {
  background: #e0e7ff;
  color: #3730a3;
  transition: background .18s, color .18s;
}
.featured-card:hover .btn-primary {
  background: #fff;
  color: #4f46e5;
}
.featured-card:hover .btn-accent {
  background: rgba(255,255,255,0.9);
  color: #111827;
}


/* Container + base */
.site-footer {
  margin-top: 48px;
  background: #0f1115;
  color: #c9ced6;
  font-size: 15px;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr; /* brand | nav | meta */
  gap: 28px;
}

/* Titles */
.footer-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}
.footer-brand .footer-title a {
  color: #ffffff;
  text-decoration: none;
}
.footer-tagline { margin: 0; color: #99a1ab; max-width: 36ch; }

/* Nav */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a { padding: 4px 0; }

/* Contact */
.footer-contact {
  list-style: none; padding: 0; margin: 0 0 8px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.contact-link img {
  width: 20px; height: 20px;
  filter: invert(85%) grayscale(100%);
}

/* Socials */
.footer-social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 6px 0 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.footer-social img {
  width: 20px; height: 20px;
  filter: invert(85%) grayscale(100%);
}
.footer-copy {
  margin: 12px 0 0;
  font-size: 13px;
  color: #99a1ab;
}

/* --- Mobile responsiveness --- */
@media (max-width: 760px) {
  .footer-wrap {
    grid-template-columns: 1fr;      /* stack columns */
    text-align: center;
  }
  .footer-tagline { margin: 0 auto; }
  .footer-nav { align-items: center; }
  .footer-social { justify-content: center; }
  .footer-contact, .footer-social a {
    justify-content: center;
  }
  .footer-title { font-size: 17px; }
}

/* Improve tap targets on very small screens */
@media (max-width: 420px) {
  .footer-nav a,
  .footer-social a,
  .contact-link {
    padding: 10px 0;
  }
  .footer-social img, .contact-link img { width: 22px; height: 22px; }
}

/* Base icon links */
.footer-contact a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff; /* text + svg white by default */
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact svg,
.footer-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor; /* inherits link color */
}

/* Hover effects */
.footer-social a[href*="github"]:hover {
  color: #d1d5db; /* light gray */
}
.footer-social a[href*="twitter"]:hover {
  color: #1da1f2; /* Twitter blue */
}
.footer-contact a:hover {
  color: #a78bfa; /* violet for email */
}
