/* Streak Monkey Journal — shared stylesheet for /journal/*.html
   Trimmed, non-canvas subset of the homepage's design tokens and nav/footer chrome. */
:root{
  --mono:'Space Mono',ui-monospace,Menlo,Consolas,monospace;
  --yellow:#FFDE59; --red:#ED1C24;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{background:#000;color:#fff;overflow-x:hidden;-webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;font-family:var(--mono)}
html{scroll-behavior:smooth}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
svg{display:block}
:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
@media(min-width:768px){.wrap{padding:0 40px}}

/* ── nav (matches index.html) ── */
nav.bar{position:fixed;top:0;left:0;right:0;height:80px;z-index:50;display:flex;
  align-items:center;justify-content:space-between;padding:0 16px;opacity:0;transition:opacity .8s;
  background:linear-gradient(180deg,rgba(0,0,0,.7),transparent)}
nav.bar.in{opacity:1}
@media(min-width:640px){nav.bar{padding:0 24px}}
.glass{background:rgba(255,255,255,.15);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.pillrow{display:flex;align-items:center;gap:8px}
.logopill{height:44px;padding:0 14px;border-radius:12px;display:flex;align-items:center;gap:8px;
  overflow:hidden;white-space:nowrap;transition:width .38s cubic-bezier(.2,.9,.25,1),opacity .3s,padding .38s}
.logopill img{height:36px;width:auto;display:block;flex:none}
@media(min-width:640px){.logopill{height:60px;padding:0 22px;border-radius:16px}
  .logopill img{height:48px}}
.menupill{height:36px;width:36px;border-radius:10px;display:flex;align-items:center;overflow:hidden;
  transition:width .42s cubic-bezier(.2,.9,.25,1)}
.menupill.open{width:min(72vw,300px)}
@media(min-width:640px){.menupill{height:48px;width:48px;border-radius:14px}.menupill.open{width:380px}}
.hamb{position:relative;width:36px;height:36px;border-radius:10px;flex:none;transition:all .3s}
@media(min-width:640px){.hamb{width:48px;height:48px;border-radius:14px}}
.menupill.open .hamb{width:28px;height:28px;border-radius:8px;margin-left:6px;background:rgba(255,255,255,.1)}
.hamb i{position:absolute;left:50%;top:50%;width:14px;height:1.5px;background:#fff;
  transform:translate(-50%,-50%);transition:transform .34s cubic-bezier(.2,1.3,.4,1),opacity .2s}
.hamb i:nth-child(1){margin-top:-4px}.hamb i:nth-child(3){margin-top:4px}
.menupill.open .hamb i:nth-child(1){transform:translate(-50%,-50%) rotate(45deg) translateY(4px)}
.menupill.open .hamb i:nth-child(2){opacity:0;transform:translateX(-50%) scaleX(.2)}
.menupill.open .hamb i:nth-child(3){transform:translate(-50%,-50%) rotate(-45deg) translateY(-4px)}
.mlinks{display:flex;align-items:center;gap:16px;padding-left:14px;opacity:0;transform:translateX(15px);
  transition:opacity .3s .1s,transform .3s .1s;white-space:nowrap}
.menupill.open .mlinks{opacity:1;transform:none}
.mlinks a{font-size:14px;color:rgba(255,255,255,.7)}
.mlinks a:hover{color:var(--yellow)}
.dl{height:36px;padding:0 14px;border-radius:9999px;background:#fff;color:#000;display:inline-flex;
  align-items:center;gap:8px;font-size:13px;transition:transform .2s,background-color .2s}
.dl:hover{transform:scale(1.03);background:#e2e2e6}
.dl svg{width:13px;height:13px}
@media(min-width:640px){.dl{height:48px;padding:0 24px;font-size:15px}.dl svg{width:15px;height:15px}}

.h2{font-weight:400;font-size:clamp(30px,6vw,60px);line-height:1.02;letter-spacing:-.03em}
.head{display:flex;flex-direction:column;gap:20px;margin-bottom:56px}

/* ── article ── */
main{padding-top:150px}
@media(min-width:640px){main{padding-top:170px}}
.postmeta{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.4)}
.posttitle{font-weight:400;line-height:1.08;letter-spacing:-.02em;
  font-size:clamp(30px,5.5vw,52px);margin:18px 0 40px;max-width:22ch}
.prose{max-width:68ch;font-size:15px;line-height:1.9;color:rgba(255,255,255,.72)}
.prose p{margin-bottom:22px}
.prose h2{font-size:22px;font-weight:700;color:#fff;margin:44px 0 16px;letter-spacing:-.01em}
.prose ul{margin:0 0 22px 0;list-style:none}
.prose li{display:flex;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.1)}
.prose li::before{content:"";flex:none;width:5px;height:5px;margin-top:9px;background:var(--yellow)}
.prose strong{color:#fff;font-weight:700}
.prose code{background:rgba(255,255,255,.08);padding:2px 6px;border-radius:4px;font-size:.9em}
.postfoot{max-width:68ch;margin-top:56px;padding-top:28px;border-top:1px solid rgba(255,255,255,.1);
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.backlink{font-size:13px;color:rgba(255,255,255,.5)}
.backlink:hover{color:var(--yellow)}

/* ── more / listing cards (shared with journal index) ── */
.sub{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.4)}
.g3{display:grid;grid-template-columns:1fr;gap:20px;margin-top:28px}
@media(min-width:768px){.g3{grid-template-columns:repeat(3,1fr)}}
.bcard{border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:26px;display:flex;
  flex-direction:column;transition:border-color .3s,transform .3s}
.bcard:hover{border-color:rgba(255,222,89,.4);transform:translateY(-3px)}
.meta{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.35)}
.bcard h3{font-size:17px;font-weight:700;margin:14px 0 12px;line-height:1.35}
.bcard p{color:rgba(255,255,255,.45);font-size:13px;line-height:1.7;flex:1}
.more{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;
  color:var(--yellow);margin-top:18px}
.ar{transition:transform .2s}
.bcard:hover .ar{transform:translateX(5px)}
.sec{padding:72px 0}
@media(min-width:768px){.sec{padding:100px 0}}

/* ── next-post countdown ── */
.nextpost{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:rgba(255,255,255,.4);
  margin-top:10px}
.nextpost b{color:var(--yellow);font-weight:700}

/* ── footer (no 3D canvas on journal pages) ── */
footer{background:#000;border-top:1px solid rgba(255,255,255,.1)}
.fright{padding:40px;max-width:760px}
@media(min-width:640px){.fright{padding:60px}}
.frow{display:flex;align-items:center;gap:10px;margin-bottom:26px}
.frow img{height:54px;width:auto;display:block;opacity:.9}
.fbody{color:rgba(255,255,255,.45);font-size:14px;line-height:1.8;max-width:44ch}
.flinks{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:28px}
.flinks a{font-size:13px;color:rgba(255,255,255,.45)}
.flinks a:hover{color:var(--yellow)}
.fcopy{color:rgba(255,255,255,.25);font-size:11px;margin-top:44px}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
