/* Blog: same look as the home page (ember, mono labels, chat bubbles). Loads after /style.css. */
:root {
  --bg: #0a0a0b;
  --panel: #121011;
  --line: #221f1e;
  --text: #f2ece8;
  --muted: #9b928e;
  --faint: #6a6360;
  --rose: #ff7043;
  --rose-core: #ffb26b;
  --ember: #ff7043;
  --ember-hot: #ffb26b;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wrap { max-width: 1080px; padding: 0 24px; }
:focus-visible { outline-color: var(--ember-hot); }

/* Header + footer, as on the home page */
header.site { height: 72px; padding: 0; position: relative; z-index: 3; }
header.site .brand { white-space: nowrap; }
header.site .brand span { color: var(--ember); }
header.site nav { white-space: nowrap; }
header.site nav a { color: var(--muted); margin-left: 22px; }
footer.site { margin-top: 96px; padding: 32px 0 56px; color: var(--faint); }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* Reading progress (no script: scroll-driven where supported) */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 10; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ember), var(--ember-hot)); box-shadow: 0 0 12px rgba(255, 112, 67, 0.7); display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Embers drifting up behind the title */
.embers { position: absolute; inset: 0 0 auto; height: 560px; overflow: hidden; pointer-events: none; z-index: 0; }
.embers::before { content: ""; position: absolute; left: 50%; top: 42%; width: 900px; height: 620px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 112, 67, 0.11), transparent 70%); }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--ember-hot);
  box-shadow: 0 0 6px var(--ember), 0 0 14px rgba(255, 112, 67, 0.6); opacity: 0; animation: drift 9s linear infinite; }
.embers i:nth-child(1) { left: 14%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 31%; animation-delay: 3.1s; animation-duration: 11s; }
.embers i:nth-child(3) { left: 52%; animation-delay: 6.2s; }
.embers i:nth-child(4) { left: 68%; animation-delay: 1.6s; animation-duration: 12s; }
.embers i:nth-child(5) { left: 83%; animation-delay: 4.7s; animation-duration: 10s; }
.embers i:nth-child(6) { left: 92%; animation-delay: 7.4s; }
@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.9; }
  70% { opacity: 0.5; }
  100% { transform: translate(-30px, -520px); opacity: 0; }
}
main { position: relative; }

/* ---------- Post ---------- */
.post { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding-top: 56px; counter-reset: sec; }
.post .kicker { margin: 0 0 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.post .kicker a { color: inherit; text-decoration: none; }
.post .kicker a:hover { color: var(--ember-hot); }
.post h1 { font-size: clamp(36px, 6.2vw, 58px); line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 26px; }
.post .dek { font-size: 20px; line-height: 1.6; color: var(--text); margin: 0 0 22px; padding-left: 20px; border-left: 2px solid var(--ember); }
.post .meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 48px; }
.post h2 { font-size: clamp(26px, 3.6vw, 32px); line-height: 1.18; letter-spacing: -0.005em; margin: 72px 0 16px; }
.post p, .post li { color: #cfc6c2; line-height: 1.75; }
.post .body p { margin: 0 0 18px; }
.post .body ul, .post .body ol { padding-left: 22px; margin: 0 0 20px; }
.post .body li { margin-bottom: 10px; }
.post .body li::marker { color: var(--ember); }
.post strong { color: var(--text); font-weight: 600; }
.post a { color: var(--ember); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post a:hover { color: var(--ember-hot); }

/* Numbered section labels */
.post .body h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 12px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--ember); }

/* In the next 10 minutes: a timeline */
.now { position: relative; padding: 28px 28px 10px; border-radius: 24px; border: 1px solid #2c2523;
  background: radial-gradient(circle at 100% 0%, rgba(255, 112, 67, 0.10), transparent 55%), var(--panel); }
.now h2 { margin: 0 0 22px; font-size: 24px; }
.now h2::before { content: "right now"; display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.now ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.now li { position: relative; padding: 0 0 22px 46px; margin: 0; counter-increment: step; }
.now li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--ember-hot);
  border: 1px solid rgba(255, 112, 67, 0.55); background: #170f0c; box-shadow: 0 0 14px rgba(255, 112, 67, 0.22); }
.now li::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 6px; width: 1px; background: linear-gradient(var(--line), transparent); }
.now li:last-child::after { display: none; }
.now li strong:first-child { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); }

/* Example texts as a chat thread */
.texts { margin: 30px 0 30px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 8px; border-radius: 24px; background: #0e0e10; border: 1px solid var(--line); }
.texts .label { align-self: center; margin: 0 0 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); line-height: 1.4; text-align: center; }
.texts .msg { align-self: flex-end; max-width: 82%; margin: 0; padding: 9px 14px; border-radius: 19px; border-bottom-right-radius: 6px; background: #3a3a3d; color: #f0f0f2; font-size: 16px; line-height: 1.38; }
.texts .msg { position: relative; }
.texts .msg:last-child { margin-bottom: 18px; }
.texts .msg:last-child::after { content: "Not sent yet"; position: absolute; right: 2px; bottom: -20px; font-size: 11.5px; color: var(--faint); }
@supports (animation-timeline: view()) {
  .texts .msg { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
}

/* If you're in it right now: Void colors, with a breathing dot */
.spiral { position: relative; margin: 64px 0 0; padding: 24px 24px 24px 76px; border-radius: 22px; border: 1px solid #2d2440;
  background: radial-gradient(circle at 0% 50%, rgba(45, 27, 78, 0.55), transparent 60%), #121212; }
.spiral::before { content: ""; position: absolute; left: 24px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  border: 2px solid #8e8cd8; background: rgba(142, 140, 216, 0.18); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.75); border-color: #8e8cd8; background: rgba(142, 140, 216, 0.18); }
  50% { transform: scale(1.15); border-color: #98d8aa; background: rgba(152, 216, 170, 0.18); } }
.spiral p { margin: 0; color: #d9d3e6; }

/* FAQ */
.post .faq h2 { margin-bottom: 6px; }
.post .faq summary { font-size: 18px; line-height: 1.4; }
.post .faq summary::after { color: var(--ember); font-size: 22px; line-height: 1; transition: transform 0.25s; }
.post .faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.post .faq details p { color: var(--muted); }

/* Read next: cards */
.next ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.next li { margin: 0; }
.next a { position: relative; display: block; padding: 18px 52px 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 19px; line-height: 1.35; transition: border-color 0.2s, transform 0.2s; }
.next a::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--sans); color: var(--ember); transition: transform 0.2s; }
.next a:hover { color: var(--text); border-color: rgba(255, 112, 67, 0.5); transform: translateY(-2px); }
.next a:hover::after { transform: translate(4px, -50%); }

/* About Lumi: a phone peeking in from the side */
.lumi { position: relative; overflow: hidden; margin: 64px 0 0; padding: 28px 200px 28px 28px; min-height: 250px; border-radius: 24px; border: 1px solid #2c2523;
  background: radial-gradient(circle at 85% 100%, rgba(255, 112, 67, 0.16), transparent 60%), var(--panel); }
.lumi::after { content: ""; position: absolute; right: 26px; top: 26px; width: 150px; aspect-ratio: 1206 / 2622; border-radius: 26px;
  border: 6px solid #232120; background: #000 url(/img/void.jpg) center / cover no-repeat;
  box-shadow: 0 30px 70px -20px rgba(255, 112, 67, 0.35), 0 0 0 1px #3a2f2b; transform: rotate(4deg); }
.lumi p { margin: 0 0 18px; font-size: 16.5px; color: #d6cdc9; }
.lumi .stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.lumi .stores a { padding: 11px 18px; border-radius: 999px; border: 1px solid #3a3533; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.lumi .stores a:hover { border-color: #6b625e; }
.lumi .stores a:first-child { background: var(--ember); border-color: var(--ember); color: #1a0d08; }
.lumi .stores a:first-child:hover { background: #ff825a; }

.care { margin: 32px 0 0; font-size: 14px; color: var(--faint) !important; }

/* ---------- Blog index ---------- */
.bloghero { position: relative; z-index: 1; padding: 40px 0 24px; text-align: center; }
.scene { width: min(420px, 100%); margin: 0 auto 52px; text-align: left; }
.scene .clock { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--faint); text-align: center; margin: 0 0 18px; }
.scene .bubble { display: table; max-width: 78%; padding: 9px 14px; border-radius: 19px; border-bottom-left-radius: 6px; background: #262628; color: #e9e9ec; font-size: 16px; line-height: 1.35; margin: 0 0 14px; }
.scene .compose { display: flex; align-items: flex-end; gap: 10px; min-height: 72px; }
.scene .field { flex: 1; min-height: 44px; padding: 10px 16px; border-radius: 22px; border: 1px solid #343236; background: #141416; font-size: 17px; line-height: 1.4; color: #f4f4f6; }
.scene .field span { display: inline-block; box-sizing: border-box; vertical-align: top; overflow: hidden; white-space: nowrap; max-width: 0;
  padding: 4px 0; margin: -4px 0; animation: draft 10s linear infinite; animation-delay: calc(var(--i) * 0.2s); }
.scene .caret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -0.18em; background: var(--ember); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draft {
  0% { max-width: 0; padding-right: 0; opacity: 1; color: #f4f4f6; text-shadow: none; transform: none; filter: none; }
  1.2% { max-width: 8em; padding-right: 0.26em; }
  55% { max-width: 8em; opacity: 1; color: #f4f4f6; text-shadow: none; transform: none; filter: none; }
  59% { color: var(--ember-hot); text-shadow: 0 0 8px var(--ember), 0 0 18px rgba(255, 112, 67, 0.6); }
  63% { color: #7a2e1a; text-shadow: 0 0 4px rgba(255, 112, 67, 0.4); opacity: 0.8; }
  67% { max-width: 8em; color: #2a2220; opacity: 0; transform: translateY(-4px); filter: blur(2px); }
  83.5% { max-width: 8em; padding-right: 0.26em; opacity: 0; }
  84%, 100% { max-width: 0; padding-right: 0; opacity: 0; }
}
.scene .send { width: 36px; height: 36px; flex: none; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center; background: #2a2a2d; animation: ready 10s ease-in-out infinite; }
.scene .send svg { width: 18px; height: 18px; fill: #fff; opacity: 0.45; }
@keyframes ready { 0%, 4% { background: #2a2a2d; } 8%, 54% { background: var(--ember); } 60%, 100% { background: #2a2a2d; } }
.scene .after { height: 24px; margin: 12px 0 0; text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--ember); opacity: 0; animation: after 10s ease infinite; }
@keyframes after { 0%, 68% { opacity: 0; } 74%, 94% { opacity: 0.9; } 100% { opacity: 0; } }

.bloghero h1 { font-size: clamp(40px, 6.6vw, 66px); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 20px; }
.bloghero h1 em { font-style: italic; color: var(--ember-hot); }
.bloghero .lede { margin: 0 auto; color: var(--muted); font-size: 18px; max-width: 31em; }

.label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); margin: 0 0 18px; }
.list { position: relative; z-index: 1; max-width: 860px; margin: 72px auto 0; }
.posts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.posts li { margin: 0; }
.posts a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px 24px 56px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--panel); text-decoration: none; transition: border-color 0.25s, transform 0.25s; }
.posts a::after { content: "Read →"; position: absolute; left: 24px; bottom: 22px; font-size: 14.5px; font-weight: 600; color: var(--ember); }
.posts a:hover { border-color: rgba(255, 112, 67, 0.5); transform: translateY(-3px); }
.posts .d { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.posts b { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.22; color: var(--text); }
.posts .x { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.posts li:first-child { grid-column: 1 / -1; }
.posts li:first-child a { padding: 34px 34px 64px; background: radial-gradient(circle at 100% 0%, rgba(255, 112, 67, 0.13), transparent 55%), var(--panel); border-color: #2c2523; }
.posts li:first-child a::after { left: 34px; bottom: 28px; }
.posts li:first-child .d::before { content: "Newest · "; color: var(--ember); }
.posts li:first-child b { font-size: clamp(26px, 3.6vw, 34px); max-width: 20em; }
.posts li:first-child .x { font-size: 17px; max-width: 34em; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { position: relative; display: block; min-height: 190px; padding: 24px; border-radius: 22px; text-decoration: none; border: 1px solid #262221; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.tile:hover { transform: translateY(-3px); }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 6px; color: var(--text); }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 16em; }
.tile .go { position: absolute; left: 24px; bottom: 20px; font-size: 14.5px; font-weight: 600; }
.tile.void { background: radial-gradient(circle at 75% 80%, rgba(45, 27, 78, 0.5), transparent 60%), #121212; }
.tile.void:hover { border-color: rgba(255, 112, 67, 0.5); }
.tile.void .go { color: var(--ember); }
.tile.sos { background: #0f172a; border-color: #1f2b44; }
.tile.sos:hover { border-color: #8e8cd8; }
.tile.sos .go { color: #b9b7f0; }
.tile.sos .breath { position: absolute; right: 26px; bottom: 24px; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #8e8cd8; animation: breathe 8s ease-in-out infinite; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .posts, .tiles { grid-template-columns: 1fr; }
  .lumi { padding: 24px 24px 24px; min-height: 0; }
  .lumi::after { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  header.site nav a { margin-left: 16px; }
  .post { padding-top: 36px; }
  .post .dek { font-size: 18px; padding-left: 16px; }
  .now { padding: 22px 18px 6px; border-radius: 20px; }
  .now li { padding-left: 42px; }
  .spiral { padding: 20px 20px 20px 64px; }
  .spiral::before { left: 18px; }
  .texts { padding: 18px 14px 16px; }
  .bloghero { padding-top: 24px; }
  .scene { margin-bottom: 40px; }
  .posts li:first-child a { padding: 26px 22px 58px; }
  .posts li:first-child a::after { left: 22px; }
  .list { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .embers i, .progress { display: none; }
  .spiral::before, .tile.sos .breath { animation-duration: 16s; }
  .scene .field span { animation: none; max-width: none; padding-right: 0.26em; }
  .scene .send { animation: none; background: var(--ember); }
  .scene .after { animation: none; }
  .texts .msg { animation: none; }
}
