/* The dev blog: what shipped, newest first. site.css holds the tokens and the
   header; landing.css the section rhythm, the kicker and the footer. Every
   direction here is logical, so the same rules lay out Arabic and English. */

/* ---- hero, with the latest release hanging out of it */
/* flow-root keeps the card's negative margin inside the band, so the card
   hangs out of the yellow instead of the yellow following it down. */
.blog-hero{background:var(--raha);padding-block:2.25rem 0;display:flow-root}
@media (min-width:820px){.blog-hero{padding-block:3rem 0}}
.blog-hero h1{font-size:clamp(1.8rem,4.4vw,2.8rem);margin-bottom:.5rem}
.blog-hero .lead{font-size:1.06rem;max-width:40em;margin-bottom:1.6rem;font-weight:500}
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.55);color:var(--ink);font-weight:800;font-size:.85rem;padding:.3rem .9rem;border-radius:100px;margin-bottom:.8rem}

.release{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);display:grid;margin-bottom:-4.5rem;position:relative;overflow:hidden}
@media (min-width:900px){.release{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}}
.rel-info{padding:1.4rem 1.3rem 1.5rem}
@media (min-width:900px){.rel-info{padding:2rem 2.25rem 2.1rem}}
.rel-top{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.75rem}
.rel-ver{display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .9rem;margin-bottom:.45rem}
.rel-ver h2{font-size:clamp(1.65rem,3.2vw,2.25rem)}
.rel-sum{color:var(--ink-soft);font-size:1rem;max-width:42em;margin-bottom:1.15rem}
.rel-list{list-style:none;margin:0;padding:0;display:grid;gap:.6rem 1.25rem}
@media (min-width:640px){.rel-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rel-list li{display:flex;gap:.6rem;align-items:center;font-weight:700;font-size:.93rem;line-height:1.45}
.rel-info .btn-row{margin-top:1.4rem}
.rel-info .btn-row .btn{flex:0 1 auto}

.ico{flex:none;width:34px;height:34px;border-radius:10px;background:var(--raha-wash);color:var(--raha-ink);display:grid;place-items:center}
.ico svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Two screens of the release, on the brand's own yellow. */
.rel-art{background:radial-gradient(ellipse at 50% 35%,#FAD55A,var(--raha) 60%,var(--raha-deep));display:flex;justify-content:center;align-items:flex-start;padding:2rem 1rem 0;min-height:250px;max-height:340px;overflow:hidden}
@media (min-width:900px){.rel-art{max-height:none}}
.ph{border-radius:28px;padding:7px;background:var(--ink);box-shadow:0 18px 40px rgba(31,39,48,.25);flex:none}
.ph img{display:block;width:100%;height:auto;border-radius:21px}
.rel-art .ph{width:min(46%,210px)}
.rel-art .ph + .ph{margin-inline-start:-9%;margin-top:2.75rem}

/* ---- sections below the hero: the first has to clear the hanging card */
.blog-sec{padding-block:0 3.25rem}
.blog-sec.after-hero{padding-top:7.5rem}
.blog-sec > h2{font-size:clamp(1.35rem,2.8vw,1.8rem);margin-bottom:.4rem}
.blog-sec > .sub{color:var(--ink-soft);font-size:1rem;max-width:40em;margin-bottom:1.25rem;font-weight:500}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:.5rem 1rem;margin-bottom:1.25rem}
.sec-head h2{font-size:clamp(1.35rem,2.8vw,1.8rem);margin-bottom:.3rem}
.sec-head .sub{color:var(--ink-soft);font-size:1rem;font-weight:500}
.sec-head a{font-weight:800;color:var(--border-c);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}

/* ---- what is new: one picture and one paragraph each. Flat, because it explains. */
.feats{display:grid;gap:1rem;grid-template-columns:1fr}
@media (min-width:640px){.feats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){.feats{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* A phone swipes through them rather than scrolling past six pictures. */
@media (max-width:639px){
  .feats{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:84%;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem;scrollbar-width:thin}
  .feature{scroll-snap-align:start}
}
.feature{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;display:grid;grid-template-rows:auto 1fr;margin:0}
.feature .pic{background:var(--raha-wash);height:210px;overflow:hidden;display:flex;justify-content:center;padding-top:1.4rem;border-bottom:1px solid var(--line)}
.feature .pic img{width:58%;height:auto;align-self:flex-start;border-radius:20px 20px 0 0;border:6px solid var(--ink);border-bottom:0;transform:translateY(var(--y,0));box-shadow:0 10px 24px rgba(31,39,48,.14)}
/* A page of the website is wide, not tall: it sits in a window rather than a phone. */
.feature .pic.wide{padding:1.1rem 1.1rem 0}
.feature .pic.wide img{width:100%;border:0;border-radius:10px 10px 0 0;box-shadow:0 8px 22px rgba(31,39,48,.16)}
.feature .body{padding:1rem 1.15rem 1.25rem;display:grid;gap:.35rem;align-content:start}
.feature .read{justify-self:start;font-weight:800;font-size:.92rem;color:var(--border-c);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.feature .read:hover{text-decoration:underline}
.feature .chips{margin-bottom:.15rem}
.feature h3{font-size:1.06rem}
.feature p{color:var(--ink-soft);font-size:.92rem}

/* ---- posts: a card is a link, so it is raised */
.posts{display:grid;gap:1rem;grid-template-columns:1fr}
@media (min-width:700px){.posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){.posts{grid-template-columns:repeat(3,minmax(0,1fr))}}
.post{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:grid;grid-template-rows:auto 1fr;text-decoration:none;color:inherit;box-shadow:var(--shadow)}
.post > img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;border-bottom:1px solid var(--line)}
.post .body{padding:1.1rem 1.2rem 1.25rem;display:grid;gap:.45rem;align-content:start}
.post-meta{display:flex;flex-wrap:wrap;gap:.3rem .6rem;align-items:center;font-size:.8rem;color:var(--steel-text);font-weight:700}
.post h3{font-size:1.12rem;line-height:1.4}
.post p{color:var(--ink-soft);font-size:.92rem}
.post .more{font-weight:800;color:var(--border-c);font-size:.9rem;margin-top:.15rem}
.post:hover h3,.post:focus-visible h3{text-decoration:underline}
.post:hover{border-color:var(--raha-deep)}
@media (min-width:700px){
  .post.lead-post{grid-column:1/-1;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto}
  .post.lead-post > img{height:100%;border-bottom:0;border-inline-end:1px solid var(--line)}
  .post.lead-post .body{padding:1.75rem 2rem;align-content:center;gap:.6rem}
  .post.lead-post h3{font-size:clamp(1.3rem,2.4vw,1.7rem);line-height:1.3}
  .post.lead-post p{font-size:1rem}
}
.byline-s{display:flex;align-items:center;gap:.5rem;font-size:.82rem;font-weight:700;color:var(--ink-soft);margin-top:.3rem}
.byline-s img{width:28px;height:28px;border-radius:8px}

/* ---- changelog: a line down the page, one dot a day something shipped */
.log-wrap{display:grid;gap:1rem}
@media (min-width:980px){.log-wrap{grid-template-columns:minmax(0,1fr) 320px;align-items:start}}
.log-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:1.5rem 1.25rem .4rem}
@media (min-width:700px){.log-card{padding:2rem 2rem .6rem}}
.log{list-style:none;margin:0 .45rem 0 0;padding:0;border-inline-start:2px solid var(--line)}
[dir=ltr] .log{margin:0 0 0 .45rem}
.log > li{position:relative;padding:0 1.4rem 1.6rem}
.log > li::before{content:"";position:absolute;inset-inline-start:-9px;top:.3rem;width:16px;height:16px;border-radius:50%;background:var(--card);border:3px solid var(--steel)}
.log > li.rel::before{background:var(--raha);border-color:var(--ink)}
.log-head{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .55rem;margin-bottom:.3rem}
.log time{font-weight:800;font-size:.86rem;color:var(--steel-text)}
.ver{font-weight:900;font-size:.78rem;background:var(--ink);color:#fff;border-radius:100px;padding:.14rem .6rem}
.log h3{font-size:1.04rem;margin-bottom:.3rem}
.log ul{margin:0;padding-inline-start:1.15rem;color:var(--ink-soft);font-size:.92rem;display:grid;gap:.15rem}
.log a{font-weight:800;color:var(--border-c);font-size:.9rem;text-decoration:none;display:inline-flex;min-height:44px;align-items:center}

.side{display:grid;gap:1rem}
@media (min-width:980px){.side{position:sticky;top:5.5rem}}
.side-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:1.3rem;display:grid;gap:.6rem}
.side-card.dark{background:var(--ink);color:#fff;border-color:var(--ink)}
.side-card.dark p{color:rgba(255,255,255,.75)}
.side-card h3{font-size:1.08rem}
.side-card p{color:var(--ink-soft);font-size:.92rem}
.side-card .big-ver{font-size:2.4rem;font-weight:900;line-height:1;color:var(--raha)}
.side-card .store{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;background:var(--raha);color:var(--ink);border-radius:var(--r-sm);padding:0 1.1rem;min-height:50px;font-weight:900;font-size:.95rem;text-decoration:none}
.side-card .store svg{width:22px;height:22px;fill:currentColor;flex:none}
.side-card a.mail{font-weight:800;color:var(--border-c);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}

/* ---- a post */
.post-head{padding-block:2.25rem 1.75rem}
.narrow{max-width:780px;margin:0 auto;padding-inline:1.25rem}
.crumbs{font-size:.86rem;font-weight:700;color:var(--steel-text);display:flex;gap:.45rem;flex-wrap:wrap;align-items:center;margin-bottom:.9rem}
.crumbs a{color:var(--ink-soft);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.crumbs a:hover{text-decoration:underline}
.post-head h1{font-size:clamp(1.75rem,4vw,2.55rem);margin:.7rem 0 .65rem;line-height:1.3;max-width:24em}
.post-head .lead{font-size:1.1rem;color:var(--ink-soft);font-weight:500;max-width:42em}
/* No dot between the date and the reading time: beside Arabic-Indic digits a
   middle dot reads as a zero. The gap is the separator. */
.byline-meta{display:flex;flex-wrap:wrap;gap:0 .9rem}
.byline{display:flex;align-items:center;gap:.75rem;margin-top:1.3rem;font-size:.86rem;color:var(--steel-text);font-weight:700}
.byline img{width:44px;height:44px;border-radius:12px}
.byline b{display:block;color:var(--ink);font-size:.96rem}
.post-cover{max-width:1120px;margin:0 auto 2rem;padding-inline:1.25rem}
.post-cover img{display:block;width:100%;height:auto;border-radius:var(--r-lg);border:1px solid var(--line)}
.post-grid{display:grid;gap:1.5rem;max-width:1120px;margin:0 auto;padding:0 1.25rem 3.25rem}
@media (min-width:980px){.post-grid{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:2rem}}
.prose{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:1.5rem 1.25rem}
@media (min-width:700px){.prose{padding:2.25rem 2.5rem}}
.prose h2{font-size:1.38rem;margin:2.1rem 0 .6rem;scroll-margin-top:5.5rem}
.prose h2:first-child{margin-top:0}
.prose p{color:var(--ink-soft);font-size:1.03rem;line-height:1.9;margin-bottom:.9rem}
.prose figure{margin:1.4rem 0 1.6rem}
.shots{display:flex;gap:1rem;justify-content:center;background:var(--raha-wash);border-radius:var(--r-md);padding:1.6rem 1rem 0;overflow:hidden;max-height:360px}
.shots img{width:min(40%,200px);height:auto;align-self:flex-start;border-radius:22px 22px 0 0;border:6px solid var(--ink);border-bottom:0;box-shadow:0 10px 24px rgba(31,39,48,.14)}
.prose figcaption{font-size:.86rem;color:var(--steel-text);font-weight:600;margin-top:.55rem;text-align:center}
.callout{display:flex;gap:.8rem;align-items:flex-start;background:var(--border-wash);color:var(--border-c);border-radius:var(--r-md);padding:1rem 1.1rem;margin:1.2rem 0 1.4rem;font-weight:700;font-size:.97rem;line-height:1.7}
.callout .ico{background:var(--card);color:var(--border-c)}
/* One page of the website in a post: a window, not a phone. */
.shots.wide{height:auto;max-height:540px;padding:1.4rem 1.4rem 0}
.shots.wide img{width:100%;max-width:620px;border:0;border-radius:10px 10px 0 0}
.prose ul,.prose ol{color:var(--ink-soft);font-size:1.03rem;line-height:1.9;margin:0 0 1rem;padding-inline-start:1.3rem}
.prose li{margin-bottom:.35rem}
.prose li::marker{color:var(--border-c);font-weight:800}
.prose b{color:var(--ink)}
.prose a{color:var(--border-c);font-weight:700}
.prose code{font-family:'IBM Plex Mono',monospace;font-size:.86em;background:var(--sand);border-radius:6px;padding:.05rem .35rem;direction:ltr;unicode-bidi:isolate}
.side-card .btn{width:100%}
.toc{list-style:none;margin:0;padding:0;display:grid;gap:.1rem}
.toc a{display:flex;min-height:40px;align-items:center;text-decoration:none;font-weight:700;font-size:.93rem;color:var(--ink-soft);border-radius:8px;padding-inline:.5rem}
.toc a:hover{background:var(--sand)}
.facts{display:grid;grid-template-columns:auto 1fr;gap:.35rem .9rem;margin:0;font-size:.9rem}
.facts dt{color:var(--steel-text);font-weight:700}
.facts dd{margin:0;font-weight:800}

/* ---- the home page's window onto the blog: the latest version on one line,
   then the three newest posts */
.ver-strip{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;background:var(--ink);color:#fff;border-radius:var(--r-md);padding:.85rem 1.25rem;text-decoration:none;margin-bottom:1rem;min-height:56px}
.ver-strip .chip{background:var(--raha);color:var(--ink)}
.ver-strip b{font-size:1.12rem;font-weight:900}
.ver-strip span{color:rgba(255,255,255,.78);font-weight:600;font-size:.92rem}
.ver-strip .go{margin-inline-start:auto;font-weight:800;color:var(--raha)}
.ver-strip:hover .go{text-decoration:underline}
