/* zahlo.eu global tokens, fonts, and body baseline.
   Single source of truth for everything the nav and page chrome inherit:
   CSS variables, @font-face declarations, body font-weight, and the page
   gutter. Linked from every marketing page + the blog BaseLayout BEFORE
   any page-local <style> so per-page overrides still win when they need to.

   Canonical values come from index.html — do not redefine in any other page. */

/* ---- Fonts ---------------------------------------------------------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/outfit-latin.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: 'Outfit';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/outfit-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/dm-sans-latin-ext.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: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/dm-sans-italic-latin.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: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/dm-sans-italic-latin-ext.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;
}

/* ---- Design tokens -------------------------------------------------- */
:root {
  --black: #1a1a1a;
  --white: #fdf8f8;
  --coral: #ff5f56;
  --tonal: #f2f2ed;
  --gray: #444748;
  --gray-light: #747878;
  --shadow: rgba(26, 26, 26, 0.04);
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

/* ---- Reset + baseline ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
}

/* Page gutter — nav is full-bleed, content (main + footer) is inset. */
main, footer { margin: 0 1rem; }

@media (max-width: 900px) {
  main, footer { margin: 0 0.75rem; }
}

@media (max-width: 480px) {
  main, footer { margin: 0 0.5rem; }
}

/* ---- Footer ---- canonical, single-source. Page-local <style> blocks
   must not redefine these. `!important` locks the layout so the homepage
   can't accidentally render links left-aligned again. */
body > footer {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 2rem 3rem !important;
  border-top: 1px solid rgba(26, 26, 26, 0.07);
  background: var(--white);
  justify-content: flex-start !important;
}

body > footer .footer-left {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem;
}

body > footer .footer-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
}

body > footer .footer-brand img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

body > footer .footer-copy {
  font-size: 0.68rem;
  color: var(--gray-light);
}

body > footer .footer-links {
  display: flex !important;
  gap: 1.5rem;
  /* Push links to the right edge of the footer on every page. This is the
     line the homepage was previously missing. */
  margin-left: auto !important;
}

body > footer .footer-links a {
  font-size: 0.75rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

body > footer .footer-links a:hover { color: var(--black); }

@media (max-width: 720px) {
  body > footer {
    padding: 1.5rem 1.25rem !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  body > footer .footer-links {
    margin-left: 0 !important;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }
}
