/* =====================================================================
   MUDRAN PUBLISHERS — STYLESHEET
   Classic / literary. Edit colours in the :root block below.
   ===================================================================== */

:root {
  --paper:      #faf6ee;
  --paper-deep: #f2ebdd;
  --ink:        #1f1b16;
  --ink-soft:   #4a4238;
  --ink-faint:  #8a7f70;
  --rule:       #ddd2bd;
  --accent:     #7b2d26;
  --accent-dk:  #5c1f19;
  --gold:       #b08640;
  --white:      #fffdf9;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --shadow: 0 2px 4px rgba(31,27,22,.05), 0 12px 32px rgba(31,27,22,.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Small caps eyebrow ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 .9rem;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Ornament ---------- */
.ornament {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold); margin: 0 0 2.4rem;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; background: var(--rule); flex: 1;
}
.ornament span { font-size: 1rem; letter-spacing: .3em; }
.ornament.left::before { display: none; }

/* =====================  HEADER  ===================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,238,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 24px; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  border: 1.5px solid var(--accent); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  border-radius: 3px;
}
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.brand-tag  { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .88rem; color: var(--ink-soft); text-decoration: none;
  padding: 8px 13px; border-radius: 3px; white-space: nowrap;
}
.nav a:hover { background: var(--paper-deep); color: var(--ink); }
.nav a.active { color: var(--accent); font-weight: 600; }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: 3px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}

/* =====================  BUTTONS  ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  padding: 11px 22px; border-radius: 3px; border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff !important; text-decoration: none;
  cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent) !important; }
.btn-ghost:hover { background: var(--accent); color: #fff !important; }
.btn-sm { padding: 8px 15px; font-size: .8rem; }
.btn-block { width: 100%; }

/* =====================  HERO  ===================== */
.hero {
  padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 90px);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(176,134,64,.10), transparent 60%),
    radial-gradient(700px 340px at 92% 8%, rgba(123,45,38,.07), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero-stack { position: relative; height: 340px; overflow: hidden; }
.hero-stack .spine {
  position: absolute; border-radius: 3px 6px 6px 3px; overflow: hidden;
  box-shadow: 0 3px 8px rgba(31,27,22,.14), 0 18px 40px rgba(31,27,22,.18);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  font-family: var(--serif); font-size: 1.05rem; text-align: center; color: #fdf8ee;
  line-height: 1.25;
}
.hero-stack .spine:has(img) { padding: 0; }
.hero-stack .spine img { width: 100%; height: 100%; object-fit: cover; }
.hero-stack .s1 { width: 168px; height: 250px; left: 2%;  top: 46px; transform: rotate(-7deg); background: linear-gradient(150deg,#7b2d26,#4a1a15); }
.hero-stack .s2 { width: 182px; height: 272px; left: 31%; top: 18px; transform: rotate(2deg);  background: linear-gradient(150deg,#26413f,#132422); z-index: 2; }
.hero-stack .s3 { width: 168px; height: 250px; left: 62%; top: 54px; transform: rotate(8deg);  background: linear-gradient(150deg,#b08640,#7a5a22); }

/* =====================  SECTIONS  ===================== */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.page-head {
  padding: clamp(46px, 6vw, 78px) 0 clamp(34px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
  background: radial-gradient(760px 320px at 18% -20%, rgba(176,134,64,.10), transparent 62%);
}
.page-head h1 { margin-bottom: .3em; }

/* =====================  BOOK GRID  ===================== */
.book-grid {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
}
.book {
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.book:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.book-cover {
  aspect-ratio: 2/3; position: relative; overflow: hidden;
  background: var(--paper-deep); border-bottom: 1px solid var(--rule);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 26px; text-align: center;
  color: #fdf8ee; font-family: var(--serif);
}
.cover-fallback .cf-title { font-size: 1.25rem; line-height: 1.25; }
.cover-fallback .cf-rule { width: 34px; height: 1px; background: rgba(255,255,255,.55); }
.cover-fallback .cf-author { font-family: var(--sans); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  padding: 5px 10px; border-radius: 2px; background: var(--gold); color: #2b1f08;
}
.badge.soon { background: var(--ink); color: var(--paper); }

.book-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.book-meta { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.book-title { font-family: var(--serif); font-size: 1.32rem; line-height: 1.2; margin: 0 0 4px; }
.book-author { font-size: .86rem; color: var(--accent); margin: 0 0 12px; }
.book-blurb { font-size: .9rem; color: var(--ink-soft); margin: 0 0 12px; flex: 1; }
.book-isbn { font-size: .72rem; letter-spacing: .06em; color: var(--ink-faint); margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.book-buy { display: flex; flex-direction: column; gap: 8px; }
.buy-note { font-size: .78rem; color: var(--ink-faint); font-style: italic; }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter {
  font-family: var(--sans); font-size: .82rem; padding: 8px 16px; cursor: pointer;
  background: transparent; border: 1px solid var(--rule); border-radius: 40px; color: var(--ink-soft);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* =====================  CARDS (offers / challenges)  ===================== */
.card-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.tag {
  display: inline-block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); border: 1px solid var(--accent);
  padding: 4px 10px; border-radius: 2px; margin-bottom: 14px;
}
.tag.open   { color: #1d6b45; border-color: #1d6b45; }
.tag.closing{ color: #a2621a; border-color: #a2621a; }
.tag.closed { color: var(--ink-faint); border-color: var(--rule); }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 4px 0 16px; }
.meta-row div { font-size: .84rem; }
.meta-row .k { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); display: block; }

.rule-list { margin: 0 0 22px; padding: 0; list-style: none; }
.rule-list li { font-size: .88rem; color: var(--ink-soft); padding: 5px 0 5px 22px; position: relative; }
.rule-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* =====================  PULL QUOTE  ===================== */
.quote { text-align: center; max-width: 780px; margin: 0 auto; }
.quote blockquote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.4; margin: 0 0 18px; color: var(--ink);
}
.quote cite { font-style: normal; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }

/* =====================  FORMS  ===================== */
.form-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 4px; padding: clamp(26px, 4vw, 44px);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 3px;
  padding: 12px 14px;
}
.field textarea { min-height: 190px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123,45,38,.10);
}
.field .hint { font-size: .8rem; color: var(--ink-faint); margin: 6px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: .84rem; color: var(--ink-faint); margin-top: 16px; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 3px; font-size: .92rem; }
.form-status.ok  { display: block; background: #e8f2ea; border: 1px solid #b9d8c4; color: #1d5c37; }
.form-status.err { display: block; background: #f8eae8; border: 1px solid #e3c2bd; color: #86281f; }

/* =====================  CONTACT  ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .k { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 5px; }
.contact-list .v { font-family: var(--serif); font-size: 1.28rem; }
.contact-list .v a { text-decoration: none; }
.contact-list .v a:hover { text-decoration: underline; }

/* =====================  STEPS  ===================== */
.steps { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1.5px solid var(--gold); color: var(--gold); border-radius: 50%;
  font-family: var(--serif); font-size: 1.15rem;
}
.step h3 { font-size: 1.15rem; }
.step p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* =====================  CTA STRIP  ===================== */
.cta {
  background: var(--ink); color: var(--paper);
  padding: clamp(52px, 7vw, 84px) 0; text-align: center;
}
.cta h2 { color: var(--paper); }
.cta p { color: #cec4b4; max-width: 620px; margin: 0 auto 2rem; }
.cta .btn { background: var(--gold); border-color: var(--gold); color: #241a06 !important; }
.cta .btn:hover { background: #c69a52; border-color: #c69a52; }
.cta .btn-ghost { background: transparent; border-color: #6b6154; color: var(--paper) !important; }
.cta .btn-ghost:hover { background: var(--paper); color: var(--ink) !important; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =====================  FOOTER  ===================== */
.site-footer { background: var(--paper-deep); border-top: 1px solid var(--rule); padding: 56px 0 30px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 38px; }
.site-footer h4 { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--rule); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-faint);
}

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-stack { height: 300px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin: 12px 0 0; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stack { height: 270px; }
  .hero-stack .spine { width: 118px; height: 178px; font-size: .9rem; padding: 12px; }
  .hero-stack .s1 { left: 2%;  top: 46px; transform: rotate(-7deg); }
  .hero-stack .s2 { left: 33%; top: 24px; transform: rotate(2deg); }
  .hero-stack .s3 { left: 64%; top: 50px; transform: rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   ADDED: founder, establishment, reviews, admin
   ===================================================================== */

/* ---------- honeypot (hidden from people, visible to bots) ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- "to be added" placeholder marker ---------- */
.todo {
  display: inline-block; font-size: .74rem; letter-spacing: .06em;
  color: var(--ink-faint); background: var(--paper-deep);
  border: 1px dashed var(--rule); border-radius: 3px; padding: 2px 9px;
}
.placeholder-block {
  background: var(--paper-deep); border: 1px dashed var(--rule);
  border-radius: 4px; padding: 20px 22px; color: var(--ink-soft); font-size: .94rem;
}
.placeholder-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86em; background: var(--white); border: 1px solid var(--rule);
  border-radius: 2px; padding: 1px 5px; color: var(--accent);
}

/* =====================  FOUNDER  ===================== */
.founder-grid {
  display: grid; grid-template-columns: 320px 1fr;
  gap: clamp(30px, 5vw, 62px); align-items: start;
}
.founder-photo {
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 14px; box-shadow: var(--shadow);
}
.founder-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.monogram {
  aspect-ratio: 4/5; border-radius: 2px; display: grid; place-items: center;
  background: linear-gradient(150deg, #7b2d26, #3a110d);
}
.monogram span {
  font-family: var(--serif); font-size: 4.6rem; color: #f6e6c8;
  letter-spacing: .04em; line-height: 1;
}
.founder-caption {
  margin: 14px 0 2px; text-align: center; font-size: .86rem;
  color: var(--ink-soft); line-height: 1.5;
}
.founder-caption strong { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }

.founder-facts { list-style: none; margin: 26px 0 0; padding: 0; }
.founder-facts li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.founder-facts li:last-child { border-bottom: none; }
.founder-facts .k {
  display: block; font-size: .64rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px;
}
.founder-facts .v { font-size: .94rem; color: var(--ink); }

.founder-body p { max-width: 68ch; }
.founder-body .lead { margin-bottom: 1.3em; }

/* =====================  STAT BADGES  ===================== */
.badge-row {
  display: grid; gap: 18px; margin: 0 0 34px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat {
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 22px 20px; text-align: center;
}
.stat-big {
  display: block; font-family: var(--serif); font-size: 2rem;
  font-weight: 600; color: var(--accent); line-height: 1.1;
}
.stat-small {
  display: block; margin-top: 6px; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* =====================  DETAIL TABLE  ===================== */
.table-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 4px; overflow: hidden;
}
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th, .detail-table td {
  text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--rule);
  vertical-align: top; font-size: .94rem;
}
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: none; }
.detail-table th {
  width: 240px; font-family: var(--sans); font-weight: 600; font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  white-space: nowrap;
}
.detail-table td { color: var(--ink); word-break: break-word; }

/* =====================  REVIEWS  ===================== */
.review-wall {
  columns: 3 300px; column-gap: 26px;
}
.review {
  break-inside: avoid; margin: 0 0 26px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 26px 26px 22px;
}
.review blockquote {
  margin: 12px 0 18px; font-family: var(--serif); font-size: 1.12rem;
  line-height: 1.55; color: var(--ink); white-space: pre-wrap;
}
.review footer { display: flex; flex-direction: column; gap: 2px; }
.review-name { font-weight: 600; font-size: .94rem; }
.review-meta { font-size: .84rem; color: var(--accent); }
.review-date { font-size: .74rem; color: var(--ink-faint); margin-top: 4px; }

.stars { color: var(--gold); font-size: 1.05rem; letter-spacing: .12em; }
.stars .dim { color: var(--rule); }

.empty-note {
  color: var(--ink-faint); font-style: italic;
  background: var(--white); border: 1px dashed var(--rule);
  border-radius: 4px; padding: 34px; text-align: center;
}

/* ---------- star picker ---------- */
.rating-input { display: flex; align-items: center; gap: 4px; }
.rating-input .star {
  background: none; border: none; cursor: pointer; padding: 2px 3px;
  font-size: 1.7rem; line-height: 1; color: var(--rule); transition: color .12s;
}
.rating-input .star.on { color: var(--gold); }
.rating-label { margin-left: 12px; font-size: .82rem; color: var(--ink-faint); }

@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
  .review-wall { columns: 1; }
  .detail-table th { width: auto; white-space: normal; }
  .detail-table th, .detail-table td { padding: 13px 16px; }
  .detail-table tr { display: block; border-bottom: 1px solid var(--rule); }
  .detail-table th { display: block; border: none; padding-bottom: 2px; }
  .detail-table td { display: block; border: none; padding-top: 0; }
}

/* ---------- brand mark now holds the real logo ---------- */
.brand-mark { border: none; padding: 0; overflow: hidden; border-radius: 6px; background: transparent; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-footer .brand-mark,
.admin-bar .brand-mark { border: none; }

/* larger lockup for the About page */
.logo-lockup { display: block; max-width: 260px; margin: 0 auto 28px; }

/* =====================  INSTAGRAM FEED  ===================== */
.ig-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);   /* an Instagram grid is 3 wide */
}
.ig-grid.ig-empty { display: block; }

.ig-post {
  position: relative; display: block; aspect-ratio: 1;
  overflow: hidden; border-radius: 4px; border: 1px solid var(--rule);
  background: var(--paper-deep); text-decoration: none;
}
.ig-post img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.ig-post:hover img { transform: scale(1.05); }

.ig-caption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px;
  font-size: .78rem; line-height: 1.45; color: #fff;
  background: linear-gradient(to top, rgba(24,20,16,.88), rgba(24,20,16,0));
  opacity: 0; transition: opacity .25s ease;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ig-post:hover .ig-caption, .ig-post:focus-visible .ig-caption { opacity: 1; }

.ig-video {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  color: #fff; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.ig-follow {
  background: var(--white); border: 1px dashed var(--rule); border-radius: 4px;
  padding: 40px 32px; text-align: center; max-width: 620px; margin: 0 auto;
}
.ig-follow-handle {
  font-family: var(--serif); font-size: 1.7rem; color: var(--accent); margin: 0 0 10px;
}
.ig-follow p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 22px; }

@media (max-width: 760px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ig-caption { display: none; }
}

/* =====================  SERVICE CARDS  ===================== */
.service-card .tag { align-self: flex-start; }

.tier-list { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--rule); }
.tier {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 14px;
  padding: 11px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.tier-name  { font-size: .92rem; color: var(--ink); }
.tier-price {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600;
  color: var(--accent); white-space: nowrap;
}
.tier-note  { grid-column: 1 / -1; font-size: .78rem; color: var(--ink-faint); }
.tier-footnote { font-size: .8rem; color: var(--ink-faint); font-style: italic; margin: -8px 0 18px; }

.service-group { margin-bottom: clamp(48px, 6vw, 76px); }
.service-group:last-child { margin-bottom: 0; }
.service-group h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: 30ch; }

/* =====================  REWARDS  ===================== */
.reward-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.reward {
  display: flex; align-items: baseline; gap: 14px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 16px 20px;
}
.reward-credit {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--gold); white-space: nowrap;
}
.reward-action { font-size: .92rem; color: var(--ink-soft); }

/* =====================  COMING SOON  ===================== */
.soon-list { display: flex; flex-wrap: wrap; gap: 10px; }
.soon-chip {
  font-size: .84rem; color: var(--ink-faint);
  background: transparent; border: 1px dashed var(--rule);
  border-radius: 40px; padding: 8px 16px;
}

/* =====================================================================
   3D — books that look like objects, cards that respond to the cursor.
   All CSS transforms. No library, no JavaScript framework, no cost.
   Every effect is disabled under prefers-reduced-motion (see the very
   bottom of this file) and on touch screens, where hover means nothing.
   ===================================================================== */

/* ---------- the shared 3D stage ---------- */
.book-grid, .card-grid, .ig-grid, .hero-stack { perspective: 1600px; }

/* ---------- BOOK: a real cover, spine and page block ---------- */
.book-cover {
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.22,.68,0,1.0);
  will-change: transform;
}

/* the page block, peeking out on the right */
.book-cover::after {
  content: "";
  position: absolute; top: 2%; right: 0; height: 96%; width: 10px;
  background:
    repeating-linear-gradient(to right,
      #fdfaf3 0px, #fdfaf3 1px, #e6ddcb 1px, #e6ddcb 2px);
  transform: rotateY(90deg) translateZ(-5px) translateX(5px);
  transform-origin: right center;
  border-radius: 1px;
  opacity: 0;
  transition: opacity .4s ease;
}

/* the spine, on the left */
.book-cover::before {
  content: "";
  position: absolute; top: 0; left: 0; height: 100%; width: 14px;
  background: linear-gradient(to right, rgba(0,0,0,.42), rgba(0,0,0,.10));
  transform: rotateY(-90deg) translateZ(-7px) translateX(-7px);
  transform-origin: left center;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  /* Base turn, plus whatever the cursor adds through --tilt-x / --tilt-y
     (set by wireTilt() in main.js). Falls back to 0deg without JS. */
  .book:hover .book-cover {
    transform:
      rotateY(calc(-24deg + var(--tilt-y, 0deg)))
      rotateX(calc(3deg + var(--tilt-x, 0deg)))
      translateZ(26px) scale(1.02);
    box-shadow: -22px 26px 48px rgba(31,27,22,.30);
  }
  .book:hover .book-cover::after,
  .book:hover .book-cover::before { opacity: 1; }
}

/* the cover art itself lifts slightly off the block */
.book-cover img, .cover-fallback { transform: translateZ(1px); backface-visibility: hidden; }

/* a soft sheen that sweeps across as the book turns */
.book-cover .badge { transform: translateZ(14px); }

/* ---------- CARD: subtle tilt toward the cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  .card, .service-card {
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.22,.68,0,1.0), box-shadow .35s ease;
  }
  .card:hover, .service-card:hover {
    transform:
      translateY(-6px)
      rotateX(calc(2deg + var(--tilt-x, 0deg) * 0.45))
      rotateY(calc(var(--tilt-y, 0deg) * 0.45))
      scale(1.012);
    box-shadow: 0 18px 44px rgba(31,27,22,.16);
  }
  .card:hover .tier-price { transform: translateZ(20px); }
  .tier-price { transition: transform .35s ease; }
}

/* ---------- the featured package, raised above the rest ---------- */
.service-card.is-popular {
  border-color: var(--gold);
  box-shadow: 0 10px 34px rgba(176,134,64,.22);
  position: relative;
}
.service-card.is-popular::before {
  content: "Most chosen";
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #2b1f08;
  font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 40px; white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .service-card.is-popular:hover { transform: translateY(-10px) rotateX(2.5deg) scale(1.02); }
}

/* ---------- HERO: the three books float and drift ---------- */
.hero-stack { transform-style: preserve-3d; }
.hero-stack .spine {
  transform-style: preserve-3d;
  animation: drift 7s ease-in-out infinite;
}
.hero-stack .s1 { animation-delay: 0s;   }
.hero-stack .s2 { animation-delay: -2.3s; }
.hero-stack .s3 { animation-delay: -4.6s; }

@keyframes drift {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0)     rotateY(0deg); }
  50%      { transform: rotate(var(--rot, 0deg)) translateY(-14px) rotateY(9deg); }
}
.hero-stack .s1 { --rot: -7deg; }
.hero-stack .s2 { --rot:  2deg; }
.hero-stack .s3 { --rot:  8deg; }

@media (hover: hover) and (pointer: fine) {
  .hero-stack:hover .spine { animation-play-state: paused; }
  .hero-stack .spine { transition: transform .5s cubic-bezier(.22,.68,0,1.0); }
  .hero-stack:hover .s1 { transform: rotate(-13deg) translateX(-16px) translateY(-6px) rotateY(14deg); }
  .hero-stack:hover .s2 { transform: rotate(0deg)  translateY(-20px)  rotateY(-6px) scale(1.05); }
  .hero-stack:hover .s3 { transform: rotate(14deg) translateX(16px)  translateY(-6px) rotateY(-14deg); }
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px) rotateX(6deg);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.68,0,1.0);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons get a little depth ---------- */
.btn { transform-style: preserve-3d; }
.btn:active { transform: translateY(1px) scale(.985); }

/* ---------- the Instagram tiles tilt too ---------- */
@media (hover: hover) and (pointer: fine) {
  .ig-post { transition: transform .35s cubic-bezier(.22,.68,0,1.0), box-shadow .35s ease; }
  .ig-post:hover {
    transform:
      translateY(-5px)
      rotateX(calc(2deg + var(--tilt-x, 0deg) * 0.5))
      rotateY(calc(var(--tilt-y, 0deg) * 0.5))
      scale(1.03);
    box-shadow: 0 16px 34px rgba(31,27,22,.20);
    z-index: 3;
  }
}

/* ---------- anyone who asked for less motion gets none of it ---------- */
@media (prefers-reduced-motion: reduce) {
  .book-cover, .card, .service-card, .ig-post, .hero-stack .spine, .reveal {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .reveal { opacity: 1 !important; }
  .book:hover .book-cover::after, .book:hover .book-cover::before { opacity: 0; }
}

/* =====================  APPLY PAGE  ===================== */
.apply-grid {
  display: grid; grid-template-columns: 340px 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.apply-aside { position: sticky; top: 96px; }
.apply-summary {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 4px; padding: 26px 26px 22px; box-shadow: var(--shadow);
}
.apply-summary h3 { margin-top: 0; font-size: 1.15rem; }
.apply-total {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--rule);
}
.apply-total .k {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
}
.apply-total .v {
  font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--accent);
}
.apply-total-note { font-size: .82rem; color: var(--ink-faint); margin: 8px 0 0; }

/* =====================  PAYMENT  ===================== */
.pay-card { margin-top: 26px; border-color: var(--gold); }
.pay-amount {
  display: flex; align-items: baseline; justify-content: space-between;
  background: var(--paper-deep); border-radius: 4px; padding: 18px 22px; margin: 18px 0 24px;
}
.pay-amount .k { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.pay-amount .v { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--accent); }

.pay-upi { background: #0f8a4f; border-color: #0f8a4f; font-size: 1rem; padding: 15px 24px; }
.pay-upi:hover { background: #0b7440; border-color: #0b7440; }

.pay-manual { text-align: center; padding: 20px; background: var(--paper); border-radius: 4px; }
.pay-manual .k { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px; }
.upi-id { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 8px; flex-wrap: wrap; }
.upi-id code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: 7px 14px;
}
.upi-qr { display: block; max-width: 230px; margin: 24px auto 0; border-radius: 6px; border: 1px solid var(--rule); }

.rec-amount {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--accent);
}

@media (max-width: 900px) {
  .apply-grid { grid-template-columns: 1fr; }
  .apply-aside { position: static; }
}
