/* ============================================================
   BoLOVEgna — Reset & Base
   ============================================================ */

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

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

body {
  font-family: var(--font-sans);
  background: var(--color-avorio);
  color: var(--color-ink);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

ul, ol {
  list-style: none;
}

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

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

.u-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}

.u-divider {
  flex: 1;
  height: 0.5px;
  background: var(--color-travertino);
  margin: 0 var(--space-md);
}

/* ── Section header ── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-xl) 0 var(--space-md);
}

.section-head__label {
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  font-weight: 400;
  white-space: nowrap;
}

.section-head__all {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  transition: color var(--ease-std);
}

.section-head__all:hover {
  color: var(--color-terracotta);
}

/* ── Category pill ── */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  font-weight: 500;
}

.cat-pill::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--color-terracotta);
}

/* ── Read-more link ── */
.read-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 0.5px solid currentColor;
  padding-bottom: 2px;
  transition: opacity var(--ease-std);
}

.read-link:hover {
  opacity: 0.7;
}

.read-link--terracotta { color: var(--color-terracotta); }
.read-link--light      { color: var(--color-avorio); }

/* ── Author badge ── */
.author-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-badge__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-avorio);
  flex-shrink: 0;
}

.author-badge__meta {
  font-size: 11px;
  color: var(--color-ink-soft);
  line-height: 1.4;
}

.author-badge__meta strong {
  color: var(--color-ink);
  font-weight: 500;
}

/* ── Responsive gutter ── */
@media (max-width: 1280px) {
  .u-container { padding: 0 var(--gutter-tablet); }
}

@media (max-width: 768px) {
  .u-container { padding: 0 var(--gutter-mobile); }
}

/* ── Wordmark con font custom ───────────────────────────────────
   La parola resta testo puro. Il font custom sostituisce il glifo
   "B" con il logo; nei browser senza supporto colore resta il
   fallback monocromatico dello stesso glifo.
   ────────────────────────────────────────────────────────────── */
.wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  color: var(--color-ink);
  letter-spacing: 0.06em;
  line-height: 1;
}

.wordmark--light {
  color: var(--color-avorio-dk);
}

.wordmark .love {
  font-style: italic;
  color: var(--color-terracotta);
}
