/*
Theme Name: Brandon Archive
Theme URI: https://brandonapplegate.com/
Author: Brandon Applegate
Description: A lightweight, image-sparing literary author theme with typewriter typography, archival layout, paper textures made entirely in CSS, and dedicated catalogs for books and stories available online.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: brandon-archive
*/

:root {
  --ink: #171511;
  --ink-soft: #2c2923;
  --paper: #eee7da;
  --paper-light: #f7f2e9;
  --paper-dark: #d7cdbc;
  --orange: #b94f2c;
  --orange-dark: #86391f;
  --line: rgba(23, 21, 17, 0.42);
  --line-light: rgba(238, 231, 218, 0.34);
  --muted: #6d675e;
  --max: 1180px;
  --pad: clamp(1rem, 4vw, 3rem);
  --mono: "Courier New", Courier, "Nimbus Mono PS", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: .22;
  background:
    radial-gradient(circle at 12% 17%, rgba(0,0,0,.16) 0 .6px, transparent .8px),
    radial-gradient(circle at 79% 67%, rgba(0,0,0,.11) 0 .55px, transparent .8px),
    linear-gradient(90deg, rgba(255,255,255,.03), rgba(0,0,0,.025));
  background-size: 13px 17px, 19px 23px, 100% 100%;
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, a:focus { color: var(--orange); }
button, input, textarea, select { font: inherit; }
::selection { background: var(--orange); color: var(--paper-light); }

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  z-index: 100000;
  top: 5px;
  left: 5px;
  padding: .75rem 1rem;
  background: var(--paper-light);
  color: var(--ink);
}

.site-shell { min-height: 100vh; }
.wrap { width: min(100% - (2 * var(--pad)), var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: relative;
  color: var(--paper-light);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
    #11100e;
  background-size: 5px 5px, 7px 7px, auto;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.site-header__inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 2rem;
}
.site-branding { position: relative; padding-left: 1.25rem; }
.site-branding::before {
  content: "";
  position: absolute;
  left: 0;
  top: -.4rem;
  bottom: -.4rem;
  width: 2px;
  background: var(--paper-dark);
}
.site-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: .95;
  letter-spacing: -.06em;
  text-transform: uppercase;
  font-weight: 900;
}
.site-title a { text-decoration: none; color: inherit; }
.site-description {
  margin: .65rem 0 0;
  font-size: .78rem;
  letter-spacing: .12em;
  color: #d8d0c3;
}
.nav-toggle {
  display: none;
  color: var(--paper-light);
  background: transparent;
  border: 1px solid var(--line-light);
  padding: .55rem .7rem;
}
.site-nav__list {
  list-style: none;
  display: flex;
  gap: clamp(.7rem, 2vw, 1.4rem);
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.site-nav__list li { margin: 0; }
.site-nav__list a { color: var(--paper-light); text-decoration: none; padding-block: .5rem; border-bottom: 2px solid transparent; }
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { color: var(--paper-light); border-color: var(--orange); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.016) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 14% 31%, rgba(0,0,0,.03), transparent 22%),
    var(--paper-light);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__copy {
  position: relative;
  max-width: 720px;
  padding-left: clamp(1rem, 3vw, 2.4rem);
}
.hero__copy::before {
  content: "01";
  position: absolute;
  left: -1.5rem;
  top: .3rem;
  color: var(--orange);
  font-size: .78rem;
  letter-spacing: .14em;
}
.hero__copy::after {
  content: "";
  position: absolute;
  left: -.25rem;
  top: 0;
  height: 7rem;
  width: 1px;
  background: var(--line);
}
.hero__copy h1,
.hero__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -.06em;
  font-weight: 700;
}
.hero__copy p { max-width: 64ch; margin: .8rem 0; }
.hero__copy > *:first-child { margin-top: 0; }
.hero__copy > *:last-child { margin-bottom: 0; }
.hero__photo {
  position: relative;
  justify-self: center;
  width: min(100%, 390px);
  padding: clamp(.55rem, 1vw, .8rem);
  background: #e2d8c7;
  box-shadow: 7px 9px 0 rgba(23,21,17,.12), 0 0 0 1px rgba(23,21,17,.28);
  transform: rotate(-1deg);
}
.hero__photo::before,
.hero__photo::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero__photo::before {
  inset: .55rem;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, rgba(0,0,0,.025) 1px 3px);
  mix-blend-mode: overlay;
}
.hero__photo::after {
  width: 5.5rem;
  height: 1.3rem;
  right: 1.2rem;
  top: -.5rem;
  background: rgba(214,197,164,.7);
  transform: rotate(4deg);
  border-left: 1px solid rgba(0,0,0,.08);
  border-right: 1px solid rgba(0,0,0,.08);
}
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(100%) contrast(1.07) sepia(.08); }
.hero__photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .25rem .1rem;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.margin-note {
  position: absolute;
  max-width: 12rem;
  font-size: .67rem;
  line-height: 1.45;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.margin-note p { margin: 0; }
.margin-note--left { left: max(1rem, calc((100vw - var(--max)) / 2 - 10rem)); bottom: 2rem; }
.margin-note--right { right: max(1rem, calc((100vw - var(--max)) / 2 - 10rem)); top: 2rem; }

/* Shared section language */
.home-section { position: relative; padding-block: clamp(2.7rem, 5vw, 4.8rem); border-bottom: 1px solid var(--line); }
.home-section--ink {
  color: var(--paper-light);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.028), transparent 18%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 4px),
    #12110f;
  border-color: var(--line-light);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.7rem;
}
.section-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.section-kicker {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.home-section--ink .section-kicker { color: #afa79b; }
.section-head::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.section-link { margin-left: auto; flex: none; font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }

/* Books */
.book-groups { display: grid; gap: 3rem; }
.book-group__label {
  margin: 0 0 1.1rem;
  font-size: .72rem;
  color: var(--orange);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: clamp(1.25rem, 3vw, 2.4rem); }
.book-card { min-width: 0; }
.book-card__cover-link { display: block; text-decoration: none; }
.book-card__cover {
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(125deg, rgba(0,0,0,.05), transparent 45%),
    #dad1c2;
  box-shadow: 4px 6px 0 rgba(23,21,17,.12), 0 0 0 1px rgba(23,21,17,.17);
  overflow: hidden;
}
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card__title { margin: .9rem 0 .25rem; font-size: 1rem; line-height: 1.25; }
.book-card__title a { text-decoration: none; }
.book-card__meta { margin: 0 0 .4rem; color: var(--muted); font-size: .73rem; }
.book-card__excerpt { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.book-card__action { display: inline-block; margin-top: .75rem; color: var(--orange-dark); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .075em; }

.edited-grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }

/* Two-column catalog */
.catalog-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.catalog-col + .catalog-col { border-left: 1px solid var(--line); padding-left: clamp(2rem, 5vw, 5rem); }
.catalog-list { list-style: none; padding: 0; margin: 0; }
.catalog-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.catalog-item:first-child { border-top: 1px solid var(--line); }
.catalog-item__title { margin: 0; font-size: .98rem; line-height: 1.25; }
.catalog-item__title a { text-decoration: none; }
.catalog-item__meta { margin: .15rem 0 0; font-size: .68rem; color: var(--muted); }
.catalog-item__action { white-space: nowrap; color: var(--orange-dark); font-size: .68rem; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.3rem, 3vw, 2.3rem); }
.post-card { position: relative; padding-top: 1rem; border-top: 1px solid var(--line); }
.post-card__date { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-card__title { margin: .5rem 0 .55rem; font-size: 1.08rem; line-height: 1.25; }
.post-card__title a { text-decoration: none; }
.post-card__excerpt { margin: 0; font-size: .77rem; color: var(--ink-soft); }
.post-card__link { display: inline-block; margin-top: .75rem; font-size: .68rem; color: var(--orange-dark); }

/* Interior pages */
.content-shell { padding-block: clamp(3rem, 7vw, 6rem); }
.content-narrow { width: min(100% - (2 * var(--pad)), 790px); margin-inline: auto; }
.entry-header { margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
.entry-title { margin: 0; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.06em; }
.entry-meta { margin-top: .75rem; font-size: .72rem; color: var(--muted); }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.8; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { font-family: var(--mono); line-height: 1.18; }
.entry-content a { color: var(--orange-dark); }
.entry-content blockquote { border-left: 3px solid var(--orange); margin-left: 0; padding-left: 1.4rem; font-style: italic; color: var(--ink-soft); }
.entry-content pre,
.entry-content code { font-family: var(--mono); }
.entry-content img { box-shadow: 4px 6px 0 rgba(23,21,17,.1); }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.archive-intro { margin-bottom: 2.5rem; }

/* Buttons */
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: .7rem .95rem;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
}
.button::after { content: "→"; }
.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus { color: var(--orange); background: rgba(185,79,44,.05); }

/* Footer */
.site-footer {
  color: #d9d1c5;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px),
    #10100e;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.site-footer__brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 0; font-size: .66rem; text-transform: uppercase; }
.footer-nav a { text-decoration: none; }

/* WordPress utilities */
.alignwide { width: min(100vw - (2 * var(--pad)), 1050px); margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.wp-caption, .gallery-caption { color: var(--muted); font-size: .75rem; }
.bypostauthor { outline: none; }
.sticky { border-top: 3px solid var(--orange); }
.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.page-numbers { border: 1px solid var(--line); padding: .4rem .65rem; text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--paper-light); }

@media (max-width: 1020px) {
  .margin-note { display: none; }
  .hero__inner { grid-template-columns: 1.2fr .8fr; }
  .catalog-row { grid-template-columns: 1fr; }
  .catalog-col + .catalog-col { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 2rem; }
}

@media (max-width: 760px) {
  .site-header__inner { grid-template-columns: 1fr auto; min-height: 92px; }
  .nav-toggle { display: inline-block; }
  .site-nav { grid-column: 1 / -1; display: none; padding-bottom: 1rem; }
  .site-nav.is-open { display: block; }
  .site-nav__list { display: grid; justify-content: stretch; gap: 0; }
  .site-nav__list a { display: block; border-bottom: 1px solid var(--line-light); padding: .75rem 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { order: 2; }
  .hero__photo { order: 1; width: min(78vw, 360px); }
  .hero__copy::before { left: 0; top: -1.3rem; }
  .hero__copy::after { display: none; }
  .section-head { flex-wrap: wrap; }
  .section-head::after { order: 3; flex-basis: 100%; }
  .section-link { margin-left: 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  :root { --pad: 1rem; }
  .site-description { font-size: .68rem; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .book-card__excerpt { display: none; }
  .catalog-item { grid-template-columns: 1fr; gap: .35rem; }
  .hero__copy { padding-left: 0; }
}
.home-section--ink .book-card__title,
.home-section--ink .book-card__title a,
.home-section--ink .book-card__action { color: var(--paper-light); }
.home-section--ink .book-card__meta { color: #b9b0a3; }
.home-section--ink .book-card__excerpt { color: #d8d0c3; }
.home-section--ink .book-card__cover { box-shadow: 4px 6px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(255,255,255,.16); }

/* =========================================================
   STRONGER GRIT PASS
   ========================================================= */

/* dirtier light sections */
.hero,
.home-section:not(.home-section--ink) {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0,0,0,.035) 18%,
      transparent 19%,
      transparent 72%,
      rgba(0,0,0,.025) 73%,
      transparent 100%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,.018) 0px,
      rgba(0,0,0,.018) 1px,
      transparent 1px,
      transparent 5px
    ),
    #eee7da;
}

/* darker, dirtier black sections */
.home-section--ink,
.site-header,
.site-footer {
  background:
    linear-gradient(
      105deg,
      rgba(255,255,255,.025),
      transparent 35%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.018) 0px,
      rgba(255,255,255,.018) 1px,
      transparent 1px,
      transparent 4px
    ),
    #11100e;
}

/* rougher section separators */
.home-section {
  border-bottom: 2px solid rgba(23,21,17,.35);
}

.home-section:nth-of-type(even) {
  box-shadow: inset 0 6px 12px rgba(0,0,0,.035);
}

/* photocopied headings */
.site-title,
.hero__copy h1,
.hero__copy h2,
.section-title {
  text-shadow:
    1px 0 rgba(185,79,44,.18),
    -1px 0 rgba(0,0,0,.16);
}

/* author photo feels more like a physical print */
.hero__photo {
  transform: rotate(-1.8deg);
  box-shadow:
    10px 12px 0 rgba(23,21,17,.16),
    -2px -1px 0 rgba(255,255,255,.35),
    0 0 0 1px rgba(23,21,17,.4);
}

.hero__photo img {
  filter:
    grayscale(100%)
    contrast(1.28)
    brightness(.92)
    sepia(.08);
}

/* make covers feel less digitally perfect */
.book-card__cover {
  box-shadow:
    5px 7px 0 rgba(23,21,17,.18),
    0 0 0 1px rgba(23,21,17,.28);
}

.book-card:nth-child(odd) {
  transform: rotate(-.35deg);
}

.book-card:nth-child(even) {
  transform: rotate(.25deg);
}

/* ragged-ish rules */
.section-head::after,
.catalog-item,
.post-card {
  border-color: rgba(23,21,17,.45);
}

/* slightly uneven type */
.book-card__title,
.catalog-item__title,
.post-card__title {
  letter-spacing: -.015em;
}

/* stronger paper contamination */
body::before {
  opacity: .38;
  background:
    radial-gradient(circle at 12% 17%, rgba(0,0,0,.22) 0 .7px, transparent 1px),
    radial-gradient(circle at 79% 67%, rgba(0,0,0,.16) 0 .65px, transparent 1px),
    radial-gradient(circle at 46% 35%, rgba(0,0,0,.11) 0 .5px, transparent .9px),
    linear-gradient(90deg, rgba(255,255,255,.02), rgba(0,0,0,.04));

  background-size:
    11px 13px,
    17px 19px,
    23px 29px,
    100% 100%;
}

/* =========================================================
   REAL PAPER TEXTURE
   ========================================================= */

:root {
  --paper-texture: url("https://brandonapplegate.com/wp-content/uploads/2026/09/scratched-paper-background-fullsize-optimized.webp");
}

/* Main paper background */
body {
  background-color: #eee7da;
  background-image: var(--paper-texture);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.hero,
.home-section:not(.home-section--ink) {
  background: transparent !important;
}

/* Kill the fake CSS grit overlay */
body::before,
body::after {
  display: none !important;
}

/* =========================================================
   BOOKS — sane human dimensions
   ========================================================= */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
  gap: 2rem;
  align-items: start;
}

/* Don't let a single book stretch across the whole page */
.book-card {
  width: 100%;
  max-width: 240px;
}

/* Cover wrapper */
.book-card__cover {
  width: 100%;
  max-width: 220px;
  margin-bottom: 1rem;
  box-shadow: 5px 7px 0 rgba(23, 21, 17, .16);
}

/* Actual cover image */
.book-card__cover img,
.book-card img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
}

/* Books + Stories side by side */

.books-stories-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.books-stories__stories {
  border-left: 1px solid rgba(23, 21, 17, .3);
  padding-left: 2.5rem;
}

/* Stories are narrower here, so don't force huge action links */
.books-stories__stories .catalog-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
}

.books-stories__stories .catalog-item__action {
  font-size: .62rem;
}

/* Stack on smaller screens */
@media (max-width: 900px) {
  .books-stories-row {
    grid-template-columns: 1fr;
  }

  .books-stories__stories {
    border-left: 0;
    border-top: 1px solid rgba(23, 21, 17, .3);
    padding-left: 0;
    padding-top: 2.5rem;
  }
}

/* 3-column book grid inside the Books area */
.books-stories__books .book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

/* Let each card fill its grid column */
.books-stories__books .book-card {
  width: 100%;
  max-width: none;
}

/* Keep covers from getting stupidly huge */
.books-stories__books .book-card__cover,
.books-stories__books .book-card__cover img,
.books-stories__books .book-card img {
  width: 100%;
  max-width: 180px;
  height: auto;
}

/* Tablet */
@media (max-width: 1000px) {
  .books-stories__books .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 650px) {
  .books-stories__books .book-grid {
    grid-template-columns: 1fr;
  }
}

.home-section--catalog .section-title {
  letter-spacing: .06em;
}

.home-section--catalog .book-group__label {
  color: #a84f32;
  letter-spacing: .12em;
}

.home-section--catalog {
  background-color: rgba(190, 174, 145, 0.58) !important;
  background-image: none !important;

  border-top: 1px solid rgba(20, 18, 15, 0.28);
  border-bottom: 1px solid rgba(20, 18, 15, 0.32);

  box-shadow:
    inset 0 12px 30px rgba(0, 0, 0, 0.045),
    inset 0 -12px 30px rgba(0, 0, 0, 0.035);
}

.home-section:not(.home-section--ink).home-section--catalog {
  background: rgba(190, 174, 145, 0.72) !important;
}

.hero__copy {
  background: rgba(245, 239, 226, 0.38);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(1px);
}

.hero__photo-image {
  position: relative;
  overflow: hidden;
}

.hero__photo-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__photo-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image: url("https://brandonapplegate.com/wp-content/uploads/2026/09/dark-film-texture-optimized.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  mix-blend-mode: screen;
  opacity: 0.95;
}

.hero__photo img {
  filter:
    grayscale(100%)
    contrast(1.18)
    brightness(.95)
    sepia(.04);
}

/* Social icons — strip WordPress brand colors */
.wp-block-social-links .wp-social-link {
  background: transparent !important;
  color: #9f4f32 !important;
  border: 1px solid rgba(23, 21, 17, .35);
}

/* Force the SVG icon itself to use our color */
.wp-block-social-links .wp-social-link svg {
  fill: currentColor !important;
}

/* Make all book covers visually consistent */
.book-card__cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Keep links inheriting the same color */
.wp-block-social-links .wp-social-link a {
  color: inherit !important;
}

/* Hover */
.wp-block-social-links .wp-social-link:hover {
  background: #9f4f32 !important;
  color: #eee7da !important;
}
.site-title__text {
  display: inline-block;

  background-image: url("https://brandonapplegate.com/wp-content/uploads/2026/09/scratched-paper-background-fullsize-optimized.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent !important;
  -webkit-text-fill-color: transparent !important;

  filter: contrast(1.25) brightness(.95);
}