/* ==========================================================================
   Neuhaus Apps — design tokens
   Edit values here; every component in site.css reads from these.
   ========================================================================== */

@font-face {
  font-family: "Dorsa";
  src: url("../fonts/dorsa-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: "Manrope";
  src: url("../fonts/manrope-latin-ext-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  /* --- Palette (supplied) ------------------------------------------------ */
  --nh-espresso: #140E0C;      /* Deep Espresso — dark sections            */
  --nh-taupe:    #A58A76;      /* Warm Taupe — accent (5.9:1 on espresso)  */
  --nh-greige:   #736B65;      /* Soft Greige — secondary / dividers       */
  --nh-ivory:    #F5F1EA;      /* Warm Ivory — light sections, dark text-on */
  --nh-white:    #F8F8F8;      /* Soft White — foreground on dark          */

  /* --- Derived tones (contrast-checked in context) ----------------------- */
  --nh-espresso-2: #1C1512;    /* raised surface: cards, panels            */
  --nh-espresso-3: #251C18;    /* hover surface                            */
  --nh-ink-muted:  #C2B2A5;    /* body copy on dark (8.7:1 on espresso-2)  */
  --nh-ink-soft:   #9B8C80;    /* captions on dark (5.9:1 on espresso)     */
  --nh-bronze:     #6E5646;    /* accent text on ivory (6.0:1)             */
  --nh-ivory-muted:#5E5853;    /* body copy on ivory (6.2:1)               */
  --nh-ivory-2:    #EDE6DB;    /* ivory hairline / tint                    */

  --nh-line-dark:  rgba(165, 138, 118, .28);
  --nh-line-light: rgba(20, 14, 12, .16);

  /* --- Type ------------------------------------------------------------- */
  --nh-font-display: "Dorsa", "Bebas Neue", "Arial Narrow", sans-serif;
  --nh-font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nh-text-xs:   0.8125rem;   /* 13px — legal links, meta             */
  --nh-text-sm:   0.9375rem;   /* 15px — labels, captions               */
  --nh-text-base: 1.0625rem;   /* 17px — body                           */
  --nh-text-lg:   1.25rem;     /* 20px — lead copy                      */
  --nh-text-xl:   1.5rem;      /* 24px — product titles                 */

  --nh-label-tracking: 0.14em; /* uppercase labels                      */

  /* Display sizes (Dorsa is very condensed, so it runs large)            */
  --nh-display-hero: clamp(5.25rem, 21vw, 9.5rem);
  --nh-display-xl:   clamp(4rem, 9vw, 8.25rem);
  --nh-display-lg:   clamp(3.5rem, 7vw, 6.25rem);
  --nh-display-md:   clamp(3rem, 5vw, 4.5rem);

  /* --- Space & layout --------------------------------------------------- */
  --nh-gutter: clamp(1.25rem, 4.5vw, 4rem);   /* page edge, shared by every section */
  --nh-max: 88rem;                             /* 1408px content measure           */
  --nh-space-1: 0.5rem;
  --nh-space-2: 1rem;
  --nh-space-3: 1.5rem;
  --nh-space-4: 2rem;
  --nh-space-5: 3rem;
  --nh-space-6: 4.5rem;
  --nh-section: clamp(4rem, 7.5vw, 7rem);      /* vertical section padding         */

  --nh-header-h: 44px;          /* ~25% shorter than the first mockup (58.5px) */
  --nh-radius: 2px;
  --nh-target: 44px;            /* minimum touch target                      */

  /* --- Motion ----------------------------------------------------------- */
  --nh-ease: cubic-bezier(.2, .7, .2, 1);
  --nh-fast: 160ms;
  /* Scroll entrances. Each group plays once, in reading order:
     heading → supporting text/controls → imagery → details.
     Durations and rises vary by role so groups don't all move alike. */
  --nh-reveal-ease: cubic-bezier(.16, 1, .3, 1);   /* fast start, long soft settle */
  --nh-reveal-text: 680ms;      /* headings, paragraphs, principles   */
  --nh-reveal-media: 860ms;     /* cards, screenshots, footer wordmark */
  --nh-reveal-ui: 420ms;        /* search, tabs, FAQ, footer links     */
  --nh-rise-text: 14px;
  --nh-rise-media: 22px;
  --nh-rise-ui: 6px;
  --nh-reveal-beat: 130ms;      /* gap between beats inside a group   */
  --nh-reveal-group-gap: 220ms; /* gap between groups that arrive together */
  --nh-reveal-trigger: 6%;      /* how far into the viewport a group must be */
}

@media (max-width: 47.99rem) {
  :root {
    --nh-header-h: 56px;        /* mobile bar holds a 44px Menu button + Apps */
    --nh-text-base: 1rem;
    /* Phone: every block enters on its own as it reaches the screen. */
    --nh-reveal-text: 540ms;
    --nh-reveal-media: 620ms;
    --nh-reveal-ui: 360ms;
    --nh-rise-text: 8px;
    --nh-rise-media: 12px;
    --nh-rise-ui: 4px;
    --nh-reveal-beat: 70ms;       /* blocks that enter in the same frame */
    --nh-reveal-group-gap: 70ms;
  }
}
