/* Navigation, rhythm and footer. Derived from design/browser-mockup nav.css, spacing.css and footer.css without search rules. */
/* One navigation and search surface across home, archive, and articles. */
.site-nav,.home .site-nav{position:relative;display:flex;gap:16px;height:45px;font-size:14px}
.site-nav .home-name{color:var(--accent);font-weight:600;text-decoration:none;white-space:nowrap;overflow:hidden;max-width:180px;opacity:1;transition:max-width .3s ease,opacity .2s ease;flex-shrink:0}
.site-nav .nav-links{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:1;min-width:0}
.site-nav .nav-links>a,.site-nav.search-open .nav-links>a{display:block;white-space:nowrap;color:var(--accent);text-decoration:none;font-size:13px}
.site-nav .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-nav .search-toggle,.site-nav .theme-toggle{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;margin:0;padding:0;border:0;background:none;color:var(--accent);cursor:pointer}
.site-nav .search-toggle svg{width:18px;height:18px}
@media(prefers-reduced-motion:reduce){.site-nav *{transition:none!important}}

.topic-tags{display:flex;flex-wrap:wrap;gap:6px 8px;list-style:none;padding:0;margin:12px 0 0}.topic-tags li,.post-list .topic-tags li{padding:3px 8px;margin:0;border:0;border-radius:3px;font-size:11px;font-weight:400;line-height:1.5;color:var(--leaf);background:var(--leaf-wash)}

/* Separate navigation from the page content without splitting article metadata. */
.page .site-nav,.home .site-nav,.archive .site-nav{margin-bottom:56px}
@media(max-width:760px){.page .site-nav,.home .site-nav,.archive .site-nav{margin-bottom:40px}}

/* Keyboard focus follows the shape of the control, without changing layout. */
:root{--focus-ring:var(--accent);--focus-fill:#805b3612}
:root[data-theme=dark]{--focus-ring:#edc58b;--focus-fill:#edc58b18}
a:focus-visible,.home-post h3 a:focus-visible,.site-nav a:focus-visible{
 outline:none;border-radius:0;text-decoration-line:underline;
 text-decoration-color:var(--focus-ring);text-decoration-thickness:3px;
 text-underline-offset:.22em;text-decoration-skip-ink:auto;
}
.site-nav .search-toggle,.site-nav .theme-toggle{border-radius:50%}
.site-nav button:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-6px;background:transparent}
.skip-link:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px;border-radius:6px}
main:focus{outline:none}
@media(forced-colors:active){
 a:focus-visible,.home-post h3 a:focus-visible,.site-nav a:focus-visible,
 .site-nav button:focus-visible{outline:2px solid Highlight;outline-offset:2px}
}

/* Search results read as discrete choices; focus never crowds the text. */

/* Shared footer for every mockup page. */
.page .site-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;border-top:1px solid var(--rule);color:var(--muted)}
.page .site-footer a{font-size:13px;color:var(--accent);min-height:44px}
.page .site-footer .footer-name{color:var(--muted)}
@media(max-width:760px){.page .site-footer{flex-direction:row;align-items:center}}

/* Quiet identity and useful destinations, with copyright kept secondary. */
.page .site-footer{align-items:flex-start;padding-bottom:8px;row-gap:20px}
.page .site-footer .footer-identity{display:flex;flex-direction:column;gap:6px}
.page .site-footer .footer-name{min-height:0;color:var(--heading);font-size:14px;font-weight:600;line-height:1.5}
.page .site-footer .footer-copyright{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.page .site-footer .footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px}
.page .site-footer .footer-links a{font-size:12px;min-height:44px}
@media(max-width:480px){.page .site-footer{flex-direction:column;gap:12px}.page .site-footer .footer-links{gap:8px 24px}}
/* Text-relative rhythm informed by LiftKit's proportional scale and optical
   padding model. These are local Poppins adjustments, not imported components. */
:root{
 --rhythm-base:1.0625rem;
 --space-tight:calc(var(--rhythm-base) * .382);
 --space-related:calc(var(--rhythm-base) * .618);
 --space-group:calc(var(--rhythm-base) * 1.618);
 --space-section:calc(var(--rhythm-base) * 2.618);
 --space-region:calc(var(--rhythm-base) * 4.236);
}
.page .site-nav,.home .site-nav,.archive .site-nav{margin-bottom:var(--space-region)}
/* A single gap owns each relationship; heading margins cannot stack with it. */
.article-header{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-related);margin-bottom:var(--space-section)}
.article-header h1,.article-header time,.article-header .topic-tags{margin:0}
.article-header h1{line-height:1.2}
.article-header .topic-tags{gap:.382em .618em}
.archive .article-header{margin-bottom:var(--space-group)}
/* Headings have more separation from the previous section than their own text.
   Their local em values respond to the heading's actual font size. */
article>:is(p,ul,ol,figure,blockquote,pre){margin-block:0}
article>:is(p,ul,ol,figure,blockquote,pre)+:is(p,ul,ol,figure,blockquote,pre){margin-top:1em}
article>h2,article>h3,article>h4{margin-top:1.618em;margin-bottom:0}
article>h2+:is(p,ul,ol,figure,blockquote,pre),article>h3+:is(p,ul,ol,figure,blockquote,pre),article>h4+:is(p,ul,ol,figure,blockquote,pre){margin-top:.618em}
article>h2+h3,article>h3+h4{margin-top:1em}
article>figure:nth-child(n),article>p:has(>img){margin-top:1.618em;margin-bottom:1.618em}
article figure img,article p>img{margin:0 auto}
article figcaption{margin-top:.618em;line-height:1.5}
article li{margin:.382em 0}
article li p{margin:0 0 .618em}
article li p:last-child{margin-bottom:0}
article>blockquote:nth-child(n),article>pre:nth-child(n),article>.table-scroll{margin-top:1.618em;margin-bottom:1.618em}
/* The quote's 1.8 line height contributes .4em above and below the glyphs.
   Remove that leading from the vertical inset, retaining generous side space. */
article blockquote{padding:1.218em 1.618em;line-height:1.8}
article blockquote p:last-child{margin-bottom:0}
.home-post{padding-block:var(--space-section)}
.home-post h3{margin:0 0 .382em;line-height:1.3}
.home-post p{margin-top:.618em}
.home-post .post-tags{margin-top:var(--space-related);gap:.382em .618em}
.post-tags li,.topic-tags li{padding:.273em .727em}
.archive .home-post:first-child{padding-top:0}
.welcome{margin-top:0;margin-bottom:var(--space-section)}
.welcome>div>p:last-child{margin-top:.618em}
.page footer{margin-top:var(--space-section);padding-top:var(--space-group)}
/* Icons stay 18px inside their 44px targets. A small optical lift aligns them
   with the visual centre of Poppins rather than its full line box. */
.site-nav .search-toggle svg,.site-nav .theme-toggle svg{transform:translateY(-.06em)}

@media(max-width:760px){
 :root{--rhythm-base:1rem;--space-region:calc(var(--rhythm-base) * 2.618)}
 .home-post{padding-block:var(--space-group)}
}
/* Shared accepted footer: site links, social icons, and separate copyright. */
.page .site-footer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;margin-top:40px;padding:24px 0 4px;border-top:1px solid var(--rule);text-align:center}
.page .site-footer .footer-internal,.page .site-footer .footer-links{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:wrap;order:0;margin:0}
.page .site-footer .footer-internal{gap:24px}
.page .site-footer .footer-links{gap:8px}
.page .site-footer .footer-internal a,.page .site-footer .footer-links a{display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:24px;color:var(--accent);text-decoration:none}
.page .site-footer .footer-internal a{min-height:32px;padding:4px 0}
.page .site-footer .footer-links a{position:relative;width:44px;height:36px;min-height:36px;padding:0}
.page .site-footer .footer-links svg{width:16px;height:16px;flex-shrink:0}
.page .site-footer a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
.page .site-footer a:focus-visible{outline:none;text-decoration:underline;text-decoration-color:var(--focus-ring);text-decoration-thickness:3px;text-underline-offset:.22em}
.page .site-footer .footer-links a:hover::after,.page .site-footer .footer-links a:focus-visible::after{content:"";position:absolute;bottom:3px;left:12px;right:12px;height:2px;background:var(--focus-ring);border-radius:1px}
.page .site-footer .footer-copyright{margin:24px 0 0;font-size:11px;line-height:18px;color:var(--muted);text-align:center}
.page{padding-bottom:28px}
@media(max-width:480px){.page .site-footer{margin-top:32px;padding-top:20px}}
@media(forced-colors:active){.page .site-footer a:focus-visible{outline:2px solid Highlight}}
