/* Guides — long-form pages. Same identity as the landing (plum gradient, cream,
   Instrument Serif, terracotta) but on paper for reading, like the legal pages. */
:root{
  --paper:#F6F3EE;--ink:#241f1b;--mut:rgba(36,31,27,.72);--line:rgba(36,31,27,.1);
  --cream:#FBF4EC;--terra:#B15B3E;--amber:#F3C9A0;--plum:#37243f;
  --serif:"Instrument Serif",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--sans);color:var(--ink);background:var(--paper);line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:var(--terra)}
img{max-width:100%}
.wrap{max-width:740px;margin:0 auto;padding:0 22px}

/* App Store badge (Apple standard lockup), same as the landing */
.store{display:inline-flex;align-items:center;gap:11px;background:#000;color:#fff;padding:11px 20px 11px 16px;border-radius:14px;text-decoration:none;transition:transform .15s}
.store:hover{transform:translateY(-2px)}
.store svg{width:24px;height:24px;fill:#fff;flex:0 0 auto}
.store .t{display:flex;flex-direction:column;line-height:1.1}
.store .t small{font-size:10.5px;opacity:.85}.store .t b{font-size:18px;font-weight:600}
.store.nav{padding:7px 13px 7px 11px;border-radius:11px}
.store.nav svg{width:18px;height:18px}.store.nav .t small{font-size:8px}.store.nav .t b{font-size:13.5px}

/* header band */
.hero{color:var(--cream);
  background:radial-gradient(120% 90% at 85% 0%,#B96A54 0%,rgba(185,106,84,0) 48%),linear-gradient(155deg,#7c4a52,#5a3a5e 55%,#37243f)}
.topbar{display:flex;align-items:center;gap:16px;height:68px}
.topbar .brand{font-family:var(--serif);font-size:29px;color:var(--cream);text-decoration:none}
.topbar .grow{flex:1}
.topbar .lnk{color:var(--cream);opacity:.78;text-decoration:none;font-size:14px;font-weight:600}
.topbar .lnk:hover{opacity:1}
.hero .head{padding:34px 0 54px}
.crumbs{font-size:13px;opacity:.75;margin-bottom:18px}
.crumbs a{color:var(--cream);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.kick{font-weight:800;letter-spacing:3.5px;font-size:12px;text-transform:uppercase;color:var(--amber)}
.hero h1{font-family:var(--serif);font-weight:400;font-size:clamp(40px,7vw,64px);line-height:1.02;margin:12px 0 0;letter-spacing:-.3px}
.hero .lede{font-size:clamp(17px,2.2vw,19.5px);color:rgba(251,244,236,.82);margin-top:18px;max-width:58ch}
.hero .meta{font-size:13px;color:rgba(251,244,236,.6);margin-top:20px}

/* article body */
article{padding:46px 0 20px}
article h2{font-weight:800;font-size:clamp(23px,3.4vw,28px);line-height:1.2;letter-spacing:-.4px;margin:46px 0 12px}
article h3{font-weight:700;font-size:18.5px;line-height:1.35;margin:28px 0 8px}
article p,article li{font-size:17px;color:var(--mut);margin-bottom:14px}
article strong{color:var(--ink)}
article ul,article ol{padding-left:24px;margin-bottom:16px}
article li{margin-bottom:9px;padding-left:2px}
article li::marker{color:var(--terra);font-weight:700}
article > p:first-child{font-size:18.5px;color:var(--ink)}
.note{background:rgba(177,91,62,.08);border-left:3px solid var(--terra);border-radius:0 14px 14px 0;padding:16px 18px;margin:22px 0}
.note p:last-child{margin-bottom:0}

/* real screenshots: one, or a row of up to three */
.shots{display:flex;gap:16px;justify-content:center;margin:28px 0 30px}
.shots figure{flex:1 1 0;max-width:260px;margin:0}
.shots img{display:block;width:100%;height:auto;border-radius:22px;box-shadow:0 22px 50px rgba(36,20,40,.22),0 0 0 1px rgba(36,31,27,.06)}
.shots figcaption{font-size:13.5px;color:var(--mut);text-align:center;margin-top:10px;line-height:1.4}

/* where Till comes in */
.till{margin:52px 0 10px;border-radius:28px;padding:32px 30px;color:var(--cream);
  background:radial-gradient(110% 90% at 15% 10%,#B96A54 0%,rgba(185,106,84,0) 50%),linear-gradient(155deg,#84504f,#4f3356 55%,#2e2141);
  box-shadow:0 30px 70px rgba(36,20,40,.25)}
.till h2{font-family:var(--serif);font-weight:400;font-size:clamp(30px,5vw,40px);letter-spacing:0;line-height:1.08;margin:8px 0 14px;color:var(--cream)}
.till h3{color:var(--cream)}
.till p,.till li{color:rgba(251,244,236,.84)}
.till strong{color:var(--cream)}
.till a{color:var(--amber)}
.till li::marker{color:var(--amber)}
.till .shots img{box-shadow:0 22px 50px rgba(10,5,12,.4)}
.till .shots figcaption{color:rgba(251,244,236,.7)}
.till .cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin-top:22px}
.till .cta small{font-size:13px;color:rgba(251,244,236,.65)}

/* related + index cards */
.more{padding:26px 0 10px}
.more h2{font-weight:800;font-size:20px;margin-bottom:14px}
.cards{display:grid;gap:14px}
.cards a{display:block;text-decoration:none;color:var(--ink);background:#fff;border-radius:18px;padding:20px 22px;
  box-shadow:0 0 0 1px var(--line);transition:transform .15s,box-shadow .15s}
.cards a:hover{transform:translateY(-2px);box-shadow:0 0 0 1px rgba(177,91,62,.35),0 14px 30px rgba(36,20,40,.08)}
.cards b{display:block;font-family:var(--serif);font-weight:400;font-size:25px;line-height:1.15}
.cards span{display:block;color:var(--mut);font-size:15px;margin-top:6px}
.index{padding:40px 0 30px}

.more.gtools{padding:10px 0 40px}.more .promo{color:var(--mut);margin:-4px 0 14px;font-size:16px}
footer.site{margin-top:40px}footer.site .wrap{max-width:1120px}

@media(max-width:560px){
  .topbar .lnk.hide-sm{display:none}
  .till{padding:26px 20px;border-radius:22px;margin-left:-6px;margin-right:-6px}
  .shots{gap:10px}
  .shots img{border-radius:16px}
  article p,article li{font-size:16.5px}
}
@media(prefers-reduced-motion:reduce){.store,.cards a{transition:none}}
.toolnav{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 16px 14px;margin:0 -16px}
.toolnav::-webkit-scrollbar{display:none}
.toolnav a{flex:none;white-space:nowrap;padding:9px 15px;border-radius:999px;background:rgba(251,244,236,.13);color:var(--cream);text-decoration:none;font:600 14px/1 var(--sans)}
.toolnav a:hover{background:rgba(251,244,236,.24)}
.toolnav a[aria-current="page"]{background:var(--cream);color:#3a2540}
@media(min-width:900px){.toolnav{padding:2px 0 18px;margin:0;flex-wrap:wrap}}

/* phone-only download bar, fixed near the thumb */
.dlbar{display:none}
@media(max-width:760px){
  .dlbar{position:fixed;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;gap:12px;padding:9px 10px 9px 9px;border-radius:20px;background:rgba(36,24,44,.92);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 0 0 1px rgba(255,255,255,.12),0 14px 34px rgba(10,5,14,.45);color:var(--cream)}
  .dlbar img{width:44px;height:44px;border-radius:11px;flex:none}
  .dlbar .tx{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
  .dlbar .tx b{font:400 21px/1 var(--serif,Georgia,serif)}
  .dlbar .tx span{font-size:12.5px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dlbar .store.nav{padding:8px 14px 8px 11px;border-radius:13px;flex:none}
  body{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
  .dp-pop{bottom:calc(96px + env(safe-area-inset-bottom))!important}
}

/* statistics pages: tables of sourced numbers and the "how to cite" box */
.table{overflow-x:auto;margin:20px 0 8px;border-radius:14px;box-shadow:0 0 0 1px var(--line);background:#fff}
.table table{width:100%;border-collapse:collapse;font-size:15px;min-width:480px}
.table th,.table td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.table th{font-weight:700;color:var(--ink);background:rgba(177,91,62,.06)}
.table td{color:var(--mut)}
.table tr:last-child td{border-bottom:0}
.cite{margin:40px 0 10px;background:#fff;border-radius:20px;padding:24px 24px 10px;box-shadow:0 0 0 1px var(--line)}
.cite .kick{color:var(--terra)}
.cite p{font-size:15.5px}
.cite code{font:14px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink);background:rgba(36,31,27,.05);padding:2px 5px;border-radius:5px;word-break:break-word}
