/*
Theme Name: Foxhole Ink
Theme URI: https://foxholeink.com/
Author: Ryan Staples
Author URI: https://foxholeink.com/
Description: Custom WordPress theme for Foxhole Ink — a small independent publishing imprint. Retro diner-sign aesthetic with a full catalog engine (Books + Reviews/Endorsements). Built to grow: add new titles and endorsements from the admin without touching code. Mirrors the original Breakfast for Dinner landing page.
Version: 1.11.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foxhole-ink
Tags: publishing, one-page, custom-colors, custom-logo, block-styles, translation-ready
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --cream: #f5e9d4;
  --cream-deep: #ecdcbe;
  --ink: #1a1411;
  --ink-soft: #3d2f25;
  --orange: #ee5a1f;
  --orange-deep: #c8420f;
  --teal: #2d6e6b;
  --red: #c8351b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/* checkered noise base */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26,20,17,0.06) 1px, transparent 0);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 1;
}

img { max-width: 100%; }
a { color: inherit; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: sticky; top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  border-bottom: 3px solid var(--orange);
}
.site-nav .brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 36px;
}
.site-nav .brand img { height: 36px; width: auto; display: block; }
.site-nav .brand .brand-text {
  font-family: 'Bowlby One', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.site-nav .links { display: flex; gap: 24px; align-items: center; }
.site-nav .links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav .links a:hover { color: var(--orange); }

/* ==========================================================================
   Hero — like a diner sign
   ========================================================================== */
.hero {
  padding: 60px 32px 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16px;
  background:
    linear-gradient(90deg,
      var(--orange) 0 12.5%, var(--ink) 12.5% 25%,
      var(--orange) 25% 37.5%, var(--ink) 37.5% 50%,
      var(--orange) 50% 62.5%, var(--ink) 62.5% 75%,
      var(--orange) 75% 87.5%, var(--ink) 87.5% 100%);
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.open-sign {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  border: 2px solid var(--orange);
}
.open-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.hero h1 {
  font-family: 'Bowlby One', sans-serif;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 6px 6px 0 var(--orange);
}
.hero h1 .for {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--orange-deep);
  text-shadow: none;
  font-size: 0.7em;
  padding: 0 4px;
}
.hero-author {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 22px;
}
.hero-deck {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-deck p + p { margin-top: 14px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
  padding: 16px 0;
  border-top: 2px dashed var(--ink);
  border-bottom: 2px dashed var(--ink);
}
.meta-item .lbl {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 4px;
}
.meta-item .val {
  font-family: 'Bowlby One', sans-serif;
  font-size: 17px;
  color: var(--ink);
}

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font-family: 'Bowlby One', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 24px;
  text-decoration: none;
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  transition: all 0.15s ease;
  box-shadow: 4px 4px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-secondary { background: var(--cream-deep); }

/* Cover plate */
.plate-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.plate {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 2 / 3;
  position: relative;
}
.plate-stamp {
  position: absolute;
  z-index: 3;
  background: var(--red);
  color: var(--cream);
  font-family: 'Bowlby One', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  padding: 12px 18px;
  transform: rotate(-12deg);
  top: -16px; right: -16px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}
.plate-stamp small {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  display: block;
  letter-spacing: 0.18em;
  margin-top: 4px;
  font-weight: 400;
}
.cover-shadow {
  width: 100%; height: 100%;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink), 16px 16px 0 var(--orange);
  overflow: hidden;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}
.cover-shadow:hover { transform: rotate(0deg); }
.cover-shadow img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Generic section + menu card (The Book)
   ========================================================================== */
.section { padding: 96px 32px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.menu-card {
  background: var(--cream-deep);
  border: 4px solid var(--ink);
  padding: 64px 56px;
  position: relative;
  box-shadow: 10px 10px 0 var(--orange);
  text-align: center;
}
.menu-card::before {
  content: attr(data-eyebrow);
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  white-space: nowrap;
}
.menu-card .tagline {
  font-family: 'Bowlby One', sans-serif;
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}
.menu-card .tagline .accent {
  color: var(--orange-deep);
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.005em;
}
.menu-divider {
  max-width: 80px;
  margin: 36px auto 28px;
  border-top: 2px dashed var(--ink);
}
.menu-body {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  font-family: 'Newsreader', serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.menu-body p + p { margin-top: 16px; }
.menu-body em { color: var(--ink); font-style: italic; }
.menu-cta-row { margin-top: 40px; display: flex; justify-content: center; }

/* ==========================================================================
   Section divider (between Today's Special and Praise)
   ========================================================================== */
.section-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-break::before,
.section-break::after {
  content: '';
  flex: 1;
  height: 0;
  border-top: 2px dashed var(--ink);
  opacity: 0.4;
}
.section-break .diamond {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* The rotated square lives inside the box above, so its corners + shadow
   are fully contained and never clipped by the flex line height. */
.section-break .diamond::before {
  content: '';
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
  box-shadow: 2px 2px 0 var(--ink);
}
/* Pull the divider up into the section padding so it reads as a pause,
   not a wall of whitespace. */
.section + .section-break { margin-top: -40px; }
.section-break + .praise-section { padding-top: 56px; }

/* ==========================================================================
   Reviews / Endorsements  (Praise section — NEW)
   ========================================================================== */
.praise-section {
  padding: 96px 32px;
  position: relative;
  background: var(--cream);
}
.praise-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.praise-section .label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 16px;
}
.praise-section h2 {
  font-family: 'Bowlby One', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.praise-section h2 .accent {
  color: var(--orange-deep);
  font-style: italic;
  font-family: 'Newsreader', serif;
  font-weight: 400;
  text-transform: none;
}
.praise-section .sub {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 48px;
}
.praise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  text-align: left;
}
/* When exactly one review, keep it centered and narrower */
.praise-grid.is-single { grid-template-columns: minmax(0, 680px); justify-content: center; }
.praise-card {
  background: var(--cream-deep);
  border: 4px solid var(--ink);
  padding: 36px 32px 30px;
  position: relative;
  box-shadow: 8px 8px 0 var(--orange);
  display: flex;
  flex-direction: column;
}
.praise-card::before {
  content: '\201C';
  font-family: 'Bowlby One', sans-serif;
  color: var(--orange);
  font-size: 90px;
  line-height: 0.6;
  position: absolute;
  top: 18px; left: 20px;
  opacity: 0.28;
  pointer-events: none;
}
.praise-quote {
  position: relative;
  z-index: 1;
  font-family: 'Newsreader', serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 22px;
}
.praise-quote em { font-style: italic; color: var(--orange-deep); }
.praise-attr {
  margin-top: auto;
  padding-top: 18px;
  border-top: 2px dashed var(--ink);
}
.praise-attr .source {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  display: block;
}
/* Linked source: same look, just clickable, with a hover affordance. */
.praise-attr .source a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 20, 17, 0.28);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.praise-attr .source a:hover {
  color: var(--orange-deep);
  border-bottom-color: var(--orange-deep);
}
.praise-attr .source-desc {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-top: 6px;
}
.praise-empty {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 2px dashed var(--ink);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   Imprint block
   ========================================================================== */
.imprint-block {
  background: var(--ink);
  color: var(--cream);
  padding: 76px 32px;
  position: relative;
}
.imprint-block::before, .imprint-block::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  background:
    linear-gradient(90deg,
      var(--orange) 0 12.5%, transparent 12.5% 25%,
      var(--orange) 25% 37.5%, transparent 37.5% 50%,
      var(--orange) 50% 62.5%, transparent 62.5% 75%,
      var(--orange) 75% 87.5%, transparent 87.5% 100%);
}
.imprint-block::before { top: 0; }
.imprint-block::after { bottom: 0; }
.imprint-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}
.imprint-grid img { max-width: 220px; width: 100%; height: auto; }
.imprint-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.imprint-grid h2 {
  font-family: 'Bowlby One', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.imprint-grid h2 .accent { color: var(--orange); }
.imprint-grid p {
  font-family: 'Newsreader', serif;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(245,233,212,0.85);
}
.imprint-grid p strong { color: var(--orange); }
.imprint-grid p + p { margin-top: 14px; }

/* ==========================================================================
   Dispatches / newsletter
   ========================================================================== */
.news-section {
  padding: 96px 32px;
  background: var(--cream-deep);
  text-align: center;
}
.news-section .label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 16px;
}
.news-section h2 {
  font-family: 'Bowlby One', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.news-section h2 .accent {
  color: var(--orange-deep);
  font-style: italic;
  font-family: 'Newsreader', serif;
  font-weight: 400;
  text-transform: none;
}
.news-section .sub {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 32px;
}
.news-embed {
  max-width: 520px;
  margin: 0 auto;
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--orange);
  overflow: hidden;
}
.news-embed iframe { display: block; width: 100%; background: #fff; }
.news-fallback {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 22px;
}
.news-fallback a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-fallback a:hover { color: var(--ink); }

/* ==========================================================================
   Contact — lightweight buttons baked into the Imprint band
   ========================================================================== */
.imprint-contact {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.imprint-contact-eyebrow {
  width: 100%;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.imprint-contact .cbtn {
  font-family: 'Bowlby One', sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 18px;
  text-decoration: none;
  border: 2px solid var(--orange);
  color: var(--cream);
  background: transparent;
  transition: all 0.15s ease;
}
.imprint-contact .cbtn:hover { background: var(--orange); color: var(--ink); }
.imprint-contact .cbtn-primary { background: var(--orange); color: var(--ink); }
.imprint-contact .cbtn-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--cream); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-footer strong { color: var(--orange); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

/* ==========================================================================
   Single book — clean retail layout (distinct from the homepage aesthetic)
   ========================================================================== */
.bookpage {
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 40px 90px;
  font-family: 'Newsreader', Georgia, serif;
  color: var(--ink);
}
.bookpage-back {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 30px;
}
.bookpage-back:hover { color: var(--orange-deep); }

.bookpage-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: stretch; /* cover matches the height of the title→buttons column */
}
.bookpage-cover {
  height: 100%;
  min-height: 240px;
  aspect-ratio: 2 / 3;   /* width follows the stretched height, keeping the true 2:3 shape */
  max-width: 260px;
  background: var(--cream-deep);
  border: 1px solid rgba(26, 20, 17, 0.15);
  box-shadow: 0 8px 22px rgba(26, 20, 17, 0.14);
  overflow: hidden;
}
.bookpage-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }

.bookpage-title {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  margin: 10px 0 6px;
}
.bookpage-author {
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.bookpage-author span { color: var(--orange-deep); }
.bookpage-meta {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.bookpage-buy { display: grid; gap: 9px; max-width: 320px; }
.bp-btn {
  display: block;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.bp-btn:hover { background: var(--ink); color: var(--cream); }
.bp-btn-primary { background: var(--orange); border-color: var(--orange); font-weight: 500; }
.bp-btn-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--cream); }

/* Two-column region below the header: main content + product-details rail. */
.bookpage-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  margin-top: 44px;
  align-items: start;
}
.bookpage-main > .bookpage-section:first-child { margin-top: 0; }
.bookpage-side .bookpage-section {
  margin-top: 0;
  background: rgba(26, 20, 17, 0.035);
  border: 1px solid rgba(26, 20, 17, 0.10);
  padding: 20px 22px;
}

.bookpage-section { margin-top: 40px; }
.bookpage-h2 {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  border-bottom: 1px solid rgba(26, 20, 17, 0.14);
  padding-bottom: 9px;
  margin: 0 0 16px;
}
/* Opening tagline line — same size/weight/colour as the description body. */
.bookpage-lede {
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-soft);
  margin: 0 0 14px;
  text-align: justify;
  hyphens: none;
}

.bookpage-body { max-width: none; }
.bookpage-body p {
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-soft);
  margin: 0 0 14px;
  text-align: justify;
  hyphens: none;
}
.bookpage-body p:last-child { margin-bottom: 0; }
.bookpage-body em { color: var(--ink); font-style: italic; }

/* About the author */
.bookpage-authorsec { max-width: none; }
.bookpage-authorsec.has-photo {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  align-items: start;
}
.bookpage-authorphoto img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(26, 20, 17, 0.15);
  display: block;
}
.bookpage-authorbio p {
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-soft);
  margin: 0 0 12px;
  text-align: justify;
  hyphens: none;
}
.bookpage-authorbio p:last-child { margin-bottom: 0; }
.bookpage-authorbio em { color: var(--ink); font-style: italic; }

.bookpage-praise { max-width: none; margin-bottom: 22px; }
.bookpage-praise:last-child { margin-bottom: 0; }
.bookpage-quote {
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  margin: 0 0 8px;
  text-align: justify;
  hyphens: none;
}
.bookpage-quote em { font-style: italic; }
.bookpage-attr {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bookpage-attr cite {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.bookpage-attr cite a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(26,20,17,0.28); }
.bookpage-attr cite a:hover { color: var(--orange-deep); border-color: var(--orange-deep); }

.bookpage-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  max-width: 560px;
  margin: 0;
  font-size: 15px;
}
.bookpage-details dt {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: center;
}
.bookpage-details dd { margin: 0; color: var(--ink); }

/* Softer background texture on the calmer interior book pages. */
body.single-book::before { opacity: 0.4; }

@media (max-width: 900px) {
  .bookpage-cols { grid-template-columns: 1fr; gap: 40px; }
  .bookpage-side .bookpage-section { max-width: 420px; }
}
@media (max-width: 640px) {
  .bookpage-head { grid-template-columns: 1fr; gap: 26px; }
  .bookpage-cover { max-width: 200px; aspect-ratio: 2 / 3; height: auto; min-height: 0; }
  .bookpage-buy { max-width: none; }
  .bookpage-authorsec.has-photo { grid-template-columns: 1fr; gap: 18px; }
}

/* ==========================================================================
   Catalog (archive) + single book
   ========================================================================== */
.page-head {
  padding: 80px 32px 40px;
  text-align: center;
}
.page-head .label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
}
.page-head h1 {
  font-family: 'Bowlby One', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--orange);
}
.catalog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 48px 40px;
  align-items: start; /* don't stretch items to the row height */
}
.catalog-item { text-decoration: none; color: var(--ink); display: block; }
.catalog-item .cover-shadow {
  transform: rotate(0deg);
  box-shadow: 6px 6px 0 var(--ink), 12px 12px 0 var(--orange);
  aspect-ratio: 2 / 3;
  height: auto; /* override the base height:100% so aspect-ratio governs (prevents skinny/cropped covers) */
}
.catalog-item:hover .cover-shadow { transform: rotate(-1.5deg); }
.catalog-item h3 {
  font-family: 'Bowlby One', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  margin: 24px 0 6px;
  line-height: 1.05;
}
.catalog-item .cat-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.single-book-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 32px 96px;
  font-family: 'Newsreader', serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.single-book-body p + p { margin-top: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .imprint-grid { grid-template-columns: 1fr; text-align: center; }
  .imprint-grid img { margin: 0 auto; }
  .imprint-contact { justify-content: center; }
  .menu-card { padding: 32px 24px; }
  .site-nav .links { display: none; }
}
