/*
Theme Name: Indie Beauty Mag
Theme URI: https://example.com
Author: You
Description: Barebone offline Bootstrap WordPress theme for Indie Beauty Mag.
Version: 1.0.0
License: GPL v2
Text Domain: indiebeautymag
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --radius: 0.625rem;
  --cream: #FAF7F2;
  --ink: #1A1A1A;
  --rose: #C85A6A;
  --rose-soft: #d4a5ad;
  --rose-dark: #c25877;
  --body: #6B6B6B;
  --border-soft: #EAE5DE;
  --beige: #F0EBE3;
  --background: #FFFFFF;
  --foreground: #1A1A1A;
  --card: #ffffff;
  --card-foreground: #1A1A1A;
  --popover: #ffffff;
  --popover-foreground: #1A1A1A;
  --primary: #1A1A1A;
  --primary-foreground: #ffffff;
  --secondary: #F0EBE3;
  --secondary-foreground: #1A1A1A;
  --muted: #FAF7F2;
  --muted-foreground: #6B6B6B;
  --accent: #d4a5ad;
  --accent-foreground: #1A1A1A;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #EAE5DE;
  --input: #EAE5DE;
  --ring: #C85A6A;
  --font-serif: "Cormorant Garamond", "Ivy Presto", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* ---------- Utilities ---------- */
.font-serif {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--rose);
  font-family: var(--font-sans);
}

.text-rose {
  color: var(--rose) !important;
}

.text-body-soft {
  color: var(--body) !important;
}

.bg-cream {
  background-color: var(--cream) !important;
}

.bg-beige {
  background-color: var(--beige) !important;
}

.bg-rose-soft {
  background-color: rgba(200, 90, 106, 0.12) !important;
}

.border-soft {
  border-color: var(--border-soft) !important;
}

.max-w-180 {
  max-width: 180px;
}

.max-w-xs {
  max-width: 20rem;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-3xl {
  max-width: 48rem;
}

/* ---------- Layout ---------- */
.container-editorial {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container-editorial {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ---------- Buttons ---------- */
.btn-indie,
.btn-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1rem 1.75rem;
  border: none;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-indie {
  background: var(--ink);
  color: #ffffff;
}

.btn-indie:hover {
  background: #2a2a2a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-rose {
  background-color: var(--rose);
  color: #fff;
}

.btn-rose:hover {
  background-color: var(--rose-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .navbar {
  background: transparent !important;
  padding-top: 0;
  padding-bottom: 0;
}

.site-header .container {
  height: 96px;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 0;
  margin-right: 1rem;
}

.logo-title {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-transform: lowercase;
}

.logo-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--rose);
  margin-top: 4px;
}

.navbar-nav {
  gap: 2.25rem;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .menu-item > a,
.navbar-nav .menu-item .nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--rose);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.navbar-nav .menu-item:hover > a,
.navbar-nav .nav-link:hover {
  color: var(--rose);
}

.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-nav .current-menu-item > a,
.navbar-nav .current-menu-parent > a,
.navbar-nav .current-menu-ancestor > a,
.navbar-nav .current_page_item > a {
  color: var(--rose);
}

.navbar-nav .current-menu-item > a::after,
.navbar-nav .current-menu-parent > a::after,
.navbar-nav .current_page_item > a::after {
  transform: scaleX(1);
}

.search-toggle {
  color: var(--ink);
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.25s ease;
}

.search-toggle:hover,
.search-toggle:focus {
  color: var(--rose);
}

#searchBar {
  background-color: #fff;
  border-color: var(--border-soft) !important;
}

#searchBar .form-control-lg {
  height: 48px;
  font-size: 14px;
  font-weight: 300;
  border-color: var(--border-soft);
}

#searchBar .form-control-lg:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(200, 90, 106, 0.1);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 1rem;
  }
  .navbar-nav {
    align-items: flex-start;
    gap: 0.75rem;
  }
  .navbar-nav .current-menu-item > a::after {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero-section {
  background-color: var(--cream);
  padding: 5rem 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 300;
  color: var(--ink);
}

.hero-title em {
  color: var(--rose);
  font-style: italic;
}

.hero-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 3rem 0;
  }
  .hero-badge {
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    font-size: 0.875rem;
    border-radius: 12px;
  }
}

/* ---------- Avatars ---------- */
.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  background-color: var(--beige);
  margin-left: -12px;
}

.avatar-circle:first-child {
  margin-left: 0;
}

.avatar-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  background-color: var(--beige);
  flex-shrink: 0;
}

.avatar-xs {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  background-color: #fff;
  margin-left: -0.5rem;
}

.avatar-xs:first-child {
  margin-left: 0;
}

.avatar-sprite {
  width: 400%;
  height: 100%;
  object-fit: cover;
}

.avatar-sprite[data-pos="0"] {
  object-position: 0% 40%;
}

.avatar-sprite[data-pos="1"] {
  object-position: 25% 40%;
}

.avatar-sprite[data-pos="2"] {
  object-position: 50% 40%;
}

.avatar-sprite[data-pos="3"] {
  object-position: 75% 40%;
}

.avatar-sprite[data-pos="4"] {
  object-position: 99% 40%;
}

/* ---------- Benefits ---------- */
.benefit-card {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 2rem;
  background: #fff;
  height: 100%;
}

.benefit-card i {
  color: var(--rose);
}

.benefit-card .fw-medium {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.benefit-card .text-body-soft {
  font-size: 0.875rem;
  color: var(--body);
  margin-bottom: 0;
}

/* ---------- Cards ---------- */
.card-soft {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  color: inherit;
}

.pick-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--beige);
}

.pick-img-wrap img,
.mag-feature-img img,
.mag-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-soft:hover .pick-img-wrap img,
.group:hover .mag-feature-img img,
.group:hover .mag-mini-img img {
  transform: scale(1.03);
}

/* ---------- Trending Brands ---------- */
.brand-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-circle:hover,
.group:hover .brand-circle {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.brand-circle span {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 300;
  text-align: center;
  line-height: 1.3;
  color: var(--ink);
}

@media (min-width: 768px) {
  .brand-circle {
    width: 6rem;
    height: 6rem;
  }
}

@media (max-width: 991.98px) {
  .brand-circle {
    width: 100px;
    height: 100px;
  }
}

/* ---------- Magazine ---------- */
.mag-feature-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--beige);
}

.mag-mini-img {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--beige);
}

/* ---------- Newsletter ---------- */
.newsletter-grid {
  display: grid;
  gap: 1.5rem;
}

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

.newsletter-card {
  border-radius: 16px;
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .newsletter-card {
    padding: 3rem;
  }
}

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

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

.newsletter-input {
  flex: 1;
  height: 48px;
  padding: 0 1rem;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--rose);
}

.newsletter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 11px;
  color: var(--body);
  margin-top: 1.25rem;
}

.newsletter-checks span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.newsletter-checks span::before {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid var(--body);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Featured In ---------- */
.featured-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: rgba(26, 26, 26, 0.7);
  letter-spacing: -0.02em;
}

/* ---------- Section Head ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-weight: 300;
}

.section-head p,
.section-head-subtitle {
  margin-top: 0.75rem;
  font-size: 14px;
  color: var(--body);
  margin-bottom: 0;
}

.section-head-link,
.section-head .section-link {
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
}

.section-head-link:hover,
.section-head .section-link:hover {
  gap: 0.75rem;
  color: var(--rose-dark);
}

.section-head-link i,
.section-head .section-link i {
  font-size: 16px;
}

@media (min-width: 768px) {
  .section-head h2 {
    font-size: 3rem;
  }
}

/* ---------- Footer ---------- */
.site-footer-indie {
  border-top: 1px solid var(--border-soft);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  background-color: var(--background);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-brand {
  grid-column: span 2;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--body);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--rose);
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 11px;
  color: var(--body);
}

.footer-bottom a {
  color: var(--body);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--rose);
}

/* ---------- Page Hero ---------- */
.page-hero {
  background-color: var(--cream);
  padding: 2rem 0 !important;
  text-align: center;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 7rem 0;
  }
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 300;
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 4.5rem;
  }
}

.page-hero p {
  margin-top: 1.5rem;
  font-size: 15px;
  line-height: 1.625;
  color: var(--body);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Tag Pills ---------- */
.tag-pill {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Search Input ---------- */
.search-wrap {
  position: relative;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  width: 100%;
  height: 3rem;
  padding-left: 2.75rem;
  padding-right: 1rem;
  border-radius: 9999px;
  background-color: #fff;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--rose);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--body);
  pointer-events: none;
}

/* ---------- Filter Chips ---------- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.filter-chip {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.filter-chip:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.filter-chip.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* ---------- A-Z Filter ---------- */
.az-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
}

.az-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.az-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* ---------- Letter Circle ---------- */
.letter-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rose);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.faq-item {
  padding: 1.25rem 0;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border-soft);
}

.faq-summary {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  color: var(--rose);
  transition: transform 0.2s;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 0.75rem;
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 48rem;
}

/* ---------- Thumbnail ---------- */
.thumb-lg {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---------- Rank Number ---------- */
.rank-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--rose);
  width: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ---------- Split Hero ---------- */
.min-vh-70 {
  min-height: 70vh;
}

/* ---------- CTA Arrow Hover ---------- */
.cta-arrow {
  transition: transform 0.2s;
}

a:hover .cta-arrow {
  transform: translateX(4px);
}

/* ---------- Parent Hover Text Rose ---------- */
.hover-text-rose {
  transition: color 0.2s;
}

a:hover .hover-text-rose {
  color: var(--rose);
}

/* ---------- Brand Cover ---------- */
.brand-cover {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background-color: var(--beige);
}

@media (min-width: 768px) {
  .brand-cover {
    aspect-ratio: 16 / 6;
  }
}

/* ---------- Overlap Up ---------- */
.overlap-up {
  margin-top: -6rem;
  position: relative;
  z-index: 10;
}

/* ---------- Brand Logos ---------- */
.brand-logo-lg {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
}

.brand-logo-sm {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  padding: 0 0.25rem;
  flex-shrink: 0;
}

/* ---------- Social Pill ---------- */
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 9999px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.social-pill-dark {
  background-color: var(--ink);
  color: #fff;
}

.social-pill-dark:hover {
  opacity: 0.9;
  color: #fff;
}

.social-pill-outline {
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--ink);
}

.social-pill-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* ---------- Star Rating ---------- */
.star-sm {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--rose);
}

/* ---------- Aspect 5:3 ---------- */
.aspect-5-3 {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background-color: var(--beige);
}

/* ---------- Countdown ---------- */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.countdown-box {
  border-radius: 0.75rem;
  border: 1px solid var(--border-soft);
  padding: 1rem;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 1.875rem;
}

/* ---------- Step Number ---------- */
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
  color: var(--rose);
  line-height: 1;
}

/* ---------- Winner Card ---------- */
.winner-card {
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---------- Form Textarea ---------- */
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: #fff;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 8rem;
}

.form-textarea:focus {
  border-color: var(--rose);
}

/* ---------- Avatar Medium ---------- */
.avatar-md {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

/* ---------- Search Large ---------- */
.search-input-lg {
  height: 4rem;
  padding-left: 3.5rem;
  padding-right: 1.5rem;
  font-size: 15px;
}

.search-icon-lg {
  left: 1.5rem;
  font-size: 1.25rem;
}

/* ---------- Result Thumb ---------- */
.result-thumb {
  width: 7rem;
  height: 6rem;
  border-radius: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
}

/* ---------- Aspect Ratio 16:10 ---------- */
.ratio-16x10 {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

/* ---------- Stats Grid ---------- */
.stats-grid {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-head h2,
  .page-hero-title {
    font-size: 1.75rem;
  }
  
  .btn-indie,
  .btn-rose {
    width: 100%;
    justify-content: center;
  }
}
/* ---------- Aspect 5:3 Image Fix ---------- */
.aspect-5-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ---------- Table of Contents ---------- */
.sticky-below-nav {
    position: sticky;
    top: 120px; /* Adjust based on your header height */
}

.toc-link {
    display: block;
    padding: 0.5rem 0 0.5rem 1.25rem;
    font-size: 13px;
    color: var(--body);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.toc-link:hover {
    color: var(--rose);
    border-left-color: var(--rose);
}

/* Active state when scrolling */
.toc-link.active {
    color: var(--rose);
    border-left-color: var(--rose);
    font-weight: 500;
}

/* ---------- Hover Rose Utility ---------- */
.hover-rose {
    transition: color 0.2s;
}

.hover-rose:hover {
    color: var(--rose) !important;
}

/* ---------- Article Content ---------- */
.article-content {
    font-size: 15px;
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-content .drop-cap::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    color: var(--ink);
}

/* ---------- Blockquote ---------- */
.article-blockquote {
    border-left: 2px solid var(--rose);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
}

.article-blockquote p {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.article-blockquote footer {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--body);
}

/* ---------- Figure / Caption ---------- */
.article-content figure {
    margin: 2.5rem 0;
}

.article-content figcaption {
    font-size: 13px;
    color: var(--body);
    font-style: italic;
}

/* ---------- Ratio 21:9 ---------- */
.ratio-21x9 {
    aspect-ratio: 21 / 9;
}


/* ============================================
   MAGAZINE ARCHIVE — TSX MATCH (NEW CLASSES ONLY)
   ============================================ */

/* Featured card image: portrait 4:5 on mobile, auto/fill on desktop */
.mag-archive-featured-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--beige);
}

@media (min-width: 768px) {
  .mag-archive-featured-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }
}

.mag-archive-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

a:hover .mag-archive-featured-img img,
.group:hover .mag-archive-featured-img img {
  transform: scale(1.03);
}

/* Grid card image: portrait 4:5 always */
.mag-archive-grid-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--beige);
}

.mag-archive-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

a:hover .mag-archive-grid-img img,
.group:hover .mag-archive-grid-img img {
  transform: scale(1.03);
}

/* Featured card title: matches TSX text-3xl md:text-5xl */
.mag-archive-featured-title {
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .mag-archive-featured-title {
    font-size: 3rem;
  }
}

/* Grid card title: matches TSX text-[22px] */
.mag-archive-grid-title {
  font-size: 22px;
  line-height: 1.2;
}

/* Eyebrow small for grid: matches TSX text-[10px] */
.eyebrow-xs {
  font-size: 10px;
  letter-spacing: 0.18em;
}

/* Read time small: matches TSX text-[11px] */
.text-11 {
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* Padding utilities matching TSX */
.p-6 {
  padding: 1.5rem !important;
}

.p-8 {
  padding: 2rem !important;
}

@media (min-width: 768px) {
  .p-md-8 {
    padding: 2rem !important;
  }
  
  .p-md-12 {
    padding: 3rem !important;
  }
}

/* Margin bottom utility */
.mb-16 {
  margin-bottom: 4rem !important;
}

/* Gap utility for row */
.g-6 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* Card soft block display for grid links */
.card-soft-block {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-soft-block:hover {
  color: inherit;
}