/* =====================================================
   PAPILLON HUB · Base
   Reset, tipografia global, e estilos body.
   ===================================================== */

/* ── Minimal reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ph-sans);
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: var(--ph-text-base);
  line-height: 1.6;
  color: var(--ph-ink);
  background: var(--ph-paper);
  min-height: 100vh;
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ph-duration) var(--ph-ease);
}

a:hover {
  color: var(--ph-gold-deep);
}

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

/* ── Lists (reset para UI, preservar em conteúdo) ── */
ul, ol {
  list-style: none;
}

.ph-content ul,
.ph-content ol {
  list-style: revert;
  padding-left: 1.5em;
  margin-bottom: var(--ph-space-md);
}

/* ── Headings ── */
h1, h2, h3 {
  font-family: var(--ph-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ph-ink);
}

h1 {
  font-size: var(--ph-text-3xl);
  font-weight: 400;
  letter-spacing: -0.5px;
}

h2 {
  font-size: var(--ph-text-xl);
  font-weight: 400;
}

h3 {
  font-size: var(--ph-text-lg);
}

/* ── Eyebrow / section label ── */
.ph-eyebrow {
  font-family: var(--ph-sans);
  font-size: var(--ph-text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ph-gold-deep);
  font-weight: 700;
}

/* ── Lead text (subtítulos em itálico) ── */
.ph-lead {
  font-family: var(--ph-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ph-ink-soft);
}

/* ── Monospace (NIFs, códigos, lotes) ── */
code,
.ph-mono {
  font-family: var(--ph-mono);
  font-size: 0.85em;
  background: var(--ph-paper-tint);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── Selection ── */
::selection {
  background: var(--ph-gold);
  color: var(--ph-ink);
}

/* ── Focus visible (acessibilidade) ── */
:focus-visible {
  outline: 2px solid var(--ph-gold-deep);
  outline-offset: 2px;
}

/* ── Screen reader only ── */
.ph-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;
}

/* ── Container global ── */
.ph-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ph-space-lg);
}

/* ── WordPress admin bar offset ── */
body.admin-bar .ph-app-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ph-app-header {
    top: 46px;
  }
}
