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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

code, pre, .technical {
  font-family: var(--font-code);
}

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

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

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

ul,
ol {
  list-style: none;
}

/* Utility Classes */
.gold-text {
  color: var(--gold-primary);
}

/* Gold Border Utility */
.gold-border {
  border: 2px solid var(--border-gold);
}

.hidden {
  display: none !important;
}

/* Image captions: ? button + bubble */
.caption-wrap {
  position: relative;
  display: inline-block;
}

.caption-btn {
  position: absolute;
  top: auto;
  left: auto;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent var(--caption-icon) center / contain no-repeat;
  border: none;
  z-index: 3;
  /* source svg is dark-on-transparent; invert makes strokes white, drop-shadow NOT NEEDED */
  filter: invert(1)
}

.caption-btn:hover {
  background: transparent var(--caption-icon) center / contain no-repeat;
}

.caption-bubble {
  position: absolute;
  bottom: 38px;
  right: 8px;
  width: max-content;
  max-width: 220px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-gold);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-family: var(--font-body);
  padding: 0.5rem 0.75rem;
  z-index: 4;
  text-align: left;
  line-height: 1.5;
}

.caption-btn-landing {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
}

.landing .caption-bubble {
  bottom: 44px;
  right: 12px;
  z-index: 2;
}
