/* ============================================================
   Base / Reset / Variables
   ============================================================ */

/* DM Sans, self-hosted (SIL OFL) instead of loaded from Google Fonts, so the
   font no longer costs a render-blocking stylesheet on another domain. Variable
   weight 300–700, split by unicode-range the way Google serves it: browsers
   only download latin-ext or italic when a page actually uses them. The latin
   regular face is preloaded in the layouts (shared/_font_preload). */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/dm-sans-latin-c3a50c50.woff2") format("woff2");
  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: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/dm-sans-latin-ext-149277ba.woff2") format("woff2");
  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;
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/dm-sans-italic-latin-03cba109.woff2") format("woff2");
  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: "DM Sans";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/dm-sans-italic-latin-ext-9e058feb.woff2") format("woff2");
  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;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Colors */
  --color-gold: #C49A3C;
  --color-gold-light: #D4A853;
  --color-gold-dark: #A8832F;
  --color-gold-bg: #FBF6EB;

  --color-background: #ffffff;
  --color-foreground: #1a1a1a;
  --color-card: #ffffff;
  --color-card-foreground: #1a1a1a;
  --color-primary: #1a1a1a;
  --color-primary-foreground: #fafafa;
  --color-secondary: #f5f5f5;
  --color-secondary-foreground: #1a1a1a;
  --color-muted: #f5f5f5;
  --color-muted-foreground: #737373;
  --color-accent: #f5f5f5;
  --color-accent-foreground: #1a1a1a;
  --color-destructive: #dc2626;
  --color-border: #e5e5e5;
  --color-input: #e5e5e5;
  --color-ring: #a3a3a3;

  /* Status colors */
  --color-success-bg: #dcfce7;
  --color-success-text: #15803d;
  --color-warning-bg: #fef9c3;
  --color-warning-text: #a16207;
  --color-danger-bg: #fee2e2;
  --color-danger-text: #dc2626;
  --color-info-bg: #dbeafe;
  --color-info-text: #1d4ed8;

  /* Sidebar */
  --color-sidebar: #1a1a1a;
  --color-sidebar-text: #ffffff;
  --color-sidebar-muted: #9ca3af;
  --color-sidebar-hover: rgba(255, 255, 255, 0.05);
  --color-sidebar-active: rgba(255, 255, 255, 0.1);
  --color-sidebar-border: rgba(255, 255, 255, 0.1);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);

  /* Font */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Sidebar width */
  --sidebar-width: 256px;

  /* Storefront admin bar height — the sticky site header offsets by this */
  --admin-bar-height: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.body--portal {
  height: 100vh;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  height: auto;
}

.hidden {
  display: none !important;
}
