/* frodehus theme — quiet cards, banner-led, one orange accent. MIT. */

/* ---- Fonts (self-hosted, SIL OFL 1.1; see assets/fonts/LICENSES.txt) ---- */
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"),url("../fonts/figtree-latin-wght-normal.woff2") format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:200 800;font-display:swap;src:url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"),url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"),url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2")}

/* ---- Tokens ---- */
:root{
  --bg:#F4F2EE;--surface:#FFFFFF;--ink:#151719;--muted:#555B61;--line:#DAD6CE;
  --accent:#F28A2E;--accent-ink:#151719;--accent-text:#A84600;--thumb:#E7E4DD;
  --font-body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-display:"Bricolage Grotesque","Figtree",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --radius:16px;--radius-sm:12px;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#151719;--surface:#1D2124;--ink:#F3F1EC;--muted:#AEB5BB;--line:#30373C;
  --accent:#F5A524;--accent-text:#F5A524;--thumb:#252B2F;
  color-scheme:dark;
}

/* ---- Base ---- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:17px;line-height:1.6;overflow-x:clip;-webkit-font-smoothing:antialiased}
img,svg,video{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
p{margin:0}
h1,h2,h3,h4{margin:0}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:12px;top:-60px;background:var(--accent);color:var(--accent-ink);padding:10px 16px;border-radius:10px;font-weight:700;z-index:100}
.skip-link:focus{top:12px}
[hidden]{display:none!important}

.display{font-family:var(--font-display);letter-spacing:-.02em;line-height:1.08;font-weight:700}
.mono{font-family:var(--font-mono)}
.muted{color:var(--muted)}
.wrap{max-width:1160px;margin:0 auto;padding:0 24px;width:100%}
.wrap.narrow{max-width:860px}
.stack{display:flex;flex-direction:column;gap:20px}
.stack-lg{display:flex;flex-direction:column;gap:40px}
.h2{font-size:36px}
.h3{font-size:30px}
.eyebrow{font-family:var(--font-mono);font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.section{padding:56px 0}
.section.pt-0{padding-top:0}
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px}
.text-link{font-weight:600;color:var(--accent-text);min-height:44px;display:inline-flex;align-items:center}
.text-link:hover{text-decoration:underline;text-underline-offset:3px}
.back-link{color:var(--muted);font-size:14px;min-height:44px;display:inline-flex;align-items:center}
.back-link:hover{color:var(--ink)}

/* ---- Buttons, tags, cards ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:var(--radius-sm);font-weight:700;font-size:16px;border:0;cursor:pointer;background:var(--accent);color:var(--accent-ink);font-family:inherit;line-height:1;transition:filter .15s,border-color .15s}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
.btn.ghost:hover{border-color:var(--accent);filter:none}
.btn.onimg{background:rgba(0,0,0,.5);color:#fff;border:1.5px solid rgba(255,255,255,.75);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.btn.is-disabled{opacity:.5;cursor:default;pointer-events:none}
.icon-btn{width:48px;height:48px;border-radius:var(--radius-sm);border:1.5px solid var(--line);background:var(--surface);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;font-family:inherit}
.icon-btn:hover{border-color:var(--accent)}
.icon-btn.small{width:44px;height:44px}
.tag{display:inline-flex;align-items:center;padding:1px 10px;border-radius:6px;font-family:var(--font-mono);font-size:13px;border:1px solid var(--line);color:var(--muted);background:transparent;line-height:1.7}
.tag.hl{color:var(--accent-text);border-color:var(--accent)}
a.tag:hover{border-color:var(--accent);color:var(--ink)}
.tag-lg{min-height:40px;padding:0 14px;font-size:14px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s}
a.card:hover,.card.project-card:hover{border-color:var(--accent)}
.card.box{padding:32px;gap:14px}
.grid{display:grid;gap:20px}
.grid-posts{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}
.grid-projects{grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr))}
.duo{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr));gap:20px}

/* post card */
.post-card .card-media{aspect-ratio:16/9;background:var(--thumb);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;overflow:hidden}
.post-card .card-media img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.card-tags{display:flex;gap:8px;flex-wrap:wrap}
.card-title{font-size:22px}
.card-title.lg{font-size:28px}
.card-excerpt{color:var(--muted);font-size:16px;flex:1}
.card-meta{color:var(--muted);font-size:13px}
.post-card.is-featured{flex-direction:row;flex-wrap:wrap}
.post-card.is-featured .card-media{flex:1 1 340px;aspect-ratio:auto;min-height:260px}
.post-card.is-featured .card-body{flex:1 1 340px;padding:32px;justify-content:center;gap:14px}
.post-card.is-featured .card-title{font-size:32px}

/* project card + rows */
.project-card .card-media{display:block;aspect-ratio:16/9;background:var(--thumb);overflow:hidden}
.project-card .card-media img{width:100%;height:100%;object-fit:cover;display:block}
.project-card .card-body{padding:28px;gap:14px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;padding-top:6px}
.prows{border-bottom:1px solid var(--line)}
.prow{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 32px;padding:22px 0;border-top:1px solid var(--line)}
.prow-title{font-size:24px}
.prow-desc{color:var(--muted)}
.prow-go{font-size:20px;justify-self:end;transition:transform .15s}
.prow:hover .prow-go{color:var(--accent-text);transform:translateX(4px)}
@media (min-width:760px){.prow{grid-template-columns:240px minmax(0,1fr) 40px;align-items:baseline}}

/* ---- Header ---- */
.site-header{padding:20px 0;position:relative;z-index:5}
.site-header-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.brand{font-size:22px;display:inline-flex;align-items:center;min-height:44px}
.brand img{max-height:36px;width:auto;display:block}
.brand-accent{color:var(--accent-text)}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:2px}
.site-nav a{padding:10px 14px;border-radius:10px;font-weight:600;min-height:44px;display:inline-flex;align-items:center}
.site-nav a:hover{background:var(--line)}
.site-nav .nav-current a{color:var(--accent-text)}
.site-actions{display:flex;align-items:center;gap:10px}
.icon-sun{display:none}
:root[data-theme="dark"] .icon-sun{display:block}
:root[data-theme="dark"] .icon-moon{display:none}

/* ---- Home hero ---- */
.hero{position:relative;min-height:560px;background-color:#1f2d4d;background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:flex-end;color:#fff}
.hero{--top:.6;--mid:.3;--bot:.82}
.hero.scrim-medium{--top:.5;--mid:.15;--bot:.65}
.hero.scrim-max{--top:.7;--mid:.5;--bot:.92}
.hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,var(--top)) 0%,rgba(0,0,0,0) 22%),linear-gradient(180deg,rgba(0,0,0,0) 20%,rgba(0,0,0,var(--mid)) 50%,rgba(0,0,0,var(--bot)) 100%)}
:root[data-theme="dark"] .hero-shade{box-shadow:inset 0 0 0 100vmax rgba(0,0,0,.18)}
.hero-text{display:flex;flex-direction:column;gap:14px;text-shadow:0 2px 18px rgba(0,0,0,.6),0 1px 2px rgba(0,0,0,.65)}
.hero-text .btn{text-shadow:none}
.hero.has-panel .hero-text{align-self:flex-start;max-width:680px;padding:28px 32px;border-radius:20px;background:rgba(12,14,16,.62);-webkit-backdrop-filter:blur(12px) saturate(1.1);backdrop-filter:blur(12px) saturate(1.1);border:1px solid rgba(255,255,255,.14);text-shadow:none}
.home-template .site-nav a,.home-template .brand{text-shadow:0 1px 10px rgba(0,0,0,.7)}
.hero-inner{position:relative;display:flex;flex-direction:column;gap:14px;padding-top:120px;padding-bottom:56px}
.hero-title{font-size:clamp(44px,7vw,80px)}
.hero-tagline{font-size:24px}
.hero-intro{max-width:560px;color:#fff;text-wrap:pretty}
.home-template .site-header{position:absolute;inset:0 0 auto 0;color:#fff}
.home-template .site-nav a:hover{background:rgba(255,255,255,.18)}
.home-template .brand-accent{color:#F5A524}
.home-template .icon-btn{background:rgba(0,0,0,.5);border-color:rgba(255,255,255,.4);color:#fff}
.home-template .site-header .btn{background:#F5A524;color:#151719}
.home-template .site-nav .nav-current a{color:#F5A524}

/* ---- Article ---- */
.article-head{padding-top:40px;padding-bottom:32px;display:flex;flex-direction:column;gap:20px;align-items:flex-start}
.article-title{font-size:clamp(36px,6vw,58px);text-wrap:balance}
.article-excerpt{font-size:21px;color:var(--muted);text-wrap:pretty}
.meta-row{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--muted);font-size:14px}
.meta-author{color:var(--ink)}
.feature{max-width:1100px;margin:0 auto 48px;padding:0 24px}
.feature img{width:100%;border-radius:var(--radius);display:block}
figcaption,.kg-card figcaption{text-align:center;color:var(--muted);font-size:15px;padding-top:12px}
.read-progress{height:4px;background:var(--line);position:sticky;top:0;z-index:20}
.read-progress span{display:block;height:100%;width:0;background:var(--accent)}

.post-layout{display:block;padding-bottom:64px}
.post-layout.is-single .gh-content{margin:0 auto}
.post-layout.has-toc{display:grid;grid-template-columns:minmax(0,1fr);gap:40px}
@media (min-width:1040px){
  .post-layout.has-toc{grid-template-columns:240px minmax(0,720px);justify-content:center;align-items:start}
}
.post-layout .gh-content{max-width:720px;margin:0 auto;min-width:0}
.toc{display:none}
.has-toc .toc{display:flex;flex-direction:column;gap:2px}
@media (min-width:1040px){.has-toc .toc{position:sticky;top:16px}}
@media (max-width:1039px){.has-toc .toc{display:none}.has-toc .toc.show-tools{display:flex}}
.toc-title{padding:0 14px 8px}
.toc-links a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;color:var(--muted);font-weight:600;font-size:16px}
.toc-links a:hover{background:var(--line);color:var(--ink)}
.toc-links a.on{color:var(--accent-text);background:var(--surface)}
.toc-tools{display:flex;gap:8px;padding:18px 14px 0}

/* ---- Post content ---- */
.gh-content{display:flex;flex-direction:column;gap:22px;font-size:19px;line-height:1.7;overflow-wrap:break-word}
.gh-content>*{margin:0;min-width:0}
.gh-content p{text-wrap:pretty}
.gh-content h2,.gh-content h3,.gh-content h4{font-family:var(--font-display);letter-spacing:-.02em;line-height:1.12;font-weight:700;scroll-margin-top:24px}
.gh-content h2{font-size:32px;margin-top:18px}
.gh-content h3{font-size:25px;margin-top:10px}
.gh-content h4{font-size:20px}
.gh-content a:not(.kg-btn):not(.kg-bookmark-container):not(.tag):not(.btn){color:var(--accent-text);text-decoration:underline;text-underline-offset:3px;font-weight:600}
.gh-content ul,.gh-content ol{padding-left:1.4em;display:flex;flex-direction:column;gap:6px}
.gh-content li::marker{color:var(--muted)}
.gh-content hr{border:0;border-top:1px solid var(--line);width:100%}
.gh-content img{border-radius:12px}
.gh-content :not(pre)>code{font-family:var(--font-mono);font-size:.85em;background:var(--thumb);color:var(--ink);padding:2px 7px;border-radius:6px}
.gh-content blockquote{padding:0;font-family:var(--font-display);font-size:26px;line-height:1.3;font-weight:500;border:0}
.gh-content blockquote::before{content:"\201C";color:var(--accent-text)}
.gh-content blockquote.kg-blockquote-alt{text-align:center;font-style:italic}
.gh-content table{border-collapse:collapse;width:100%;font-size:16px;display:block;overflow-x:auto}
.gh-content th,.gh-content td{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left}
.gh-content th{font-family:var(--font-mono);font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.gh-content .footnotes{font-size:16px;color:var(--muted)}

/* code */
.gh-content pre{background:#0E1113;color:#F3F1EC;border:1px solid #30373C;border-radius:14px;padding:22px 24px;overflow-x:auto;font-family:var(--font-mono);font-size:15px;line-height:1.7;position:relative;tab-size:2}
.gh-content pre code{background:none;padding:0;font-size:inherit;color:inherit;font-family:inherit}
.code-wrap{position:relative}
.code-bar{display:flex;align-items:center;justify-content:space-between;background:#0E1113;border:1px solid #30373C;border-bottom:0;border-radius:14px 14px 0 0;padding:6px 10px 6px 20px;color:#AEB5BB;font-family:var(--font-mono);font-size:13px}
.code-bar+pre{border-top-left-radius:0;border-top-right-radius:0}
.code-copy{min-height:44px;padding:0 14px;border-radius:10px;border:0;background:#30373C;color:#F3F1EC;font:700 14px var(--font-body);cursor:pointer}
.code-copy:hover{filter:brightness(1.2)}
.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#9AA3AB}
.token.keyword,.token.function,.token.builtin,.token.class-name{color:#F5A524}
.token.string,.token.attr-value,.token.char{color:#5FD3C0}
.token.number,.token.boolean,.token.constant{color:#FF9E80}

/* editor cards */
.kg-width-wide{width:100%}
.kg-width-full{width:100%}
@media (min-width:1000px){
  .post-layout .kg-width-wide{width:calc(100% + 160px);margin-left:-80px;max-width:none}
  .post-layout .kg-width-full{width:100vw;margin-left:calc(50% - 50vw);max-width:none}
}
.kg-image{max-width:100%;height:auto}
.kg-card{margin:0}
.kg-callout-card{border-radius:14px;padding:18px 22px;font-size:17px;background:var(--surface)!important;border:1px solid var(--line)}
.kg-callout-card .kg-callout-text{color:var(--ink)}
.kg-bookmark-card .kg-bookmark-container{background:var(--surface);border:1px solid var(--line);border-radius:14px;color:var(--ink);box-shadow:none}
.kg-bookmark-card .kg-bookmark-container:hover{border-color:var(--accent)}
.kg-bookmark-title{font-family:var(--font-display)}
.kg-bookmark-description,.kg-bookmark-metadata{color:var(--muted)}
.kg-btn{background:var(--accent)!important;color:var(--accent-ink)!important;border-radius:var(--radius-sm)!important;font-weight:700;min-height:48px}
.kg-toggle-card{background:var(--surface);border:1px solid var(--line);border-radius:14px}
.kg-toggle-heading-text{font-family:var(--font-display)}
.kg-header-card,.kg-signup-card,.kg-product-card .kg-product-card-container{border-radius:var(--radius)}
.kg-audio-card,.kg-file-card-container{border-radius:14px;border:1px solid var(--line);background:var(--surface)}

/* ---- Project showcase blocks (use inside an HTML card in the editor) ---- */
.project-hero{padding:56px 0}
.project-intro{display:flex;flex-direction:column;gap:20px;align-items:flex-start;max-width:860px}
.project-title{font-size:clamp(40px,6.5vw,72px);text-wrap:balance}
.project-lede{font-size:20px;color:var(--muted);max-width:620px;text-wrap:pretty}
.project-shot{margin:0}
.project-shot img{width:100%;border-radius:var(--radius);border:1px solid var(--line);display:block}
.subbar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface)}
.subbar-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;padding-top:6px;padding-bottom:6px}
.subbar-title{display:flex;align-items:center;gap:10px;font-size:20px}
.subnav{display:flex;flex-wrap:wrap;gap:2px}
.subnav a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;font-weight:600;font-size:16px;color:var(--muted)}
.subnav a:hover{background:var(--line);color:var(--ink)}
.subnav a.on{color:var(--accent-text)}

.project-content{display:block;font-size:19px;padding:0 0 24px}
.project-content>*{max-width:760px;margin-left:auto;margin-right:auto;padding-left:0}
.project-content{--gutter:24px}
.project-content>*{width:calc(100% - 2*var(--gutter))}
.project-content>.pr-grid,.project-content>.pr-wide,.project-content>.kg-width-wide,.project-content>.kg-width-full{max-width:1112px}
.project-content>*+*{margin-top:20px}
.project-content>h2{font-size:38px;margin-top:0;padding-top:64px;margin-bottom:0;border-top:1px solid var(--line);max-width:1112px;position:relative}
.project-content>h2+*{margin-top:24px}
.project-content>h2:first-child{border-top:0;padding-top:24px}
.project-content>h2,.project-content>h3{max-width:1112px}
.project-content>h3{font-size:25px;margin-top:32px}

.pr-eyebrow{font-family:var(--font-mono);font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.pr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:20px}
.pr-grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr))}
.pr-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px 28px;display:flex;flex-direction:column;gap:8px;font-size:16px;line-height:1.55}
.pr-card.accent{border-color:var(--accent)}
.pr-card .pr-n{font-family:var(--font-mono);color:var(--accent-text);font-size:14px}
.pr-card h3{font-family:var(--font-display);font-size:22px;line-height:1.15;letter-spacing:-.02em;margin:0}
.pr-card p{margin:0;color:var(--muted)}
.pr-card .tag{align-self:flex-start}
.pr-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:36px;display:flex;flex-direction:column;gap:16px}
.pr-panel h3{font-family:var(--font-display);font-size:34px;line-height:1.1;letter-spacing:-.02em;margin:0}
.pr-panel p{margin:0;color:var(--muted)}
.pr-chips{display:flex;flex-wrap:wrap;gap:8px}
.pr-chips span{display:inline-flex;padding:1px 10px;border-radius:6px;font-family:var(--font-mono);font-size:13px;border:1px solid var(--line);color:var(--muted)}

/* ---- Author card, archive, errors ---- */
.author-card{flex-direction:row;flex-wrap:wrap;align-items:center;padding:24px;gap:18px;margin-bottom:56px}
.author-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;background:var(--thumb);flex:none}
.author-avatar.is-initial{display:inline-flex;align-items:center;justify-content:center;font-size:20px;overflow:hidden}
.author-avatar.big{width:96px;height:96px}
.author-info{flex:1 1 260px;display:flex;flex-direction:column;gap:4px}
.author-name{font-size:22px}
.archive-head{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.archive-head.author-head{flex-direction:row;gap:24px;align-items:center;flex-wrap:wrap}
.projects-hero-inner,.error-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:24px 48px}
.projects-hero-inner>.stack,.error-wrap>.stack{flex:1 1 480px;max-width:760px}
.lift-hero{flex:0 1 190px;width:190px;height:auto;margin:0 auto}
.comments{padding-bottom:56px}

/* ---- Pager & subscribe ---- */
.pager{display:flex;justify-content:center;gap:14px;align-items:center;flex-wrap:wrap}
.pager-count{color:var(--muted);font-size:14px}
.sub-form{display:flex;flex-wrap:wrap;gap:10px;position:relative}
.sub-input{flex:1 1 200px;min-height:48px;padding:0 16px;border-radius:var(--radius-sm);border:1.5px solid var(--line);background:var(--bg);color:var(--ink);font:inherit}
.sub-input:focus-visible{outline-offset:1px}
.sub-loading,.sub-done{display:none}
.sub-form.loading .sub-label,.sub-form.success .sub-label{display:none}
.sub-form.loading .sub-loading{display:inline}
.sub-form.success .sub-done{display:inline}
.sub-error{display:none;width:100%;color:var(--accent-text);font-size:15px}
.sub-form.error .sub-error,.sub-error.is-visible{display:block}

/* ---- Footer ---- */
.site-footer{border-top:1px solid var(--line);padding:32px 0;margin-top:24px}
.site-footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;color:var(--muted);font-size:15px}
.footer-brand{display:flex;align-items:center;gap:14px}
.footer-brand img{width:64px;height:auto;display:block}
.footer-brand a:hover{color:var(--ink)}
.footer-nav{display:flex;flex-wrap:wrap;gap:0 20px;font-weight:600}
.footer-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 20px}
.footer-nav a{min-height:44px;display:inline-flex;align-items:center}
.footer-nav a:hover{color:var(--ink)}

/* ---- Small screens ---- */
@media (max-width:600px){
  body{font-size:16px}
  .h2{font-size:30px}
  .hero{min-height:520px}
  .gh-content{font-size:18px}
  .project-content>h2{font-size:30px}
  .card.box,.pr-panel{padding:24px}
}

/* ---- Large screens: use more of the width (readable measure kept ~75ch) ---- */
@media (min-width:1400px){
  .wrap{max-width:1360px}
  .wrap.narrow{max-width:960px}
  .gh-content{font-size:20px}
  .post-layout .gh-content{max-width:800px}
  .post-layout.has-toc{grid-template-columns:280px minmax(0,800px);gap:56px}
  .feature{max-width:1240px}
  .project-content>*{max-width:860px}
  .project-content>.pr-grid,.project-content>.pr-wide,.project-content>.kg-width-wide,.project-content>.kg-width-full,.project-content>h2,.project-content>h3{max-width:1312px}
  .post-layout .kg-width-wide{width:calc(100% + 240px);margin-left:-120px}
}
@media (min-width:1900px){
  .wrap{max-width:1560px}
  .post-layout.has-toc{grid-template-columns:300px minmax(0,860px)}
  .post-layout .gh-content{max-width:860px}
  .feature{max-width:1400px}
  .project-content>.pr-grid,.project-content>.pr-wide,.project-content>.kg-width-wide,.project-content>.kg-width-full,.project-content>h2,.project-content>h3{max-width:1512px}
}
