/*
Theme Name: StoryScout
Theme URI: https://storyscout.site
Author: StoryScout
Author URI: https://storyscout.site
Description: Cinematic dark-luxury magazine theme for StoryScout — Web Stories and longform across Rewind, Unexplained, and Legends. Ported 1:1 from the original preview design. Charcoal, cream, gold/amber/teal/crimson tokens; Fraunces + Inter; glass navbar; grain texture.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storyscout
Tags: magazine, news, dark, blog, one-column, custom-menu, featured-images, custom-logo
*/

/* ===== Tokens ===== */
:root {
  --charcoal: #0E1116;
  --charcoal-2: #141820;
  --charcoal-3: #1A1F28;
  --cream: #F5F1E8;
  --cream-dim: rgba(245, 241, 232, 0.72);
  --gold: #E8D5A3;
  --amber: #F5A623;
  --teal: #2AA8A0;
  --crimson: #D64545;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--amber);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--cream);
}

/* ===== Utilities ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--amber);
  color: #0E1116;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream-dim);
  margin: 0 0 0.75rem;
}

.eyebrow.gold {
  color: var(--gold);
}

/* ===== Shell / Grain ===== */
.site-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(245, 166, 35, 0.07), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(42, 168, 160, 0.06), transparent 50%),
    var(--charcoal);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
}

.btn-amber {
  background: linear-gradient(135deg, #F5A623, #e09010);
  color: #0E1116;
  border-color: transparent;
}

.btn-amber:hover {
  color: #0E1116;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 241, 232, 0.22);
}

.btn-ghost:hover {
  border-color: rgba(245, 241, 232, 0.45);
  color: #fff;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 232, 0.14);
  background: rgba(245, 241, 232, 0.04);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.icon-btn:hover {
  background: rgba(245, 241, 232, 0.1);
  border-color: rgba(245, 241, 232, 0.3);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 232, 0.2);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}

.tap-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.95);
  color: #0E1116;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Logo ===== */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark:hover {
  color: inherit;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(245, 166, 35, 0.35));
  transition: transform 0.3s ease;
}

.logo-mark:hover .logo-img {
  transform: rotate(12deg);
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  color: #E8D5A3;
  font-size: 1rem;
  letter-spacing: 0.18em;
}

/* ===== Navbar ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.glass-nav {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(14, 17, 22, 0.62);
  border-bottom: 1px solid rgba(245, 241, 232, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled .glass-nav {
  background: rgba(14, 17, 22, 0.88);
  border-bottom-color: rgba(232, 213, 163, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links {
  list-style: none;
  display: none;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  color: rgba(245, 241, 232, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-link:focus,
.current-menu-item > .nav-link,
.current-menu-ancestor > .nav-link {
  color: #fff;
  background: rgba(245, 241, 232, 0.07);
}

.current-menu-item > .nav-link,
.current-menu-ancestor > .nav-link {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 0.9rem;
  display: flex;
  gap: 0.6rem;
}

.nav-search input,
.footer-newsletter input,
.newsletter-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(245, 241, 232, 0.05);
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 0.75rem;
  color: var(--cream);
  padding: 0.75rem 1rem;
  font: inherit;
  outline: none;
}

.nav-search input:focus,
.footer-newsletter input:focus,
.newsletter-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(245, 166, 35, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.mobile-drawer {
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  background: rgba(14, 17, 22, 0.96);
  padding: 0.5rem 1.25rem 1.25rem;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer a {
  display: block;
  padding: 0.85rem 0;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 232, 0.06);
  font-size: 1.05rem;
}

.desktop-only {
  display: none;
}

.mobile-only {
  display: inline-flex;
}

@media (min-width: 900px) {
  .nav-links.desktop-only {
    display: flex;
  }
  .desktop-only {
    display: flex;
  }
  .mobile-only {
    display: none !important;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  padding: 6rem 1.25rem 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, 0.92) 0%, rgba(14, 17, 22, 0.55) 48%, rgba(14, 17, 22, 0.35) 100%),
    linear-gradient(0deg, rgba(14, 17, 22, 0.95) 0%, rgba(14, 17, 22, 0.2) 45%, rgba(14, 17, 22, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #F5F1E8;
  max-width: 14ch;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(245, 241, 232, 0.82);
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-story-card {
  width: min(100%, 280px);
  justify-self: start;
}

.featured-story-link {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 1.1rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(232, 213, 163, 0.2);
}

.featured-story-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 17, 22, 0.95) 0%, rgba(14, 17, 22, 0.15) 55%, transparent 100%);
}

.featured-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem;
  color: #fff;
}

.featured-body h2 {
  font-size: 1.25rem;
  margin: 0.55rem 0 0.7rem;
  line-height: 1.2;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .hero-content {
    grid-template-columns: 1.3fr 0.7fr;
  }
  .featured-story-card {
    justify-self: end;
    width: 300px;
  }
}

/* ===== Sections ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section.tight {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section.subtle {
  padding-top: 1rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
  color: #F5F1E8;
}

/* ===== Category strip ===== */
.category-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-panel {
  background:
    linear-gradient(160deg, rgba(var(--cat-rgb), 0.16), rgba(14, 17, 22, 0.2) 45%),
    var(--charcoal-2);
  border: 1px solid rgba(var(--cat-rgb), 0.28);
  border-radius: 1.25rem;
  padding: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.category-panel-head h3 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
}

.category-panel-head h3 a {
  color: #F5F1E8;
  text-decoration: none;
}

.category-panel-head h3 a:hover {
  color: var(--cat-accent);
}

.category-panel-head p {
  margin: 0 0 0.75rem;
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.mini-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.mini-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mini-thumb:hover img {
  transform: scale(1.06);
}

.mini-thumb.placeholder {
  background: rgba(245, 241, 232, 0.06);
}

/* ===== Story cards / carousel / masonry ===== */
.story-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.story-carousel:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.carousel-item {
  flex: 0 0 min(72vw, 240px);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .carousel-item {
    flex-basis: 220px;
  }
}

.story-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--charcoal-2);
  border: 1px solid rgba(245, 241, 232, 0.08);
}

.story-card.aspect-9-16 {
  aspect-ratio: 9 / 16;
}

.story-card.aspect-3-4 {
  aspect-ratio: 3 / 4;
}

.story-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.story-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.story-card-scrim {
  position: absolute;
  inset: 0;
}

.story-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  z-index: 2;
}

.story-card-title {
  font-size: 1.15rem;
  margin: 0.55rem 0 0.65rem;
  line-height: 1.2;
  color: #fff;
}

.story-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.masonry-stories {
  columns: 1;
  column-gap: 1rem;
}

.masonry-stories .story-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  min-height: 420px;
}

@media (min-width: 640px) {
  .masonry-stories {
    columns: 2;
  }
}

@media (min-width: 1000px) {
  .masonry-stories {
    columns: 3;
  }
  .masonry-stories .story-card {
    min-height: 480px;
  }
}

/* ===== Article cards ===== */
.article-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .article-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: rgba(26, 31, 40, 0.65);
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: 1.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  border-color: rgba(232, 213, 163, 0.28);
  transform: translateY(-2px);
}

.article-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-media img {
  transform: scale(1.04);
}

.absolute-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(14, 17, 22, 0.72);
  backdrop-filter: blur(8px);
}

.article-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.article-card-body h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.article-card-body h3 a {
  color: #F5F1E8;
  text-decoration: none;
}

.article-card-body h3 a:hover {
  color: var(--gold);
}

.article-card-body p {
  margin: 0;
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(245, 241, 232, 0.55);
}

/* ===== Newsletter ===== */
.newsletter-strip {
  margin: 1rem 0 2rem;
  padding: 0 1.25rem;
}

.newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(245, 166, 35, 0.18), transparent 55%),
    linear-gradient(135deg, #171c25, #10141b 60%, #152028);
  border: 1px solid rgba(232, 213, 163, 0.18);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .newsletter-inner {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    padding: 2.5rem 2.25rem;
  }
}

.newsletter-title {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: #F5F1E8;
  margin: 0;
}

.newsletter-sub {
  margin: 0.75rem 0 0;
  color: rgba(245, 241, 232, 0.8);
  max-width: 36rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .newsletter-form {
    flex-direction: row;
  }
  .newsletter-form input {
    flex: 1;
  }
}

.form-feedback {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
}

.form-feedback.is-ok {
  color: #7ddea8;
}

.form-feedback.is-error {
  color: #ff8e8e;
}

/* ===== Quick list ===== */
.quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.quick-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
  font-size: 0.95rem;
}

.quick-list a {
  color: var(--cream);
  text-decoration: none;
}

.quick-list a:hover {
  color: var(--gold);
}

.quick-list time {
  color: rgba(245, 241, 232, 0.45);
  white-space: nowrap;
  font-size: 0.82rem;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  background: rgba(10, 12, 16, 0.9);
  padding: 3rem 1.25rem 1.25rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.85rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer-mission,
.footer-note {
  color: rgba(245, 241, 232, 0.65);
  font-size: 0.92rem;
  margin: 0.9rem 0 0;
  max-width: 32ch;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(245, 241, 232, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.25rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(245, 241, 232, 0.5);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(245, 241, 232, 0.65);
}

/* ===== Page shared ===== */
.page-pad {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-hero-band {
  margin-bottom: 2rem;
  max-width: 720px;
}

.page-hero-band.narrow {
  max-width: 680px;
}

.page-h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 0.85rem;
  line-height: 1.08;
}

.page-lede {
  font-size: 1.08rem;
  color: rgba(245, 241, 232, 0.75);
  margin: 0;
  line-height: 1.65;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-pill {
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 232, 0.16);
  background: transparent;
  color: rgba(245, 241, 232, 0.8);
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.is-active {
  border-color: rgba(245, 241, 232, 0.35);
}

.search-hint {
  margin: -0.5rem 0 1.25rem;
  color: rgba(245, 241, 232, 0.65);
  font-size: 0.92rem;
}

/* ===== Category / archive ===== */
.category-band {
  background:
    linear-gradient(180deg, rgba(var(--cat-rgb), 0.22), rgba(14, 17, 22, 0) 100%),
    var(--charcoal);
  border-bottom: 1px solid rgba(var(--cat-rgb), 0.25);
  padding: 2.5rem 1.25rem 2rem;
}

.category-band-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cat-archive-note {
  margin-top: 2rem;
  color: rgba(245, 241, 232, 0.5);
  font-size: 0.88rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.9rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 232, 0.16);
  color: rgba(245, 241, 232, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.pagination .page-numbers:hover {
  border-color: rgba(245, 241, 232, 0.45);
  color: #fff;
}

.pagination .page-numbers.current {
  background: var(--amber);
  border-color: var(--amber);
  color: #0E1116;
}

/* ===== Breadcrumbs ===== */
.breadcrumb {
  margin-bottom: 1.25rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: rgba(245, 241, 232, 0.55);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  opacity: 0.6;
}

.breadcrumb a {
  color: rgba(245, 241, 232, 0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb.light a,
.breadcrumb.light {
  color: rgba(245, 241, 232, 0.8);
}

/* ===== Article template ===== */
.article-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
  }
}

.article-h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin: 0.75rem 0 0.85rem;
}

.article-excerpt {
  font-size: 1.15rem;
  color: rgba(245, 241, 232, 0.78);
  margin: 0 0 1.5rem;
  line-height: 1.6;
  max-width: 62ch;
}

.author-box {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid rgba(245, 241, 232, 0.08);
  margin-bottom: 1rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(232, 213, 163, 0.35);
}

.author-box-hero .author-avatar {
  width: 96px;
  height: 96px;
}

.author-name {
  margin: 0;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.author-bio {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.68);
}

.fact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7ddea8;
  letter-spacing: 0.02em;
}

.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.55);
  margin-bottom: 1.5rem;
}

.article-hero {
  margin: 0 0 2rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.08);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.55);
  background: rgba(0, 0, 0, 0.25);
}

.article-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.9);
  max-width: 68ch;
}

.article-body p {
  margin: 0 0 1.25rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 2.2rem 0 0.85rem;
  color: #fff;
  scroll-margin-top: 6rem;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.6rem 0 0.65rem;
  color: #fff;
  scroll-margin-top: 6rem;
}

.article-body blockquote,
.article-body .pull-quote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.35;
  border-left: 3px solid var(--amber);
  padding: 0.35rem 0 0.35rem 1.15rem;
  margin: 2rem 0;
  color: var(--amber);
}

.article-body .wp-block-pullquote {
  border-left: 3px solid var(--amber);
  padding: 0.35rem 0 0.35rem 1.15rem;
  margin: 2rem 0;
  color: var(--amber);
}

.article-body .wp-block-pullquote blockquote {
  border: none;
  margin: 0;
  padding: 0;
}

.article-body .wp-block-pullquote p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.35;
  margin: 0;
}

.article-body a {
  color: var(--gold);
}

.article-body img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
}

.share-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  margin-right: 0.35rem;
}

.copied {
  font-size: 0.8rem;
  color: #7ddea8;
}

.related-block {
  margin-top: 2.5rem;
}

.read-next {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(245, 241, 232, 0.12);
  background: rgba(245, 241, 232, 0.03);
}

.read-next h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.6rem;
}

.read-next h2 a {
  color: #F5F1E8;
  text-decoration: none;
}

.read-next h2 a:hover {
  color: var(--gold);
}

.read-next p {
  color: rgba(245, 241, 232, 0.7);
  margin: 0 0 1rem;
}

.article-toc {
  display: none;
}

@media (min-width: 1024px) {
  .article-toc {
    display: block;
  }
}

.toc-sticky {
  position: sticky;
  top: 6rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(245, 241, 232, 0.1);
  background: rgba(20, 24, 32, 0.75);
  backdrop-filter: blur(10px);
}

.toc-title {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.toc-sticky ol,
.legal-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.toc-sticky a,
.legal-toc a {
  color: rgba(245, 241, 232, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
}

.toc-sticky a:hover,
.legal-toc a:hover {
  color: var(--gold);
}

.toc-cats {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  display: grid;
  gap: 0.35rem;
}

.toc-cats a {
  color: rgba(245, 241, 232, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
}

/* ===== Web stories ===== */
.story-detail-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .story-detail-layout {
    grid-template-columns: 320px 1fr;
  }
}

.story-detail-frame {
  margin: 0;
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.1);
  max-width: 360px;
}

.story-detail-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.story-detail-overlay {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
}

.story-detail-copy h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.75rem 0;
  line-height: 1.12;
}

.story-detail-copy .lede {
  font-size: 1.1rem;
  color: rgba(245, 241, 232, 0.78);
  margin: 0 0 1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(245, 241, 232, 0.55);
  font-size: 0.9rem;
}

.related-story-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.related-story-item .story-card-link.mini {
  display: grid;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cream);
}

.related-story-item img {
  border-radius: 0.75rem;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
}

/* ===== About / Contact ===== */
.prose-block {
  max-width: 68ch;
  margin-bottom: 2rem;
}

.prose-block h2 {
  font-size: 1.7rem;
  margin: 0 0 0.75rem;
}

.prose-block p {
  color: rgba(245, 241, 232, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.how-box {
  border-radius: 1.2rem;
  border: 1px solid rgba(232, 213, 163, 0.22);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(245, 166, 35, 0.12), transparent 60%),
    rgba(20, 24, 32, 0.8);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.how-box h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.how-box ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
  color: rgba(245, 241, 232, 0.82);
}

.trust-line {
  margin: 1.25rem 0 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.team-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background: rgba(26, 31, 40, 0.7);
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: 1.1rem;
  padding: 1.35rem;
}

.team-card img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(232, 213, 163, 0.3);
  margin-bottom: 0.85rem;
}

.team-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.team-card .role {
  color: var(--gold);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.65rem;
}

.team-card p:last-child {
  margin: 0;
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.92rem;
}

.contact-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(245, 241, 232, 0.1);
}

.contact-cta h2 {
  margin: 0 0 0.5rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1.3fr 0.9fr;
  }
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(245, 241, 232, 0.1);
  background: rgba(20, 24, 32, 0.65);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(245, 241, 232, 0.75);
}

.field-error {
  color: #ff8e8e;
  font-size: 0.8rem;
}

.contact-aside {
  padding: 1.5rem;
  border-radius: 1.1rem;
  background: rgba(245, 241, 232, 0.03);
  border: 1px solid rgba(245, 241, 232, 0.08);
}

.contact-aside h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.contact-aside h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.1rem;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.social-list li {
  margin: 0;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cream);
  text-decoration: none;
}

.social-list a:hover {
  color: var(--gold);
}

.fine-print {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.55);
}

.inline-icon {
  display: inline;
  vertical-align: -2px;
}

/* ===== Legal ===== */
.legal-updated {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: rgba(245, 241, 232, 0.5);
}

.legal-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .legal-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }
}

.legal-toc {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(245, 241, 232, 0.1);
  background: rgba(20, 24, 32, 0.65);
  height: fit-content;
  position: sticky;
  top: 6rem;
}

.legal-body {
  max-width: 72ch;
}

.legal-body section {
  margin-bottom: 2rem;
  scroll-margin-top: 6rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.legal-body p {
  color: rgba(245, 241, 232, 0.8);
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

.legal-body ul,
.legal-body ol {
  color: rgba(245, 241, 232, 0.8);
}

/* ===== 404 ===== */
.not-found-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
  text-align: center;
}

.not-found-inner {
  max-width: 480px;
}

.compass-404 {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}

.compass-404-img {
  width: 120px;
  height: 120px;
  margin: 10px auto;
  animation: slow-spin 18s linear infinite;
}

.compass-rings {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 163, 0.25);
  box-shadow: 0 0 40px rgba(245, 166, 35, 0.15);
}

.not-found-page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0.5rem 0 0.85rem;
}

.not-found-page p {
  color: rgba(245, 241, 232, 0.7);
  margin: 0 0 1.5rem;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Loading ===== */
.loading-state {
  min-height: 40vh;
  display: grid;
  place-items: center;
  gap: 1rem;
  color: rgba(245, 241, 232, 0.7);
  padding: 3rem 1rem;
}

.compass-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(232, 213, 163, 0.2);
  border-top-color: var(--amber);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-error {
  min-height: 50vh;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1.25rem;
}

.page-error-inline,
.empty-note {
  color: rgba(245, 241, 232, 0.65);
  padding: 2rem 0;
}

/* ===== Search ===== */
.search-results-note {
  margin: -0.5rem 0 1.5rem;
  color: rgba(245, 241, 232, 0.65);
  font-size: 0.92rem;
}

/* ===== Accessibility ===== */
.skip-link:focus {
  top: 0.75rem;
}

::selection {
  background: rgba(245, 166, 35, 0.35);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ===== Gutenberg alignment in article body ===== */
.article-body .alignwide {
  margin-left: 0;
  margin-right: 0;
}

.article-body .wp-block-image figure,
.article-body .wp-block-image {
  margin: 1.5rem 0;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.55);
  text-align: center;
}

/* ===== WordPress integration extras ===== */
.aspect-story-portrait {
  aspect-ratio: 3 / 4;
}

.aspect-story-vertical {
  aspect-ratio: 9 / 16;
}

.filter-pill {
  text-decoration: none;
  display: inline-block;
}

.page-body {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

.page-body h2,
.legal-body h2 {
  scroll-margin-top: 6rem;
}

.author-box-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.author-box-hero .author-meta {
  flex: 1;
}

.not-found {
  min-height: 55vh;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .footer-newsletter {
    flex-direction: row;
  }
  .footer-newsletter input {
    flex: 1;
  }
}

.site-main {
  min-height: 60vh;
}

.views {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: rgba(245, 241, 232, 0.75);
}

.search-form {
  display: flex;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}

.legal-page .legal-layout {
  align-items: flex-start;
}

.article-card-media img,
.story-card-img,
.featured-story-card img,
.article-hero img,
.mini-thumb img,
.author-avatar,
.author-box img {
  display: block;
  max-width: 100%;
}

/* ===== About page ===== */
.page-subtitle {
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 600px;
  margin-top: 0.6rem;
}

.about-grid {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-block h2 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.about-block p {
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .about-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-cat-card {
  display: block;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--charcoal-2);
  border: 1px solid rgba(245, 241, 232, 0.08);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.about-cat-card:hover {
  border-color: var(--cat-accent, var(--amber));
  transform: translateY(-2px);
}

.about-cat-card h3 {
  color: var(--cat-accent, var(--gold));
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-cat-card p {
  font-size: 0.9rem;
  color: var(--cream-dim);
  margin: 0;
}

/* ===== v1.1 — Cookie Consent Bar ===== */
.ss-consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: var(--charcoal-2);
  border-top: 2px solid var(--amber);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  font-size: 15px;
}
.ss-consent-bar[hidden] {
  display: none !important;
}
.ss-consent-text {
  color: var(--cream);
  margin: 0;
  line-height: 1.4;
}
.ss-consent-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.ss-consent-btns .btn {
  padding: 10px 22px;
  font-size: 14px;
}
@media (max-width: 600px) {
  .ss-consent-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 14px 16px;
  }
}

/* ===== v1.3 — Category Slider ===== */
.category-strip {
  overflow: hidden;
}
.category-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 10px 0;
}
.cat-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--charcoal-2);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.cat-card-accent {
  height: 6px;
  width: 100%;
}
.cat-card-body {
  padding: 24px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-card-heading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--cream);
}
.cat-card-desc {
  color: var(--cream-dim);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}
.cat-card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--charcoal-3);
}
.cat-card-thumb-placeholder {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--charcoal-3), var(--charcoal-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-dim);
  font-size: 13px;
}
.cat-card-link {
  color: var(--amber);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.cat-card-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .category-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-slider::-webkit-scrollbar {
    display: none;
  }
  .cat-card {
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}
