@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ──────────────────────────────────────────
   TOKENS
────────────────────────────────────────── */
:root {
  --parchment:    #F5F0E8;
  --parchment-dk: #EDE8DC;
  --parchment-lt: #FAF8F4;
  --ink:          #2C1810;
  --ink-mid:      #4A2E22;
  --ink-faint:    #7A5C4E;
  --brass:        #8B6914;
  --brass-lt:     #C49A28;
  --brass-dk:     #5C4409;
  --leather:      #3B1F0E;
  --leather-lt:   #5C3420;
  --forest:       #2D5016;
  --rule:         rgba(44,24,16,0.18);
  --shadow-sm:    0 2px 6px rgba(44,24,16,0.18);
  --shadow-md:    0 4px 14px rgba(44,24,16,0.22);
  --shadow-lg:    0 8px 28px rgba(44,24,16,0.28);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-size:    1.1rem;
  --line:         1.75;
}

/* ──────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--font-size);
  line-height: var(--line);
  color: var(--ink);
  background: var(--parchment);
  /* Subtle paper grain via SVG noise */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--brass-lt); text-decoration: underline; }

/* ──────────────────────────────────────────
   TYPOGRAPHY
────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1em; }
em { font-style: italic; }

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.9em;
}

/* Ornamental divider */
.ornament {
  text-align: center;
  color: var(--brass);
  font-size: 1.4rem;
  margin: 2rem 0;
  letter-spacing: 0.4em;
  opacity: 0.7;
}
.ornament::before, .ornament::after {
  content: '';
  display: inline-block;
  width: 4rem;
  height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin: 0 0.7rem;
  opacity: 0.6;
}

/* Section rule */
.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ──────────────────────────────────────────
   LAYOUT
────────────────────────────────────────── */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--rule); }

/* ──────────────────────────────────────────
   HEADER / NAV
────────────────────────────────────────── */
.site-header {
  background: var(--leather);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--leather-lt) 0%, var(--leather) 60%, #2A1508 100%);
  border-bottom: 3px solid var(--brass-dk);
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brass-lt);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}
.site-logo span {
  color: rgba(197,154,40,0.6);
  font-weight: 400;
  font-style: italic;
}
.site-logo:hover { text-decoration: none; color: #E8C84A; }

nav { display: flex; gap: 1.8rem; align-items: center; flex-wrap: wrap; }
nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: rgba(245,240,232,0.82);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  font-variant: small-caps;
}
nav a:hover { color: var(--brass-lt); text-decoration: none; }
nav a.active { color: var(--brass-lt); border-bottom: 1px solid var(--brass); }

/* ──────────────────────────────────────────
   HERO
────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(175deg, var(--parchment) 0%, var(--parchment-dk) 100%);
  padding: 5rem 0 4.5rem;
  border-bottom: 2px solid var(--rule);
  position: relative;
  overflow: hidden;
}

/* Decorative corner marks */
.hero::before {
  content: '❧';
  position: absolute;
  top: 1.2rem; left: 1.5rem;
  font-size: 2.5rem;
  color: var(--brass);
  opacity: 0.22;
}
.hero::after {
  content: '❦';
  position: absolute;
  bottom: 1.2rem; right: 1.5rem;
  font-size: 2.5rem;
  color: var(--brass);
  opacity: 0.22;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--brass);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: 3.4rem;
  max-width: 700px;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-mid);
  max-width: 540px;
  margin-bottom: 2.2rem;
  font-style: italic;
}

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.07em;
  padding: 0.7em 1.8em;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(180deg, #B8870F 0%, #8B6914 55%, #6B5010 100%);
  color: #FAF0D0;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 -1px 0 rgba(0,0,0,0.3) inset,
    var(--shadow-md);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #CFA020 0%, #9B7A1C 55%, #7A5C14 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 -1px 0 rgba(0,0,0,0.3) inset,
    0 6px 20px rgba(44,24,16,0.32);
  color: #FAF0D0;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 -1px 0 rgba(0,0,0,0.3) inset, var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--brass);
  border: 1.5px solid var(--brass);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: rgba(139,105,20,0.08);
  color: var(--brass-lt);
  text-decoration: none;
}

/* ──────────────────────────────────────────
   TRUST BAR
────────────────────────────────────────── */
.trust-bar {
  background: var(--leather);
  background-image: linear-gradient(180deg, var(--leather-lt) 0%, var(--leather) 100%);
  border-top: 1px solid var(--brass-dk);
  border-bottom: 1px solid var(--brass-dk);
  padding: 1.1rem 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.88;
}
.trust-item::before { content: '✦'; color: var(--brass-lt); font-size: 0.7rem; }

/* ──────────────────────────────────────────
   SERVICE CARDS
────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--parchment-lt);
  border: 1px solid rgba(44,24,16,0.14);
  border-radius: 3px;
  padding: 1.5rem 1.3rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, var(--shadow-md);
  transform: translateY(-2px);
}
.service-card-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  margin-bottom: 0.6rem;
}
.service-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brass);
  font-size: 1.05rem;
}

/* ──────────────────────────────────────────
   TESTIMONIALS
────────────────────────────────────────── */
.testimonials { background: var(--parchment-dk); }
.testimonial-track {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
}
.testimonial {
  display: none;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.testimonial.active { display: block; }
.testimonial img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--brass);
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-mid);
  margin-bottom: 0.8rem;
  line-height: 1.65;
}
.testimonial blockquote::before { content: '\201C'; }
.testimonial blockquote::after  { content: '\201D'; }
.testimonial cite {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--brass);
}
.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass-dk);
  opacity: 0.35;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: opacity 0.2s;
}
.testimonial-dot.active { opacity: 1; background: var(--brass); }

/* ──────────────────────────────────────────
   PRICING TABLE
────────────────────────────────────────── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-top: 1.5rem;
}
.price-table th {
  font-family: var(--font-display);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}
.price-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table .amount {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brass);
  white-space: nowrap;
}
.price-table tr:hover td { background: rgba(245,240,232,0.7); }

/* Turnaround box */
.turnaround-box {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.4rem 1.6rem;
  background: var(--parchment-lt);
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}
.turnaround-box h3 { margin-bottom: 1rem; }
.turnaround-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.turnaround-col h4 {
  font-size: 0.9rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.turnaround-col ul { list-style: none; }
.turnaround-col li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.turnaround-col li:last-child { border-bottom: none; }

/* ──────────────────────────────────────────
   CONTACT FORM
────────────────────────────────────────── */
.contact-form {
  max-width: 580px;
  margin: 2rem auto 0;
}
.form-field {
  margin-bottom: 1.4rem;
}
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--ink-mid);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--parchment-lt);
  border: 1px solid rgba(44,24,16,0.28);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(44,24,16,0.08) inset;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 1px 3px rgba(44,24,16,0.08) inset, 0 0 0 2px rgba(139,105,20,0.18);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-success {
  background: rgba(45,80,22,0.1);
  border: 1px solid var(--forest);
  border-radius: 3px;
  padding: 1.2rem 1.4rem;
  color: var(--forest);
  font-family: var(--font-display);
}

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.site-footer {
  background: var(--leather);
  background-image: linear-gradient(180deg, var(--leather) 0%, #1E0E06 100%);
  border-top: 2px solid var(--brass-dk);
  color: rgba(245,240,232,0.65);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-display);
  color: var(--brass-lt);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-copy { font-size: 0.82rem; opacity: 0.55; margin-top: 0.5rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a {
  color: rgba(245,240,232,0.65);
  font-variant: small-caps;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--brass-lt); text-decoration: none; }

/* ──────────────────────────────────────────
   SECTION HEADERS
────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header .eyebrow {
  font-family: var(--font-body);
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--brass);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.section-header h2 { margin-bottom: 0.6rem; }
.section-header p  { color: var(--ink-mid); max-width: 520px; margin: 0 auto; font-style: italic; }

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 16px; }
  h1  { font-size: 2.2rem; }
  h2  { font-size: 1.65rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.4rem; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
  .trust-bar .container { gap: 1.4rem; }
  .turnaround-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .site-header .container { flex-wrap: wrap; gap: 0.8rem; }
  nav { gap: 1rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero h1 { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 1rem; }
  .hero::before, .hero::after { display: none; }
}

/* ══════════════════════════════════════════
   ROUND 1 ADDITIONS — Deeper Skeuomorphism
   ══════════════════════════════════════════ */

/* Letterpress heading effect */
h1, h2 {
  text-shadow:
    0 1px 0 rgba(255,255,255,0.45),
    0 -1px 0 rgba(44,24,16,0.22);
}
.hero h1 {
  text-shadow:
    0 2px 0 rgba(255,255,255,0.3),
    0 -1px 0 rgba(44,24,16,0.3),
    0 3px 6px rgba(44,24,16,0.08);
}

/* Service card number medallion (replaces emoji icon) */
.service-card-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  color: var(--brass);
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--brass-dk);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(160deg, var(--parchment-lt) 0%, var(--parchment-dk) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 -1px 0 rgba(44,24,16,0.15) inset,
    0 2px 5px rgba(44,24,16,0.2);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

/* Process step number (replaces emoji) */
.step { text-align: center; }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  background: linear-gradient(160deg, var(--leather-lt) 0%, var(--leather) 100%);
  color: var(--brass-lt);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 -1px 0 rgba(0,0,0,0.3) inset,
    var(--shadow-md);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Hero — paper corner fold (bottom-right) */
.hero {
  position: relative;
}
.hero-fold {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 44px 44px;
  border-color: transparent transparent var(--parchment-dk) transparent;
  filter: drop-shadow(-2px -2px 4px rgba(44,24,16,0.18));
}

/* Wax seal trust mark */
.wax-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--brass-lt), var(--brass-dk));
  color: var(--parchment-lt);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.07em;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.15) inset,
    0 -2px 0 rgba(0,0,0,0.2) inset,
    var(--shadow-md),
    0 0 0 3px var(--parchment),
    0 0 0 5px var(--brass-dk);
}

/* ── 3D CSS BOOK (box-shadow spine technique) ── */
.book-showcase {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  align-items: flex-end;
  padding: 2.5rem 0 1.5rem;
  flex-wrap: wrap;
}

.book-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.book-label-text {
  font-family: var(--font-display);
  font-variant: small-caps;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.book {
  display: inline-block;
  cursor: default;
  margin-left: 22px; /* space for spine shadow */
}

.book-cover {
  width: 120px;
  height: 178px;
  border-radius: 2px 5px 5px 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0.8rem;
  text-align: center;
  transform: perspective(1400px) rotateY(-18deg) rotateX(1deg);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s ease;
}
.book:hover .book-cover {
  transform: perspective(1400px) rotateY(-28deg) rotateX(1deg);
}

/* Colour variants — cover bg + spine via box-shadow */
.book-dark .book-cover {
  background: linear-gradient(155deg, #4a2415 0%, #1E0E06 100%);
  box-shadow:
    inset -8px 0 14px rgba(0,0,0,0.4),
    inset 3px 0 6px rgba(255,255,255,0.05),
    -22px 5px 0px 0px #100603,
    -26px 10px 14px rgba(0,0,0,0.55),
    8px 8px 22px rgba(0,0,0,0.35);
}
.book-dark:hover .book-cover {
  box-shadow:
    inset -10px 0 16px rgba(0,0,0,0.45),
    inset 3px 0 6px rgba(255,255,255,0.05),
    -30px 7px 0px 0px #100603,
    -34px 12px 16px rgba(0,0,0,0.55),
    12px 12px 28px rgba(0,0,0,0.4);
}
.book-mid .book-cover {
  background: linear-gradient(155deg, #4a3a1e 0%, #2a1e0c 100%);
  box-shadow:
    inset -8px 0 14px rgba(0,0,0,0.4),
    inset 3px 0 6px rgba(255,255,255,0.05),
    -22px 5px 0px 0px #180f05,
    -26px 10px 14px rgba(0,0,0,0.55),
    8px 8px 22px rgba(0,0,0,0.35);
}
.book-mid:hover .book-cover {
  box-shadow:
    inset -10px 0 16px rgba(0,0,0,0.45),
    inset 3px 0 6px rgba(255,255,255,0.05),
    -30px 7px 0px 0px #180f05,
    -34px 12px 16px rgba(0,0,0,0.55),
    12px 12px 28px rgba(0,0,0,0.4);
}
.book-forest .book-cover {
  background: linear-gradient(155deg, #2D5016 0%, #182b0c 100%);
  box-shadow:
    inset -8px 0 14px rgba(0,0,0,0.4),
    inset 3px 0 6px rgba(255,255,255,0.05),
    -22px 5px 0px 0px #0a1505,
    -26px 10px 14px rgba(0,0,0,0.55),
    8px 8px 22px rgba(0,0,0,0.35);
}
.book-forest:hover .book-cover {
  box-shadow:
    inset -10px 0 16px rgba(0,0,0,0.45),
    inset 3px 0 6px rgba(255,255,255,0.05),
    -30px 7px 0px 0px #0a1505,
    -34px 12px 16px rgba(0,0,0,0.55),
    12px 12px 28px rgba(0,0,0,0.4);
}

.book-cover-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(245,240,232,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.book-cover-rule {
  width: 36px;
  height: 1px;
  background: rgba(197,154,40,0.45);
}
.book-cover-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.68rem;
  color: rgba(197,154,40,0.7);
  letter-spacing: 0.06em;
}

/* Samples section */
.samples-cta {
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--ink-faint);
  font-size: 0.95rem;
}

/* Ruled paper on contact section */
.ruled-bg {
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 27px,
      rgba(44,24,16,0.08) 27px,
      rgba(44,24,16,0.08) 28px
    );
  background-position: 0 8px;
}


/* Mobile-friendly pricing table */
@media (max-width: 768px) {
  .price-table {
    display: block;
  }
  .price-table thead {
    display: none;
  }
  .price-table tbody {
    display: block;
  }
  .price-table tr {
    display: block;
    margin-bottom: 1.5rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1rem;
    background: var(--parchment-lt);
    box-shadow: var(--shadow-sm);
  }
  .price-table td {
    display: block;
    border: none;
    padding: 0.4rem 0;
    text-align: left;
  }
  .price-table td:first-child {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--rule);
  }
  .price-table td:nth-child(2) {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brass);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
  }
  .price-table td:last-child {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ══════════════════════════════════════════
   BOOKSHELF GALLERY
   ══════════════════════════════════════════ */

.shelf-section {
  margin-bottom: 3rem;
}

.shelf-label {
  font-family: var(--font-display);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--brass);
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--brass-dk);
  padding-left: 0.7rem;
}

.shelf-row {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-bottom: 14px;
  padding-left: 4px;
}

/* The wooden shelf board */
.shelf-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -1rem;
  right: -1rem;
  height: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.12) 0%,
      #B8870F 8%,
      #8B6914 35%,
      #6B4E10 70%,
      #4a3208 100%
    );
  box-shadow:
    0 4px 12px rgba(0,0,0,0.4),
    0 1px 0 rgba(255,255,255,0.12) inset;
  border-radius: 1px;
}

/* Individual book on shelf */
.book-thumb {
  position: relative;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: bottom center;
  cursor: default;
}

.book-thumb:hover {
  transform: translateY(-14px);
  z-index: 10;
}

.book-thumb picture,
.book-thumb img {
  display: block;
}

.book-thumb img {
  width: 110px;
  height: auto;
  border-radius: 1px 3px 3px 1px;
  box-shadow:
    3px 0 6px rgba(0,0,0,0.45),
    -1px 0 3px rgba(0,0,0,0.2),
    0 3px 8px rgba(0,0,0,0.3),
    inset -2px 0 4px rgba(0,0,0,0.15);
}

/* Hover glow on book spine */
.book-thumb::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 14px;
  width: 3px;
  background: linear-gradient(180deg, rgba(197,154,40,0) 0%, rgba(197,154,40,0.3) 50%, rgba(197,154,40,0) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  border-radius: 2px 0 0 2px;
}
.book-thumb:hover::after { opacity: 1; }

/* Homepage mini-shelf (6 featured books) */
.mini-shelf {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  margin: 2rem 0 1rem;
}
.mini-shelf::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -2rem;
  right: -2rem;
  height: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.12) 0%,
      #B8870F 8%,
      #8B6914 35%,
      #6B4E10 70%,
      #4a3208 100%
    );
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.12) inset;
}
.mini-shelf .book-thumb img {
  width: 100px;
}

@media (max-width: 768px) {
  .book-thumb img { width: 80px; }
  .mini-shelf .book-thumb img { width: 72px; }
  .shelf-row::after { left: -0.5rem; right: -0.5rem; }
}

@media (max-width: 480px) {
  .book-thumb img { width: 64px; }
  .mini-shelf .book-thumb img { width: 58px; }
  .shelf-row { gap: 5px; }
}


/* ══════════════════════════════════════════
   AUTHOR WEBSITES CALLOUT
   ══════════════════════════════════════════ */

.website-callout {
  background: var(--parchment-dk);
  border: 1px solid rgba(139,105,20,0.18);
  border-radius: 4px;
  padding: 2.5rem;
  margin: 0 0 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}

.website-callout-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.website-callout-text {
  flex: 1;
  min-width: 0;
}

.website-callout-text p {
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.website-callout-link {
  font-family: var(--font-display);
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(139,105,20,0.35);
  padding-bottom: 1px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.website-callout-link:hover {
  color: var(--brass-dk);
  border-bottom-color: var(--brass-dk);
}

/* Mini browser frame preview */
.website-callout-preview {
  flex-shrink: 0;
  width: 220px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.12);
}

.browser-chrome {
  background: #e8e4de;
  padding: 8px 10px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.browser-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.browser-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}
.browser-dots span:nth-child(1) { background: #fc6058; }
.browser-dots span:nth-child(2) { background: #fea429; }
.browser-dots span:nth-child(3) { background: #29c940; }

.browser-bar {
  flex: 1;
  background: white;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 0.68rem;
  color: #666;
  font-family: -apple-system, sans-serif;
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-body {
  background: #fffff8;
  padding: 1.5rem 1rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.browser-book-img {
  margin-bottom: 0.3rem;
}

.browser-book-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-dk);
}

.browser-book-sub {
  font-size: 0.75rem;
  color: var(--brass);
  font-style: italic;
}

@media (max-width: 768px) {
  .website-callout { padding: 1.5rem; }
  .website-callout-inner { flex-direction: column; gap: 1.5rem; }
  .website-callout-preview { width: 100%; max-width: 280px; margin: 0 auto; }
}

/* ══════════════════════════════════════════
   TRUST COUNTER
   ══════════════════════════════════════════ */

.trust-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}


/* ══════════════════════════════════════════
   BOOKSHELF — MOBILE SCROLL FIX
   Desktop: flex-wrap wrap is fine (books fit in one row at 110px)
   Mobile: nowrap + horizontal scroll. Board moved to section level
   so it doesn't scroll with the books or get clipped.
   ══════════════════════════════════════════ */

/* Section always has position context for the board */
.shelf-section {
  position: relative;
}

@media (max-width: 860px) {
  /* Scrollable row — no wrapping */
  .shelf-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;   /* breathing room above shelf board */
    padding-left: 4px;
    padding-right: 1rem;   /* trailing space so last book isn't flush against edge */
  }
  .shelf-row::-webkit-scrollbar {
    display: none;
  }

  /* Hide the shelf board that lives inside the scroll container */
  .shelf-row::after {
    display: none;
  }

  /* Shelf board at the section level — outside the scroll context */
  .shelf-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 14px;
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.12) 0%,
        #B8870F 8%,
        #8B6914 35%,
        #6B4E10 70%,
        #4a3208 100%
      );
    box-shadow:
      0 4px 12px rgba(0,0,0,0.4),
      0 1px 0 rgba(255,255,255,0.12) inset;
    border-radius: 1px;
    pointer-events: none;
  }

  /* Ensure shelf-section has bottom padding for the board */
  .shelf-section {
    padding-bottom: 14px;
    margin-bottom: 2.5rem;
  }

  /* Right-fade on the row wrapper hints at horizontal scrollability */
  .shelf-section {
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  /* Book size on mobile — keep them readable */
  .book-thumb img {
    width: 90px;
  }

  /* Mini-shelf on homepage also gets horizontal scroll */
  .mini-shelf {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
  }
  .mini-shelf::-webkit-scrollbar { display: none; }
  .mini-shelf::after { display: none; }
  .mini-shelf .book-thumb img { width: 90px; }
}

@media (max-width: 480px) {
  .book-thumb img { width: 76px; }
  .mini-shelf .book-thumb img { width: 72px; }
}

