/* ============================================================
   ATHANIFY JOURNAL — editorial blog theme
   A warm, light, publication identity. Deliberately distinct
   from the dark marketing site so articles read as honest
   writing, not as an advertisement. Brand ties stay subtle:
   the logo, emerald headings, and a single gold accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --paper: #faf8f2;        /* warm cream page */
  --card: #ffffff;         /* raised surfaces */
  --ink: #20312e;          /* body text, warm near black with an emerald tint */
  --ink-soft: #586863;     /* secondary text */
  --ink-faint: #8c9a95;    /* meta, captions */
  --emerald: #022b29;      /* brand emerald, used for headings */
  --emerald-med: #04524e;
  --gold: #a9791f;         /* deeper gold that stays readable on cream */
  --gold-bright: #d4af37;
  --gold-tint: #f3ecd6;    /* soft gold wash for tags and CTA */
  --line: #e8e3d6;         /* hairline dividers */
  --shadow: 0 14px 40px rgba(32, 49, 46, 0.08);

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 720px;       /* reading column */
  --wide: 1120px;         /* index / wide rows */
  --r: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Top bar ---------- */
.bl-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bl-nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.bl-brand { display: flex; align-items: center; gap: 11px; font-family: var(--sans); }
.bl-brand img { width: 34px; height: 34px; border-radius: 9px; }
.bl-brand b { font-size: 19px; font-weight: 800; color: var(--emerald); letter-spacing: -0.3px; }
.bl-brand span { font-size: 13px; font-weight: 600; color: var(--gold); border-left: 1px solid var(--line); padding-left: 11px; }
.bl-nav-links { display: flex; align-items: center; gap: 26px; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.bl-nav-links a { color: var(--ink-soft); transition: color 0.2s ease; }
.bl-nav-links a:hover { color: var(--emerald); }
.bl-nav-cta {
  background: var(--emerald); color: #fff !important;
  padding: 9px 18px; border-radius: 100px; font-size: 14.5px;
}
.bl-nav-cta:hover { background: var(--emerald-med); }

/* ---------- Index header ---------- */
.bl-head { max-width: var(--wide); margin: 0 auto; padding: 72px 28px 40px; text-align: center; }
.bl-head h1 { font-family: var(--sans); font-weight: 800; font-size: 46px; color: var(--emerald); letter-spacing: -1px; }
.bl-head p { font-size: 19px; color: var(--ink-soft); margin-top: 14px; font-style: italic; }

/* ---------- Article grid ---------- */
.bl-grid { max-width: var(--wide); margin: 0 auto; padding: 20px 28px 72px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
.bl-card-feature { grid-column: 1 / -1; }

.bl-card { display: flex; flex-direction: column; }
.bl-card .thumb {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  position: relative;
}
.bl-card-feature .thumb { aspect-ratio: 21 / 9; }
.bl-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bl-card:hover .thumb img { transform: scale(1.03); }

.bl-tag {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--gold);
  background: var(--gold-tint); padding: 5px 12px; border-radius: 100px;
  margin: 18px 0 12px;
}
.bl-card h2 { font-family: var(--sans); font-weight: 800; color: var(--emerald); letter-spacing: -0.5px; line-height: 1.18; }
.bl-card-feature h2 { font-size: 34px; max-width: 760px; }
.bl-card h2 { font-size: 23px; }
.bl-card .excerpt { color: var(--ink-soft); margin-top: 12px; font-size: 17px; line-height: 1.6; }
.bl-card .meta { font-family: var(--sans); font-size: 13.5px; color: var(--ink-faint); margin-top: 14px; }
.bl-card.soon { opacity: 0.62; pointer-events: none; }
.bl-card.soon .bl-tag { color: var(--ink-faint); background: #eee9dd; }

/* Placeholder featured graphic until the real image is added */
.thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.thumb-ph.privacy { background: radial-gradient(120% 90% at 80% 20%, #0a3d39, #022b29); }
.thumb-ph.focus { background: radial-gradient(120% 90% at 20% 20%, #103a52, #0d1520); }
.thumb-ph.guide { background: radial-gradient(120% 90% at 50% 0%, #04524e, #022b29); }
.thumb-ph.habit { background: radial-gradient(120% 90% at 80% 100%, #143a30, #022b29); }
.thumb-ph svg { width: 78px; height: 78px; color: rgba(212, 175, 55, 0.85); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.bl-article { padding-bottom: 40px; }
.bl-article-head { max-width: var(--measure); margin: 0 auto; padding: 56px 28px 0; }
.bl-article-head .bl-tag { margin: 0 0 18px; }
.bl-article-head h1 { font-family: var(--sans); font-weight: 800; font-size: 42px; line-height: 1.14; color: var(--emerald); letter-spacing: -1px; }
.bl-article-head .deck { font-size: 21px; color: var(--ink-soft); margin-top: 18px; line-height: 1.5; }

.bl-byline { display: flex; align-items: center; gap: 14px; margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bl-byline img { width: 46px; height: 46px; border-radius: 50%; }
.bl-byline .who { font-family: var(--sans); flex: 1; min-width: 0; }
.bl-byline .who b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.bl-byline .who span { display: block; font-size: 13.5px; color: var(--ink-faint); margin-top: 2px; }

/* Single Share button -> native OS share sheet, with a fallback menu */
.bl-share { position: relative; flex-shrink: 0; }
.bl-sharebtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--card);
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease;
}
.bl-sharebtn:hover { color: var(--emerald); border-color: var(--emerald); }
.bl-sharebtn svg { width: 16px; height: 16px; }
.bl-share-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 188px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); z-index: 30;
}
.bl-share-menu[hidden] { display: none; }
.bl-share-menu a, .bl-share-menu button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: 9px;
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: none; border: none; cursor: pointer; text-align: left;
}
.bl-share-menu a:hover, .bl-share-menu button:hover { background: var(--paper); }
.bl-share-menu svg { width: 16px; height: 16px; color: var(--ink-soft); flex-shrink: 0; }

.bl-hero-img { max-width: var(--wide); margin: 8px auto 0; padding: 0 28px; }
.bl-hero-img .frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.bl-hero-img .frame img { width: 100%; height: 100%; object-fit: cover; }
.bl-hero-img figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 10px; }

/* Long-form body */
.bl-body { max-width: var(--measure); margin: 0 auto; padding: 44px 28px 0; }
.bl-body p { margin: 0 0 24px; line-height: 1.75; }
.bl-body h2 { font-family: var(--sans); font-weight: 800; font-size: 28px; color: var(--emerald); letter-spacing: -0.5px; margin: 48px 0 18px; }
.bl-body h3 { font-family: var(--sans); font-weight: 700; font-size: 21px; color: var(--emerald-med); margin: 36px 0 14px; }
.bl-body a.inline { color: var(--gold); border-bottom: 1px solid var(--gold-tint); transition: border-color 0.2s ease; }
.bl-body a.inline:hover { border-color: var(--gold); }
.bl-body ul, .bl-body ol { margin: 0 0 24px; padding-left: 26px; line-height: 1.75; }
.bl-body li { margin-bottom: 10px; }
.bl-body strong { color: var(--ink); font-weight: 600; }
.bl-body blockquote {
  margin: 32px 0; padding: 8px 0 8px 26px; border-left: 3px solid var(--gold);
  font-size: 22px; font-style: italic; color: var(--emerald-med); line-height: 1.5;
}
.bl-body figure { margin: 32px 0; }
.bl-body figure img { border-radius: var(--r); border: 1px solid var(--line); }
.bl-body figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 10px; }

/* In-content download nudge */
.bl-cta {
  max-width: var(--measure); margin: 48px auto; padding: 0 28px;
}
.bl-cta-box {
  background: var(--emerald);
  border-radius: 22px;
  padding: 34px 34px;
  display: flex; align-items: center; gap: 22px;
  box-shadow: var(--shadow);
}
.bl-cta-box img.icon {
  width: 64px; height: 64px; border-radius: 15px; flex-shrink: 0;
  /* gold glow behind the icon, same family as the finale above the footer */
  box-shadow: 0 0 38px rgba(212, 175, 55, 0.5), 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: blIconFloat 6s ease-in-out infinite;
}
/* kept gentle (float only, no rotate) since this sits inside reading flow */
@keyframes blIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.bl-cta-box .copy { flex: 1; font-family: var(--sans); }
.bl-cta-box .copy b { display: block; font-size: 19px; font-weight: 800; color: #fff; }
.bl-cta-box .copy span { font-size: 15px; color: rgba(255, 255, 255, 0.72); line-height: 1.5; display: block; margin-top: 5px; }
.bl-appstore {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: #0a0a0a; padding: 11px 20px; border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  font-family: var(--sans);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bl-appstore:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24); }
.bl-appstore svg { width: 24px; height: 28px; }
.bl-appstore .t small { display: block; font-size: 11.5px; font-weight: 700; }
.bl-appstore .t strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.04em; }
/* official Apple App Store badge */
.bl-appstore-badge { height: 52px; width: auto; flex-shrink: 0; display: block; }

/* Author bio */
.bl-author { max-width: var(--measure); margin: 48px auto 0; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; gap: 18px; }
.bl-author img { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; }
.bl-author .who { flex: 1; }
.bl-author .who b { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--ink); }
.bl-author .who p { font-size: 15.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }
.bl-author .socials { display: flex; gap: 10px; margin-top: 14px; }
.bl-author .socials a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bl-author .socials a:hover { color: var(--emerald); border-color: var(--emerald); }
.bl-author .socials svg { width: 15px; height: 15px; }

/* published / updated meta */
.bl-byline .who .updated { color: var(--gold); }

/* Related */
.bl-related { max-width: var(--wide); margin: 64px auto 0; padding: 0 28px; }
.bl-related h3 { font-family: var(--sans); font-weight: 800; font-size: 22px; color: var(--emerald); margin-bottom: 24px; }
.bl-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* Newsletter band */
.bl-news { background: var(--emerald); margin-top: 72px; }
.bl-news-inner { max-width: 620px; margin: 0 auto; padding: 64px 28px; text-align: center; font-family: var(--sans); }
.bl-news h3 { font-weight: 800; font-size: 28px; color: #fff; letter-spacing: -0.5px; }
.bl-news p { color: rgba(255, 255, 255, 0.72); margin: 12px 0 26px; font-size: 16px; line-height: 1.6; }
.bl-news form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.bl-news input {
  flex: 1; padding: 14px 18px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 15px; outline: none;
}
.bl-news input::placeholder { color: rgba(255, 255, 255, 0.5); }
.bl-news button {
  padding: 14px 26px; border-radius: 100px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-bright), #c79a2e); color: var(--emerald);
  font: inherit; font-weight: 700; font-size: 15px;
}
.bl-news .note { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); margin-top: 14px; }

/* Footer */
.bl-foot { background: var(--paper); border-top: 1px solid var(--line); }
.bl-foot-inner { max-width: var(--wide); margin: 0 auto; padding: 34px 28px; display: flex; align-items: center; justify-content: space-between; font-family: var(--sans); font-size: 14px; color: var(--ink-faint); }
.bl-foot a { color: var(--ink-soft); }
.bl-foot a:hover { color: var(--emerald); }
.bl-foot .links { display: flex; gap: 22px; }

.bl-back { display: block; text-align: right; font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink-soft); max-width: var(--measure); margin: 48px auto 0; padding: 0 28px; }
.bl-back:hover { color: var(--emerald); }
.bl-news-thanks { color: #fff; font-size: 17px; font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  body { font-size: 18px; }
  .bl-grid { grid-template-columns: 1fr; gap: 40px; padding: 16px 22px 56px; }
  .bl-head { padding: 48px 22px 28px; }
  .bl-head h1 { font-size: 34px; }
  .bl-card-feature h2 { font-size: 26px; }
  .bl-card h2 { font-size: 22px; }
  .bl-card-feature .thumb { aspect-ratio: 16 / 9; }
  .bl-article-head { padding: 40px 22px 0; }
  .bl-article-head h1 { font-size: 31px; }
  .bl-article-head .deck { font-size: 19px; }
  .bl-body { padding: 36px 22px 0; }
  .bl-body h2 { font-size: 24px; }
  .bl-cta { padding: 0 18px; }
  .bl-cta-box { flex-direction: column; text-align: center; }
  /* breathing room on the sides so cards never touch the screen edge */
  .bl-author { margin-left: 18px; margin-right: 18px; }
  .bl-back { padding: 0 22px; }
  .bl-related-grid { grid-template-columns: 1fr; }
  .bl-news form { flex-direction: column; }
  .bl-foot-inner { flex-direction: column; gap: 16px; text-align: center; }
  .bl-nav-links { gap: 16px; font-size: 14px; }
  .bl-nav-links .hide-sm { display: none; }
}
