 :root {
      --bg: #0b0c0e;
      --card: #121316;
      --muted: #8b939e;
      --text: #e9eef5;
      --border: #1f242d;
      --primary: /*#ff5d57;*/ #B59410;
      --ring: rgba(255,255,255,0.06);
      --shadow: 0 8px 20px rgba(0,0,0,0.25);
     --header-height: 90px;
    }
    :root.light {
      --bg: #ffffff;
      --card: #f8fafc;
      --muted: #5b6472;
      --text: #0d1117;
      --border: #e5e7eb;
      --ring: rgba(0,0,0,0.06);
      --shadow: 0 8px 24px rgba(2,6,23,0.08);
    }
    * { box-sizing: border-box; }
    html, body { height: 100%;scroll-behavior: smooth; }
    body {
        display: flex;
        flex-direction: column;
      margin: 0;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    .container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
    /*header {
      position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
      background: color-mix(in oklab, var(--bg) 85%, transparent);
      border-bottom: 1px solid var(--border);
    }*/
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 999; /* make sure it’s above cards */
      backdrop-filter: blur(10px);
      background: color-mix(in oklab, var(--bg) 85%, transparent);
      border-bottom: 1px solid var(--border);
    }


 .store-grid {
     display: grid;
     gap: 1rem;
     grid-template-columns: repeat(4, 1fr);
     text-align: left; /* keeps product text aligned nicely */
 }

 /* Tablet: 2 items per row */
 @media (max-width: 900px) {
     .store-grid {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 /* Mobile: 1 item per row */
 @media (max-width: 600px) {
     .store-grid {
         grid-template-columns: 1fr;
     }
 }

 .article-card {
     display: grid;
     grid-template-columns: 140px 1fr;
     gap: 1rem;
     padding: 1rem 0;
     border-bottom: 1px solid var(--border);
     align-items: start;
 }

 .article-card img {
     width: 140px;
     height: 100px;
     object-fit: cover;
     border-radius: .6rem;
 }

 /* Mobile responsive stack */
 @media (max-width: 600px) {
     .article-card {
         grid-template-columns: 1fr;
     }

     .article-card img {
         width: 100%;
         height: 200px;
     }
 }


 .row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 0; }
    .brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; transform: translateX(0.85rem);}
    .brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
    nav { display: none; gap: 1rem; font-size: .95rem; }
    @media (min-width: 768px){ nav { display: flex; } }
    .btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-radius: .75rem; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); cursor: pointer; color: var(--text); }
    .btn.primary { background: var(--primary); border-color: transparent; color: white; }
    .btn.ghost { background: transparent; box-shadow: none; }
    .icon { width: 18px; height: 18px; display: inline-block; }

    .section { padding: 3rem 0; flex: 1; }
    @media (min-width: 768px){ .section { padding: 4rem 0; } }

    .badge { display:inline-block; padding:.25rem .55rem; border-radius: 999px; background: color-mix(in oklab, var(--primary) 18%, transparent); color: color-mix(in oklab, var(--primary) 92%, white); font-weight:600; font-size:.75rem; }

    .hero { display: grid; align-items: center; gap: 2rem; }
    @media (min-width: 768px){ .hero { grid-template-columns: 1.15fr 1fr; gap: 2.5rem; } }
    .hero h1 { font-size: clamp(1.9rem, 2.5vw + 1.2rem, 3.25rem); line-height: 1.1; margin:.5rem 0 1rem; }
    .hero p { color: var(--muted); max-width: 48ch; }
    .frame { border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }

    .grid { display: grid; gap: 1rem; }
    .grid.videos { grid-template-columns: 1fr; }
    @media (min-width: 640px){ .grid.videos { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px){ .grid.videos { grid-template-columns: repeat(4, 1fr); } }

    .card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
    .card:hover { transform: translateY(-2px); }
    .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
    .thumb img { width:100%; height:100%; object-fit: cover; transition: transform .3s ease; }
    .card:hover .thumb img { transform: scale(1.04); }
    .watch-pill { position: absolute; left: .7rem; bottom: .7rem; background: color-mix(in oklab, white 92%, transparent); color: #0b0c0e; padding:.35rem .6rem; border-radius: 999px; font-size: .72rem; display: inline-flex; align-items: center; gap: .35rem; }
    :root.light .watch-pill { background: color-mix(in oklab, #000 35%, white); color: white; }
    .card-body { padding: .9rem .95rem 1rem; }
    .title { font-size: .98rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .desc { margin-top:.35rem; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .meta { margin-top:.6rem; color: var(--muted); font-size: .8rem; display:flex; justify-content: space-between; }

    .split { display:grid; gap: 1.5rem; }
    @media (min-width: 1024px){ .split { grid-template-columns: 1.1fr 1fr; } }

    .searchbar { display:flex; align-items:center; gap:.5rem; border:1px solid var(--border); background: var(--card); padding:.5rem .7rem; border-radius:.8rem; }
    .searchbar input { all:unset; width:100%; font-size:.95rem; color: var(--text); }
    .muted { color: var(--muted); }

    .prose h3 { font-size: 1.35rem; margin: 0 0 .6rem; }
    .prose p { color: var(--muted); line-height: 1.7; }
    .prose ul { padding-left: 1rem; color: var(--muted); }

    footer { border-top: 1px solid var(--border); }
    .foot { display:flex; flex-direction: column; gap: .75rem; padding: 1.2rem 0; }
    @media (min-width: 768px){ .foot { flex-direction: row; align-items: center; justify-content: space-between; } }

    .featured-iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
    .pill { display:inline-block; padding:.25rem .6rem; border-radius:999px; background: color-mix(in oklab, var(--text) 8%, transparent); color: var(--text); font-size:.75rem; }

 /* Page Transition */
 .page-transition {
     opacity: 0;
     transition: opacity .45s ease;
 }

 body {
     opacity: 1;
     transition: opacity .45s ease;
 }

 /* Fade animation when articles update */
/* #articlesList {
     opacity: 1;
     transition: opacity .25s ease;
 }

 #articlesList.fade-out {
     opacity: 0;
 }*/

 #articlesList,
 .store-grid {
     opacity: 1;
     transition: opacity .25s ease;
 }

 #articlesList.fade-out,
 .store-grid.fade-out {
     opacity: 0;
 }

 .mobile-nav-pair {
     display: none;
 }

 /* Make text slightly larger on mobile */
 /* On tablet, header height shrinks a bit */
 @media (max-width: 900px) {
     :root {
         --header-height: 80px;
     }
     /*.scroll-btn {
         display: none !important;
     }*/
 }
 @media (max-width: 600px) {
     :root {
         --header-height: 70px;
     }
     html {
         font-size: 16px; /* adjust to 19px or 20px if you want bigger */
     }

     .card .title {
         font-size: 1.1rem;
     }

     .card .meta {
         font-size: 1rem;
     }

     nav a {
         font-size: 1rem;
     }
     .mobile-nav-pair {
         display: block;
     }
     /*.scroll-btn {
         display: none !important;
     }*/
 }

 #gridVideos {
     opacity: 1;
     transition: opacity 0.3s ease;
 }
 #gridVideos.fade-out {
     opacity: 0;
 }


 html {
     scroll-behavior: smooth;
     scroll-padding-top: var(--header-height);
 }

 .btn.ghost {
     border: none;
     background: none;
     box-shadow: none;
 }
