/* The Daily Brew – type system (7 Nov 2026)
   Four fonts, one job each:
     headings  → the theme's Lineal (fallback Archivo)
     reading   → the theme's Inter
     handwriting accents → Caveat (self-hosted here)
     receipt / label text → Space Mono (self-hosted here)
   Reading scale: body 18px (17px on phones), H2 ≈ 34px, H3 ≈ 25px, H4 20px, line height 1.7. */

/* ---------- fonts (latin + latin-ext only) ---------- */
@font-face{font-family:'Caveat';font-style:normal;font-display:swap;font-weight:400 700;src:url(fonts/caveat-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Caveat';font-style:normal;font-display:swap;font-weight:400 700;src:url(fonts/caveat-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Space Mono';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/space-mono-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Mono';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/space-mono-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Space Mono';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/space-mono-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Mono';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/space-mono-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- tokens ---------- */
:root{
 --db-f-head:var(--wp--preset--font-family--lineal),'Archivo',system-ui,sans-serif;
 --db-f-body:var(--wp--preset--font-family--inter),Inter,system-ui,sans-serif;
 --db-f-hand:'Caveat','Segoe Print','Bradley Hand',cursive;
 --db-f-mono:'Space Mono',ui-monospace,'Courier New',monospace;
 --db-t-body:1.125rem;
 --db-t-lead:1.25rem;
 --db-t-small:.9rem;
 --db-t-h2:clamp(1.65rem,1.2rem + 1.5vw,2.15rem);
 --db-t-h3:clamp(1.3rem,1.1rem + .7vw,1.6rem);
 --db-t-h4:1.25rem;
 --db-lh-body:1.7;
}
@media (max-width:600px){:root{--db-t-body:1.0625rem;--db-t-lead:1.15rem}}
/* the homepage's own handwriting/label variables point at the same fonts */
.db-home{--db-hand:var(--db-f-hand);--db-mono:var(--db-f-mono)}

/* ---------- reading text in posts and pages ----------
   Only the article's own top-level text: designed cards, widgets and page sections keep their sizes. */
:where(.wp-block-post-content,.db-article .entry-content)>:is(p,ul,ol,blockquote){font-family:var(--db-f-body);font-size:var(--db-t-body)!important;line-height:var(--db-lh-body)}
:where(.wp-block-post-content)>:is(ul,ol)>li,:where(.wp-block-post-content)>:is(ul,ol) li{font-size:inherit;line-height:var(--db-lh-body)}
:where(.wp-block-post-content)>p.has-small-font-size{font-size:var(--db-t-small)!important}
:where(.wp-block-post-content)>p:is(.has-large-font-size,.has-x-large-font-size){font-size:var(--db-t-h4)!important;line-height:1.4}
:where(.wp-block-post-content)>blockquote p{font-size:var(--db-t-lead)}
/* headings: one look per level */
:where(.wp-block-post-content)>:is(h2,h3,h4,h5,h6).wp-block-heading{font-family:var(--db-f-head);font-weight:800;letter-spacing:-.015em;line-height:1.15;text-wrap:balance}
:where(.wp-block-post-content)>h2.wp-block-heading{font-size:var(--db-t-h2)!important;margin-top:1.8em;margin-bottom:.5em}
:where(.wp-block-post-content)>h3.wp-block-heading{font-size:var(--db-t-h3)!important;margin-top:1.5em;margin-bottom:.4em}
:where(.wp-block-post-content)>:is(h4,h5,h6).wp-block-heading{font-size:var(--db-t-h4)!important;margin-top:1.4em;margin-bottom:.35em}
/* FAQ-style questions and table text follow the body size */
:where(.wp-block-post-content) .wp-block-table{font-size:calc(var(--db-t-body) * .92)}
:where(.wp-block-post-content) figcaption{font-size:var(--db-t-small);line-height:1.45}
