/**
 * PURIVOM — BASE / RESET
 * A modern, minimal reset plus foundational element styling.
 */

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

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

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

body {
  margin: 0;
  background-color: var(--pv-bg-page);
  color: var(--pv-text-primary);
  font-family: var(--pv-font-body);
  font-size: var(--pv-text-body);
  line-height: var(--pv-leading-normal);
  font-weight: var(--pv-weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1 0 auto;
}

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

img {
  color: transparent; /* hide broken-image alt icon flash */
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl, dd {
  margin: 0;
}

/* ---------------------------------------------------------------------
   TYPOGRAPHY ELEMENTS
   --------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--pv-font-display);
  color: var(--pv-text-primary);
  font-weight: var(--pv-weight-semibold);
  letter-spacing: var(--pv-tracking-tight);
  line-height: var(--pv-leading-tight);
}

h1 { font-size: var(--pv-text-h1); }
h2 { font-size: var(--pv-text-h2); }
h3 { font-size: var(--pv-text-h3); }
h4 {
  font-size: var(--pv-text-h4);
  font-family: var(--pv-font-body);
  font-weight: var(--pv-weight-semibold);
}

p {
  color: var(--pv-text-secondary);
  line-height: var(--pv-leading-relaxed);
}

small,
.pv-text-small {
  font-size: var(--pv-text-small);
}

.pv-label {
  font-size: var(--pv-text-label);
  font-weight: var(--pv-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--pv-tracking-wider);
  color: var(--pv-text-accent);
}

.pv-caption {
  font-size: var(--pv-text-caption);
  color: var(--pv-text-secondary);
}

/* ---------------------------------------------------------------------
   SELECTION / SCROLLBAR
   --------------------------------------------------------------------- */

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

/* ---------------------------------------------------------------------
   WORDPRESS CORE ALIGNMENT CLASSES
   --------------------------------------------------------------------- */

.alignwide {
  max-width: var(--pv-container-wide);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: var(--pv-space-md);
}

.alignright {
  float: right;
  margin-left: var(--pv-space-md);
}

/* ---------------------------------------------------------------------
   WP CORE / GALLERY / CAPTION COMPAT
   --------------------------------------------------------------------- */

.wp-caption,
.wp-block-image figcaption,
figcaption {
  font-size: var(--pv-text-caption);
  color: var(--pv-text-secondary);
  margin-top: var(--pv-space-xs);
  text-align: center;
}

.sticky {
  position: relative;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
  gap: var(--pv-space-sm);
}
