/* ============================================================
   J.R. HAWTHORNE — COMPONENTS.CSS
   Nav, Logo, Hero, Book Cards, Lore Tiles, Newsletter,
   Buttons, Footer, Breadcrumbs, Badge
   ============================================================ */


/* ============================================================
   SVG LOGO / GLYPH (Shard motif — inline SVG referenced via CSS)
   ============================================================ */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__glyph {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: filter var(--transition-base);
}

.site-logo:hover .site-logo__glyph {
  filter: drop-shadow(0 0 6px var(--color-gold));
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.site-logo__tagline {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-dim);
  margin-top: 2px;
  transition: color var(--transition-fast);
}

.site-logo:hover .site-logo__name   { color: var(--color-gold-bright); }
.site-logo:hover .site-logo__tagline { color: var(--color-gold); }


/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-slow), backdrop-filter var(--transition-slow), border-color var(--transition-slow);
  border-bottom: 1px solid transparent;
}

/* Scrolled state — added via JS */
.site-nav.scrolled {
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Desktop nav links */
.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.site-nav__link:hover,
.site-nav__link.active {
  color: var(--color-gold);
}

.site-nav__link:hover::after,
.site-nav__link.active::after {
  width: 100%;
}

/* Hamburger button (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  transition: border-color var(--transition-fast);
}

.nav-toggle:hover {
  border-color: var(--color-gold-dim);
}

.nav-toggle__bar {
  width: 100%;
  height: 1px;
  background: var(--color-text-secondary);
  transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-fast);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--color-gold); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--color-gold); }

/* Mobile menu drawer */
.site-nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 12, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
  z-index: 99;
}

.site-nav__mobile.open {
  display: flex;
}

.site-nav__mobile .site-nav__link {
  font-size: var(--text-base);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.site-nav__mobile .site-nav__link:last-child {
  border-bottom: none;
}

@media (max-width: 767px) {
  .site-nav__links { display: none; }
  .nav-toggle      { display: flex; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75em 1.75em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary — amber gold fill */
.btn--primary {
  background: var(--color-gold);
  color: var(--color-void);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  box-shadow: 0 4px 20px rgba(201, 147, 58, 0.35);
  color: var(--color-void);
}

/* Ghost — outlined */
.btn--ghost {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold-dim);
}

.btn--ghost:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-glow);
  color: var(--color-gold-bright);
}

/* Muted — for "coming soon" states */
.btn--muted {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border-color: var(--color-border);
  cursor: default;
}

.btn--muted:hover { transform: none; box-shadow: none; }

/* Large size modifier */
.btn--lg {
  font-size: var(--text-sm);
  padding: 1em 2.25em;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-24);

  /* ════════════════════════════════════════════════════════
     SWAP HERO BACKGROUND
     Replace the gradient below with your atmospheric art:
     background-image: url('../assets/images/ui/hero-bg.jpg');
     background-size: cover;
     background-position: center top;
     ════════════════════════════════════════════════════════ */
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(90, 55, 15, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(30, 15, 5, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0c 0%, #0f0d0a 40%, #0a0807 80%, #050403 100%);
}

/* Ambient vignette overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 147, 58, 0.04) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(10, 10, 12, 0.1) 0%, rgba(10, 10, 12, 0.6) 100%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-inline: var(--space-6);
}

.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
  display: block;
  opacity: 0;
  animation: fadeSlideDown 0.8s ease 0.2s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  opacity: 0;
  animation: fadeSlideDown 0.8s ease 0.4s forwards;
}

/* Gold shimmer on hero title */
.hero__title-accent {
  background: linear-gradient(135deg, var(--color-gold-dim) 0%, var(--color-gold-bright) 50%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__series {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeSlideDown 0.8s ease 0.5s forwards;
}

.hero__body {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.8;
  opacity: 0;
  animation: fadeSlideDown 0.8s ease 0.6s forwards;
}

.hero__cta {
  opacity: 0;
  animation: fadeSlideDown 0.8s ease 0.8s forwards;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.4s both;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* Hero entry animations */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ============================================================
   NEWSLETTER FORM
   ============================================================ */
.newsletter-form {
  /* ════════════════════════════════════════════════════════
     NEWSLETTER EMBED PLACEHOLDER
     When you have your Mailchimp / MailerLite embed code:
     1. Delete everything inside .newsletter-form
     2. Paste your provider's embed code here
     3. Delete the placeholder <div> in index.html
     ════════════════════════════════════════════════════════ */
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 460px;
  margin-inline: auto;
}

.newsletter-form__row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.newsletter-form__input {
  flex: 1;
  min-width: 200px;
  padding: 0.8em 1.2em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}

.newsletter-form__input::placeholder { color: var(--color-text-muted); }

.newsletter-form__input:focus {
  border-color: var(--color-gold-dim);
  background: rgba(255, 255, 255, 0.07);
}

.newsletter-form__disclaimer {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ── Inline hero newsletter strip ── */
.hero-newsletter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  backdrop-filter: blur(4px);
}

.hero-newsletter__label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  display: block;
}


/* ============================================================
   SECTION HEADERS (centered title blocks)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .ornament {
  max-width: 320px;
  margin-inline: auto;
  margin-top: var(--space-4);
}

.section-header p {
  max-width: 540px;
  margin-inline: auto;
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
}


/* ============================================================
   BOOK CARDS
   ============================================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-6);
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.book-card:hover {
  border-color: var(--color-gold-dim);
  box-shadow: var(--shadow-gold), var(--shadow-card);
  transform: translateY(-4px);
}

.book-card--available { border-color: rgba(201, 147, 58, 0.2); }

/* Book cover area (placeholder until real covers are available) */
.book-card__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;

  /* ════════════════════════════════════════════════════════
     SWAP COVER IMAGE
     Replace the gradient with:
     background-image: url('../assets/images/covers/book-1.jpg');
     background-size: cover;
     background-position: center;
     Then remove the gradient background below.
     ════════════════════════════════════════════════════════ */
  background: linear-gradient(160deg, #1a1510 0%, #0d0d12 60%, #050507 100%);
}

/* Atmospheric placeholder for each book — different hues */
.book-card:nth-child(1) .book-card__cover { background: linear-gradient(150deg, #1a1208 0%, #100c06 50%, #050407 100%); }
.book-card:nth-child(2) .book-card__cover { background: linear-gradient(150deg, #0f0f18 0%, #0a0a12 50%, #040406 100%); }
.book-card:nth-child(3) .book-card__cover { background: linear-gradient(150deg, #0e1812 0%, #0a1008 50%, #040605 100%); }
.book-card:nth-child(4) .book-card__cover { background: linear-gradient(150deg, #111825 0%, #0a0f1a 50%, #040608 100%); }
.book-card:nth-child(5) .book-card__cover { background: linear-gradient(150deg, #1a1010 0%, #120808 50%, #060404 100%); }

/* Glowing shard icon placeholder in the center of each cover */
.book-card__cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.book-card__cover-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}

.book-card__cover-placeholder span {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.book-card__cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.9) 0%, transparent 50%);
}

/* Book card body */
.book-card__body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}

.book-card__number {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-dim);
}

.book-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.book-card__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
  flex: 1;
}

.book-card__footer {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* State badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--available {
  background: rgba(201, 147, 58, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(201, 147, 58, 0.3);
}

.badge--available::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

.badge--soon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}


/* ============================================================
   LORE / WIKI SECTION (Home page teaser)
   ============================================================ */
.lore-section {
  /* ════════════════════════════════════════════════════════
     SWAP LORE SECTION BACKGROUND
     Replace gradient with:
     background-image: url('../assets/images/world/map.jpg');
     background-size: cover;
     background-position: center;
     ════════════════════════════════════════════════════════ */
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(25, 18, 8, 0.9) 0%, rgba(10, 10, 12, 0.95) 100%),
    linear-gradient(135deg, var(--color-void) 0%, #0d0b08 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.lore-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.lore-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  min-height: 280px;
}

.lore-tile:hover {
  border-color: var(--color-gold-dim);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.lore-tile__image {
  height: 160px;
  position: relative;
  overflow: hidden;
}

/* Characters tile placeholder */
.lore-tile--characters .lore-tile__image {
  /* SWAP: url('../assets/images/ui/characters-bg.jpg') */
  background: linear-gradient(135deg, #0f0f1e 0%, #0a0a15 50%, #060609 100%);
}

/* World tile placeholder */
.lore-tile--world .lore-tile__image {
  /* SWAP: url('../assets/images/world/vault.jpg') */
  background: linear-gradient(135deg, #100a06 0%, #0c0806 50%, #060504 100%);
}

.lore-tile__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--color-surface) 100%);
}

.lore-tile__image-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
}

.lore-tile__image-icon svg {
  width: 64px;
  height: 64px;
}

.lore-tile__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}

.lore-tile__label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}

.lore-tile__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  line-height: 1.25;
}

.lore-tile__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex: 1;
}

.lore-tile__arrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: var(--space-4);
  transition: gap var(--transition-fast);
}

.lore-tile:hover .lore-tile__arrow { gap: var(--space-3); }

@media (max-width: 600px) {
  .lore-tiles { grid-template-columns: 1fr; }
}


/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.breadcrumbs__item a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs__item a:hover { color: var(--color-gold); }

.breadcrumbs__item--active { color: var(--color-text-secondary); }

.breadcrumbs__sep {
  color: var(--color-border-light);
  font-size: 10px;
  select: none;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-void);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.site-footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 280px;
}

.site-footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__links a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__links a:hover { color: var(--color-gold); }

/* Social icons */
.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.social-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold-dim);
  background: var(--color-gold-glow);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Footer bottom bar */
.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-footer__copyright {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.site-footer__legal {
  display: flex;
  gap: var(--space-5);
}

.site-footer__legal a {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover { color: var(--color-text-secondary); }

@media (max-width: 767px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .site-footer__bar { flex-direction: column; text-align: center; }
}
