/**
 * @font-face declarations — activate when WOFF2 files are present in /assets/fonts/
 * Fraunces & Manrope — SIL Open Font License
 */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-variable.woff2") format("woff2");
}

/* Skip link */
.tbr-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 99999;
  padding: 0.75rem 1rem;
  background: var(--wp--preset--color--ink, #221e1c);
  color: var(--wp--preset--color--white-paper, #fffcf7);
  text-decoration: none;
  border-radius: 4px;
}

.tbr-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Sticky header */
.tbr-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wp--preset--color--border, #d8cec3);
}

/* Book cover aspect ratio */
.tbr-book-cover {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(34, 30, 28, 0.08);
}

/* Editorial kicker */
.tbr-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--burgundy, #732d3d);
}

/* Mood chips */
.tbr-mood-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wp--preset--color--border, #d8cec3);
  border-radius: 999px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--wp--preset--color--ink, #221e1c);
  transition: border-color 0.2s, color 0.2s;
}

.tbr-mood-chip:hover,
.tbr-mood-chip:focus-visible {
  border-color: var(--wp--preset--color--burgundy, #732d3d);
  color: var(--wp--preset--color--burgundy, #732d3d);
  outline: none;
}

/* Mobile nav */
.tbr-nav-toggle[aria-expanded="true"] + .tbr-mobile-nav {
  display: block;
}

.tbr-mobile-nav {
  display: none;
}

@media (max-width: 781px) {
  .tbr-desktop-nav {
    display: none !important;
  }
}

@media (min-width: 782px) {
  .tbr-nav-toggle,
  .tbr-mobile-nav {
    display: none !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Section spacing */
.tbr-section {
  padding-top: var(--wp--preset--spacing--section, 4rem);
  padding-bottom: var(--wp--preset--spacing--section, 4rem);
}

/* Placeholder book cover (demo) */
.tbr-cover-placeholder {
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #d8cec3 0%, #87937a 50%, #732d3d 100%);
  border-radius: 4px;
}
