/* !! The site's header and footer, for pages with their own design.

   Blog posts keep their own typography, so they cannot take the shared
   page stylesheet (it restyles h1, p, .note, .pull, footer...). This is
   only the masthead and the footer, as they render on /questions:
   the rules that actually win there, in the same order, each one scoped
   under .pw so nothing leaks into the post and nothing in the post
   leaks in.

   Markup: <div class="pw pw-top">...</div> before the post,
           <div class="pw pw-end"><footer>...</footer></div> after it.
   Copy both from site/blog/index.html. */

.pw{
  --bg:#f7f7f5; --surface:#fff; --surface2:#f2f1ee; --text:#0b0b0b;
  --text2:#52514e; --muted:#898781; --border:rgba(11,11,11,.10);
  --border-s:rgba(11,11,11,.18); --accent:#C4491A; --radius:8px;
  --font:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-family:var(--font); font-size:16px; line-height:1.75;
  color:var(--text); text-align:start; -webkit-text-size-adjust:100%;
  max-width:880px; margin-inline:auto;
  padding-inline:max(1rem,env(safe-area-inset-left,0px));
}
@media(prefers-color-scheme:dark){.pw{
  --bg:#141413; --surface:#1e1e1c; --surface2:#252523; --text:#f0efec;
  --text2:#c3c2b7; --border:rgba(255,255,255,.10);
  --border-s:rgba(255,255,255,.18)}}
.pw, .pw *, .pw *::before, .pw *::after{box-sizing:border-box}
.pw *{margin:0; padding:0}
.pw.pw-top{padding-top:1.5rem}
.pw.pw-end{padding-bottom:3rem}

/* ---- the name ---- */
.pw .sitename{display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
  font-size:12.5px; color:var(--muted); letter-spacing:.01em; margin:0 0 4px}
.pw .sitename a{color:var(--muted); text-decoration:none; font-weight:600;
  margin-right:14px}
.pw .sitename a:hover{color:var(--accent)}
.pw .wordmark{font-size:30px; letter-spacing:-.035em; line-height:1.05}
.pw .sitename .tagline{font-size:13px; color:var(--muted); letter-spacing:.01em;
  line-height:1.7; margin:-.6rem 0 1.1rem; max-width:62ch}

/* ---- the section title and the one sentence ---- */
.pw .header{display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
  border-bottom:.5px solid var(--border); padding-bottom:1rem; margin-bottom:1.4rem}
.pw .header .title{font-family:var(--font); font-size:23px; font-weight:600;
  line-height:1.3; letter-spacing:-.02em; color:var(--text)}
.pw .header .title a{color:inherit; text-decoration:none}
.pw .header .title a:hover{color:var(--accent)}
.pw .onesent{font-size:12.5px; color:var(--text2); line-height:1.6;
  margin:.35rem 0 .8rem; border-inline-start:2px solid var(--accent);
  padding-inline-start:.7rem}
.pw .onesent b{font-weight:700; color:inherit}

/* ---- the nav ---- */
.pw .nav{display:flex; gap:6px; flex-wrap:wrap; font-size:13px; margin:-.6rem 0 1.2rem}
.pw .nav a{color:var(--text2); text-decoration:none; padding:6px 12px;
  border-radius:var(--radius); border:.5px solid transparent; line-height:1.75}
.pw .nav a:hover{background:var(--surface2); color:var(--text)}
.pw .nav a.on{color:var(--text); background:var(--surface2); border-color:var(--border)}
.pw .nav a.navask{margin-inline-start:auto; color:#C4491A; font-weight:600;
  border:1px solid rgba(196,73,26,.3); border-radius:7px; padding:5px 12px}
.pw .nav a.navask:hover{background:#C4491A; border-color:#C4491A; color:#fff}
.pw .nav a.support{margin-inline-start:9px}

/* ---- the footer ---- */
.pw footer{display:block; font-size:10px; color:var(--muted); text-align:center;
  margin-top:2rem; padding-top:1rem; border-top:.5px solid var(--border);
  line-height:1.75; max-width:none; font-family:var(--font)}
.pw footer a{color:var(--text2); text-decoration:none}
.pw footer a:hover{text-decoration:underline}
.pw footer b{color:var(--text2); font-weight:600}

/* ---- "Install the extension": the home page's START HERE card ----
   Copied from .hero in index.html. Fixed dark colours, so it reads the
   same in light and dark mode. Markup: see the posts in site/blog/. */
.pw-install{background:#16181C; border-radius:14px; margin:26px 0 8px;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  line-height:1.75; text-align:start}
.pw-install *{box-sizing:border-box}
.pw-install .hero-in{padding:26px 28px 24px}
.pw-install .hero-k{font-size:11px; letter-spacing:.12em; color:#7C8593;
  margin:0 0 8px; font-weight:700; font-family:inherit; text-transform:none}
.pw-install .hero-h{color:#fff; font-family:inherit; font-size:clamp(23px,4vw,31px);
  font-weight:700; font-style:normal; margin:0 0 10px; letter-spacing:-.015em;
  line-height:1.18; border:0; padding:0}
.pw-install .hero-p{color:#C7CDD4; font-size:16px; margin:0 0 18px;
  max-width:36em; line-height:1.65; font-family:inherit}
.pw-install p{margin:0; max-width:none}
.pw-install .hero-btn{display:inline-block; background:#C4491A; color:#fff;
  text-decoration:none; font-weight:700; font-size:16.5px; line-height:1.75;
  padding:13px 28px; border-radius:9px; border:0; font-family:inherit}
.pw-install .hero-btn:hover{background:#A63C15; color:#fff}
.pw-install .hero-n{color:#7C8593; font-size:13px; margin:11px 0 0}
@media(max-width:560px){ .pw-install .hero-in{padding:20px 18px 18px} }

@supports not (gap:1px){
  .pw .header > * + *, .pw .nav > * + *{margin-inline-start:10px}
}
@media (max-width:820px){
  .pw .nav a, .pw .nav a.navask{min-height:44px; display:inline-flex;
    align-items:center; padding-top:10px; padding-bottom:10px}
}
@media (max-width:640px){
  .pw .nav a.navask{margin-inline-start:0}
}
@media (max-width:560px){
  .pw .wordmark{font-size:25px}
  .pw .sitename{gap:8px}
}
