/* ==========================================================================
   Maison Krassa — brand foundation shared by all four design directions.
   Values come from the brand style guide: colour page, font pages, logo rules.
   ========================================================================== */

/* Display serif ("monogram font" in the guide). Regular weight only. */
@font-face {
  font-family: "Giflika";
  src: url("../assets/fonts/Giflika-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Secondary face: the wordmark and every heading in the guide. Regular weight only. */
@font-face {
  font-family: "Maregy";
  src: url("../assets/fonts/Maregy-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Body. The guide sets running text in Gotham Light; Montserrat is its open-licence counterpart. */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Primary palette */
  --mk-burgundy: #5E1D20;
  --mk-gold-a: #DAC775;
  --mk-gold-b: #BC8B31;
  /* Supporting palette */
  --mk-ivory: #F6F1EA;
  --mk-taupe: #B8A89A;
  --mk-stone: #8A8681;
  --mk-black: #000000;
  --mk-wine: #411218;
  --mk-champagne: #D6C59A;
  /* Derived only for legibility: stone darkened until small text passes contrast on ivory */
  --mk-stone-deep: #5F5A55;
  --mk-gold: linear-gradient(105deg, var(--mk-gold-a), var(--mk-gold-b));

  --f-display: "Giflika", "Cormorant Garamond", "Times New Roman", serif;
  --f-head: "Maregy", "Jost", "Century Gothic", sans-serif;
  --f-body: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* the gutter is reserved so that opening a panel (which stops the page scrolling) does not shift the page sideways */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; font-family: var(--f-body); font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* Neither brand face carries a rupee glyph, so the symbol always comes from the body face. */
.mk-cur { font-family: var(--f-body); font-weight: 400; }
.mk-price { white-space: nowrap; }

.mk-mark { display: block; height: auto; }
.mk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.mk-lock, .mk-lock body { overflow: hidden; }

.mk-skip {
  position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 12px 18px;
  background: var(--mk-burgundy); color: var(--mk-ivory); font-size: 13px;
}
.mk-skip:focus { top: 12px; }

#view:focus { outline: none; }

/* Reviewing aid shown on every direction; deliberately plain so it reads as a tool, not as part of a design. */
.mk-switch {
  position: fixed; right: 12px; bottom: 12px; z-index: 35; display: flex; align-items: center;
  background: #fff; color: #000; border: 1px solid #000; font: 500 12px/1 var(--f-body); letter-spacing: 0;
}
.mk-switch a, .mk-switch button { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; color: #000; border-left: 1px solid rgba(0, 0, 0, 0.2); }
.mk-switch a:first-child { border-left: 0; }
.mk-switch a:hover, .mk-switch button:hover { background: #eee; }
.mk-switch a[aria-current] { background: #000; color: #fff; }
.mk-switch :focus-visible { outline: 2px solid #000; outline-offset: 2px; }
@media print { .mk-switch { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Touch screens: iOS zooms the whole page when a focused control is set under 16px, so form controls never go
   below that there. Each design sets its search field larger than this, so those are left alone. */
@media (max-width: 1024px), (pointer: coarse) {
  input:not([type="radio"]):not([type="checkbox"]):not([data-search]), select, textarea { font-size: 16px !important; }
}

/* panels keep their own scrolling: reaching the end of a bag or menu does not start moving the page behind it */
[data-panel], [data-panel] ul, [data-panel] ol { overscroll-behavior: contain; }

/* form messages, written by the engine beside the field they describe */
.mk-error { margin: 5px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--mk-error, #A32020); text-align: left; }

/* search fields: each design supplies its own Close control, so the browser's built-in clear button is removed */
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
