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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body.dara-theme {
  min-height: 100%;
  background: #fff;
  color: #171717;
}

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

button,
a {
  font-family: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100%;
  background: #fff;
}

.page-header {
  background: #fff;
  padding: 8px;
}

.page-header-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #eaf1ff;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.site-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pill-sm {
  padding: 11px 20px;
  font-size: 12px;
  line-height: 18px;
}

.pill-lg {
  padding: 17px 24px;
  font-size: 14px;
  line-height: 21px;
}

.pill-solid {
  background: #286fff;
  color: #fff;
}

.pill-solid:hover {
  background: #2465e8;
}

.pill-outline {
  border: 2px solid #286fff;
  background: #fff;
  color: #286fff;
}

.pill-outline:hover {
  background: #eaf1ff;
}

.article-detail {
  background: #fff;
  padding: 24px 24px 64px;
}

.article-header,
.article-body,
.article-after {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-pills li,
.card-pill {
  width: fit-content;
  border-radius: 9999px;
  background: #eaf1ff;
  color: #286fff;
  font-weight: 500;
}

.tag-pills li {
  padding: 6px 16px;
  font-size: 14px;
  line-height: 20px;
}

.card-pill {
  padding: 4px 12px;
  font-size: 12px;
}

.article-header h1 {
  margin: 0;
  color: #171717;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  color: #525252;
  font-size: 14px;
  line-height: 20px;
}

.article-meta span,
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-row span {
  color: #171717;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.share-row ul {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-row a {
  display: flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #286fff;
}

.share-row a:hover {
  background: #eaf1ff;
}

.article-hero {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

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

.article-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  color: #525252;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: -0.1px;
}

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

.article-body p,
.article-body blockquote {
  margin: 0;
}

.article-body h2 {
  margin: 16px 0 0;
  color: #171717;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.article-body ul,
.article-body ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
}

.article-body ol {
  gap: 12px;
}

.article-body li {
  color: #525252;
}

.article-body li strong {
  color: #171717;
  font-weight: 600;
}

.article-body blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
}

.article-body figure {
  margin: 0;
}

.article-after {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.feedback {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feedback span:first-child {
  color: #171717;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.vote-btn {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #525252;
  cursor: pointer;
}

.vote-btn:hover {
  background: #f5f5f5;
}

.vote-btn.is-up {
  background: #eaf1ff;
  color: #286fff;
}

.vote-btn.is-down {
  background: #fee2e2;
  color: #dc2626;
}

.feedback-thanks {
  color: #737373;
  font-size: 14px;
}

.author-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fafafa;
}

.author-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-card-top img {
  height: 56px;
  width: 56px;
  border-radius: 9999px;
  object-fit: cover;
}

.author-name {
  display: block;
  color: #171717;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.author-role {
  display: block;
  color: #737373;
  font-size: 14px;
  line-height: 20px;
}

.author-card p {
  margin: 0;
  color: #525252;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.1px;
}

.related-articles,
.ready-cta {
  background: #fff;
  padding: 64px 24px;
}

.ready-cta {
  padding-top: 0;
  padding-bottom: 96px;
}

.related-inner,
.ready-cta-card {
  max-width: 1248px;
  margin: 0 auto;
}

.related-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.related-inner h2 {
  margin: 0;
  color: #171717;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.article-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
}

.article-card h3 {
  margin: 0;
  color: #171717;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.2px;
}

.card-meta {
  margin: 0;
  color: #737373;
  font-size: 14px;
  line-height: 21px;
}

.read-article {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  color: #286fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.read-article:hover {
  text-decoration: underline;
}

.article-card img {
  margin-top: auto;
  aspect-ratio: 3 / 2;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.empty-state {
  margin: 0;
  padding: 40px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  color: #737373;
  font-size: 14px;
  text-align: center;
}

.ready-cta-card {
  position: relative;
  display: flex;
  min-height: 480px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f5f5;
  padding: 64px 24px;
}

.ready-cta-dots {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(circle, #a3a3a3 1px, transparent 1px);
  background-size: 36px 36px;
}

.cta-avatar {
  display: none;
  position: absolute;
  border: 4px solid #fff;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.12);
}

.ready-cta-copy {
  position: relative;
  display: flex;
  max-width: 560px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ready-cta-copy h2 {
  margin: 0;
  max-width: 420px;
  color: #171717;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.9px;
  text-align: center;
}

.ready-cta-copy p {
  margin: 0;
  max-width: 520px;
  color: #525252;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: -0.1px;
  text-align: center;
}

.footer-wrap {
  background: #fff;
  padding: 8px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #286fff;
  padding: 48px 20px 0;
  color: #fff;
}

.footer-inner {
  max-width: 1248px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-grid,
.footer-columns {
  display: grid;
  gap: 40px;
}

.footer-columns {
  grid-template-columns: 1fr 1fr;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand p {
  margin: 0;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.1px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-socials a {
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  color: #fff;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer-columns nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-columns h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.1px;
}

.footer-columns ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-columns a,
.footer-legal a,
.footer-legal span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.1px;
  text-decoration: none;
}

.footer-columns a:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0 16px;
}

.footer-legal span {
  order: 2;
}

.footer-legal div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-watermark {
  margin: 0;
  user-select: none;
  text-align: center;
  font-size: 22vw;
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.2);
}

.desktop-only {
  display: none;
}

.listing-pagination {
  display: flex;
  justify-content: center;
}

.listing-pagination .nav-links {
  display: flex;
  gap: 8px;
}

.listing-pagination a,
.listing-pagination span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #171717;
  text-decoration: none;
}

.listing-pagination .current {
  background: #286fff;
  color: #fff;
}

@media (min-width: 640px) {
  .site-header {
    gap: 32px;
    padding: 16px 24px;
  }

  .site-logo img {
    height: 52px;
  }

  .site-logo.footer-logo img {
    height: 44px;
  }

  .site-footer {
    padding: 64px 24px 0;
  }
}

@media (min-width: 768px) {
  .article-cards {
    grid-template-columns: 1fr 1fr;
  }

  .cta-avatar {
    display: block;
  }

  .cta-avatar.left-1 { left: 12%; top: 12%; height: 112px; width: 112px; }
  .cta-avatar.left-2 { left: 2%; top: 44%; height: 72px; width: 72px; }
  .cta-avatar.left-3 { left: 16%; top: 50%; height: 96px; width: 96px; }
  .cta-avatar.left-4 { left: 6%; bottom: 10%; height: 104px; width: 104px; }
  .cta-avatar.right-1 { right: 12%; top: 12%; height: 112px; width: 112px; }
  .cta-avatar.right-2 { right: 14%; top: 46%; height: 96px; width: 96px; }
  .cta-avatar.right-3 { right: 2%; top: 48%; height: 72px; width: 72px; }
  .cta-avatar.right-4 { right: 5%; bottom: 10%; height: 104px; width: 104px; }
}

@media (min-width: 1024px) {
  .site-header {
    padding: 16px 96px;
  }

  .site-logo img {
    height: 60px;
  }

  .article-detail,
  .related-articles {
    padding-left: 96px;
    padding-right: 96px;
  }

  .ready-cta {
    padding-left: 96px;
    padding-right: 96px;
  }

  .article-header h1 {
    font-size: 46px;
  }

  .article-body h2 {
    font-size: 28px;
  }

  .related-inner h2 {
    font-size: 38px;
  }

  .article-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ready-cta-copy h2 {
    font-size: 44px;
  }

  .site-footer {
    padding: 96px 96px 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer-columns {
    display: contents;
  }

  .footer-legal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
  }

  .footer-legal span {
    order: 0;
  }

  .footer-legal div {
    display: flex;
    gap: 32px;
  }

  .desktop-only {
    display: list-item;
  }

  .footer-watermark {
    font-size: 19vw;
  }
}
