/* ============================================================
   PIECE — Design System Foundations
   colors_and_type.css · Brand Identity Manual v1.0
   ============================================================ */

/* ============================================================
   FONT FACES — GT Standard, Light and Regular only
   ============================================================ */
@font-face {
  font-family: 'GT Standard';
  src: url('../assets/fonts/GT-Standard-S-Standard-Light.woff2') format('woff2');
  font-weight: 100 349;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Standard';
  src: url('../assets/fonts/GT-Standard-S-Standard-Regular.woff2') format('woff2');
  font-weight: 350 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Standard';
  src: url('../assets/fonts/GT-Standard-S-Standard-Light-Oblique.woff2') format('woff2');
  font-weight: 100 349;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Standard';
  src: url('../assets/fonts/GT-Standard-S-Standard-Regular-Oblique.woff2') format('woff2');
  font-weight: 350 900;
  font-style: italic;
  font-display: swap;
}

:root {

  /* ----------------------------------------------------------
     PALETTE — nine named colours, not a ramp
     Restrained, warm, soft, quiet. Colour arrives as a decision,
     not a default.
     ---------------------------------------------------------- */
  --ivory:      #FAF6F2; /* Primary background */
  --warm-ivory: #F5EDE5; /* Secondary surface, panels */
  --oat:        #DCCFC1; /* Tint, buttons on light */
  --sand:       #C6B5A3; /* Deeper tint */
  --mist:       #C6CBD1; /* Cool neutral */
  --blue-grey:  #DEE1E5; /* Cool neutral, light */
  --stone:      #5E5E5C; /* Body copy, secondary text */
  --graphite:   #3F3E3B; /* Dark surface */
  --ink:        #302E2B; /* Primary text, dark surface */
  --onyx:       #0E0D0C; /* Dark-mode canvas in the product only.
                            ADDITION — not in the manual; pending
                            confirmation from the brand studio. */

  /* ----------------------------------------------------------
     SEMANTIC
     ---------------------------------------------------------- */
  --color-bg:             var(--ivory);
  --color-surface:        var(--warm-ivory);
  --color-surface-dark:   var(--ink);
  --color-text-primary:   var(--ink);
  --color-text-body:      var(--stone);
  /* Derived — not specified in the manual */
  --color-text-inverse:   var(--ivory);
  --color-border:         var(--oat);
  --color-border-strong:  var(--sand);
  --color-border-focus:   var(--ink);

  /* ----------------------------------------------------------
     TYPOGRAPHY
     ---------------------------------------------------------- */
  --font-display: 'GT Standard', sans-serif;
  --font-body:    'GT Standard', sans-serif;

  --text-display: 68px; /* Display / H1 */
  --text-h2:      36px;
  --text-h3:      24px;
  --text-body-lg: 22px;
  --text-body:    18px;
  --text-body-sm: 16px;

  --weight-light:   300;
  --weight-regular: 400;

  --leading-display: 0.95;
  --leading-body-lg: 1.2;
  --leading-body:    1.25;

  /* Manual reads "-2px" at every size; applied as -2% pending confirmation */
  --tracking: -0.02em;

  /* ----------------------------------------------------------
     SPACING (8px base) + layout
     ---------------------------------------------------------- */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-7:   48px;
  --space-8:   64px;
  --space-9:   96px;
  --space-10:  128px;

  --gutter:    12px;
  --margin:    24px;
  --icon-size: 12px;

  /* ----------------------------------------------------------
     RADII
     ---------------------------------------------------------- */
  --radius:        10px;
  --radius-pill:   999px; /* Buttons */
  --button-height: 38px;

  /* ----------------------------------------------------------
     BORDERS
     ---------------------------------------------------------- */
  --border-default: 1px solid var(--color-border);
  --border-strong:  1px solid var(--color-border-strong);
  --border-focus:   1px solid var(--color-border-focus);

  /* ----------------------------------------------------------
     SHADOWS — minimal, functional
     ---------------------------------------------------------- */
  --shadow-sm:  0 1px 3px rgba(48, 46, 43, 0.06);
  --shadow-md:  0 4px 12px rgba(48, 46, 43, 0.09);
  --shadow-lg:  0 8px 32px rgba(48, 46, 43, 0.12);

  /* ----------------------------------------------------------
     ANIMATION
     ---------------------------------------------------------- */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --duration-fast:   150ms; /* @kind other */
  --duration-normal: 250ms; /* @kind other */
  --duration-slow:   400ms; /* @kind other */

  /* ----------------------------------------------------------
     LAYOUT
     ---------------------------------------------------------- */
  --sidebar-width:    220px;
  --content-max-width: 1200px;
  --row-height-compact: 40px;
  --row-height-default: 48px;
}

/* ============================================================
   TYPE STYLES
   ============================================================ */
.piece-display { font-family: var(--font-display); font-size: var(--text-display); font-weight: var(--weight-light); line-height: var(--leading-display); letter-spacing: var(--tracking); color: var(--color-text-primary); }
.piece-h2 { font-family: var(--font-display); font-size: var(--text-h2); font-weight: var(--weight-light); letter-spacing: var(--tracking); color: var(--color-text-primary); }
.piece-h3 { font-family: var(--font-display); font-size: var(--text-h3); font-weight: var(--weight-light); letter-spacing: var(--tracking); color: var(--color-text-primary); }
.piece-body-lg { font-family: var(--font-body); font-size: var(--text-body-lg); font-weight: var(--weight-light); line-height: var(--leading-body-lg); letter-spacing: var(--tracking); color: var(--color-text-body); }
.piece-body { font-family: var(--font-body); font-size: var(--text-body); font-weight: var(--weight-regular); line-height: var(--leading-body); letter-spacing: var(--tracking); color: var(--color-text-body); }
.piece-body-sm { font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--weight-regular); letter-spacing: var(--tracking); color: var(--color-text-body); }
