*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: url('../assets/peony-cursor.svg') 16 15, auto;
}

a, button, [role="button"], [tabindex="0"],
input[type="submit"], input[type="button"], input[type="reset"],
label, select,
.nav-item, .mood-btn, .star-btn, .cal-day,
.gallery-item, .theme-swatch-btn, .session-btn,
.entry-tab, .paper-style-btn, .gallery-filter-btn,
.btn, .btn-save, .btn-primary, .btn-secondary,
.mobile-nav-item, .media-dropzone, .media-remove-btn,
.lightbox-close, .theme-toggle-btn {
  cursor: url('../assets/peony-cursor.svg') 16 15, pointer;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent-rose);
  border-radius: var(--radius-full);
  opacity: 0.6;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-deep);
}

/* Typography base */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p {
  margin-bottom: var(--sp-4);
  color: var(--color-text-body);
}

a {
  color: var(--color-accent-deep);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-text-heading); }

.script {
  font-family: var(--font-script);
  color: var(--color-accent-pink);
}

.heading {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
}

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

textarea, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* Selection */
::selection {
  background: var(--color-accent-pink);
  color: var(--color-surface);
  opacity: 0.3;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent-rose);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Utility classes */
.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;
}

.text-muted { color: var(--color-text-muted); font-size: var(--fs-sm); }
.text-script { font-family: var(--font-script); }
.text-heading-font { font-family: var(--font-heading); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.hidden { display: none !important; }
