/* ============================================================
   bonu1.site — DESIGN TOKENS
   Identity: "Obsidian Atelier" — a jeweller's vitrine grammar.
   Obsidian ground, champagne-gold hairline bezels, ruby as the
   single source of energy. Signature motif: THE BEZEL — a 1px
   champagne rule with four corner tick-marks, like a gem
   certificate or a viewfinder frame.
   ============================================================ */

/* ---------- 1. SELF-HOSTED FONTS ---------- */

/* bodoni-moda — latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/bodoni-moda-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;
}
/* bodoni-moda — latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/bodoni-moda-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;
}
/* sora — latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/sora-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;
}
/* sora — latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/sora-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;
}
/* manrope — latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/manrope-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;
}
/* manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/manrope-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;
}

/* ---------- 2. TOKENS ---------- */
:root {
  /* --- Obsidian ground --- */
  --ink-abyss:    #050304;
  --ink-obsidian: #0A0708;   /* page background */
  --ink-900:      #110C0E;
  --ink-850:      #161013;
  --ink-800:      #1C1418;   /* raised surface */
  --ink-700:      #241A1F;   /* card surface */
  --ink-600:      #2B1F24;   /* elevated card surface */
  --ink-line:     #33252B;   /* borders */
  --ink-line-soft:#251A1F;
  --ink-500:      #4C3A41;
  --ink-400:      #6E5A61;
  --ink-300:      #9C8A90;   /* muted / meta text */
  --ink-200:      #C4B7BB;   /* secondary text */
  --ink-100:      #E4DBDE;   /* body text */
  --ink-50:       #FAF6F7;   /* headings */

  /* --- Ruby: the energy accent --- */
  --ruby-950: #3D040F;
  --ruby-900: #5C0715;
  --ruby-800: #7E0C1F;
  --ruby-700: #A3122C;
  --ruby-600: #C41E3A;  /* primary */
  --ruby-500: #E0304C;  /* hover */
  --ruby-400: #F0566B;
  --ruby-300: #FF8496;  /* ruby text on dark — AA safe */
  --ruby-tint:      rgba(196, 30, 58, 0.12);
  --ruby-tint-soft: rgba(196, 30, 58, 0.06);
  --ruby-glow:      rgba(224, 48, 76, 0.34);

  /* --- Champagne gold: hairlines, numerals, rarity --- */
  --gold-800: #6B5223;
  --gold-700: #8A6B2F;
  --gold-600: #B08D45;
  --gold-500: #C9A961;  /* primary gold */
  --gold-400: #DFC482;
  --gold-300: #EEDFB4;  /* champagne highlight */
  --gold-200: #F6EDD6;
  --gold-tint:      rgba(201, 169, 97, 0.13);
  --gold-tint-soft: rgba(201, 169, 97, 0.06);
  --gold-hair:      rgba(201, 169, 97, 0.30);
  --gold-hair-soft: rgba(201, 169, 97, 0.16);

  /* --- Support --- */
  --tg-blue:   #229ED9;
  --tg-blue-2: #2AB2EE;
  --state-ok:  #4FB783;
  --state-warn:#E0A33C;
  --state-bad: #E05A4C;

  /* --- Gradients --- */
  --grad-ruby:   linear-gradient(135deg, #A3122C 0%, #E0304C 52%, #C41E3A 100%);
  --grad-ruby-2: linear-gradient(135deg, #7E0C1F 0%, #C41E3A 100%);
  --grad-gold:   linear-gradient(100deg, #8A6B2F 0%, #EEDFB4 34%, #C9A961 58%, #F6EDD6 76%, #B08D45 100%);
  --grad-foil:   linear-gradient(105deg, #B08D45 0%, #F6EDD6 24%, #C9A961 42%, #EEDFB4 62%, #8A6B2F 100%);
  --grad-vitrine:linear-gradient(168deg, #161013 0%, #0D0809 56%, #0A0708 100%);
  --grad-plinth: linear-gradient(180deg, rgba(201,169,97,0.14) 0%, rgba(201,169,97,0) 100%);

  /* --- The Bezel (signature motif) --- */
  --bezel-tick: 12px;   /* corner tick-mark arm length */
  --bezel-tick-lg: 18px;
  --bezel-w: 1px;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius:    4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  /* --- Type --- */
  --font-display: 'Bodoni Moda', 'Didot', 'Times New Roman', Georgia, serif;
  --font-ui: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.85rem, 1.5rem + 6.2vw, 6.5rem);
  --fs-h1:   clamp(2.3rem, 1.45rem + 3.6vw, 4.15rem);
  --fs-h2:   clamp(1.85rem, 1.3rem + 2.3vw, 3rem);
  --fs-h3:   clamp(1.3rem, 1.08rem + 0.9vw, 1.72rem);
  --fs-h4:   clamp(1.08rem, 0.99rem + 0.4vw, 1.28rem);
  --fs-lead: clamp(1.04rem, 0.97rem + 0.34vw, 1.22rem);
  --fs-body: 1rem;
  --fs-sm:   0.9375rem;
  --fs-xs:   0.8125rem;
  --fs-micro:0.6875rem;

  --lh-tight: 1.04;
  --lh-snug: 1.18;
  --lh-head: 1.28;
  --lh-body: 1.72;

  --ls-display: -0.035em;
  --ls-head: -0.02em;
  --ls-label: 0.24em;   /* the atelier eyebrow letterspacing */
  --ls-micro: 0.16em;

  /* --- Space --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-7: 2.75rem;  --sp-8: 3.5rem;   --sp-9: 5rem;
  --sp-10: 7rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --shell: 1240px;
  --shell-wide: 1440px;
  --measure: 68ch;
  --gutter: clamp(1.15rem, 0.8rem + 1.6vw, 2.5rem);

  /* --- Elevation --- */
  --sh-sm:  0 1px 2px rgba(0,0,0,.5);
  --sh-md:  0 8px 24px -8px rgba(0,0,0,.7);
  --sh-lg:  0 24px 60px -20px rgba(0,0,0,.85);
  --sh-xl:  0 44px 96px -32px rgba(0,0,0,.9);
  --sh-ruby: 0 12px 34px -12px var(--ruby-glow);
  --sh-gold: 0 12px 34px -14px rgba(201,169,97,.4);

  /* --- Motion --- */
  --ease: cubic-bezier(.16,1,.3,1);          /* expo-out, the default */
  --ease-io: cubic-bezier(.65,.02,.28,1);    /* symmetric, for loops */
  --t-fast: 180ms;
  --t: 260ms;
  --t-slow: 520ms;
  --t-reveal: 760ms;

  --z-ribbon: 60;
  /* The mobile nav drawer (.nav) is a DESCENDANT of .header, and .header is
     position:sticky with its own z-index, so it forms a stacking context.
     .nav's z-index (--z-nav) only ranks it among header's own children —
     it is invisible to siblings of .header, like .nav-scrim. For the open
     drawer to paint above the scrim, --z-header itself must outrank the
     scrim's z-index (--z-nav - 1). Keep this above --z-nav's derived scrim
     value, whatever --z-nav is set to. */
  --z-header: 90;
  --z-nav: 80;
  --z-cookie: 95;
  --z-top: 100;
}

/* Motion opt-out: kill ambient/looping motion, keep state feedback. */
@media (prefers-reduced-motion: reduce) {
  :root { --t-reveal: 1ms; --t-slow: 120ms; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: var(--t-fast) !important;
    scroll-behavior: auto !important;
  }
}
