/* ============================================================
   TerenceMix.com — Main Stylesheet
   Stack: Vanilla HTML5 + CSS (Grid / Flexbox / Custom Properties)
   Breakpoints: 640px / 1024px / 1440px
   ============================================================ */

/* ------------------------------------------------------------
   1. Custom Properties
   ------------------------------------------------------------ */
:root {
  --bg:           #111111;
  --bg-alt:       #191919;
  --text:         #ECEAE4;
  --text-muted:   #9A968D;
  --accent:       #B91C1C;
  --accent-hover: #991818;
  --rule:         #2A2A2E;

  --font-display: atrament-web, Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --container-width: 1280px;
  --container-pad:   clamp(1.5rem, 5vw, 5rem);

  --nav-height: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   2. CSS Reset
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain texture layer — fixed, covers entire page, non-interactive */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Coarse fractal noise — visible concrete/paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.52' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.35;
  mix-blend-mode: screen;
}

/* Horizontal spotlight vignette — near-black edges, soft center glow */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* Left edge blackout */
    linear-gradient(to right, rgba(0,0,0,0.72) 0%, transparent 28%),
    /* Right edge blackout */
    linear-gradient(to left,  rgba(0,0,0,0.72) 0%, transparent 28%),
    /* Top edge darkening */
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 25%),
    /* Bottom edge darkening */
    linear-gradient(to top,    rgba(0,0,0,0.5) 0%, transparent 25%);
}

/* Ensure all real content sits above the grain + vignette layers */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ------------------------------------------------------------
   3. Skip Link (Accessibility)
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ------------------------------------------------------------
   4. Container
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ------------------------------------------------------------
   5. Typography Base
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }

p {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--text);
  max-width: 66ch;
}

/* Small-caps utility */
.small-caps {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   6. Hairline Rules
   ------------------------------------------------------------ */
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  height: 3rem;
  box-sizing: border-box;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              transform 0.15s var(--ease-out);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

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

/* Primary — solid accent red */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Logo button */
.btn-logo {
  background-color: #fff;
  border-color: #fff;
  padding: 0 1.5rem;
  height: 3rem;
  min-height: unset;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  border-radius: 8px;
}

.btn-logo:hover {
  background-color: #e8e8e8;
  border-color: #e8e8e8;
}

.btn-logo-img {
  height: 1.75rem;
  max-height: 100%;
  width: auto;
  display: block;
}

/* Reviews — muted amber gold */
.btn-reviews {
  background-color: #8A6A20;
  border-color: #8A6A20;
  color: #fff;
  border-radius: 8px;
}

.btn-reviews:hover {
  background-color: #725818;
  border-color: #725818;
}

/* Ghost — transparent outline */
.btn-ghost {
  background-color: transparent;
  border-color: rgba(236, 234, 228, 0.35);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
  background-color: rgba(236, 234, 228, 0.06);
}

/* ------------------------------------------------------------
   8. Labels & Badges
   ------------------------------------------------------------ */

/* Category label: FICTION / NONFICTION */
.label-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Out of print status badge */
.label-status {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border: 1px solid currentColor;
  margin-bottom: 1rem;
}

.label-status--out-of-print {
  color: var(--accent);
  border-color: rgba(185, 28, 28, 0.45);
}

/* Credibility / publisher line */
.book-credibility {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: none;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Awards line */
.book-awards {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: none;
  margin-top: 1.5rem;
  line-height: 2;
  opacity: 0.8;
}

/* Book title */
.book-title-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.375rem;
  max-width: none;
}

/* Subtitle — italicised */
.book-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  max-width: 52ch;
}

/* ------------------------------------------------------------
   9. Header / Navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(14, 14, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--rule);
  background-color: rgba(14, 14, 15, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Wordmark */
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.nav-wordmark:hover {
  color: var(--text);
  opacity: 0.85;
}

.nav-wordmark:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* First name — light weight */
.wordmark-first {
  font-weight: 400;
  letter-spacing: 0.14em;
}

/* Last name — heavy weight */
.wordmark-last {
  font-weight: 900;
  letter-spacing: 0.1em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background-color: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: flex-start;
  padding: 3rem var(--container-pad);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--text-muted);
}

.nav-mobile a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* ------------------------------------------------------------
   10. Hero Section
   ------------------------------------------------------------ */
.hero {
  display: flex;
  align-items: center;
  background-color: var(--bg);
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle textured vignette top-right */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse at top right,
    rgba(185, 28, 28, 0.04) 0%,
    transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: center;
  max-width: 2000px;
  margin-inline: auto;
  padding-inline: clamp(2.5rem, 6.25vw, 5rem);
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* A thin decorative rule before the hero label */
.hero-text::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background-color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 18ch;
  text-align: center;
}

.hero-logline {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero-reviews {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-self: center;
  width: 100%;
}

.hero-review-quote {
  font-style: italic;
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
  text-align: justify;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* Hero cover */
.hero-cover {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.hero-cover-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.6))
          drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
  transition: transform 0.1s linear;
}

/* ------------------------------------------------------------
   11. Book Sections (Shared)
   ------------------------------------------------------------ */
.book-section {
  display: flex;
  align-items: center;
  padding-block: 5rem;
  position: relative;
}

.book-section--alt {
  background-color: var(--bg-alt);
}

.book-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

/* Cover LEFT, text RIGHT (default) */
.book-section--cover-left .book-section-inner {
  grid-template-areas: "cover content";
}

.book-section--cover-left .book-cover {
  grid-area: cover;
  justify-self: center;
}

.book-section--cover-left .book-content {
  grid-area: content;
}

/* Cover RIGHT, text LEFT */
.book-section--cover-right .book-section-inner {
  grid-template-areas: "content cover";
}

.book-section--cover-right .book-cover {
  grid-area: cover;
  justify-self: center;
}

.book-section--cover-right .book-content {
  grid-area: content;
}

/* Book cover image */
.book-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55))
          drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  transition: transform 0.1s linear;
}

/* Book content */
.book-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Thin accent line before content */
.book-content::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background-color: var(--accent);
  margin-bottom: 1.25rem;
}

.book-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.book-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 300;
  text-align: center;
  font-style: italic;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 24ch;
}

.book-logline {
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 54ch;
  margin-bottom: 0;
}

.book-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* ------------------------------------------------------------
   12. Scroll Animations (Intersection Observer)
   ------------------------------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--rule);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.footer-wordmark:hover {
  opacity: 0.8;
}

.footer-wordmark:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.footer-publisher {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: none;
  opacity: 0.65;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
  max-width: none;
}

/* Social icons placeholder */
.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
  line-height: 1;
}

.footer-social a:hover {
  color: var(--text);
}

.footer-social a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   13b. Book Carousel (Home page) — 3-column layout
   ------------------------------------------------------------ */

/* Outer wrapper: position context for absolute arrows */
.book-carousel {
  position: relative;
  background-color: var(--bg-alt);
  padding-block: clamp(4rem, 8vh, 6rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

/* Arrow buttons — absolute, vertically centred */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(236, 234, 228, 0.35);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.carousel-btn--prev { left: clamp(0.5rem, 2vw, 2rem); }
.carousel-btn--next { right: clamp(0.5rem, 2vw, 2rem); }

.carousel-btn:hover { color: var(--text); }

.carousel-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Track: all slides share same grid cell (fade in/out) */
.carousel-track {
  display: grid;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(3.5rem, 7vw, 7rem); /* room for arrows */
}

/* Each slide: 3-column grid — left text | cover | right review */
.carousel-slide {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Left column ── */
.carousel-col-left {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.carousel-hook {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  line-height: 1.25;
  max-width: 26ch;
  margin: 0;
}

.carousel-logline {
  font-size: clamp(0.875rem, 1vw, 1rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 42ch;
  margin: 0;
}

/* ── Center column — book cover ── */
.carousel-col-center {
  display: flex;
  justify-content: center;
}

.carousel-cover-link {
  display: block;
  line-height: 0;
}

.carousel-cover-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.carousel-cover-img {
  width: clamp(180px, 20vw, 280px);
  height: auto;
  background: transparent;
  filter: drop-shadow(0 24px 52px rgba(0, 0, 0, 0.7))
          drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}

.carousel-cover-link:hover .carousel-cover-img {
  transform: translateY(-8px);
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.75))
          drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5));
}

/* ── Right column — review + CTA ── */
.carousel-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Review blockquote */
.carousel-review {
  margin: 0;
  padding: 0;
  border: none;
}

.carousel-review p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  color: var(--text);
  line-height: 1.5;
  max-width: 30ch;
  margin: 0 0 0.75rem;
}

.carousel-review cite {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* Counter */
.carousel-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.carousel-counter-sep { opacity: 0.4; }

/* ── Tablet (1024px) ── */
@media (max-width: 1024px) {
  .carousel-slide {
    gap: 2rem;
  }

  .carousel-hook {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }

  .carousel-review p {
    font-size: 1.1rem;
  }
}

/* ── Mobile (640px) — stack vertically: cover → left → right ── */
@media (max-width: 640px) {
  .book-carousel {
    padding-block: 3rem;
  }

  .carousel-track {
    padding-inline: 3rem;
  }

  .carousel-btn--prev { left: 0.25rem; }
  .carousel-btn--next { right: 0.25rem; }

  .carousel-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    gap: 1.75rem;
  }

  .carousel-col-center { order: -1; }

  .carousel-col-left,
  .carousel-col-right {
    align-items: center;
  }

  .carousel-hook,
  .carousel-logline,
  .carousel-review p {
    max-width: none;
  }

  .carousel-cover-img {
    width: clamp(160px, 55vw, 240px);
  }
}

/* ------------------------------------------------------------
   14. Books Page
   ------------------------------------------------------------ */
.books-page-header {
  padding-block: clamp(5rem, 10vh, 7rem);
  background-color: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.books-page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-style: italic;
  margin-bottom: 1rem;
}

.books-page-header p {
  color: var(--text-muted);
  max-width: 52ch;
}

.books-genre-section {
  padding-block: clamp(4rem, 8vh, 6rem);
}

.books-genre-section + .books-genre-section {
  border-top: 1px solid var(--rule);
}

.books-genre-section--alt {
  background-color: var(--bg-alt);
}

.genre-heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.books-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18rem;
  justify-content: center;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 280px;
  flex-shrink: 0;
}

.book-card-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}

.book-card-cover a {
  display: block;
  height: 100%;
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
  transition: transform 0.5s var(--ease-out);
}

.book-card-cover:hover img {
  transform: scale(1.03);
}

.book-card-cover a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.book-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.book-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.book-card-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  max-width: none;
}

.book-card-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--text-muted);
  max-width: none;
}

.book-card-logline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-awards {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.9;
  max-width: none;
}

.book-card-cta {
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------
   15. About Page — Author Banner
   ------------------------------------------------------------ */

/* Full-width cinematic banner */
.author-banner {
  position: relative;
  width: 100%;
  height: clamp(380px, 52vh, 620px);
  overflow: hidden;
  background-color: #080808;
}

/* The actual photo — covers the full banner area */
.author-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Gradient: pitch-black on left → transparent on right
   Matches the natural dark left side of the generated image */
.author-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14, 14, 15, 1.0)   0%,
    rgba(14, 14, 15, 0.88)  25%,
    rgba(14, 14, 15, 0.45)  50%,
    rgba(14, 14, 15, 0.08)  70%,
    transparent             85%
  );
}

/* Text sits above the overlay */
.author-banner-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 3rem;
  max-width: 42%;
}

.author-banner-content .label-category {
  margin-bottom: 0;
}

.author-banner-content h1 {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-style: italic;
  line-height: 1.1;
  max-width: 12ch;
  margin: 0;
}

.author-banner-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.4;
  max-width: 44ch;
  margin: 0;
  text-align: left;
  text-transform: capitalize;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Mobile: reduce overlay, stack vertically */
@media (max-width: 640px) {
  .author-banner {
    height: auto;
    min-height: 480px;
  }

  .author-banner-img {
    object-position: 65% center;
  }

  .author-banner-overlay {
    background: linear-gradient(
      to bottom,
      rgba(14, 14, 15, 0.3)  0%,
      rgba(14, 14, 15, 0.92) 55%,
      rgba(14, 14, 15, 1.0)  100%
    );
  }

  .author-banner-content {
    justify-content: flex-end;
    padding-bottom: 2.5rem;
  }

  .author-banner-content h1 {
    max-width: none;
  }
}

/* Legacy two-column about hero (kept for reference, no longer used on About page) */
.about-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 10vh, 7rem);
  background-color: var(--bg);
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
}

/* Photo placeholder when no image is present */
.about-photo-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  background-color: var(--bg-alt);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-intro h1 {
  font-style: italic;
  margin-bottom: 2rem;
}

.about-intro .lead-graf {
  font-size: clamp(1rem, 1.15vw, 1.1875rem);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 58ch;
}

.about-intro .lead-graf strong {
  color: var(--text);
  font-weight: 500;
}

.about-body {
  padding-block: clamp(4rem, 8vh, 6rem);
  background-color: var(--bg-alt);
}

.about-body-inner {
  max-width: 60%;
}

/* "Terence J. Mix: Author Biography" — H1-sized title */
.about-bio-kicker {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem) !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 2.5rem;
  margin-top: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  line-height: 1.15;
}

/* Section subheadings */
.about-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--text);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about-body h2:first-of-type {
  margin-top: 0;
}

.about-body p {
  font-family: calluna, serif;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 100%;
  line-height: 1.8;
}

.about-body strong {
  color: var(--text-muted);
  font-weight: 300;
}

.about-body em {
  font-style: italic;
}

.about-body q {
  font-style: italic;
}

.about-body q::before { content: '\201C'; }
.about-body q::after  { content: '\201D'; }

/* Bulleted lists */
.about-list {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 68ch;
}

.about-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-muted);
  font-family: calluna, serif;
  font-weight: 300;
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.7;
}

.about-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-family: calluna, serif;
}

/* Awards list — slightly smaller */
.about-list--awards li {
  font-size: clamp(0.875rem, 1vw, 1rem);
}

/* Closing line */
.about-closer {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.375rem) !important;
  color: var(--text) !important;
  margin-top: 2rem;
}

/* Divider before coda */
.about-rule {
  margin-block: 3rem;
  border-color: var(--rule);
}

/* Final coda paragraph */
.about-coda {
  font-size: 0.875rem !important;
  color: var(--text-muted) !important;
  line-height: 1.75 !important;
  max-width: none !important;
}

/* ------------------------------------------------------------
   16. Contact Page
   ------------------------------------------------------------ */
.contact-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: flex-start;
  padding-block: clamp(5rem, 10vh, 7rem);
  background-color: var(--bg);
}

.contact-page-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.contact-intro h1 {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.contact-intro p {
  color: var(--text-muted);
  max-width: 42ch;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  background-color: var(--bg-alt);
  border: 1px solid var(--rule);
  color: var(--text);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(154, 150, 141, 0.5);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(236, 234, 228, 0.4);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 0;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit {
  align-self: flex-start;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.65;
  max-width: none;
}

/* ------------------------------------------------------------
   17. News Page
   ------------------------------------------------------------ */
.news-page-header {
  padding-block: clamp(5rem, 10vh, 7rem);
  background-color: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.news-page-header h1 {
  font-style: italic;
  margin-bottom: 1rem;
}

.news-page-header p {
  color: var(--text-muted);
}

.news-body {
  padding-block: clamp(4rem, 8vh, 6rem);
}

.news-item {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.news-date {
  display: block;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: var(--font-display);
  font-size: 50px;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 860px;
  margin-bottom: 1.5rem;
}

.news-video-wrap {
  position: relative;
  padding-top: 56.25%;
  max-width: 860px;
}

.news-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.news-placeholder {
  color: var(--text-muted);
  font-style: italic;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ------------------------------------------------------------
   18. Individual Book Pages
   ------------------------------------------------------------ */
.book-page-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 10vh, 7rem);
}

.book-page-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.book-page-cover img {
  width: clamp(200px, 22vw, 400px);
  height: auto;
  background: transparent;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6));
}

.book-page-meta {
  padding-top: 1rem;
}

.book-page-meta h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-style: italic;
  margin-bottom: 0.5rem;
}

#book-heading {
  font-style: normal;
}

.book-page-meta .book-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  margin-bottom: 1.5rem;
}

.book-page-meta .book-credibility {
  margin-bottom: 2rem;
}

.book-page-meta .book-hook {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.25vw, 2.06rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--text);
  max-width: 44ch;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.book-page-meta .book-logline {
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 60ch;
  margin-bottom: 2rem;
}

.book-page-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.synopsis-float-img {
  float: right;
  width: clamp(278px, 38.9%, 473px);
  height: auto;
  margin: 0 0 1.5rem 2.5rem;
  border-radius: 4px;
}

.book-page-body {
  padding-block: clamp(4rem, 8vh, 6rem);
  background-color: var(--bg-alt);
  overflow: hidden;
}

.book-page-body-inner {
  max-width: 1500px;
}

.book-page-list {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.book-page-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.book-page-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.book-page-body h2 {
  font-size: 64px;
  margin-bottom: 1.5rem;
}

.book-page-body p {
  color: var(--text-muted);
  margin-bottom: 0.625rem;
  max-width: 66ch;
}

.book-page-pullquote {
  border-left: 2px solid var(--accent);
  padding: 1rem 1.5rem;
  margin-block: 1.25rem;
  background-color: rgba(185, 28, 28, 0.04);
}

.book-page-pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  color: var(--text);
  max-width: 55ch;
  line-height: 1.6;
}

.book-page-pullquote--large p {
  font-size: clamp(1.65rem, 2.25vw, 2.06rem);
}

.book-page-pullquote cite {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ------------------------------------------------------------
   19. Page Header (generic — for non-hero inner pages)
   ------------------------------------------------------------ */
.page-header {
  padding-block: clamp(5rem, 10vh, 7rem);
  background-color: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  font-style: italic;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 52ch;
}

/* ------------------------------------------------------------
   20. Responsive — 1024px (tablet)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 2.5rem;
  }

  .hero-reviews {
    grid-column: 2;
    grid-row: 2;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .book-section-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .about-hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .contact-page-inner {
    grid-template-columns: 1fr 1.25fr;
  }

  .book-page-hero-inner {
    gap: 3rem;
  }
}

/* ------------------------------------------------------------
   21. Responsive — 640px (mobile)
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero — stacked single column on mobile */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
  }

  .hero-cover {
    justify-content: center;
  }

  .hero-cover-img {
    max-width: 260px;
  }

  .hero-headline {
    max-width: none;
  }

  .hero-reviews {
    grid-column: 1;
    max-width: 100%;
    flex-direction: column;
  }

  /* Book sections — stacked, cover above text */
  .book-section-inner {
    grid-template-columns: 1fr !important;
    grid-template-areas: "cover" "content" !important;
    gap: 2.5rem;
  }

  .book-section--cover-left .book-section-inner,
  .book-section--cover-right .book-section-inner {
    grid-template-areas: "cover" "content";
  }

  .book-cover {
    justify-self: center;
  }

  .book-cover-img {
    max-width: 240px;
  }

  .book-headline {
    max-width: none;
  }

  /* About */
  .about-hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .about-photo {
    display: flex;
    justify-content: center;
  }

  /* Contact */
  .contact-page-inner {
    grid-template-columns: 1fr;
  }

  /* Book page hero */
  .book-page-hero-inner {
    grid-template-columns: 1fr;
  }

  .book-page-cover {
    display: flex;
    justify-content: center;
  }

  .book-page-cover img {
    width: clamp(180px, 60vw, 260px);
  }

  /* Books grid */
  .books-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 400px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   22. Responsive — 1440px+ (large desktop)
   ------------------------------------------------------------ */
@media (min-width: 1440px) {
  :root {
    --container-pad: 6rem;
  }

  .hero-cover-img {
    max-width: 460px;
  }

  .book-cover-img {
    max-width: 460px;
  }
}

/* ------------------------------------------------------------
   23. prefers-reduced-motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .hero-cover-img,
  .book-cover-img {
    transition: none;
  }
}

/* ------------------------------------------------------------
   24. Book Page — Reader Reviews
   ------------------------------------------------------------ */
.book-reviews {
  padding: 5rem 0 6rem;
  background-color: var(--bg-alt);
}

.book-reviews h2 {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--text);
  margin-bottom: 3rem;
}

.reviews-masonry {
  columns: 2 500px;
  column-gap: 2rem;
}

.review-card {
  break-inside: avoid;
  background-color: var(--bg);
  border-top: 3px solid var(--accent);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-stars {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #F59E0B;
  line-height: 1;
}

.review-body {
  margin: 0;
  padding: 0;
  border: none;
  flex: 1;
}

.review-body p {
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 0.75em;
}

.review-body p:last-child {
  margin-bottom: 0;
}

.review-attribution {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-style: normal;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(236, 234, 228, 0.1);
}

.review-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}

.review-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   25. Focus Styles (global)
   ------------------------------------------------------------ */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   25. Selection
   ------------------------------------------------------------ */
::selection {
  background-color: rgba(185, 28, 28, 0.35);
  color: var(--text);
}
