:root {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.apple-store-logo--light {
  filter: brightness(0) invert(1);
}

.section-nav-link {
  position: relative;
  border-radius: 0.625rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.section-nav-link[aria-current="page"] {
  color: #8a1c36;
  background: #fcf4f6;
  box-shadow: inset 0 0 0 1px #f0cad4;
}

.blog-hero,
.mesh-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #fff;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.blog-hero::before,
.mesh-hero::before {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at var(--blog-mesh-x1, 16%) var(--blog-mesh-y1, 12%), var(--blog-mesh-color-1, rgba(0, 122, 255, 0.06)) 0%, transparent 48%),
    radial-gradient(ellipse at var(--blog-mesh-x2, 50%) var(--blog-mesh-y2, 12%), var(--blog-mesh-color-2, rgba(26, 54, 93, 0.06)) 0%, transparent 46%),
    radial-gradient(ellipse at var(--blog-mesh-x3, 84%) var(--blog-mesh-y3, 12%), var(--blog-mesh-color-3, rgba(138, 28, 54, 0.06)) 0%, transparent 48%),
    radial-gradient(ellipse at var(--blog-mesh-x4, 88%) var(--blog-mesh-y4, 50%), var(--blog-mesh-color-4, rgba(36, 102, 54, 0.06)) 0%, transparent 46%),
    radial-gradient(ellipse at var(--blog-mesh-x5, 84%) var(--blog-mesh-y5, 86%), var(--blog-mesh-color-5, rgba(66, 83, 165, 0.06)) 0%, transparent 48%),
    radial-gradient(ellipse at var(--blog-mesh-x6, 50%) var(--blog-mesh-y6, 88%), var(--blog-mesh-color-6, rgba(0, 121, 107, 0.06)) 0%, transparent 46%),
    radial-gradient(ellipse at var(--blog-mesh-x7, 16%) var(--blog-mesh-y7, 86%), var(--blog-mesh-color-7, rgba(154, 106, 0, 0.06)) 0%, transparent 48%),
    radial-gradient(ellipse at var(--blog-mesh-x8, 12%) var(--blog-mesh-y8, 50%), var(--blog-mesh-color-8, rgba(109, 63, 115, 0.06)) 0%, transparent 46%),
    radial-gradient(ellipse at var(--blog-mesh-x9, 50%) var(--blog-mesh-y9, 50%), var(--blog-mesh-color-9, rgba(85, 95, 109, 0.025)) 0%, transparent 42%);
  animation: blog-mesh-drift 28s ease-in-out infinite alternate;
}

.blog-hero > *,
.mesh-hero > * {
  position: relative;
  z-index: 1;
}

@keyframes blog-mesh-drift {
  from {
    transform: translate3d(-1%, -0.5%, 0) scale(1.02);
  }

  to {
    transform: translate3d(1%, 0.5%, 0) scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero::before,
  .mesh-hero::before {
    animation: none;
  }
}

.blog-hero h1 {
  color: #1c1c1e;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.blog-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 14px 35px -26px rgba(15, 23, 42, 0.35);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: #e8a6b7;
  box-shadow: 0 24px 50px -30px rgba(138, 28, 54, 0.4);
}

.blog-card:focus-within {
  outline: 3px solid rgba(138, 28, 54, 0.22);
  outline-offset: 3px;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f1f5f9;
}

.blog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.blog-card-title-link {
  color: inherit;
  text-decoration: none;
}

.blog-card-title-link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.blog-card-inner {
  position: relative;
}

.blog-search {
  width: min(100%, 38rem);
  min-height: 3.25rem;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  box-shadow: 0 8px 24px -20px rgba(15, 23, 42, 0.4);
}

.blog-search:focus {
  border-color: #8a1c36;
  outline: 3px solid rgba(138, 28, 54, 0.16);
}

.article-shell {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
}

.article-reading-column {
  width: min(100%, 48rem);
  margin: 0 auto;
}

.article-device-frame {
  width: min(100%, 45rem);
}

.article-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.article-prose {
  color: #334155;
  font-size: clamp(1.05rem, 1.6vw, 1.16rem);
  line-height: 1.82;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
  color: #0f172a;
  line-height: 1.25;
  scroll-margin-top: 7rem;
}

.article-prose h2 {
  margin: 3.25rem 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
}

.article-prose h3 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.4rem;
}

.article-prose p,
.article-prose ul,
.article-prose ol,
.article-prose blockquote,
.article-prose figure {
  margin: 0 0 1.5rem;
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.5rem;
}

.article-prose li {
  margin: 0.5rem 0;
}

.article-prose table {
  width: 100%;
  margin: 0 0 1.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  font-size: 0.95em;
  line-height: 1.55;
}

.article-prose thead {
  background: #f8fafc;
}

.article-prose th,
.article-prose td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.article-prose th + th,
.article-prose td + td {
  border-left: 1px solid #e2e8f0;
}

.article-prose th {
  color: #0f172a;
  font-weight: 700;
}

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

.article-prose a {
  color: #8a1c36;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-prose img,
.article-prose video,
.article-prose iframe {
  max-width: 100%;
  border-radius: 1rem;
}

.article-prose audio {
  width: 100%;
  max-width: 100%;
}

.article-prose figure {
  margin-right: 0;
  margin-left: 0;
}

.article-prose figcaption {
  margin-top: 0.65rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.article-prose blockquote {
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid #c94c6b;
  color: #475569;
}

.article-prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.9rem;
}

.article-prose code:not(pre code) {
  padding: 0.12rem 0.32rem;
  border-radius: 0.35rem;
  background: #f1f5f9;
  font-size: 0.92em;
}

.article-notice {
  padding: 1.15rem 1.25rem;
  border: 1px solid #f0cad4;
  border-radius: 1rem;
  background: #fcf4f6;
  color: #681428;
  font-size: 0.94rem;
  line-height: 1.6;
}

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

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .section-nav-link {
    transition: none;
  }
}
