/* =========================================================
   AUSIEGE · Design tokens (ink-dominant variant)
   Reference: /projects/3cc31b30-f1b7-4fce-b752-f6dd91b81624/colors_and_type.css
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600&display=swap');

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  /* base palette (from DS) */
  --ink:        #1c1a17;
  --ink-soft:   #26231f;     /* legible against --ink for sections */
  --ink-deep:   #100f0d;     /* deepest, for hero stage */
  --ink-mute:   #3a3530;

  --bone:       #f5efe4;
  --cream:      #ebe3d3;
  --sand:       #d9cfbd;
  --mist:       #b8ad99;
  --taupe:      #8c7f6c;

  --champagne:      #b89968;
  --champagne-soft: #d4bd95;
  --rosewood:       #5a3d33;

  --success:    #5c6b4a;
  --error:      #8a3a2b;
  --warning:    #a87b3d;

  /* semantic · INK DOMINANT inversion */
  --bg:                var(--ink);
  --bg-alt:            var(--ink-soft);
  --bg-inverse:        var(--bone);

  --surface:           var(--ink);
  --surface-raised:    var(--ink-soft);
  --surface-light:     var(--bone);          /* explicit light surface */
  --surface-cream:     var(--cream);
  --surface-inverse:   var(--bone);

  --fg:                var(--bone);
  --fg-strong:         #faf6ec;
  --fg-muted:          var(--mist);
  --fg-subtle:         var(--taupe);
  --fg-inverse:        var(--ink);

  /* borders on dark: low-opacity bone */
  --border-on-dark:    rgba(245, 239, 228, 0.14);
  --border-on-dark-strong: rgba(245, 239, 228, 0.32);
  --border-on-light:   var(--sand);
  --border-on-light-strong: var(--ink);

  --accent:        var(--champagne);
  --accent-deep:   var(--rosewood);
  --accent-soft:   var(--champagne-soft);

  --link:          var(--bone);
  --link-hover:    var(--champagne);

  /* CTA */
  --cta-bg:           var(--bone);
  --cta-fg:           var(--ink);
  --cta-bg-hover:     var(--cream);
  --cta-bg-disabled:  var(--ink-mute);
  --cta-fg-disabled:  var(--taupe);

  /* TYPO */
  --font-display: "Instrument Serif", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-sans:    "Hanken Grotesk", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --fs-display:   clamp(56px, 7vw, 96px);
  --fs-h1:        clamp(40px, 4.5vw, 64px);
  --fs-h2:        clamp(32px, 3vw, 44px);
  --fs-h3:        24px;
  --fs-h4:        18px;
  --fs-body-l:    18px;
  --fs-body:      16px;
  --fs-body-s:    14px;
  --fs-caption:   13px;
  --fs-overline:  11px;

  --lh-tight:     1.04;
  --lh-snug:      1.18;
  --lh-normal:    1.5;
  --lh-loose:     1.65;

  --ls-tight:     -0.015em;
  --ls-normal:    0;
  --ls-wide:      0.06em;
  --ls-overline:  0.18em;

  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;

  /* SPACING */
  --space-2xs:  2px;
  --space-xs:   4px;
  --space-s:    8px;
  --space-m:    16px;
  --space-l:    24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;
  --space-4xl:  144px;

  /* LAYOUT */
  --content-max: 1280px;
  --gutter-desktop: 24px;
  --margin-desktop: 80px;
  --margin-tablet:  40px;
  --margin-mobile:  20px;

  /* RADII */
  --radius-none: 0;
  --radius-s:    2px;
  --radius-m:    4px;
  --radius-l:    8px;
  --radius-pill: 999px;

  /* SHADOWS */
  --shadow-none:  none;
  --shadow-card:  0 1px 0 rgba(0,0,0,0.4), 0 12px 32px -16px rgba(0,0,0,0.55);
  --shadow-modal: 0 24px 64px -16px rgba(0,0,0,0.55);
  --shadow-focus: 0 0 0 2px var(--ink), 0 0 0 4px var(--champagne);

  /* MOTION */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-fast:     150ms;
  --dur-base:     350ms;
  --dur-slow:     600ms;

  /* Z */
  --z-base: 0; --z-sticky: 100; --z-overlay: 1000; --z-modal: 1100; --z-toast: 1200;
}

/* ---------- base elements ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--champagne); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- type primitives ---------- */
.display, h1, .h1, h2, .h2, h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400; margin: 0;
}
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.018em; }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: -0.014em; }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: -0.005em; }
h4, .h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  margin: 0;
}
em, i { font-style: italic; }

p { margin: 0; line-height: var(--lh-loose); }
.body-l { font-size: var(--fs-body-l); line-height: var(--lh-loose); }
.body-s { font-size: var(--fs-body-s); line-height: var(--lh-normal); color: var(--fg-muted); }
.caption { font-size: var(--fs-caption); line-height: var(--lh-normal); color: var(--fg-muted); }
.overline {
  font-family: var(--font-sans);
  font-size: var(--fs-overline);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.32;
}
.price {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}
