/* Blog pages (/blog/ and every post). Loaded after /site.css, which holds the
   fonts, colors, header, footer, store buttons and the phone store bar. */

/* Page head: same orange glow as the home page hero, smaller. */
.bhead { position:relative; padding:48px 0 40px; isolation:isolate; overflow:hidden; }
.bhead::before { content:""; position:absolute; inset:-60px 0 0; z-index:-1; pointer-events:none;
  background:radial-gradient(480px 420px at 88% 0%, rgba(255,107,44,.38), transparent 70%), radial-gradient(360px 320px at 0% 100%, rgba(255,178,122,.28), transparent 70%);
  -webkit-mask-image:linear-gradient(#000 60%, transparent); mask-image:linear-gradient(#000 60%, transparent); }
.bhead .wrap { max-width:46rem; }
.crumbs { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:.9rem; color:var(--muted); margin-bottom:22px; }
.crumbs a { text-decoration:none; }
.crumbs a:hover { color:var(--ink); }
.crumbs span[aria-hidden] { opacity:.5; }
.bhead h1 { font-size:clamp(2.4rem, 6.4vw, 4rem); }
.bhead h1 .strike::after { transform:none; animation:none; }
.bhead .lead { opacity:1; animation:none; margin:22px 0 0; max-width:none; }
.byline { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin-top:26px; font-size:.92rem; color:var(--muted); }
.byline img { width:28px; height:28px; border-radius:8px; }
.byline b { color:var(--ink); font-weight:600; }

/* Article text */
.post { padding:8px 0 72px; }
.prose { width:min(44rem, 100% - 40px); margin-inline:auto; font-size:1.075rem; line-height:1.72; }
.prose > * + * { margin-top:1.15em; }
.prose h2 { font-size:clamp(1.7rem, 4vw, 2.3rem); line-height:1.12; margin-top:2.3em; scroll-margin-top:90px; }
.prose h3 { font-size:1.3rem; line-height:1.25; margin-top:1.8em; scroll-margin-top:90px; }
.prose h2 + *, .prose h3 + * { margin-top:.7em; }
.prose a { color:var(--accent-text); text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:3px; }
.prose a:hover { text-decoration-thickness:2.5px; }
.prose ul, .prose ol { padding-left:1.3em; }
.prose li + li { margin-top:.45em; }
.prose li::marker { color:var(--accent-deep); font-weight:700; }
.prose strong { font-weight:700; }
.prose sup a { text-decoration:none; font-size:.78em; font-weight:700; padding:0 1px; }

/* Key takeaways */
.takeaways { background:var(--accent-soft); border-radius:26px; padding:24px 26px 22px; }
.takeaways h2 { font:700 .85rem/1 var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--accent-text); margin:0 0 12px; }
.takeaways ul { margin:0; padding-left:1.2em; }

/* Founder note */
.story { background:var(--night); color:#f2f0ec; border-radius:28px; padding:28px 28px 26px; }
.story .eyebrow { color:var(--accent); margin-bottom:10px; }
.story p { color:#d8d6d2; }
.story p + p { margin-top:.8em; }
.story .q { font:700 clamp(1.35rem, 3.4vw, 1.7rem)/1.2 var(--display); color:#f2f0ec; letter-spacing:-.02em; }

/* Snooze loop vs task alarm */
.flow { margin-inline:0; }
.flow .cols { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:640px) { .flow .cols { grid-template-columns:1fr; } }
.lane { background:var(--surface); border:1px solid var(--line); border-radius:24px; padding:20px 18px 18px; }
.lane.good { border-color:color-mix(in srgb, var(--ok) 55%, var(--line)); }
.lane .lt { font:700 1.05rem/1.2 var(--display); letter-spacing:-.02em; margin:0 0 14px; }
.lane ol { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.lane li { margin:0; position:relative; padding:10px 14px; border-radius:14px; background:var(--bg); font-size:.95rem; line-height:1.4; }
.lane li + li { margin-top:0; }
.lane li + li::before { content:""; position:absolute; left:22px; top:-9px; width:2px; height:9px; background:var(--line); }
.lane li b { font-family:var(--display); }
.lane .bad { background:var(--accent-soft); color:var(--accent-text); font-weight:600; }
.lane .ok { background:color-mix(in srgb, var(--ok) 16%, var(--surface)); font-weight:600; }
.lane .loop { display:flex; gap:8px; align-items:center; background:none; padding:4px 14px 0; color:var(--muted); font-size:.88rem; }
.lane .loop svg { width:18px; height:18px; flex:none; stroke:var(--accent-deep); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.flow figcaption, .tablewrap + .note, .prose figcaption { margin-top:12px; font-size:.92rem; color:var(--muted); line-height:1.5; }

/* Tips table; rows become cards on phones */
.tablewrap { border:1px solid var(--line); border-radius:22px; overflow:hidden; background:var(--surface); }
.tips { width:100%; border-collapse:collapse; font-size:.96rem; line-height:1.45; }
.tips th, .tips td { text-align:left; vertical-align:top; padding:14px 16px; border-bottom:1px solid var(--line); }
.tips tr:last-child td { border-bottom:0; }
.tips thead th { font:700 .78rem/1.2 var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); background:var(--bg); }
.tips td:first-child { font-weight:700; font-family:var(--display); }
.tips th:nth-child(1) { width:30%; } .tips th:nth-child(2) { width:28%; }
@media (max-width:640px) {
  .tips thead { display:none; }
  .tips, .tips tbody, .tips tr, .tips td { display:block; width:100%; }
  .tips tr { padding:14px 16px; border-bottom:1px solid var(--line); }
  .tips tr:last-child { border-bottom:0; }
  .tips td { padding:0; border:0; }
  .tips td + td { margin-top:8px; }
  .tips td[data-label]::before { content:attr(data-label); display:block; font:700 .72rem/1.3 var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:2px; }
}

/* Three task groups */
.tasks { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
@media (max-width:640px) { .tasks { grid-template-columns:1fr; } }
.task { background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:18px; }
.task .ico { width:42px; height:42px; border-radius:14px; background:var(--accent); display:grid; place-items:center; margin-bottom:12px; }
.task .ico svg { width:22px; height:22px; }
.task h4 { font:700 1.12rem/1.1 var(--display); letter-spacing:-.02em; margin:0 0 6px; }
.task p { font-size:.93rem; line-height:1.5; color:var(--muted); margin:0; }

/* Steps of the first week */
.plan { list-style:none; padding:0 !important; counter-reset:p; display:grid; gap:12px; }
.plan li { counter-increment:p; position:relative; margin:0 !important; background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:18px 20px 18px 66px; }
.plan li::before { content:counter(p); position:absolute; left:18px; top:17px; width:32px; height:32px; border-radius:50%; background:var(--accent); color:#1c1c1e; display:grid; place-items:center; font:700 1rem/1 var(--display); }
.plan li b { display:block; font-family:var(--display); font-size:1.1rem; margin-bottom:2px; }
@media (max-width:640px) { .plan li { padding:16px 16px 16px 54px; } .plan li::before { left:14px; top:15px; width:28px; height:28px; font-size:.92rem; } }

/* Call to action inside the post */
.cta-box { background:var(--accent); color:#1c1c1e; border-radius:32px; padding:34px 30px; margin-top:2.4em !important; }
.cta-box h2 { margin:0 !important; font-size:clamp(1.7rem, 4.4vw, 2.4rem); }
.cta-box p { margin-top:12px; opacity:.88; }
/* Store buttons inside the article: always visible (no hero fade), not styled as text links. */
.prose .cta { opacity:1; animation:none; margin:1.4em 0; }
.prose .store { color:var(--bg); text-decoration:none; }
.cta-box .cta { margin:20px 0 0; }
.cta-box .store { background:#1c1c1e; color:#fff; }
.cta-box .btn { margin-top:20px; background:#1c1c1e; color:#fff; box-shadow:none; text-decoration:none; }
.cta-box .btn:hover { box-shadow:0 14px 30px -14px rgba(0,0,0,.6); }
.cta-box .fine { margin-top:14px; font-size:.88rem; opacity:.75; animation:none; color:inherit; }

/* FAQ in a post: the details style comes from site.css */
.prose .faq { display:grid; gap:10px; }
.prose details > p { margin-top:0; }
.prose summary { font-size:1.08rem; }

/* Sources */
.sources { font-size:.9rem; line-height:1.55; color:var(--muted); }
.sources li + li { margin-top:.6em; }
.sources a { color:inherit; word-break:break-word; }
.updated { font-size:.9rem; color:var(--muted); }

/* Blog list */
.posts { display:grid; grid-template-columns:repeat(2, 1fr); gap:20px; padding-bottom:24px; }
@media (max-width:760px) { .posts { grid-template-columns:1fr; } }
.pcard { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:28px; overflow:hidden; text-decoration:none; transition:transform .3s, border-color .3s; }
.pcard:hover { transform:translateY(-4px); border-color:var(--accent); }
.pcard img { width:100%; height:auto; aspect-ratio:1200/630; object-fit:cover; background:var(--night); }
.pcard .body { padding:22px 24px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.pcard .tag { align-self:flex-start; padding:5px 12px; border-radius:99px; background:var(--accent-soft); color:var(--accent-text); font-weight:700; font-size:.78rem; }
.pcard h2 { font-size:1.55rem; line-height:1.12; }
.pcard p { color:var(--muted); font-size:.98rem; }
.pcard .meta { margin-top:auto; padding-top:6px; font-size:.86rem; color:var(--muted); }
/* The newest post spans the row; side by side on wide screens. */
.pcard.featured { grid-column:1 / -1; }
@media (min-width:900px) {
  .pcard.featured { flex-direction:row; }
  .pcard.featured img { width:56%; flex:none; }
  .pcard.featured .body { padding:34px 36px; justify-content:center; }
  .pcard.featured .meta { margin-top:8px; }
  .pcard.featured h2 { font-size:2.1rem; }
}
/* List page head lines up with the cards. */
.bhead.list .wrap { max-width:none; }
.bhead.list .lead { max-width:36em; }
