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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--color-off-white);
  color: var(--color-warm-brown);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-gold);
  color: var(--color-white);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-off-white);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

h1, h2, h3, h4, h5, h6,
.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-royal-brown);
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

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

.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.section {
  padding-block: var(--space-12);
}

.section-sm {
  padding-block: var(--space-8);
}

.grid-2 {
  display: grid;
  gap: var(--space-8);
}
.grid-3 {
  display: grid;
  gap: var(--space-6);
}
.grid-4 {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.text-gold { color: var(--color-gold); }
.bg-dark { background: var(--color-royal-brown); color: var(--color-off-white); }
.bg-white { background: var(--color-white); }
.bg-sand { background: var(--color-sand); }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--color-gold);
}
.icon-sm { width: 0.875rem; height: 0.875rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

.icon-img {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  object-fit: contain;
}

.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--demo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--color-royal-brown);
  color: var(--color-sand);
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 0.75rem;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.demo-banner a {
  color: var(--color-gold);
  text-decoration: underline;
  margin-left: 0.25rem;
}

@media (min-width: 768px) {
  .demo-banner {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0 1rem;
  }
}
