diff --git a/assets/css/base.css b/assets/css/base.css index 06ca1ef..0a93cbb 100644 --- a/assets/css/base.css +++ b/assets/css/base.css @@ -1,6 +1,4 @@ /* ── SELF-HOSTED FONTS ───────────────────────────────────────────────── */ -@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); } -@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-500.woff2') format('woff2'); } @font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600.woff2') format('woff2'); } @font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-700.woff2') format('woff2'); } @font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/fraunces-700-normal.woff2') format('woff2'); } diff --git a/assets/css/ui.css b/assets/css/ui.css index a2699bb..081c137 100644 --- a/assets/css/ui.css +++ b/assets/css/ui.css @@ -752,7 +752,7 @@ color: #b09870; border-top: 1px solid #e0d0a8; font-family: Manrope, sans-serif; - font-weight: 400; + font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.7; diff --git a/assets/fonts/manrope-400.woff2 b/assets/fonts/manrope-400.woff2 deleted file mode 100644 index 7eaaa95..0000000 Binary files a/assets/fonts/manrope-400.woff2 and /dev/null differ diff --git a/assets/fonts/manrope-500.woff2 b/assets/fonts/manrope-500.woff2 deleted file mode 100644 index 70447ee..0000000 Binary files a/assets/fonts/manrope-500.woff2 and /dev/null differ diff --git a/build.js b/build.js index 0f4c742..273fec0 100644 --- a/build.js +++ b/build.js @@ -171,7 +171,17 @@ async function build() { } } - // 6. Copy static files + // 6. Copy fonts + console.log(' Copying fonts...'); + const fontsDir = path.join(ROOT, 'assets', 'fonts'); + if (fs.existsSync(fontsDir)) { + for (const f of fs.readdirSync(fontsDir)) { + copyFile(path.join(fontsDir, f), path.join(DIST, 'fonts', f)); + } + console.log(' -> fonts/ (' + fs.readdirSync(fontsDir).length + ' files)'); + } + + // 7. Copy static files console.log(' Copying static files...'); for (const f of ['robots.txt', 'sitemap.xml', 'og-image.png']) { const src = path.join(ROOT, f);