:root {
  --ink: #111111;
  --body-ink: #2b2b2b;
  --muted: #5e5e5e;
  --subtle: #8a8a8a;
  --border: rgba(0, 0, 0, 0.08);
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--body-ink);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.article-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.22) 45%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-backdrop-filter: blur(16px) saturate(1.7) brightness(1.15);
  backdrop-filter: blur(16px) saturate(1.7) brightness(1.15);
  border: 0 none !important;
  border-top: 0 none !important;
  border-bottom: 0 none !important;
  outline: 0 none !important;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.06), 0 2px 8px -2px rgba(0, 0, 0, 0.03) !important;
  -webkit-box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.06), 0 2px 8px -2px rgba(0, 0, 0, 0.03) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .article-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.22) 45%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-backdrop-filter: blur(16px) saturate(1.7) brightness(1.15);
  backdrop-filter: blur(16px) saturate(1.7) brightness(1.15);
  border: 0 none !important;
  border-top: 0 none !important;
  border-bottom: 0 none !important;
  outline: 0 none !important;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.06), 0 2px 8px -2px rgba(0, 0, 0, 0.03) !important;
  -webkit-box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.06), 0 2px 8px -2px rgba(0, 0, 0, 0.03) !important;
}
}

.article-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.brand:hover {
  opacity: 0.75;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.get-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.get-app-btn:hover,
.get-app-btn:focus-visible {
  transform: none;
  box-shadow: none;
  background: transparent;
  opacity: 0.65;
  outline: none;
}

.article-main {
  flex: 1;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

.back-nav {
  margin-bottom: 32px;
}

      .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #000000;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-link svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.back-link:hover {
  color: #000000;
  opacity: 0.7;
  transform: translateX(-3px);
}

.article-meta-row {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 16px;
}

.article-title {
  font-family: "Droid Serif", Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
}

.article-lede {
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.65;
  color: #3f3f3f;
  margin: 0 0 36px;
}

.article-content {
  font-size: 17px;
  line-height: 1.76;
  color: var(--body-ink);
}

.article-content p {
  margin: 0 0 24px;
}

.article-content h2 {
  font-family: "Droid Serif", Georgia, serif;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 48px 0 18px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 28px 20px;
  padding: 0;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-figure {
  margin: 38px auto;
  max-width: 580px;
  width: 100%;
  text-align: center;
}

.article-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 370px;
  margin-inline: auto;
  border-radius: 22px;
  border: none;
  box-shadow:
    0 20px 46px -8px rgba(0, 0, 0, 0.17),
    0 9px 20px -4px rgba(0, 0, 0, 0.11),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms ease;
}

.article-figure img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 60px -10px rgba(0, 0, 0, 0.22),
    0 12px 26px -4px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.article-figure figcaption {
  font-size: 13px;
  color: var(--subtle);
  margin-top: 12px;
  font-style: italic;
}

.article-callout {
  margin: 40px 0;
  padding: 28px 32px;
  border-radius: 22px;
  background: #ffffff;
  border: none;
  box-shadow:
    0 14px 34px -4px rgba(0, 0, 0, 0.08),
    0 4px 14px -2px rgba(0, 0, 0, 0.04);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.article-callout:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 42px -4px rgba(0, 0, 0, 0.11),
    0 6px 18px -2px rgba(0, 0, 0, 0.05);
}

.article-callout p {
  margin: 0;
  font-family: "Droid Serif", Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
  color: #171717;
  font-style: italic;
}

/* Bottom CTA Section */
.article-cta {
  margin: 80px 0 32px;
  padding: 56px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.article-cta-title {
  font-family: "Droid Serif", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}

.article-cta-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 30px;
}

.store-badges {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border-radius: 11px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-badge-link:hover,
.store-badge-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.13), 0 6px 16px rgba(0, 0, 0, 0.06);
  outline: none;
}

.store-badge-link img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 11px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 36px 28px;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #000000;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a,
.footer-right a {
  color: #000000;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.footer-links a:hover,
.footer-right a:hover {
  color: #000000;
  opacity: 0.65;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000000;
  display: inline-block;
}

.footer-dot--social,
.footer-social-mobile {
  display: none;
}

@media (max-width: 680px) {
  .article-header-inner {
    padding: 14px 20px;
  }

  .brand-logo {
    height: 25px;
  }

  .get-app-btn {
    height: auto;
    padding: 4px 0;
    font-size: 14px;
  }

  .article-main {
    padding: 36px 20px 60px;
  }

  .article-figure {
    margin: 28px auto;
    max-width: 100%;
  }

  .article-figure img {
    max-height: min(280px, 50vh);
    border-radius: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-links {
    justify-content: center;
    text-align: center;
  }

  .footer-dot--social,
  .footer-social-mobile {
    display: inline-block;
  }

  .footer-right {
    display: none;
  }
}

.article-content a { color: inherit; text-underline-offset: .16em; }
.article-content a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.article-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.article-habit-grid { width: 100%; border-collapse: collapse; font-size: clamp(12px, 2.2vw, 15px); }
.article-habit-grid th, .article-habit-grid td {
  min-width: 30px;
  height: 38px;
  padding: 4px;
  border: 1px solid var(--border);
  text-align: center;
}
.article-habit-grid th:first-child { min-width: 64px; text-align: left; }
@media (prefers-reduced-motion: reduce) {
  .article-figure img, .article-callout { transition: none; }
  .article-figure img:hover, .article-callout:hover { transform: none; }
}
@media print {
  .article-header, .back-nav, .article-figure, .article-cta, .site-footer { display: none; }
  .article-main { padding: 0; }
  .article-table-wrap { break-inside: avoid; }
  .article-habit-grid th, .article-habit-grid td { border-color: #aaa; }
}
