/*
  brand.css — Luravix wordmark, logo mark, brand fixtures
  Brand archetype: Luminary — refined, dark, elevated
  Font: Fraunces optical serif at opsz 72, weight 700

  Editorial identity: Luravix
  Italian for "ritual" — the daily act, the considered choice.
  A publication about the deliberate life.
*/

/* =====================================================
   SVG NOISE FILTER (for atmospheric depth)
   Injected into pages via <svg aria-hidden="true">
   Here defined as reference only — see HTML for usage
   ===================================================== */

/* =====================================================
   WORDMARK — .brand-wordmark
   Fraunces, weight 700, opsz 72 (optical large size)
   ===================================================== */

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: var(--text-primary);
  font-feature-settings: var(--ff-display);
}

.brand-wordmark__mark {
  width: 2em;
  height: 2em;
  flex-shrink: 0;
}

.brand-wordmark__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  font-optical-sizing: auto;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

/* Inverse (for dark backgrounds) */
.brand-wordmark--inverse .brand-wordmark__text {
  color: var(--text-inverse);
}

.brand-wordmark--inverse .brand-wordmark__mark path,
.brand-wordmark--inverse .brand-wordmark__mark rect {
  fill: var(--text-inverse);
}

.brand-wordmark--lime .brand-wordmark__text {
  color: var(--brand-accent);
}

.brand-wordmark--lime .brand-wordmark__mark path,
.brand-wordmark--lime .brand-wordmark__mark rect {
  fill: var(--brand-accent);
}

/* =====================================================
   ANNOUNCEMENT BAR
   ===================================================== */

.announcement-bar {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-2) var(--page-gutter);
  position: relative;
  z-index: var(--z-raised);
}

.announcement-bar a {
  color: var(--brand-accent);
}

/* =====================================================
   GHOST NAV (E=4 — hidden until hover)
   Appears on mouse move to top edge
   ===================================================== */

.ghost-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.25s ease;
  background-color: rgba(237, 232, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.ghost-nav.is-visible {
  transform: translateY(0);
}

.ghost-nav__inner {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: var(--space-4) var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ghost-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.ghost-nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.ghost-nav__links a:hover {
  color: var(--brand-primary);
}

.ghost-nav__cta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary) !important;
  border: 1.5px solid var(--brand-primary);
  padding: var(--space-2) var(--space-4);
  transition: background var(--transition-fast), color var(--transition-fast) !important;
}

.ghost-nav__cta:hover {
  background-color: var(--brand-primary);
  color: var(--text-inverse) !important;
}

/* =====================================================
   CATEGORY TAG
   ===================================================== */

.category-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  border-bottom: 1.5px solid var(--brand-secondary);
  padding-bottom: 2px;
  margin-bottom: var(--space-5);
}

/* =====================================================
   PUBLICATION NAME / MASTHEAD ELEMENT
   ===================================================== */

.pub-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* =====================================================
   SECTION NUMBER DECORATION (background numeral)
   ===================================================== */

.section-numeral {
  position: absolute;
  right: -0.05em;
  top: -0.15em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18vw;
  line-height: 1;
  color: var(--brand-primary);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: var(--z-below);
  font-feature-settings: "onum" 1;
}

/* =====================================================
   STAR RATING
   ===================================================== */

.star-rating {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-3);
}

.star-rating__star {
  width: 14px;
  height: 14px;
  fill: var(--brand-accent);
}

/* =====================================================
   CITATION / SOURCE LINE
   ===================================================== */

.source-line {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  line-height: 1.55;
}

.source-line a {
  color: var(--brand-secondary);
  word-break: break-all;
}

.source-line a:hover {
  color: var(--brand-primary);
}
