/* ==========================================================================
   Zennette — Brand Design Tokens & Logo Styles
   Drop this into any project: <link rel="stylesheet" href="zennette-brand.css">

   Spartan by intent: ink on paper, one accent, generous space. Colour is
   information, never decoration — if a hue appears, it means something.
   ========================================================================== */

/* Ancizar Serif (SIL OFL 1.1, licence alongside the file): display face for page headings and
   the wordmark. One variable file covers weights 300-900. */
@font-face {
  font-family: "Ancizar Serif";
  src: url("../assets/fonts/ancizar-serif/AncizarSerif-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Ink & paper ----------------------------------------------------- */
  --znt-ink:          #17201D;  /* the mark, headings, primary surfaces */
  --znt-ink-soft:     #333E3A;  /* body text on paper                   */
  --znt-stone:        #6B7772;  /* secondary text, taglines, captions   */
  --znt-mist:         #E2E6E3;  /* rules, borders, dividers             */
  --znt-paper:        #F6F6F3;  /* app background                       */
  --znt-white:        #FFFFFF;
  --znt-sage:         #58675D;  /* nav surface, primary actions, edges  */
  --znt-sage-dark:    #4A574F;  /* sage hover / pressed                 */
  --znt-sage-wash:    #F6F8F5;  /* faint soft-sage fill: stripes, bubbles */
  --znt-nav:          var(--znt-sage);  /* navigation sidebar surface */
  --znt-card-edge:    var(--znt-sage);  /* left accent edge on cards  */
  --znt-card-title:   var(--znt-sage);  /* bold title on edged cards  */
  --znt-nav-accent:   var(--znt-rose);  /* active nav item indicator  */
  --znt-charcoal:     #333333;  /* text on pale rose tints              */

  /* ---- Accent — used sparingly, for arrival and emphasis --------------- */
  --znt-jade:         #3E7A68;  /* links, focus, the mark's end point   */
  --znt-jade-soft:    #9BBDB1;  /* tints, hover, on-dark accent         */
  --znt-rose:         #C98288;  /* dusty rose — CTA buttons, active nav */
  --znt-rose-dark:    #B56B72;  /* rose hover / pressed                 */

  /* ---- System intent — status meaning, not brand ----------------------- */
  --znt-info-blue:    #3B6EA5;  /* informational status (e.g. Booked)   */

  /* Status tints for toasts, soft alerts and status badges: a muted fill with a deep
     same-hue foreground for the title, icon and close control; body copy uses status-text. */
  --znt-success-bg:   #BDD9C4;
  --znt-success-fg:   #156724;
  --znt-danger-bg:    #D9BDBD;
  --znt-danger-fg:    #671515;
  --znt-warning-bg:   #D9D7BD;
  --znt-warning-fg:   #675C15;
  --znt-info-bg:      #BDC4D9;
  --znt-info-fg:      #152B67;
  --znt-status-text:  #2D251E;

  /* ---- Existing component aliases --------------------------------------- */
  --znt-slate:        var(--znt-jade);
  --znt-slate-light:  var(--znt-jade-soft);
  --znt-slate-deep:   var(--znt-ink);
  --znt-coral:        var(--znt-jade);
  --znt-coral-soft:   var(--znt-jade-soft);

  /* ---- Legacy aliases (pre-existing consumers) -------------------------- */
  --znt-muted:        var(--znt-stone);
  --znt-line:         var(--znt-mist);
  --znt-surface:      var(--znt-paper);

  /* ---- Typography ------------------------------------------------------ */
  --znt-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --znt-font-display: "Ancizar Serif", Georgia, "Times New Roman", serif;  /* headings, wordmark */
  --znt-wordmark-tracking: 0.02em;   /* open, unhurried */
  --znt-tagline-tracking: 0.26em;

  /* ---- Radius & elevation ---------------------------------------------- */
  /* Near-square corners and no drop shadows: flatness is part of the calm. */
  --znt-radius-sm: 2px;
  --znt-radius-md: 3px;
  --znt-radius-lg: 4px;
  --znt-shadow: none;

  /* ---- Spacing scale --------------------------------------------------- */
  --znt-space-1: 4px;
  --znt-space-2: 8px;
  --znt-space-3: 16px;
  --znt-space-4: 24px;
  --znt-space-5: 40px;
  --znt-space-6: 64px;
}

/* ==========================================================================
   Wordmark (text-only fallback — pairs with the inline SVG mark)
   ========================================================================== */
.znt-wordmark {
  font-family: var(--znt-font-display);
  font-weight: 400;
  letter-spacing: var(--znt-wordmark-tracking);
  color: var(--znt-ink);
  line-height: 1;
}
.znt-tagline {
  font-family: var(--znt-font);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--znt-tagline-tracking);
  color: var(--znt-stone);
}

/* ==========================================================================
   Logo lockup helper — inline SVG mark + text
   ========================================================================== */
.znt-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--znt-space-3);
  text-decoration: none;
  padding: var(--znt-space-2);   /* clear space — never crowd the mark */
}
.znt-logo__mark { display: block; flex: none; }
.znt-logo--sm .znt-logo__mark { width: 40px; height: 40px; }
.znt-logo--md .znt-logo__mark { width: 62px; height: 62px; }
.znt-logo--lg .znt-logo__mark { width: 96px; height: 96px; }
.znt-logo__name { font-size: 1.75rem; }
.znt-logo--sm .znt-logo__name { font-size: 1.15rem; }
.znt-logo--lg .znt-logo__name { font-size: 2.5rem; }

/* Reversed lockup — on ink */
.znt-logo--reverse .znt-logo__name { color: var(--znt-paper); }

/* ==========================================================================
   Buttons — ink is primary. Jade is reserved for accent and focus.
   ========================================================================== */
.znt-btn {
  font-family: var(--znt-font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--znt-radius-md);
  padding: 11px 24px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.znt-btn--primary { background: var(--znt-ink); color: var(--znt-paper); }
.znt-btn--primary:hover { background: var(--znt-ink-soft); }
.znt-btn--ghost {
  background: transparent;
  color: var(--znt-ink);
  border-color: var(--znt-mist);
}
.znt-btn--ghost:hover { border-color: var(--znt-ink); }
.znt-btn--accent { background: var(--znt-jade); color: var(--znt-white); }
.znt-btn--accent:hover { background: #336657; }
.znt-btn:focus-visible { outline: 2px solid var(--znt-jade); outline-offset: 2px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .znt-btn { transition: none; }
}
