/* ============================================================
   Saisonzauber — Design Tokens
   Seasonal decoration & DIY. The values below are the
   "Advent & Weihnachten" season; inc/season.php emits the active
   season's palette inline, so these are the fallback.
   Self-hosted fonts (no external/Google requests):
   Playfair Display (display), Nunito Sans (body), Caveat (handwriting).
   ============================================================ */

/* ---- Playfair Display — variable display font (400–800 + italic) ---- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-display-normal-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;
}
/* Playfair Display — variable font, latin subset */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-display-normal-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;
}
/* Playfair Display italic — variable font, latin-ext subset */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-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;
}
/* Playfair Display italic — variable font, latin subset */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-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;
}
/* Mulish — variable font, latin-ext subset */
/* ---- Nunito Sans — variable body font (400–800, normal + italic) ---- */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-sans-normal-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: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-sans-normal-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: 'Nunito Sans';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-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;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-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;
}

/* ---- Caveat — variable handwritten accent (400–700) ---- */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/caveat-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: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/caveat-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;
}

:root {
  /* ---- Background (warm cream) ---- */
  --cream-50:  #FEFCF8;
  --cream-100: #FBF6EE;   /* page canvas */
  --cream-200: #F5ECDD;   /* sunken / alt section */
  --cream-300: #EEE1CD;
  --white:     #FFFFFF;

  /* ---- Ink / text ---- */
  --ink-900: #2C2A27;
  --ink-700: #4A463F;
  --ink-600: #5A544C;
  --ink-500: #6B655C;
  --ink-400: #8A8276;
  --ink-300: #B7AD9F;

  /* ---- Borders ---- */
  --border-100: #F0E8DA;
  --border-200: #E8DECE;
  --border-300: #DBCDB7;

  /* ---- Accent (season) ---- */
  --brand-50:  #F8E8E7;
  --brand-100: #F3D4D3;
  --brand-200: #DA6E6C;
  --brand-300: #D14A47;
  --brand-400: #C73532;
  --brand-500: #B3302D;   /* buttons, links, logo */
  --brand-600: #912E2B;   /* hover */
  --brand-700: #742624;   /* text on light */
  --brand-800: #551C1B;

  /* ---- Deep tone (season): footer, newsletter, dark bands ---- */
  --deep-50:  #EDF2F1;
  --deep-100: #DBE6E3;
  --deep-700: #357661;
  --deep-800: #285E4D;
  --deep-900: #1E4A3C;

  /* ---- Gold (season): ornaments, small highlights ---- */
  --gold-100: #F2EAD8;
  --gold-300: #D5B671;
  --gold-500: #C49A3A;
  --gold-700: #866B2B;    /* gold text on light */

  /* ---- Ornament motif (season) — painted through mask-image ---- */
  --motif: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%201.5l2.6%206.9%207.4.3-5.8%204.6%202%207.2L12%2016.4l-6.2%204.1%202-7.2L2%208.7l7.4-.3z%22%2F%3E%3C%2Fsvg%3E");

  /* ---- Season categories (fixed, whatever the active season) ---- */
  --cat-fruehling:      #5A8A4A;
  --cat-fruehling-soft: #DCEAD7;
  --cat-fruehling-ink:  #344F2C;

  --cat-sommer:      #1F7F86;
  --cat-sommer-soft: #D3EEF0;
  --cat-sommer-ink:  #144E52;

  --cat-herbst:      #A8532A;
  --cat-herbst-soft: #F3DACE;
  --cat-herbst-ink:  #5E301A;

  --cat-weihnachten:      #A82E2B;
  --cat-weihnachten-soft: #F3D6D5;
  --cat-weihnachten-ink:  #5F1C1B;

  /* ---- Semantic status ---- */
  --success:      #5E9E5A;
  --warning:      var(--gold-700);
  --danger:       var(--brand-600);
  --info:         var(--cat-sommer);

  /* ---- Semantic aliases ---- */
  --bg-page:        var(--cream-100);
  --bg-alt:         var(--cream-200);
  --surface-card:   var(--white);
  --surface-ink:    var(--ink-900);

  --text-body:    var(--ink-900);
  --text-strong:  var(--ink-900);
  --text-muted:   var(--ink-500);
  --text-faint:   var(--ink-400);
  --text-on-accent: #FFFFFF;
  --text-on-ink:    #F7F1E6;
  --text-on-ink-muted: color-mix(in srgb, #F7F1E6 72%, transparent);

  --accent:        var(--brand-500);
  --accent-hover:  var(--brand-600);
  --accent-active: var(--brand-700);
  --accent-soft:   var(--brand-50);
  --accent-ink:    var(--brand-700);
  --accent-text:   var(--brand-700);
  --link:          var(--brand-700);
  --link-hover:    var(--brand-800);

  --border-soft:   var(--border-200);
  --border-hair:   var(--border-100);
  --border-strong: var(--border-300);
  --focus-ring:    var(--brand-500);

  /* ---- Fonts ---- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand:    'Caveat', 'Segoe Print', cursive;
  --logo-weight:  var(--fw-semibold);

  /* ---- Type scale ---- */
  --text-xs:   13px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  38px;
  --text-4xl:  48px;
  --text-5xl:  60px;

  /* ---- Weights ---- */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extra:    800;

  /* ---- Line heights ---- */
  --leading-tight:  1.12;
  --leading-snug:   1.28;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;

  /* ---- Letter spacing ---- */
  --tracking-tight:  -0.01em;
  --tracking-label:  0.08em;

  /* ---- Spacing (8px base) ---- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ---- Radii ---- */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  36px;
  --radius-pill: 999px;

  /* ---- Soft shadows (warm, ink-tinted) ---- */
  --shadow-xs: 0 1px 2px color-mix(in srgb, var(--ink-900) 6%, transparent);
  --shadow-sm: 0 2px 8px color-mix(in srgb, var(--ink-900) 7%, transparent);
  --shadow-md: 0 8px 22px color-mix(in srgb, var(--ink-900) 9%, transparent);
  --shadow-lg: 0 18px 44px color-mix(in srgb, var(--ink-900) 12%, transparent);
  --shadow-card-hover: 0 14px 34px color-mix(in srgb, var(--ink-900) 14%, transparent);
  --shadow-focus: 0 0 0 3px color-mix(in srgb, var(--brand-500) 35%, transparent);

  /* ---- Layout ---- */
  --container-sm:  680px;
  --container-md:  960px;
  --container-lg:  1200px;
  --gutter:        24px;

  /* ---- Motion ---- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   140ms;
  --dur-base:   220ms;
  --dur-slow:   360ms;

  --header-h:   76px;

  /* ---- Paper texture (subtle handmade grain) ---- */
  --paper-texture:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
