/**
 * Public site — Intopinto
 * Warm editorial palette — stone neutrals, burnt orange, deep navy.
 */

:root {
  --brand: #c2410c;
  --brand-bright: #ea580c;
  --brand-deep: #9a3412;
  --brand-soft: rgba(194, 65, 12, 0.09);
  --accent: #1e3a5f;
  --accent-soft: rgba(30, 58, 95, 0.09);
  --ink: #1c1917;
  --muted: #78716c;
  --paper: #fafaf9;
  --wash: #f5f5f4;
  --line: rgba(28, 25, 23, 0.09);
  --surface: #ffffff;
  --radius: 0.5rem;
  --radius-lg: 0.85rem;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --nav-h: 4.25rem;
  --feed-max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --story-ring: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  --shadow-soft: 0 1px 2px rgba(28, 25, 23, 0.04), 0 4px 16px rgba(28, 25, 23, 0.04);
  --shadow-card: 0 2px 8px rgba(28, 25, 23, 0.06), 0 12px 32px rgba(28, 25, 23, 0.05);
}

[data-bs-theme="dark"] {
  --ink: #fafaf9;
  --muted: #a8a29e;
  --paper: #1c1917;
  --wash: #292524;
  --line: rgba(250, 250, 249, 0.08);
  --surface: #292524;
  --brand-soft: rgba(234, 88, 12, 0.14);
  --accent-soft: rgba(30, 58, 95, 0.22);
  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 820px 520px at 100% -5%, rgba(234, 88, 12, 0.045), transparent 58%),
    radial-gradient(ellipse 640px 420px at -5% 35%, rgba(30, 58, 95, 0.04), transparent 52%),
    linear-gradient(180deg, #fff 0%, var(--paper) 40%, var(--wash) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

[data-bs-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 720px 440px at 92% -8%, rgba(234, 88, 12, 0.08), transparent 52%),
    radial-gradient(ellipse 520px 380px at 0% 30%, rgba(30, 58, 95, 0.1), transparent 48%),
    linear-gradient(180deg, #141210 0%, var(--paper) 45%, #1c1917 100%);
}

a {
  color: var(--brand);
  text-underline-offset: 0.15em;
}

img {
  max-width: 100%;
  height: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 2px solid var(--line);
  box-shadow: none;
}

.site-nav .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
  text-decoration: none !important;
  justify-self: start;
}

.brand-mark__icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.55rem;
}

.brand-mark__text {
  line-height: 1;
}

.brand-mark em,
.brand-mark__accent {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.brand-mark--footer {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.site-nav.is-open .nav-toggle__bars {
  background: transparent;
}

.site-nav.is-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav.is-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  z-index: 1040;
}

.site-nav.is-open .nav-links {
  display: flex;
}

.nav-link-soft {
  position: relative;
  color: var(--muted) !important;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link-soft:hover,
.nav-link-soft.active {
  color: var(--ink) !important;
  background: var(--brand-soft);
}

.nav-link-soft.active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav-link-soft--mobile {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  justify-self: end;
}

.nav-actions__promo {
  display: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    gap: 0.15rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    justify-self: center;
  }

  .nav-link-soft--mobile {
    display: none;
  }

  .nav-actions__promo {
    display: inline-flex;
  }

  .nav-link-soft.active::after {
    display: block;
  }
}

@media (max-width: 767.98px) {
  .nav-link-soft.active::after {
    display: none;
  }

  .nav-actions .btn-brand {
    padding-inline: 0.85rem;
  }
}

.btn-brand,
.btn-ghost,
.btn-outline-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  padding: 0.68rem 1.2rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 100%);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.22);
}

.btn-brand:hover {
  filter: brightness(1.05);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink) !important;
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.84rem;
}

.theme-toggle {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--ink);
}

/* —— Full-bleed home hero —— */
.hero-bleed {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #100a10;
  isolation: isolate;
}

.hero-bleed__media {
  position: absolute;
  inset: -6%;
  background:
    radial-gradient(ellipse 50% 55% at 82% 12%, rgba(249, 206, 52, 0.32), transparent 58%),
    radial-gradient(ellipse 48% 58% at 70% 78%, rgba(238, 42, 123, 0.5), transparent 62%),
    radial-gradient(ellipse 42% 50% at 14% 40%, rgba(255, 107, 44, 0.34), transparent 58%),
    radial-gradient(ellipse 65% 45% at 45% 105%, rgba(161, 3, 54, 0.4), transparent 55%),
    linear-gradient(158deg, #1c0b14 0%, #0b0b10 44%, #151018 100%);
  animation: heroZoom 22s var(--ease) both;
}

.hero-bleed__media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 15%, transparent 78%);
  pointer-events: none;
}

.hero-bleed__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 28%, transparent 52%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-bleed__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: 6.5rem 0 4.75rem;
  color: #fff;
}

.hero-bleed__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8.5vw, 5.1rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin: 0 0 0.95rem;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 10px 32px rgba(0, 0, 0, 0.35);
  animation: rise 0.85s var(--ease) both;
}

.hero-bleed__logo {
  width: clamp(2.85rem, 7vw, 4.2rem);
  height: clamp(2.85rem, 7vw, 4.2rem);
  border-radius: 0.95rem;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 14px 36px rgba(0, 0, 0, 0.35);
  animation: rise 0.85s var(--ease) both, heroLogoPulse 4.5s ease-in-out 0.8s infinite;
}

.hero-bleed__wordmark {
  color: #fff;
}

.hero-bleed__wordmark span {
  background: var(--story-ring);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.hero-bleed__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  max-width: 15ch;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.3);
  animation: rise 0.85s var(--ease) 0.08s both;
}

.hero-bleed__lede {
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 32rem;
  margin: 0 0 1.6rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  animation: rise 0.85s var(--ease) 0.14s both;
}

.hero-bleed__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.85s var(--ease) 0.2s both;
}

.hero-bleed__btn-primary {
  background: linear-gradient(135deg, #ff6b8a 0%, #d9044a 52%, #a10336 100%);
  border: 0;
  color: #fff !important;
  padding: 0.8rem 1.35rem;
  box-shadow: 0 12px 28px rgba(217, 4, 74, 0.4);
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.hero-bleed__btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: #fff !important;
}

.hero-bleed__btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
  padding: 0.8rem 1.25rem;
  backdrop-filter: blur(10px);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-bleed__btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff !important;
}

.hero-bleed__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 2;
  width: 1.5rem;
  height: 2.2rem;
  margin-left: -0.75rem;
  display: flex;
  justify-content: center;
  text-decoration: none;
  opacity: 0.85;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.hero-bleed__scroll:hover {
  opacity: 1;
}

.hero-bleed__scroll-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform-origin: top center;
  animation: heroScroll 1.8s var(--ease) infinite;
}

@media (max-width: 575.98px) {
  .hero-bleed {
    min-height: min(86vh, 620px);
  }

  .hero-bleed__content {
    padding: 5rem 0 4.25rem;
  }

  .hero-bleed__headline {
    max-width: 14ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bleed__media,
  .hero-bleed__logo,
  .hero-bleed__scroll-line {
    animation: none !important;
  }
}

/* —— Sections —— */
.section {
  padding: 3.75rem 0;
}

.section-head {
  margin-bottom: 1.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.4rem;
}

.section-sub {
  color: var(--muted);
  margin: 0;
  max-width: 34rem;
  line-height: 1.55;
  font-size: 0.98rem;
}

.section-rail {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

/* —— Social feed —— */
.feed {
  max-width: min(54rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feed-post {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  animation: rise 0.7s var(--ease) both;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.feed-post:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .feed-post {
    flex-direction: row;
    align-items: stretch;
  }
}

.feed-post__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin-bottom: 0.85rem;
}

.feed-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  text-decoration: none;
}

.feed-post__who {
  min-width: 0;
  flex: 1;
}

.feed-post__name {
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-post__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.feed-post__media {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 320px;
  background: var(--wash);
  overflow: hidden;
}

@media (min-width: 768px) {
  .feed-post__media {
    width: 210px;
    max-height: none;
    align-self: stretch;
  }
}

@media (min-width: 992px) {
  .feed-post__media {
    width: 248px;
  }
}

.feed-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.feed-post:hover .feed-post__media img {
  transform: scale(1.04);
}

.feed-post__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.3rem 1.3rem;
}

.feed-post__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.55rem;
  line-height: 1.18;
}

.feed-post__title a {
  color: var(--ink);
  text-decoration: none;
}

.feed-post__title a:hover {
  color: var(--brand);
}

.feed-post__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.58;
  margin: 0 0 1rem;
  flex: 1 1 auto;
}

.feed-post__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.feed-stats {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 650;
}

/* —— Stories / creators —— */
.stories {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.85rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.stories::-webkit-scrollbar {
  height: 0;
}

.story {
  flex: 0 0 auto;
  width: 4.85rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease);
}

.story:hover {
  transform: translateY(-4px);
}

.story__ring {
  width: 4.35rem;
  height: 4.35rem;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  padding: 3px;
  background: var(--story-ring);
}

.story__face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand);
}

.story__label {
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Trending list —— */
.trend-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.trend-item {
  display: grid;
  grid-template-columns: 2.35rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.trend-item:hover .trend-item__title {
  color: var(--brand);
}

.trend-item__rank {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brand);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.trend-item__title {
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.15rem;
  transition: color 0.2s ease;
}

.trend-item__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— Topics —— */
.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.topic {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.topic:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--brand);
  background: var(--brand-soft);
}

.topic span {
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.35rem;
}

/* —— Newsletter —— */
.newsletter {
  padding: 3rem 0;
  border-block: 0;
  background:
    linear-gradient(120deg, rgba(194, 65, 12, 0.06), transparent 48%),
    linear-gradient(300deg, rgba(30, 58, 95, 0.05), transparent 42%),
    var(--surface);
  border-radius: var(--radius-lg);
  margin-inline: auto;
  max-width: calc(var(--feed-max) - 2rem);
  box-shadow: var(--shadow-soft);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.72rem 0.95rem;
}

.newsletter-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
  outline-offset: 1px;
}

/* —— Search shell (non-hero) —— */
.search-shell {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 36rem;
  box-shadow: var(--shadow-soft);
}

.search-shell input {
  border: 0;
  background: transparent;
  box-shadow: none !important;
  padding-left: 0.75rem;
  color: var(--ink);
}

.search-shell input:focus {
  outline: none;
}

/* —— Article page —— */
.article-hero {
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 8% -25%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 55%),
    radial-gradient(700px 360px at 95% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%),
    color-mix(in srgb, var(--surface) 60%, transparent);
}

.article-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .article-hero__grid {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
}

.article-hero__media {
  margin: 0;
  flex: 0 0 auto;
  width: min(100%, 280px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  aspect-ratio: 9 / 16;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .article-hero__media {
    width: 280px;
  }
}

@media (min-width: 992px) {
  .article-hero__media {
    width: 320px;
  }
}

.article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.article-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.04;
  margin: 0 0 1rem;
}

.article-hero__lede {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.15rem;
}

.article-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.article-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
}

.article-topic {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.article-topic:hover {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 16%, var(--brand-soft));
}

/* Shared page header (listings, static pages) */
.page-hero {
  padding: clamp(2rem, 5vw, 3.15rem) 0 clamp(1.35rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 8% -25%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 55%),
    radial-gradient(700px 360px at 95% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%),
    color-mix(in srgb, var(--surface) 60%, transparent);
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.04;
  margin: 0 0 0.75rem;
}

.page-hero__lede {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 40rem;
  margin: 0;
}

.page-hero__creator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-hero__creator .page-hero__title {
  margin-bottom: 0.35rem;
}

.article-page {
  padding: clamp(2rem, 4vw, 3rem) 0 4rem;
}

.article-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 2.75rem;
  }

  .article-layout:not(:has(.article-sidebar)) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 48rem;
  }
}

.article-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-sidebar__stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .article-sidebar .sticky-lg-top {
    top: calc(var(--nav-h) + 1rem);
  }
}

.article-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  box-shadow: var(--shadow-soft);
}

.article-panel--prose {
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.article-panel--reel {
  padding-bottom: 1rem;
}

.article-panel__head {
  margin-bottom: 1rem;
}

.article-panel__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.article-muted {
  color: var(--muted);
  margin: 0 0 1rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 0.15rem;
}

/* Instagram embed (main column) */
.reel-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reel-embed__frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: calc(var(--radius-lg) - 0.15rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.reel-embed__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-embed__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.reel-embed__link::after {
  content: "→";
}

.prose {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.prose h1 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

.prose h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 2.25rem 0 0.85rem;
  padding-top: 0.35rem;
}

.prose h3 {
  font-size: 1.12rem;
  margin: 1.65rem 0 0.65rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.05rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  font-weight: 600;
}

.prose img {
  border-radius: var(--radius);
  margin: 1.25rem 0;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--brand-bright);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}

.key-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.key-points li {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.55;
}

.key-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--wash) 45%, var(--surface));
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.faq-item__trigger:hover {
  background: color-mix(in srgb, var(--brand) 4%, transparent);
}

.faq-item__icon {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__body {
  padding: 0 1rem 1rem;
}

.faq-item__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.share-pill:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
}

.share-pill.is-copied {
  background: color-mix(in srgb, #22c55e 14%, var(--surface));
  border-color: color-mix(in srgb, #22c55e 35%, var(--line));
  color: #15803d;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.comment-box {
  background: color-mix(in srgb, var(--wash) 50%, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
}

.comment-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.45rem;
}

.comment-box__author {
  font-weight: 700;
}

.comment-box__time {
  font-size: 0.78rem;
  color: var(--muted);
}

.comment-box__body {
  margin: 0;
  line-height: 1.6;
}

.comment-form {
  margin-top: 0.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.related-card {
  display: flex;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  padding: 0.55rem;
  margin: -0.55rem;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.related-card:hover {
  background: color-mix(in srgb, var(--brand) 5%, transparent);
}

.related-card__thumb {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.1rem);
  flex-shrink: 0;
  background: var(--wash);
  border: 1px solid var(--line);
}

.related-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.related-card__title {
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.related-card__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.article-more {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.article-more__block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.more-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .more-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.more-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.more-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.more-card__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--wash);
  display: block;
}

.more-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 0.95rem 1.05rem;
  min-width: 0;
}

.more-card__title {
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-card__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Legacy aliases */
.article-cover__grid { display: grid; }
.related-thumb {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: var(--wash);
}

.form-panel,
.related-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.promote-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.promote-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.promote-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}

.existing-submission {
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
}

.existing-submission__link {
  display: inline-block;
  font-weight: 700;
  color: var(--brand) !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  word-break: break-word;
}

.process-panel {
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem 1.15rem;
  animation: rise 0.55s ease both;
}

.process-panel.is-failed {
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, #c45c5c 16%, transparent), transparent 55%),
    var(--surface);
}

.process-panel.is-done .process-orb__ring,
.process-panel.is-done .process-orb__core,
.process-panel.is-done .process-meter__bar,
.process-panel.is-done .process-pulse span,
.process-panel.is-done .process-step__dot,
.process-panel.is-failed .process-orb__ring,
.process-panel.is-failed .process-orb__core,
.process-panel.is-failed .process-meter__bar,
.process-panel.is-failed .process-pulse span {
  animation: none !important;
}

.process-panel.is-done .process-meter__bar {
  width: 100% !important;
  background: var(--brand);
  background-size: auto;
}

.process-panel__header {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.process-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  line-height: 1.25;
}

.process-panel__detail {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.process-panel__error {
  margin-top: 0.85rem;
  color: #b42318;
  font-size: 0.9rem;
}

.process-orb {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.process-orb__ring,
.process-orb__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.process-orb__ring {
  border: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-top-color: var(--brand);
  animation: processSpin 0.9s linear infinite;
}

.process-orb__core {
  inset: 0.55rem;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  animation: processPulse 1.4s ease-in-out infinite;
}

.process-orb--done {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  animation: rise 0.4s ease both;
}

.process-meter {
  height: 0.55rem;
  background: var(--wash);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.process-meter__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand) 75%, #222),
    var(--brand),
    color-mix(in srgb, var(--brand) 70%, #fff)
  );
  background-size: 200% 100%;
  transition: width 0.45s ease;
  animation: processShimmer 1.8s linear infinite;
}

.process-meter__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.process-pulse {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
}

.process-pulse span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.35;
  animation: processDot 1.1s ease-in-out infinite;
}

.process-pulse span:nth-child(2) { animation-delay: 0.15s; }
.process-pulse span:nth-child(3) { animation-delay: 0.3s; }

.process-steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.process-step__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--line) 80%, var(--muted));
  flex: 0 0 auto;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.process-step.is-active {
  color: var(--ink);
  font-weight: 650;
}

.process-step.is-active .process-step__dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
  animation: processPulse 1.4s ease-in-out infinite;
}

.process-step.is-complete {
  color: var(--ink);
}

.process-step.is-complete .process-step__dot {
  background: var(--brand);
}

.submit-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.submit-busy[hidden] {
  display: none !important;
}

.submit-idle-label[hidden] {
  display: none !important;
}

#submit-reel-btn.is-busy {
  cursor: wait;
  opacity: 0.92;
}

.submit-busy__spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, #fff 35%, transparent);
  border-top-color: #fff;
  animation: processSpin 0.75s linear infinite;
}

@keyframes processSpin {
  to { transform: rotate(360deg); }
}

@keyframes processPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes processShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes processDot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}

.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.site-footer {
  margin-top: 3rem;
  border-top: 0;
  padding: 3.5rem 0 2.5rem;
  color: rgba(241, 245, 249, 0.75);
  background:
    linear-gradient(160deg, #1e3a5f 0%, #1c1917 100%);
}

.site-footer a {
  color: rgba(241, 245, 249, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-bright);
}

.site-footer .brand-mark {
  color: #fff !important;
}

.site-footer .brand-mark__accent {
  color: var(--brand-bright);
}

.site-footer .text-body {
  color: #fff !important;
}

.display-font {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.taxonomy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Legacy article-row → map to feed spacing on listing pages */
.article-row {
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

@keyframes heroGlow {
  from {
    opacity: 0.75;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate3d(1.5%, -1%, 0) scale(1.04);
  }
}

@keyframes heroLogoPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 14px 36px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.35),
      0 16px 40px rgba(0, 0, 0, 0.4);
  }
}

@keyframes heroScroll {
  0% {
    transform: scaleY(0.35);
    opacity: 0.25;
  }
  40% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.35);
    opacity: 0.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep submit/process motion visible; only tone down page scroll. */
  html {
    scroll-behavior: auto;
  }
}

/* —— Pagination —— */
.pager {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.pager__summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.pager__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.pager__link:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: var(--brand-soft);
}

.pager__link.is-current {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  border-color: transparent;
  color: #fff !important;
}

[data-bs-theme="dark"] .pager__link.is-current {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  border-color: transparent;
  color: #fff !important;
}

.pager__link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pager__gap {
  display: inline-flex;
  align-items: center;
  min-width: 1.5rem;
  justify-content: center;
  color: var(--muted);
}

/* —— Intopinto: editorial hero —— */
.hero-editorial {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 88% 15%, rgba(234, 88, 12, 0.07), transparent 62%),
    radial-gradient(ellipse 45% 55% at 8% 85%, rgba(30, 58, 95, 0.06), transparent 58%),
    var(--paper);
}

.hero-editorial__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-editorial__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.hero-editorial__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero-editorial__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero-editorial__title span {
  color: var(--brand);
}

.hero-editorial__lede {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-editorial__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-editorial__visual {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(30, 58, 95, 0.12) 0%, rgba(194, 65, 12, 0.08) 55%, rgba(234, 88, 12, 0.06) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-editorial__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 25, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 23, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
}

.hero-editorial__cards {
  position: absolute;
  inset: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-content: center;
}

.hero-editorial__card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  animation: rise 0.8s var(--ease) both;
}

.hero-editorial__card:nth-child(2) {
  animation-delay: 0.1s;
  transform: translateY(1.25rem);
}

.hero-editorial__card:nth-child(3) {
  animation-delay: 0.18s;
}

.hero-editorial__card:nth-child(4) {
  animation-delay: 0.26s;
  transform: translateY(1.25rem);
}

.hero-editorial__card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.hero-editorial__card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

/* —— Intopinto: magazine grid —— */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
  animation: rise 0.7s var(--ease) both;
}

.mag-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
}

.mag-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--wash);
  overflow: hidden;
}

.mag-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.mag-card:hover .mag-card__thumb img {
  transform: scale(1.05);
}

.mag-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
  gap: 0.5rem;
}

.mag-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.mag-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.mag-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}

.mag-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.mag-card__title a:hover {
  color: var(--brand);
}

.mag-card__excerpt {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.mag-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.mag-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.mag-card__avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* —— Intopinto: creator chips —— */
.creator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.creator-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem 0.45rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease);
}

.creator-chip:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--brand-soft);
  transform: translateY(-2px);
  color: var(--ink);
}

.creator-chip__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* —— Intopinto: trending cards —— */
.trend-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .trend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trend-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trend-card:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  box-shadow: var(--shadow-soft);
}

.trend-card__rank {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.trend-card__title {
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.35;
  margin: 0 0 0.25rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.trend-card:hover .trend-card__title {
  color: var(--brand);
}

.trend-card__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.section--alt {
  background: color-mix(in srgb, var(--wash) 60%, transparent);
  border-block: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
}

.page-hero,
.article-hero {
  background:
    linear-gradient(135deg, rgba(194, 65, 12, 0.05) 0%, transparent 50%),
    linear-gradient(225deg, rgba(30, 58, 95, 0.05) 0%, transparent 45%),
    var(--surface);
}
