/* ───────────────────────── BeamTo blog — shared styles ─────────────────────────
   Mirrors the design tokens from index.html and adds article + index layouts. */

:root {
  --bg:        #160b03;
  --bg-2:      #1d0f04;
  --cream:     #F2E8D4;
  --cream-dim: rgba(242,236,224,0.72);
  --cream-faint: rgba(242,236,224,0.45);
  --orange:    #D4874A;
  --orange-hot:#E89A52;
  --maxw: 1140px;
  --readw: 720px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange);
}

/* ───────────────────────── wordmark ───────────────────────── */
.wordmark { font-weight: 800; letter-spacing: -0.03em; line-height: 1; display: inline-flex; align-items: flex-end; }
.wordmark .beam { color: var(--cream); }
.wordmark .to {
  color: var(--orange); font-size: 0.5em; font-weight: 700;
  position: relative; bottom: 0.28em; letter-spacing: 0.01em;
}

/* ───────────────────────── nav ───────────────────────── */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22,11,3,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,135,74,0.18);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-inner .wordmark { font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a.link {
  font-size: 0.9rem; font-weight: 500; color: var(--cream-dim); transition: color .25s;
}
.nav-links a.link:hover { color: var(--cream); }
.nav-cta {
  font-size: 0.85rem; font-weight: 600; padding: 0.5rem 1.1rem; border-radius: 100px;
  background: var(--orange); color: #160b03;
  transition: transform .25s var(--ease), background .25s;
}
.nav-cta:hover { background: var(--orange-hot); transform: translateY(-1px); }
@media (max-width: 720px) { .nav-links a.link { display: none; } }

/* ───────────────────────── article ───────────────────────── */
.article-head {
  padding: 140px 0 30px;
  position: relative;
}
.breadcrumb { font-size: 0.82rem; color: var(--cream-faint); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--cream-dim); transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--cream-faint); }

.article-head h1 {
  font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.03em; line-height: 1.08; margin: 0.6rem 0 1rem; max-width: 18ch;
}
.article-meta { font-size: 0.85rem; color: var(--cream-faint); font-weight: 500; }
.article-meta .dot { margin: 0 8px; opacity: 0.5; }

.article-hero {
  margin: 36px 0 8px; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(212,135,74,0.18);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
  aspect-ratio: 16 / 9; background: #0d0703;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero figcaption {
  font-size: 0.78rem; color: var(--cream-faint); text-align: center;
  padding: 12px 16px; background: var(--bg-2);
}

/* article body */
.prose { max-width: var(--readw); margin: 0 auto; padding: 24px 24px 0; }
.prose > * + * { margin-top: 1.25rem; }
.prose p { font-weight: 300; font-size: 1.06rem; color: var(--cream-dim); }
.prose p strong { color: var(--cream); font-weight: 600; }
.prose h2 {
  font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.02em; line-height: 1.15; margin-top: 2.6rem; color: var(--cream);
}
.prose h3 {
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
  margin-top: 1.8rem; color: var(--cream);
}
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { font-weight: 300; font-size: 1.06rem; color: var(--cream-dim); margin-top: 0.5rem; }
.prose li strong { color: var(--cream); font-weight: 600; }
.prose a.inline { color: var(--orange); font-weight: 500; border-bottom: 1px solid rgba(212,135,74,0.35); transition: color .2s, border-color .2s; }
.prose a.inline:hover { color: var(--orange-hot); border-color: var(--orange-hot); }

/* prompt callout — the "type this into BeamTo" box */
.prompt-box {
  background: linear-gradient(160deg, rgba(212,135,74,0.14), rgba(212,135,74,0.04));
  border: 1px solid rgba(212,135,74,0.32);
  border-radius: 18px; padding: 22px 24px;
}
.prompt-box .pb-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.prompt-box .pb-text { font-size: 1.12rem; font-weight: 500; color: var(--cream); line-height: 1.5; }
.prompt-box .pb-go {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  background: var(--orange); color: #160b03; font-size: 0.85rem; font-weight: 700;
  border-radius: 100px; padding: 9px 18px; transition: transform .25s var(--ease), background .25s;
}
.prompt-box .pb-go:hover { background: var(--orange-hot); transform: translateY(-1px); }

/* inline CTA card */
.cta-card {
  margin: 48px auto 0; max-width: var(--readw);
  position: relative; overflow: hidden; border-radius: 24px;
  padding: clamp(36px, 6vw, 56px) 30px; text-align: center;
  background: linear-gradient(150deg, #2a1407, #160b03);
  border: 1px solid rgba(212,135,74,0.25);
}
.cta-card::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(212,135,74,0.28), transparent 70%);
  pointer-events:none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.9rem; }
.cta-card p { font-weight: 300; font-size: 1.05rem; color: var(--cream-dim); max-width: 42ch; margin: 0 auto 1.6rem; }
.cta-card .appstore { display: inline-block; transition: transform .3s var(--ease), filter .3s; }
.cta-card .appstore img { height: 54px; width: auto; margin: 0 auto; }
.cta-card .appstore:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* related posts */
.related { max-width: var(--readw); margin: 64px auto 0; padding: 0 24px; }
.related .eyebrow { display: block; margin-bottom: 1.2rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card {
  display: block; padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(212,135,74,0.14);
  transition: transform .35s var(--ease), border-color .35s;
}
.related-card:hover { transform: translateY(-4px); border-color: rgba(212,135,74,0.4); }
.related-card .rc-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.related-card .rc-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 8px; line-height: 1.25; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* ───────────────────────── blog index ───────────────────────── */
.index-head { padding: 150px 0 20px; text-align: center; }
.index-head h1 { font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0.8rem 0 1rem; }
.index-head p { font-weight: 300; font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--cream-dim); max-width: 50ch; margin: 0 auto; }

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  padding: 56px 0 40px;
}
.post-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(212,135,74,0.14);
  transition: transform .4s var(--ease), border-color .4s;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(212,135,74,0.4); }
.post-card .pc-img { aspect-ratio: 16 / 10; overflow: hidden; background: #0d0703; }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .pc-img img { transform: scale(1.05); }
.post-card .pc-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.post-card .pc-title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; margin: 9px 0 8px; line-height: 1.22; }
.post-card .pc-desc { font-weight: 300; font-size: 0.95rem; color: var(--cream-dim); flex: 1; }
.post-card .pc-read { font-size: 0.82rem; font-weight: 600; color: var(--orange); margin-top: 16px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ───────────────────────── footer ───────────────────────── */
footer {
  padding: 60px 0 50px; margin-top: clamp(60px, 10vw, 120px);
  border-top: 1px solid rgba(212,135,74,0.14);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-inner .wordmark { font-size: 1.4rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--cream-dim); transition: color .25s; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 0.82rem; color: var(--cream-faint); margin-top: 24px; }
