*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  background-image: radial-gradient(
      ellipse 120% 80% at 100% 0%,
      rgba(212, 181, 140, 0.15),
      transparent 50%
    ),
    radial-gradient(
      ellipse 80% 60% at 0% 100%,
      rgba(139, 105, 20, 0.06),
      transparent 45%
    );
}

h1,
h2,
h3,
.display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Brand PNG — storefront + admin (pages that load base.css) */
.site-logo {
  width: auto;
  object-fit: contain;
}

.admin-auth-gate .site-logo {
  height: 56px;
  margin-inline: auto;
}

.app-offline #offline-banner { display: flex; }
#offline-banner {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-offline-banner);
  background: #e74c3c;
  color: #fff;
  padding: 6px 16px;
  font-size: 0.85rem;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
