/* ==========================================================================
   SESSAIA STUDIO | Core Design System & Global Styles
   Brand Ethos: "Crafted with intention. An ode to your personal essence."
   ========================================================================== */

/* Custom Font Definitions */
@font-face {
  font-family: 'TAN Mon Cheri';
  src: local('TAN Mon Cheri'),
       local('TAN-Mon-Cheri'),
       local('TAN - MON CHERI'),
       local('Tan Mon Cheri'),
       local('Tan-Mon-Cheri'),
       url('../fonts/TAN - MON CHERI.otf') format('opentype'),
       url('../fonts/TAN%20-%20MON%20CHERI.otf') format('opentype'),
       url('../fonts/TAN - MON CHERI.ttf') format('truetype'),
       url('../fonts/TAN%20-%20MON%20CHERI.ttf') format('truetype'),
       url('../fonts/TAN-Mon-Cheri.otf') format('opentype'),
       url('../fonts/TAN-Mon-Cheri.ttf') format('truetype'),
       url('../fonts/TAN Mon Cheri.otf') format('opentype'),
       url('../fonts/TAN Mon Cheri.ttf') format('truetype'),
       url('../fonts/TAN_Mon_Cheri.otf') format('opentype'),
       url('../fonts/TAN_Mon_Cheri.ttf') format('truetype'),
       url('../fonts/Tan-Mon-Cheri.otf') format('opentype'),
       url('../fonts/Tan-Mon-Cheri.ttf') format('truetype'),
       url('../fonts/Tan Mon Cheri.otf') format('opentype'),
       url('../fonts/Tan Mon Cheri.ttf') format('truetype'),
       url('../fonts/tan-mon-cheri.otf') format('opentype'),
       url('../fonts/tan-mon-cheri.ttf') format('truetype'),
       url('../fonts/TAN-Mon-Cheri.woff2') format('woff2'),
       url('../fonts/TAN-Mon-Cheri.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Google Fonts Import: Cormorant Garamond (Headings & Poetic Typography) & Montserrat (Sublines, Body, UI & Metadata) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  /* Brand Palette from Knowledge Base Section 3 */
  --color-chalk: #F9F8F6;          /* Primary luminous digital canvas, clean product backdrops */
  --color-oat: #F3EFE6;            /* Soft natural texture, subtle editorial card accents */
  --color-slate-ink: #2C3945;      /* Primary typography, logo, headers, dark rules */
  --color-aegean-blue: #4A5D6E;    /* Brand accent, secondary frames, soft badge tones */
  --color-pebble-grey: #A2A19E;    /* Subtle dividers, technical metadata, dimensions, fine borders */
  --color-deep-mole: #4A3F37;      /* Dark earthy anchor: CTA buttons, cart counters, borders */
  
  /* Extended Translucent & Elevation Tones */
  --color-chalk-translucent: rgba(249, 248, 246, 0.94);
  --color-oat-translucent: rgba(243, 239, 230, 0.75);
  --color-pebble-grey-15: rgba(162, 161, 158, 0.15);
  --color-pebble-grey-30: rgba(162, 161, 158, 0.30);
  --color-pebble-grey-50: rgba(162, 161, 158, 0.50);
  --color-slate-ink-10: rgba(44, 57, 69, 0.08);
  --color-slate-ink-20: rgba(44, 57, 69, 0.18);
  --color-slate-ink-60: rgba(44, 57, 69, 0.65);
  --color-deep-mole-hover: #362D27;
  --color-gold-accent: #C5A880;

  /* Typography Stacks */
  --font-serif-brand: 'TAN Mon Cheri', 'Cormorant Garamond', 'Cinzel', serif;
  --font-serif-editorial: 'Cormorant Garamond', Garamond, 'Georgia', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2.5rem;    /* 40px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */

  /* Transitions & Radii (Harmonized with TAN Mon Cheri Curves) */
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  --ease-atelier: cubic-bezier(0.25, 1, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
  
  /* Shadows & Glassmorphism */
  --shadow-subtle: 0 4px 20px -2px rgba(44, 57, 69, 0.05);
  --shadow-float: 0 16px 36px -4px rgba(44, 57, 69, 0.09);
  --shadow-drawer: -8px 0 32px rgba(44, 57, 69, 0.12);
  --backdrop-blur: blur(12px);
}

/* Reset & Base Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-chalk);
  color: var(--color-slate-ink);
}

body {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  background-color: var(--color-chalk);
  color: var(--color-slate-ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Selection Color */
::selection {
  background-color: var(--color-oat);
  color: var(--color-deep-mole);
}

/* Typography Hierarchy */
h1, h2, h3, h4, .serif-title {
  font-family: var(--font-serif-editorial);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-slate-ink);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.03em;
  font-weight: 400;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 400;
}

h4 {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}

p {
  color: var(--color-slate-ink);
  font-weight: 300;
  font-family: var(--font-sans);
}

p.lead {
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--color-slate-ink-60);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-atelier);
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.container-narrow {
  max-width: 900px;
}

.section-spacing {
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
}

.divider-subtle {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-pebble-grey), transparent);
  opacity: 0.85;
  margin: var(--space-2xl) 0;
  border: none;
}

/* Brand Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-serif-brand);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.18em;
  text-indent: 0.18em; /* Offsets trailing letter-spacing so text is perfectly centered horizontally */
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-atelier);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  vertical-align: middle;
}

.btn .btn-label,
.btn > span:not(.badge):not(.bag-counter-pill) {
  display: inline-block;
  line-height: 1.35;
  text-align: center;
  transform: translateY(1.5px); /* Optical cap-height alignment equidistant from top and bottom */
}

.btn-primary {
  background-color: var(--color-deep-mole);
  color: var(--color-chalk);
  border: 1px solid var(--color-deep-mole);
}

.btn-primary:hover {
  background-color: var(--color-aegean-blue);
  border-color: var(--color-aegean-blue);
  box-shadow: 0 6px 18px rgba(74, 93, 110, 0.28);
  transform: translateY(-1px);
}

.btn-aegean {
  background-color: var(--color-aegean-blue);
  color: var(--color-chalk);
  border: 1px solid var(--color-aegean-blue);
}

.btn-aegean:hover {
  background-color: #3B4B59;
  box-shadow: 0 6px 18px rgba(74, 93, 110, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-aegean-blue);
  border: 1px solid var(--color-aegean-blue);
}

.btn-outline:hover {
  background-color: var(--color-aegean-blue);
  color: var(--color-chalk);
  border-color: var(--color-aegean-blue);
}

.btn-subtle {
  background-color: var(--color-chalk);
  color: var(--color-slate-ink);
  border: 1px solid var(--color-pebble-grey);
}

.btn-subtle:hover {
  background-color: #FFFFFF;
  border-color: var(--color-aegean-blue);
  color: var(--color-aegean-blue);
}

/* Editorial Badges & Metadata */
.badge-ooak {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  background-color: transparent;
  color: var(--color-slate-ink);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.badge-divider {
  color: #D1CEC7;
  font-weight: 300;
  font-size: 11px;
  user-select: none;
}

.badge-subline {
  font-size: 11px;
  color: var(--color-pebble-grey);
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.badge-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-pebble-grey);
  border-radius: 50%;
  display: inline-block;
}

.badge-deep-mole {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background-color: rgba(74, 63, 55, 0.08);
  color: var(--color-deep-mole);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 63, 55, 0.25);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-chalk);
}

::-webkit-scrollbar-thumb {
  background: var(--color-pebble-grey);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-aegean-blue);
}

/* Modal Overlay Base */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(44, 57, 69, 0.55);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-atelier), visibility var(--duration-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Accessible Screen Reader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
