/* Many Rocks design tokens. Copied verbatim from design-artifacts/D-Design-System/tokens in the manyrocks ops repo (colors, typography, spacing, base). The webfont @import from fonts.css is replaced by <link> tags in App.razor. Edit the source there first, then re-copy. */

/* ===========================================================================
   MANY ROCKS — COLOR TOKENS
   A restrained, monochrome palette drawn from the natural hues of precious
   stones. No hue, no gradient — value and material do the work.
   Source: Brand Guidelines_A.pdf, §08 Color Palette.
   =========================================================================== */

:root {
  /* --- Brand core (verbatim from the brand guide swatches) --------------- */
  --mr-charcoal:      #3F3F3F;  /* Primary — deep, rich charcoal            */
  --mr-gray-warm:     #8E8E8E;  /* Primary — warm, elegant gray             */
  --mr-gray:          #808080;  /* Secondary — deeper gray, depth           */
  --mr-gray-light:    #BFBFBF;  /* Secondary — light gray                   */
  --mr-mist:          #F0ECEC;  /* Secondary — soft warm off-gray           */
  --mr-offwhite:      #FBFBFB;  /* Secondary — brightness / page base       */
  --mr-white:         #FFFFFF;

  /* --- Extended neutral ramp (derived, same warm-gray family) ----------- */
  --mr-ink:           #2C2C2C;  /* Deepest — reserved for max contrast     */
  --mr-hairline:      #E6E1E1;  /* Hairline borders on light surfaces      */
  --mr-line:          #D8D2D2;  /* Standard divider                        */

  /* --- Semantic: text --------------------------------------------------- */
  --text-primary:     var(--mr-charcoal);
  --text-secondary:   var(--mr-gray);
  --text-muted:       var(--mr-gray-warm);
  --text-faint:       var(--mr-gray-light);
  --text-on-dark:     var(--mr-offwhite);
  --text-on-dark-dim: var(--mr-gray-light);

  /* --- Semantic: surfaces ---------------------------------------------- */
  --surface-page:     var(--mr-offwhite);
  --surface-card:     var(--mr-white);
  --surface-subtle:   var(--mr-mist);
  --surface-inverse:  var(--mr-charcoal);
  --surface-inverse-2:var(--mr-ink);

  /* --- Semantic: lines & borders --------------------------------------- */
  --border-subtle:    var(--mr-hairline);
  --border-default:   var(--mr-line);
  --border-strong:    var(--mr-gray-light);
  --border-inverse:   rgba(255, 255, 255, 0.16);

  /* --- Semantic: interactive (monochrome, charcoal is the "accent") ----- */
  --accent:           var(--mr-charcoal);
  --accent-hover:     var(--mr-ink);
  --accent-contrast:  var(--mr-offwhite);
  --focus-ring:       rgba(63, 63, 63, 0.35);

  /* --- Overlay / scrim -------------------------------------------------- */
  --scrim:            rgba(44, 44, 44, 0.55);
}

/* ===========================================================================
   MANY ROCKS — TYPOGRAPHY TOKENS
   Philosopher for display/headings (elegant, refined). Montserrat for body.
   Display type is set with generous tracking, echoing the spaced wordmark.
   =========================================================================== */

:root {
  /* --- Families --------------------------------------------------------- */
  --font-display: 'Philosopher', 'Times New Roman', serif;
  --font-body:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* --- Weights ---------------------------------------------------------- */
  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;

  /* --- Type scale (rem, 1rem = 16px) ------------------------------------ */
  --fs-display:   4.5rem;   /* 72px — hero / cover                        */
  --fs-h1:        3rem;     /* 48px                                        */
  --fs-h2:        2.25rem;  /* 36px                                        */
  --fs-h3:        1.75rem;  /* 28px                                        */
  --fs-h4:        1.375rem; /* 22px                                        */
  --fs-title:     1.125rem; /* 18px — card / section titles               */
  --fs-body-lg:   1.0625rem;/* 17px                                        */
  --fs-body:      1rem;     /* 16px                                        */
  --fs-body-sm:   0.9375rem;/* 15px                                        */
  --fs-caption:   0.8125rem;/* 13px                                        */
  --fs-overline:  0.6875rem;/* 11px — spaced labels                       */

  /* --- Line heights ----------------------------------------------------- */
  --lh-tight:     1.08;
  --lh-heading:   1.2;
  --lh-snug:      1.4;
  --lh-body:      1.65;

  /* --- Letter-spacing --------------------------------------------------- */
  --ls-wordmark:  0.42em;   /* the logo lockup                            */
  --ls-overline:  0.28em;   /* eyebrows, spaced labels                    */
  --ls-display:   0.06em;   /* Philosopher headings                       */
  --ls-heading:   0.02em;
  --ls-body:      0.005em;
  --ls-tight:     0;

  /* --- Semantic roles --------------------------------------------------- */
  --text-display__font:  var(--font-display);
  --text-display__size:  var(--fs-display);
  --text-heading__font:  var(--font-display);
  --text-body__font:     var(--font-body);
  --text-overline__font: var(--font-body);
}

/* ===========================================================================
   MANY ROCKS — SPACING, RADII, ELEVATION, MOTION
   The gem is precise and faceted: spacing is disciplined, corners are nearly
   sharp, elevation is a whisper. Nothing ornate.
   =========================================================================== */

:root {
  /* --- Spacing scale (4px base) ---------------------------------------- */
  --space-0:   0;
  --space-1:   0.25rem;  /* 4  */
  --space-2:   0.5rem;   /* 8  */
  --space-3:   0.75rem;  /* 12 */
  --space-4:   1rem;     /* 16 */
  --space-5:   1.5rem;   /* 24 */
  --space-6:   2rem;     /* 32 */
  --space-7:   3rem;     /* 48 */
  --space-8:   4rem;     /* 64 */
  --space-9:   6rem;     /* 96 */
  --space-10:  8rem;     /* 128 */

  /* --- Radii — restrained, faceted precision --------------------------- */
  --radius-none: 0;
  --radius-xs:   2px;
  --radius-sm:   3px;
  --radius-md:   5px;
  --radius-lg:   8px;
  --radius-pill: 999px;

  /* --- Borders --------------------------------------------------------- */
  --border-width:      1px;
  --border-width-thick:1.5px;

  /* --- Elevation — soft, low, warm-neutral shadows --------------------- */
  --shadow-xs:  0 1px 2px rgba(63, 63, 63, 0.06);
  --shadow-sm:  0 2px 6px rgba(63, 63, 63, 0.07);
  --shadow-md:  0 6px 20px rgba(63, 63, 63, 0.09);
  --shadow-lg:  0 18px 48px rgba(44, 44, 44, 0.14);
  --shadow-inset: inset 0 0 0 1px rgba(63, 63, 63, 0.04);

  /* --- Motion — quiet, considered -------------------------------------- */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   140ms;
  --dur-base:   240ms;
  --dur-slow:   420ms;

  /* --- Layout ---------------------------------------------------------- */
  --content-max:  1200px;
  --content-prose:66ch;
  --exclusion-x:  1;  /* logo clear space = 4x (see readme / guide §04)   */
}

/* ===========================================================================
   MANY ROCKS — BASE / RESET
   Minimal element defaults so specimen cards and consumers inherit the brand
   without extra classes. Keep this light; components own their own styling.
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-body);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Headings: Philosopher, refined tracking --------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-display); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--space-4); }

/* --- Links: charcoal, understated underline on hover ------------------- */
a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
a:hover {
  color: var(--mr-gray);
  border-bottom-color: var(--text-primary);
}

/* --- Utility: spaced overline label ------------------------------------ */
.mr-overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--text-muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--border-default);
  margin: var(--space-6) 0;
}

img { max-width: 100%; display: block; }
