/* AskOut Blog — lightweight styles aligned with askout.me */

:root {
  --color-primary: #8c54cc;
  --color-purple-600: #9333ea;
  --color-violet-600: #7c3aed;
  --color-indigo-600: #4f46e5;
  --color-purple-700: #7e22ce;
  --color-violet-700: #6d28d9;
  --color-text: #111827;
  --color-text-body: #4b5563;
  --color-text-muted: #9ca3af;
  --color-bg: #ffffff;
  --color-border: #f3f4f6;
  --color-card-border: #e5e7eb;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --radius-card: 1rem;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 24px rgba(140, 84, 204, 0.08);
  --max-site: 80rem;
  --max-wide: 72rem;
  --max-narrow: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--color-purple-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-violet-600);
}

.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: var(--max-narrow);
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header — flat, same as askout.me (no elevation) */
.site-header {
  background: transparent;
  margin-top: 0.5rem;
}

.header-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .site-header {
    margin-top: 1rem;
  }

  .header-inner {
    padding: 1rem 1.5rem;
  }
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  height: 1.5rem;
  width: auto;
  display: block;
}

@media (min-width: 640px) {
  .logo {
    height: 2rem;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .nav-desktop {
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: #4b5563;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

@media (min-width: 640px) {
  .nav-link {
    font-size: 1rem;
  }
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-purple-600);
}

.nav-link-cta {
  color: var(--color-purple-600);
  font-weight: 600;
}

.nav-link-cta:hover {
  color: var(--color-purple-700);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-purple-600), var(--color-violet-600));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
  background: linear-gradient(to right, var(--color-purple-700), var(--color-violet-700));
  transform: scale(1.05);
  color: #fff !important;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.5rem;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-toggle:hover {
  color: var(--color-purple-600);
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 640px) {
  .menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  margin-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

@media (min-width: 640px) {
  .nav-mobile {
    margin-top: 1rem;
    padding-bottom: 1rem;
  }

  .nav-mobile-inner {
    gap: 1rem;
    padding-top: 1rem;
  }
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

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

/* Blog hero */
.blog-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  margin-top: 1rem;
  text-align: center;
  background: #ffffff;
}

.blog-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d8b4fe, transparent);
}

.blog-hero .container {
  position: relative;
}

@media (min-width: 768px) {
  .blog-hero {
    padding: 4rem 0 3rem;
  }
}

.hero-title {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

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

.gradient-text {
  background: linear-gradient(
    to right,
    var(--color-purple-600),
    var(--color-violet-600),
    var(--color-indigo-600)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Section headings shared by the grid and carousel */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.625rem;
  }
}

/* Featured banner — latest post */
.featured-section {
  padding: 2.5rem 0 0.5rem;
}

.featured-post {
  position: relative;
  border: 1px solid rgba(140, 84, 204, 0.22);
  border-radius: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.05),
    #ffffff 45%,
    rgba(79, 70, 229, 0.06)
  );
  box-shadow: 0 12px 40px rgba(140, 84, 204, 0.12);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-post:hover {
  border-color: rgba(140, 84, 204, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(140, 84, 204, 0.18);
}

.featured-link {
  display: flex;
  flex-direction: column-reverse;
  color: inherit;
}

.featured-link:hover {
  color: inherit;
}

.featured-copy {
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-purple-600), var(--color-violet-600));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-title {
  margin: 0 0 0.875rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.featured-post:hover .featured-title {
  color: var(--color-purple-600);
}

.featured-excerpt {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-body);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.featured-meta .post-meta {
  margin-bottom: 0;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-purple-600), var(--color-violet-600));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.featured-post:hover .featured-cta {
  background: linear-gradient(to right, var(--color-purple-700), var(--color-violet-700));
  transform: scale(1.04);
}

.featured-media {
  margin: 0;
  overflow: hidden;
}

.featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform 0.4s ease;
}

.featured-post:hover .featured-media img {
  transform: scale(1.03);
}

@media (min-width: 900px) {
  .featured-section {
    padding-top: 3rem;
  }

  .featured-link {
    display: grid;
    grid-template-columns: minmax(0, 10fr) minmax(0, 9fr);
    align-items: stretch;
    min-height: 24rem;
  }

  .featured-link--no-media {
    display: block;
    min-height: 0;
  }

  .featured-link--no-media .featured-copy {
    max-width: none;
    padding: 2.75rem 3rem;
  }

  .featured-link--no-media .featured-title {
    max-width: 52rem;
  }

  .featured-link--no-media .featured-excerpt {
    max-width: 46rem;
  }

  .featured-copy {
    padding: 3rem 3rem 3rem 2.75rem;
  }

  .featured-title {
    font-size: 2.125rem;
  }

  .featured-excerpt {
    font-size: 1.0625rem;
  }

  .featured-media img {
    aspect-ratio: auto;
  }
}

/* Post cards — horizontal on desktop for rhythm against the carousel */
.post-list {
  padding: 2.5rem 0 1rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

.post-card {
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  border-color: rgba(140, 84, 204, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(140, 84, 204, 0.12);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  height: 100%;
}

.post-card-link:hover {
  color: inherit;
}

.post-card-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.post-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.03);
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 640px) {
  .post-card-link {
    flex-direction: row;
  }

  .post-card-media {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .post-card-body {
    padding: 1.375rem 1.5rem;
  }
}

.post-meta {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.post-card-title {
  margin: 0 0 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.post-card:hover .post-card-title {
  color: var(--color-purple-600);
}

.post-card-excerpt {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.read-more {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-purple-600);
}

/* Spotlight — tall magazine cards */
.spotlight-section {
  padding: 2.5rem 0 1rem;
}

.spotlight-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

.spotlight-card {
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-card:hover {
  border-color: rgba(140, 84, 204, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(140, 84, 204, 0.12);
}

.spotlight-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.spotlight-card-link:hover {
  color: inherit;
}

.spotlight-card-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.spotlight-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.spotlight-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spotlight-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.spotlight-card:hover .spotlight-card-title {
  color: var(--color-purple-600);
}

.spotlight-card-excerpt {
  margin: 0 0 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-body);
}

.spotlight-card--no-media .spotlight-card-body {
  padding-top: 1.75rem;
}

@media (min-width: 768px) {
  .spotlight-card-title {
    font-size: 1.375rem;
  }
}

/* Quick picks — compact dense rows */
.compact-section {
  padding: 2.5rem 0 1rem;
}

.compact-grid {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .compact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.compact-card {
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #ffffff 0%, rgba(147, 51, 234, 0.03) 100%);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  border-color: rgba(140, 84, 204, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140, 84, 204, 0.1);
}

.compact-card-link {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1rem;
  color: inherit;
  height: 100%;
}

.compact-card-link:hover {
  color: inherit;
}

.compact-card-media {
  flex: 0 0 3.75rem;
  margin: 0;
  overflow: hidden;
  border-radius: 0.625rem;
  aspect-ratio: 1;
}

.compact-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-card-body {
  min-width: 0;
  flex: 1;
}

.compact-card-body .post-meta {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.compact-card-title {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.compact-card:hover .compact-card-title {
  color: var(--color-purple-600);
}

.compact-card-excerpt {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-body);
}

/* Carousel — horizontally scrollable strip of older posts */
.carousel-section {
  padding: 2.5rem 0 2rem;
}

.carousel-nav {
  display: none;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .carousel-nav {
    display: flex;
  }
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(140, 84, 204, 0.3);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-purple-600);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn:hover {
  background: linear-gradient(to right, var(--color-purple-600), var(--color-violet-600));
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(140, 84, 204, 0.25);
}

.carousel-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Let card shadows breathe without clipping */
  padding: 0.25rem 0.25rem 1.25rem;
  margin: -0.25rem -0.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 84, 204, 0.35) transparent;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(140, 84, 204, 0.35);
  border-radius: var(--radius-pill);
}

.carousel-track::-webkit-scrollbar-track {
  background: transparent;
}

.carousel-card {
  flex: 0 0 min(76%, 18.5rem);
  scroll-snap-align: start;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-card:hover {
  border-color: rgba(140, 84, 204, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(140, 84, 204, 0.12);
}

.carousel-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.carousel-card-link:hover {
  color: inherit;
}

.carousel-card-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.carousel-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-card:hover .carousel-card-media img {
  transform: scale(1.03);
}

.carousel-card-body {
  padding: 1.125rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.carousel-card-body .post-meta {
  font-size: 0.75rem;
  margin-bottom: 0.375rem;
}

.carousel-card-title {
  margin: 0 0 0.875rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.carousel-card:hover .carousel-card-title {
  color: var(--color-purple-600);
}

.empty-state {
  color: var(--color-text-muted);
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}

.blog-hero--archive {
  padding-bottom: 1.5rem;
}

.archive-list {
  padding-top: 1.5rem;
}

/* Pagination */
.pagination {
  padding: 1rem 0 4rem;
}

.pagination-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(140, 84, 204, 0.3);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-purple-600);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pagination-btn svg {
  width: 1rem;
  height: 1rem;
}

.pagination-btn:hover {
  background: linear-gradient(to right, var(--color-purple-600), var(--color-violet-600));
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}

.pagination-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-body);
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination-page:hover {
  background: rgba(140, 84, 204, 0.1);
  color: var(--color-purple-600);
}

.pagination-page.is-current {
  background: linear-gradient(to right, var(--color-purple-600), var(--color-violet-600));
  color: #fff;
}

/* Article */
.article {
  padding: 0 0 4rem;
}

/* Hero header: title on the left, hero image on the right, white background */
.deck-hero {
  position: relative;
  background: #ffffff;
  padding: 2.5rem 1rem 3rem;
  margin-top: 1rem;
}

.deck-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d8b4fe, transparent);
}

.deck-hero-inner {
  position: relative;
  max-width: var(--max-site);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.deck-hero-copy {
  text-align: center;
}

.deck-hero-media {
  margin: 0;
}

.deck-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(140, 84, 204, 0.2);
}

@media (min-width: 900px) {
  .deck-hero {
    padding: 4rem 2rem;
  }

  .deck-hero-inner {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: 3.5rem;
  }

  /* No hero image: let the copy own the full row, centered and comfortably narrow */
  .deck-hero-inner--no-media {
    grid-template-columns: 1fr;
    max-width: 52rem;
  }

  .deck-hero-copy {
    text-align: left;
  }

  /* Responsive title: prevents 5-line wrap in the narrow left column */
  .deck-hero-copy .article-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
  }

  .deck-hero-copy .breadcrumb,
  .deck-hero-copy .article-meta,
  .deck-hero-copy .tag-list {
    justify-content: flex-start;
  }
}

/* Article layout: narrow centered column by default, side rails on wide screens */
.article-layout {
  width: 100%;
  max-width: var(--max-narrow);
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .article-layout {
    padding: 0 1.5rem;
  }
}

.article-rail {
  display: none;
}

@media (min-width: 1200px) {
  .article-layout {
    max-width: var(--max-site);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--max-narrow)) minmax(0, 1fr);
    column-gap: 3rem;
    align-items: stretch;
  }

  .article-rail {
    display: block;
    height: 100%;
  }
}

/* Table of contents (left rail) — sticks roughly vertically centered in the viewport */
.toc {
  position: sticky;
  top: calc(50vh - 10rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 0.25rem 0;
}

.toc-heading {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

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

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 0.375rem 0 0.375rem 0.875rem;
  border-left: 2px solid var(--color-card-border);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-body);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc a:hover {
  color: var(--color-purple-600);
}

.toc a.is-active {
  border-left-color: var(--color-purple-600);
  color: var(--color-purple-600);
  font-weight: 600;
}

/* App download CTA (right rail) — sticks roughly vertically centered in the viewport */
.rail-cta {
  position: sticky;
  top: calc(50vh - 12rem);
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(140, 84, 204, 0.2);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
}

/* Gradient accent along the top edge */
.rail-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--color-purple-600),
    var(--color-violet-600),
    var(--color-indigo-600)
  );
}

.rail-cta-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, #f3e8ff, #ede9fe);
}

.rail-cta-logo img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.rail-cta-title {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.rail-cta-text {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-body);
}

.rail-badges {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.rail-badges .store-badge {
  justify-content: center;
}

.rail-cta-note {
  margin: 0.875rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* Fade the rails away once the end-of-article CTA is on screen */
.toc,
.rail-cta {
  transition: opacity 0.35s ease, visibility 0.35s;
}

.rails-hidden .toc,
.rails-hidden .rail-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-text-body);
}

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

.breadcrumb-sep {
  color: var(--color-text-muted);
}

.article-title {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.75rem;
  }
}

.article-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.tag-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-purple-600);
  background: rgba(140, 84, 204, 0.08);
  border: 1px solid rgba(140, 84, 204, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
}

/* Prose */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-body);
}

.prose > *:first-child {
  margin-top: 0;
}

/* First paragraph reads as a lead-in */
.prose > p:first-child {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .prose > p:first-child {
    font-size: 1.1875rem;
  }
}

.prose h2 {
  margin: 3.25rem 0 1rem;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.prose h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 4px;
  margin-top: 0.625rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-purple-600), var(--color-indigo-600));
}

@media (min-width: 768px) {
  .prose h2 {
    font-size: 1.875rem;
  }
}

.prose h3 {
  margin: 2.25rem 0 0.625rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

@media (min-width: 768px) {
  .prose h3 {
    font-size: 1.25rem;
  }
}

.prose h2,
.prose h3 {
  scroll-margin-top: 2rem;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--color-primary);
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

.prose em {
  color: var(--color-text);
}

/* ==text== → highlighter sweep */
.prose mark {
  background: linear-gradient(
    120deg,
    rgba(196, 181, 253, 0) 0%,
    rgba(196, 181, 253, 0.45) 4%,
    rgba(196, 181, 253, 0.45) 96%,
    rgba(196, 181, 253, 0) 100%
  );
  color: var(--color-text);
  padding: 0.05em 0.25em;
  margin: 0 -0.05em;
  border-radius: 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ++text++ → hand-drawn style underline */
.prose ins {
  text-decoration: underline;
  text-decoration-color: rgba(140, 84, 204, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  font-style: normal;
  color: inherit;
}

.prose a {
  color: var(--color-purple-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--color-violet-600);
}

/* Blockquotes read as pull quotes to break up long text runs */
.prose blockquote {
  margin: 2.25rem 0;
  padding: 0.375rem 0 0.375rem 1.375rem;
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, var(--color-purple-600), var(--color-indigo-600)) 1;
  font-size: 1.1875rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  background: linear-gradient(
    to right,
    var(--color-purple-600),
    var(--color-violet-600),
    var(--color-indigo-600)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose blockquote p {
  margin: 0;
}

/* Highlights inside a gradient pull quote would mask the text fill */
.prose blockquote mark {
  background: none;
  color: inherit;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .prose blockquote {
    font-size: 1.3125rem;
  }
}

/* Tables */
.prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.prose thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.07),
    rgba(79, 70, 229, 0.07)
  );
  border-bottom: 1px solid rgba(140, 84, 204, 0.2);
}

.prose tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody tr:nth-child(even) {
  background: rgba(140, 84, 204, 0.03);
}

@media (max-width: 640px) {
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Inline article images */
.prose-figure {
  margin: 2rem 0;
}

.prose-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 28px rgba(140, 84, 204, 0.12);
}

.prose-figure figcaption {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--color-text-muted);
}

.prose hr {
  border: 0;
  height: 1px;
  margin: 2.5rem auto;
  background: linear-gradient(90deg, transparent, rgba(140, 84, 204, 0.35), transparent);
}

/* CTA box */
.cta-box {
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(140, 84, 204, 0.25);
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.06),
    rgba(79, 70, 229, 0.06)
  );
  text-align: center;
}

.cta-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.cta-text {
  margin: 0 0 1.25rem;
  color: var(--color-text-body);
  font-size: 0.9375rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #000;
  color: #fff !important;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #374151;
  transition: background 0.2s ease, transform 0.2s ease;
}

.store-badge:hover {
  background: #1f2937;
  color: #fff !important;
  transform: scale(1.03);
}

.store-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.store-label {
  display: block;
  font-size: 0.625rem;
  color: #d1d5db;
  line-height: 1.2;
}

.store-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.cta-home {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Footer — mirrors the main askout.me footer */
.site-footer {
  position: relative;
  background: linear-gradient(135deg, #faf5ff 0%, #fff 50%, #f5f3ff 100%);
  color: var(--color-text-body);
  padding: 3rem 0;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 232, 255, 0.2), transparent, rgba(237, 233, 254, 0.2));
  pointer-events: none;
}

.footer-rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d8b4fe, transparent);
}

.footer-inner {
  position: relative;
  max-width: 72rem; /* max-w-6xl — same as website footer */
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .footer-inner {
    padding: 0 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: left;
  }
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, #f3e8ff, #ede9fe);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.footer-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.footer-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(to right, var(--color-purple-600), var(--color-violet-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--color-text-body);
  font-weight: 400;
}

.footer-blurb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

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

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

.footer-links a {
  display: inline-block;
  color: var(--color-text-body);
  font-size: 0.875rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-purple-600);
  transform: translateX(0.25rem);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .social-links {
    justify-content: flex-start;
  }
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  color: #fff;
  background: linear-gradient(to right, #a855f7, #8b5cf6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.social-link:hover {
  color: #fff;
  background: linear-gradient(to right, var(--color-purple-600), var(--color-violet-600));
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(140, 84, 204, 0.25);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-copy {
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(216, 180, 254, 0.5);
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer {
    padding: 4rem 0;
  }

  .footer-title {
    font-size: 1.875rem;
  }

  .footer-tagline,
  .footer-blurb,
  .footer-links a {
    font-size: 1rem;
  }

  .footer-copy {
    font-size: 0.875rem;
  }
}
