/* Front-door homepage. System font stack only; no third-party fonts. */
/* Phase 2 CSS-only starfield and dark flat-color treatment copied from
   commit d38fc92. */

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body.home{
  margin:0;
  background:#05080c;
  color:#f0ede4;
  font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --accent:#ead398;
  --cool:#7ec8d8;
  --muted:#c5cdc8;
  --line:#243038;
  --pad:clamp(20px,4vw,48px);
  color-scheme:dark;
}
body.home a{color:inherit;text-decoration:none}
body.home button{font:inherit;cursor:pointer}
body.home button,body.home a{touch-action:manipulation}
body.home :focus-visible{outline:3px solid var(--accent);outline-offset:4px}
body.home h1,body.home h2,body.home h3{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-weight:650;
  line-height:1.15;
  margin:0 0 16px;
  text-wrap:balance;
  letter-spacing:-.02em;
}
body.home h1{font-size:clamp(28px,6.2vw,52px);max-width:18ch}
body.home h2{font-size:clamp(22px,3vw,32px)}
body.home h3{font-size:1.15rem}
body.home p{margin:0 0 16px}
.home-skip{
  position:absolute;left:20px;top:-120px;z-index:1100;
  padding:12px 16px;min-height:44px;
  background:var(--accent);color:#05080c!important;font-weight:650;
}
.home-skip:focus{top:12px}

/* Homepage nav: single light accent on the existing header structure. */
body.home .bsm-nav-header,
body.home .bsm-nav-links{background:#05080c;color:#f0ede4;border-bottom-color:#1c262c}
body.home .bsm-nav-inner{
  max-width:1120px;
  margin:0 auto;
  padding:12px var(--pad);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 16px;
}
body.home .bsm-nav-header a,
body.home .bsm-nav-header .bsm-brand-link small{color:#f0ede4}
body.home .bsm-nav-header .bsm-brand-link small{color:var(--muted)}
body.home .bsm-menu-toggle{color:#f0ede4;background:#10191e;border:1px solid #71664f}
body.home .bsm-nav-links a:hover,
body.home .bsm-nav-links a[aria-current=page]{color:var(--accent)}
body.home .bsm-nav-header a:focus-visible,
body.home .bsm-nav-header button:focus-visible{outline-color:var(--accent)}

.home-main{position:relative;max-width:1120px;margin:0 auto;padding:0}
.home-hero{
  position:relative;overflow:hidden;isolation:isolate;
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  padding:clamp(36px,8vw,88px) var(--pad) 64px;
  background:
    radial-gradient(ellipse 50% 55% at 70% 45%,#0d2a36 0%,transparent 62%),
    radial-gradient(ellipse 70% 60% at 38% 40%,#132430 0,#0a1219 45%,#05080c 80%);
}
.home-hero-copy{
  position:relative;z-index:1;
  width:100%;
}
.home-hero-visual{
  position:relative;
  z-index:0;
  width:min(280px,72vw);
  margin:12px auto 0;
  pointer-events:none;
  animation:home-fade 1.1s ease .15s both;
}
.hero-scene{display:block;width:100%;height:auto;overflow:visible}
.home-hero-rule{
  position:absolute;left:var(--pad);right:var(--pad);bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent 0%,var(--accent) 22%,var(--cool) 78%,transparent 100%);
  pointer-events:none;
  z-index:2;
}
.home-kicker{
  font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent);margin:0 0 18px;
}
.home-lede{max-width:40rem;font-size:1.125rem;color:#e4e8e4;animation:home-fade .8s ease both}
.home-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 0;position:relative;z-index:1}
.home-hero-actions .home-btn{background:transparent;color:var(--accent)}
.home-hero-actions .home-btn-primary{background:var(--bsm-bitcoin,#F7931A);color:var(--bsm-cta-ink,#05080C)!important;border-color:var(--bsm-bitcoin,#F7931A)}
.home-hero-actions .home-btn-primary:hover{background:var(--bsm-forge,#C67615);border-color:var(--bsm-forge,#C67615)}
body.home .home-btn-primary:focus-visible,body.home .bsm-nav-header .home-btn-primary:focus-visible{outline-color:var(--bsm-cta-ink,#05080C)}

body.home h1{animation:home-fade .7s ease both}

/* Copied Phase 2 starfield (d38fc92). Drift is off under reduced motion. */
.home-hero::before,.home-hero::after{
  content:"";position:absolute;inset:-50% 0 0;z-index:-2;pointer-events:none;background-repeat:repeat;
}
.home-hero::before{
  background-image:
    radial-gradient(1px 1px at 20px 30px,#fff,transparent),
    radial-gradient(1px 1px at 140px 80px,#dfe8f0,transparent),
    radial-gradient(1px 1px at 60px 160px,#fff9e8,transparent),
    radial-gradient(1.5px 1.5px at 210px 120px,#fff,transparent),
    radial-gradient(1px 1px at 260px 210px,#cfd9e6,transparent),
    radial-gradient(1px 1px at 90px 240px,#fff,transparent);
  background-size:300px 280px;opacity:.55;animation:bsm-star-drift 240s linear infinite;
}
.home-hero::after{
  background-image:
    radial-gradient(1.5px 1.5px at 50px 70px,#fff,transparent),
    radial-gradient(2px 2px at 330px 190px,#f3ead2,transparent),
    radial-gradient(1px 1px at 410px 40px,#e3ecf5,transparent),
    radial-gradient(1.5px 1.5px at 180px 330px,#fff,transparent);
  background-size:520px 460px;opacity:.4;animation:bsm-star-drift 420s linear infinite;
}
@keyframes bsm-star-drift{from{transform:translateY(0)}to{transform:translateY(25%)}}
@keyframes home-fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.hero-ring{fill:none;stroke-linejoin:round}
.hero-ring-outer{stroke:var(--cool);stroke-width:1.25;stroke-opacity:.7;filter:drop-shadow(0 0 4px #7ec8d866)}
.hero-ring-mid{stroke:var(--cool);stroke-width:1;stroke-opacity:.5}
.hero-ring-inner{stroke:var(--accent);stroke-width:1;stroke-opacity:.55;filter:drop-shadow(0 0 3px #ead39855)}
.hero-planet-halo{
  transform-origin:260px 250px;
  transform-box:fill-box;
  animation:hero-breathe 7s ease-in-out infinite;
}
.hero-sat-a,.hero-sat-b{
  offset-rotate:0deg;
}
.hero-sat-a{
  offset-path:path("M459.72,185.11L462.64,197.35L463.6,210.1L462.6,223.24L459.66,236.63L454.78,250.15L448.04,263.68L439.48,277.06L429.19,290.19L417.28,302.93L403.85,315.17L389.03,326.77L372.97,337.63L355.83,347.66L337.76,356.74L318.94,364.79L299.55,371.74L279.79,377.51L259.83,382.06L239.87,385.33L220.11,387.3L200.74,387.95L181.93,387.27L163.87,385.27L146.74,381.97L130.71,377.39L115.91,371.59L102.51,364.62L90.62,356.54L80.36,347.44L71.83,337.4L65.12,326.51L60.28,314.89L57.36,302.65L56.4,289.9L57.4,276.76L60.34,263.37L65.22,249.85L71.96,236.32L80.52,222.94L90.81,209.81L102.72,197.07L116.15,184.83L130.97,173.23L147.03,162.37L164.17,152.34L182.24,143.26L201.06,135.21L220.45,128.26L240.21,122.49L260.17,117.94L280.13,114.67L299.89,112.7L319.26,112.05L338.07,112.73L356.13,114.73L373.26,118.03L389.29,122.61L404.09,128.41L417.49,135.38L429.38,143.46L439.64,152.56L448.17,162.6L454.88,173.49L459.72,185.11");
  animation:hero-orbit 28s linear infinite;
}
.hero-sat-b{
  offset-path:path("M411.88,293.55L408.55,302.39L403.8,310.72L397.66,318.46L390.19,325.55L381.47,331.91L371.58,337.48L360.62,342.21L348.68,346.05L335.9,348.96L322.38,350.92L308.26,351.91L293.67,351.92L278.77,350.95L263.68,349.0L248.55,346.11L233.54,342.28L218.78,337.57L204.42,332.01L190.59,325.67L177.43,318.59L165.07,310.86L153.62,302.53L143.19,293.71L133.89,284.46L125.81,274.88L119.02,265.06L113.58,255.09L109.56,245.08L106.98,235.11L105.88,225.29L106.26,215.7L108.12,206.45L111.45,197.61L116.2,189.28L122.34,181.54L129.81,174.45L138.53,168.09L148.42,162.52L159.38,157.79L171.32,153.95L184.1,151.04L197.62,149.08L211.74,148.09L226.33,148.08L241.23,149.05L256.32,151.0L271.45,153.89L286.46,157.72L301.22,162.43L315.58,167.99L329.41,174.33L342.57,181.41L354.93,189.14L366.38,197.47L376.81,206.29L386.11,215.54L394.19,225.12L400.98,234.94L406.42,244.91L410.44,254.92L413.02,264.89L414.12,274.71L413.74,284.3L411.88,293.55");
  animation:hero-orbit 41s linear infinite reverse;
}
@keyframes hero-orbit{to{offset-distance:100%}}
@keyframes hero-breathe{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.62;transform:scale(1.08)}
}
@keyframes latest-pulse{
  0%{box-shadow:0 0 0 0 rgba(126,200,216,.55)}
  70%{box-shadow:0 0 0 8px rgba(126,200,216,0)}
  100%{box-shadow:0 0 0 0 rgba(126,200,216,0)}
}

.home-section{background:#05080c;padding:48px var(--pad)}
.front-channels{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:16px;
}
.front-articles{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
.front-channels .home-card{
  flex:1 1 100%;
  max-width:100%;
}
.home-card{
  border:1px solid var(--line);
  border-radius:16px;
  background:#0b1218;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.home-card > a{
  display:flex;flex-direction:column;justify-content:space-between;
  min-height:140px;padding:22px 22px 18px;color:inherit;
}
.home-card h3{
  margin:0 0 10px;color:#fff;
  display:flex;align-items:center;gap:10px;
}
.card-icon{flex:0 0 auto;width:20px;height:20px;color:var(--accent)}
.home-card p{margin:0 0 18px;color:var(--muted);flex:1}
.card-go{color:var(--accent);font-weight:650;font-size:.95rem}
.home-card:hover,
.home-card:focus-within{
  border-color:#7ec8d8aa;
  box-shadow:0 0 0 1px #7ec8d866,0 12px 40px #7ec8d829,0 0 24px #ead39822;
  transform:translateY(-4px);
}

.home-post{
  border-top:1px solid var(--line);
  padding:8px 0 12px;
}
.home-post time{display:block;color:var(--muted);font-size:.9rem;margin-bottom:4px}
.home-post h3{margin:0}
.home-post h3 a{
  display:flex;align-items:center;gap:10px;
  min-height:44px;padding:8px 0;
  color:#f7f4ea;
}
.home-post h3 a:hover{color:var(--accent)}
.latest-dot{
  flex:0 0 auto;
  width:8px;height:8px;
  border-radius:50%;
  background:var(--cool);
  box-shadow:0 0 0 0 rgba(126,200,216,.55);
  animation:latest-pulse 2.6s ease-out infinite;
}
.front-more{margin:20px 0 0}
.front-more a{
  display:inline-flex;align-items:center;min-height:44px;min-width:44px;
  color:var(--accent);font-weight:650;text-decoration:underline;text-underline-offset:3px;
}


.home-footer{
  max-width:1120px;margin:0 auto;
  padding:28px var(--pad) 48px;
  border-top:1px solid var(--line);
}
.home-disclaimer{
  margin:0;
  max-width:46rem;
  color:var(--muted);
  font-size:.95rem;
}
.home-disclaimer a{
  display:inline-flex;align-items:center;
  min-height:44px;
  color:#f0ede4;
  text-decoration:underline;text-underline-offset:3px;
}
.home-disclaimer a:hover{color:var(--accent)}

@media(min-width:768px){
  .front-channels .home-card{
    flex:1 1 calc(50% - 8px);
    max-width:calc(50% - 8px);
  }
  .home-hero{
    grid-template-columns:minmax(0,1fr) minmax(280px,44%);
    align-items:center;
    justify-items:stretch;
    column-gap:12px;
  }
  .home-hero-visual{
    width:100%;
    max-width:520px;
    margin:0;
    justify-self:end;
  }
}
@media(min-width:1280px){
  .front-channels .home-card{
    flex:1 1 calc(20% - 13px);
    max-width:calc(20% - 13px);
  }
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

.front-site-links{
  display:flex;flex-wrap:wrap;gap:8px 4px;
  border-top:1px solid var(--line);
}
.front-site-links a{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;min-width:44px;padding:8px 12px;
  color:var(--muted);
  text-decoration:underline;text-underline-offset:3px;
}
.front-site-links a:hover{color:var(--accent)}

/* Quieter editorial interior below the cinematic hero and channel cards. */
.home-editorial{
  padding-top:40px;
  padding-bottom:40px;
}
.home-spotlight{
  border:1px solid var(--line);
  border-radius:16px;
  padding:28px 24px 24px;
  background:#0a1016;
}
.home-spotlight .home-kicker{margin-bottom:12px}
.home-spotlight h2{
  font-size:clamp(22px,3.2vw,32px);
  margin:0 0 12px;
  max-width:28ch;
}
.home-spotlight h2 a{
  display:inline-block;
  min-height:44px;
  color:#f7f4ea;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:1px;
}
.home-spotlight h2 a:hover{color:var(--accent)}
.home-spotlight-meta{
  margin:0 0 14px;
  color:var(--muted);
  font-size:.95rem;
}
.home-spotlight-summary{
  margin:0;
  max-width:42rem;
  color:#e4e8e4;
  font-size:1.0625rem;
}
.front-selected,
.front-archive{
  list-style:none;
  margin:0;
  padding:0;
}
.front-selected li,
.front-archive li{
  display:grid;
  grid-template-columns:1fr;
  gap:4px 16px;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.front-selected li:last-child,
.front-archive li:last-child{border-bottom:1px solid var(--line)}
.front-selected time,
.front-archive time,
.front-undated{
  color:var(--muted);
  font-size:.9rem;
}
.front-selected a,
.front-archive a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#f7f4ea;
  font-weight:600;
}
.front-selected a:hover,
.front-archive a:hover{color:var(--accent)}
.front-topic{
  color:var(--muted);
  font-size:.9rem;
}
.front-topics h2{margin-bottom:16px}
.front-topics ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.front-topics a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  min-width:44px;
  padding:8px 16px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#f0ede4;
  background:#0a1016;
}
.front-topics a:hover{border-color:var(--cool);color:var(--accent)}
.front-newsletter-benefits{
  margin:0 0 22px;
  padding:0 0 0 1.15rem;
  max-width:40rem;
  color:#e4e8e4;
}
.front-newsletter-benefits li{margin:0 0 8px}
.front-newsletter-fallback{
  margin:12px 0 0;
  color:var(--muted);
  font-size:.95rem;
}
.front-newsletter-fallback a{
  display:inline;
  color:#f0ede4;
  text-decoration:underline;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}
.front-newsletter-fallback a:hover{color:var(--accent)}

@media(min-width:768px){
  .front-selected li,
  .front-archive li{
    grid-template-columns:11.5rem minmax(0,1fr) auto;
    align-items:center;
    gap:8px 20px;
  }
  .front-selected time,
  .front-archive time,
  .front-undated{padding-top:0}
}
