/* klamottenwetter – brand tokens and self-hosted fonts
   Copy the fonts/ folder next to this file (or adjust the url() paths). */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/bricolage-grotesque-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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/bricolage-grotesque-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: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("./fonts/dm-sans-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: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("./fonts/dm-sans-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: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("./fonts/dm-sans-latin-500-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: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("./fonts/dm-sans-latin-ext-500-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: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("./fonts/dm-sans-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: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("./fonts/dm-sans-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 {
  /* Brand colors */
  --kw-yellow: #F5B700;      /* Friesennerz yellow – primary, the shirt */
  --kw-yellow-dark: #C99400; /* hover/pressed on yellow surfaces */
  --kw-yellow-soft: #FDF1C7; /* tinted backgrounds, highlights */
  --kw-slate: #1F2A33;       /* ink: text, icons, dark surfaces */
  --kw-slate-muted: #4A5560; /* secondary text (passes 4.5:1 on off-white) */
  --kw-sky: #8DBBDB;         /* secondary, weather accents */
  --kw-sky-soft: #E3EFF7;
  --kw-tomato: #E8553D;      /* warnings only ("Mütze nicht vergessen!") */
  --kw-offwhite: #F8F9FA;    /* page background (cool, slate-tinted) */
  --kw-white: #FFFFFF;       /* cards on the off-white page */
  --kw-line: #E6E9EC;        /* borders, dividers */
  --kw-fill: #F1F3F5;        /* tiles inside white cards */

  /* Semantic */
  --color-bg: var(--kw-offwhite);
  --color-surface: var(--kw-white);
  --color-text: var(--kw-slate);
  --color-text-muted: var(--kw-slate-muted);
  --color-primary: var(--kw-yellow);
  --color-on-primary: var(--kw-slate); /* text on yellow is ALWAYS slate, never white */
  --color-accent: var(--kw-sky);
  --color-warning: var(--kw-tomato);
  --color-border: var(--kw-line);

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --tracking-display: -0.03em;

  --text-xs: 0.8125rem;  /* 13px – labels */
  --text-sm: 0.9375rem;  /* 15px */
  --text-base: 1.0625rem;/* 17px – body */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.625rem;   /* 26px */
  --text-2xl: 2.25rem;   /* 36px */
  --text-3xl: clamp(2.5rem, 6vw, 3.5rem);  /* page headline */
  --text-hero: clamp(3rem, 9vw, 5.5rem);   /* temperature / big answer */

  /* Space (4px base) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  /* Radius & shadow – soft and friendly, never sharp */
  --radius-sm: 4px;
  --radius-md: 8px;   /* small elements: thumbnails, hour tiles */
  --radius-lg: 12px;  /* cards and tiles */
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(31, 42, 51, 0.04), 0 2px 8px rgba(31, 42, 51, 0.05);
}

/* ---------- Base ---------- */
html { background: var(--color-bg); color: var(--color-text); }
body { font-family: var(--font-body); font-size: var(--text-base); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .kw-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
}
a { color: var(--kw-slate); text-decoration-color: var(--kw-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--kw-slate); }
:focus-visible { outline: 3px solid var(--kw-sky); outline-offset: 2px; }

.kw-button {
  font: 500 var(--text-sm)/1 var(--font-body);
  background: var(--color-primary); color: var(--color-on-primary);
  border: 0; border-radius: var(--radius-pill);
  padding: 14px 22px; min-height: 44px; cursor: pointer;
}
.kw-button:hover { background: var(--kw-yellow-dark); }
.kw-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-5); }
.kw-warning { background: #FDE6E1; color: #8A2414; border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
