/* ==========================================================================
   Victor Harbour Whale Sighting — base styles & shared primitives
   Requires tokens.css. Component-specific styles live in css/components/.
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--vh-bone);
  color: var(--vh-black);
  font-family: var(--vh-font-body);
  font-size: var(--vh-text-body);
  line-height: var(--vh-leading-body);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--vh-font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--vh-black);
  outline-offset: 2px;
}

/* --- Layout --- */
.vh-container {
  width: 100%;
  max-width: calc(var(--vh-container) + 2 * var(--vh-gutter));
  margin-inline: auto;
  padding-inline: var(--vh-gutter);
}

@media (min-width: 1024px) {
  .vh-container {
    max-width: calc(var(--vh-container) + 160px);
    padding-inline: 80px;
  }
}

/* --- Button (black, 2px radius, Josefin bold uppercase) --- */
.vh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--vh-radius);
  background: var(--vh-black);
  color: var(--vh-white);
  font-family: var(--vh-font-display);
  font-weight: 700;
  font-size: var(--vh-text-btn);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

/* Hover not designed in Figma — extrapolated (see DECISIONS.md) */
.vh-btn:hover {
  background: #262626;
}

.vh-btn img {
  flex: 0 0 auto;
}

/* --- Verified badge --- */
.vh-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--vh-radius);
  background: var(--vh-black);
  color: var(--vh-white);
  font-family: var(--vh-font-display);
  font-weight: 700;
  font-size: var(--vh-text-btn);
  line-height: 1;
  text-transform: uppercase;
}

.vh-badge img {
  width: 14px;
  height: 12px;
}

/* --- Sighting meta rows (icon + Lora text) --- */
.vh-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vh-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vh-meta img {
  width: 16px;
  height: 16px;
  margin-top: 5px;
}

/* --- Live updates label --- */
.vh-live {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--vh-font-display);
  font-weight: 700;
  font-size: var(--vh-text-btn);
  line-height: 1;
  text-transform: uppercase;
}

.vh-live::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vh-live);
}

/* --- Theme-provided chrome placeholders (WordPress supplies these) --- */
.vh-theme-placeholder {
  position: relative;
}

.vh-theme-placeholder img {
  width: 100%;
  height: auto;
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
