/* Walkxr blog — design reference (Product Design, Nov 13).
   Loads after site/style.css and reuses its tokens (--bg --ink --muted --line --accent). */
:root{--card:light-dark(#e8ede4,#171d16);--accent-ink:#101410;--measure:65ch}

/* Header: "Guides" is the first nav item; current page gets aria-current */
nav a[aria-current="page"]{color:var(--ink);text-decoration:none;box-shadow:inset 0 -2px 0 var(--accent)}

/* ---------- Article ---------- */
.article{padding-top:40px}
.article>*{max-width:var(--measure)}
.crumb{font-size:14px;color:var(--muted);margin:0 0 20px}
.crumb a{text-decoration:none}
.article h1{font-size:clamp(32px,6.4vw,48px);line-height:1.12;letter-spacing:-.025em;margin:0 0 16px}
.meta{font-size:14px;color:var(--muted);margin:0 0 28px}
.article .lede{font-size:20px;line-height:1.55;color:var(--ink);margin:0 0 32px}
.article p,.article li{font-size:18px;line-height:1.7}
.article h2{font-size:26px;line-height:1.25;letter-spacing:-.01em;margin:56px 0 16px}
.article h3{font-size:19px;line-height:1.35;margin:32px 0 6px}
.article h3+p{margin-top:0}
.article ul,.article ol{padding-left:1.3em}
.article li{margin:0 0 10px}
.article li::marker{color:var(--accent)}
.article strong{color:var(--ink);font-weight:650}
.article blockquote{margin:28px 0;padding:4px 0 4px 20px;border-left:3px solid var(--accent);font-size:19px;line-height:1.6}
.article blockquote p{margin:0}
.article blockquote cite{display:block;margin-top:8px;font-size:14px;font-style:normal;color:var(--muted)}
figure{margin:32px 0}
figure img{display:block;width:100%;height:auto;border-radius:16px;aspect-ratio:3/2;object-fit:cover}
figcaption{font-size:14px;color:var(--muted);margin-top:10px}
.hero{max-width:800px!important}
.hero img{aspect-ratio:16/9;object-position:50% 28%}
hr{border:0;border-top:1px solid var(--line);margin:48px 0}
.byline{font-size:15px;color:var(--muted)}

/* ---------- App Store box (mid-article + end) ---------- */
.get{display:grid;grid-template-columns:64px 1fr;gap:16px 18px;align-items:center;margin:44px 0;padding:24px;border-radius:20px;background:var(--card);border:1px solid var(--line)}
.get img.icon{width:64px;height:64px;border-radius:15px}
.get h2,.article .get h2{font-size:20px;line-height:1.3;margin:0}
.get p,.article .get p{font-size:16px;line-height:1.5;color:var(--muted);margin:4px 0 0}
.get .badge{grid-column:1/-1}
/* Apple's official "Download on the App Store" badge (black, from Apple Marketing Resources). Height 48px, no recolouring.
   The mockup draws a stand-in; production must use the official SVG. */
.badge{justify-self:start;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 16px 0 12px;border-radius:10px;background:#000;color:#fff;border:1px solid #a6a6a6;text-decoration:none}
.badge:hover{text-decoration:none}
.badge svg{width:26px;height:26px}
.badge span{display:flex;flex-direction:column;font-size:21px;line-height:1;font-weight:600;letter-spacing:-.01em}
.badge small{font-size:10px;font-weight:500;letter-spacing:.02em;margin-bottom:2px}
.get.end{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));background:color-mix(in srgb,var(--accent) 7%,var(--card))}
@media(min-width:640px){.get{grid-template-columns:64px 1fr auto}.get .badge{grid-column:auto}}

/* ---------- Cards (related + index) ---------- */
.related{max-width:none!important;margin-top:64px}
.related h2{margin-top:0}
.cards,.article .cards{display:grid;gap:16px;list-style:none;padding:0;margin:0}
.card{position:relative;display:grid;grid-template-columns:96px 1fr;gap:16px;padding:14px;border-radius:18px;background:var(--card);border:1px solid var(--line)}
.card img{width:96px;height:96px;border-radius:12px;object-fit:cover}
.card h3{font-size:18px;line-height:1.3;margin:2px 0 6px;font-weight:650}
.card h3 a{color:var(--ink);text-decoration:none}
.card h3 a::after{content:"";position:absolute;inset:0;border-radius:18px} /* whole card is the link */
.card:hover{border-color:var(--accent)}
.card:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.card p{font-size:15px;line-height:1.5;color:var(--muted);margin:0}
.card time{display:block;font-size:13px;color:var(--muted);margin-top:8px}
@media(min-width:720px){.related .cards{grid-template-columns:repeat(3,1fr)}.related .card{grid-template-columns:1fr}.related .card img{width:100%;height:auto;aspect-ratio:16/10}}

/* ---------- Blog index ---------- */
.index h1{font-size:clamp(36px,7vw,56px);margin-bottom:12px}
.index .lede{margin:0 0 40px;max-width:var(--measure)}
.feature{position:relative;display:grid;gap:0;margin:0 0 24px;border-radius:22px;overflow:hidden;background:var(--card);border:1px solid var(--line)}
.feature img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:50% 25%;display:block}
.feature div{padding:20px 22px 24px}
.feature .tag{font-size:13px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.feature h2{font-size:26px;line-height:1.2;margin:8px 0 10px}
.feature h2 a{color:var(--ink);text-decoration:none}
.feature h2 a::after{content:"";position:absolute;inset:0}
.feature:hover{border-color:var(--accent)}
.feature p{color:var(--muted);margin:0;font-size:16px}
.feature time{display:block;font-size:13px;color:var(--muted);margin-top:12px}
@media(min-width:720px){.feature{grid-template-columns:1.2fr 1fr;align-items:center}.feature img{height:100%;aspect-ratio:auto}.index .cards{grid-template-columns:1fr 1fr}}

/* Footer: Guides first */
footer a{color:var(--muted)}
footer a:hover{color:var(--accent)}

/* Production badge (Engineering): the link wraps Apple's official badge image, so drop the stand-in frame. */
.badge{height:auto;padding:0;border:0;border-radius:0;background:none}
.badge img{display:block;height:48px;width:auto}
