/* ==========================================================================
   Bookstore styles — edit the variables below to change the colour scheme.
   ========================================================================== */

/* Fonts (stored in /fonts, SIL Open Font License — see fonts/OFL-LICENSE.txt):
   Cormorant Garamond for headings, Lora for text. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("/fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-display: swap; font-weight: 400 700; src: url("/fonts/lora-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-display: swap; font-weight: 400 700; src: url("/fonts/lora-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  /* Hindu & Buddhist palette: parchment, kumkum maroon, saffron */
  --paper: #fbf6ec;        /* page background */
  --surface: #fffdf8;      /* cards, forms */
  --ink: #2e211c;          /* main text */
  --muted: #6a5c52;        /* secondary text */
  --line: #ecdcc4;         /* borders */
  --brand: #7a2630;        /* primary colour (buttons, links) — maroon */
  --brand-dark: #5c1a22;
  --brand-tint: #f6e6e2;
  --accent: #a4530f;       /* prices, eyebrows (saffron, readable on paper) */
  --gold: #e0a04a;         /* decorative saffron-gold (ornaments, on dark) */
  --danger: #a33a3a;
  --warn-bg: #fbf1dc;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(31, 42, 48, .06), 0 4px 14px rgba(31, 42, 48, .06);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;   /* headings */
  --sans: "Lora", Georgia, "Iowan Old Style", "Palatino Linotype", serif;                            /* body text */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 1.03rem/1.7 var(--sans);
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 1.45rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 1.3rem + .9vw, 1.95rem); }
p { margin: 0 0 1em; }
code { background: var(--brand-tint); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid #e0a04a; outline-offset: 2px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.narrow { max-width: 440px; }
.narrow-wide { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: .5rem; }
.js .js-hide-if-script { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.15rem; border-radius: 8px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  min-height: 44px;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #e7c9c9; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .75rem; font-size: .9rem; min-height: 36px; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.inline-form { display: inline; margin: 0; }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 253, 248, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--brand); }
.brand-name { font: 700 clamp(1.4rem, 1.1rem + 1vw, 1.85rem)/1.1 var(--serif); letter-spacing: .01em; color: var(--ink); }
.brand:hover .brand-name { color: var(--brand); }
@media (max-width: 400px) { .brand-name { font-size: 1.3rem; } }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a, .site-nav .link-button { color: var(--ink); text-decoration: none; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .link-button:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; content: ""; transition: transform .2s; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; box-shadow: var(--shadow); }
  .js .site-nav.open { display: flex; }
  .site-nav a, .site-nav .link-button { padding: .75rem 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: .75rem; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .5rem; }
}

/* ---------- Header search ---------- */
.header-search { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding-left: .9rem; }
.header-search:focus-within { border-color: var(--brand); }
.header-search input[type=search] { border: 0; background: transparent; width: 11rem; min-height: 40px; padding: .4rem 0; font-size: .95rem; }
.header-search input[type=search]:focus { outline: none; }
.header-search button { display: grid; place-items: center; width: 44px; height: 40px; border: 0; background: none; color: var(--brand); cursor: pointer; border-radius: 999px; }
.header-search button:hover { color: var(--brand-dark); }
@media (max-width: 720px) {
  .header-search { margin-top: .75rem; }
  .header-search input[type=search] { width: 100%; flex: 1; }
}

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: clamp(2rem, 5vw, 3.5rem); }
.hero-text { max-width: 620px; margin-inline: auto; text-align: center; }
.hero-text h1 { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 3.9rem); font-weight: 600; }
.hero-ornament { display: block; margin: 0 auto .5rem; color: var(--accent); font: 400 3.5rem/1 "Nirmala UI", "Noto Sans Devanagari", Mangal, var(--serif); }
.hero .search-bar { text-align: left; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); }
.search-bar { display: flex; gap: .5rem; margin-top: 1.5rem; background: var(--surface); padding: .4rem; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-bar input { flex: 1; border: 0; background: transparent; padding: .6rem .75rem; font-size: 1.05rem; min-width: 0; }
.search-bar input:focus-visible { outline: none; }
.search-bar:focus-within { border-color: var(--brand); }

/* Small gold ornament before section headings */
.section h2::before { content: "\2638"; color: var(--gold); font-size: .7em; margin-right: .55rem; vertical-align: .15em; }

/* ---------- Sections ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h1, .section-head h2 { margin: 0; }
.more-link { font-weight: 600; text-decoration: none; display: inline-block; padding: .65rem 0; }
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { margin-bottom: .15rem; }

.category-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.category-list a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.category-list a:hover { border-color: var(--brand); color: var(--brand); }
.count { background: var(--brand-tint); color: var(--brand-dark); border-radius: 999px; padding: 0 .5rem; font-size: .8rem; }

/* About: centered intro, then the three steps side by side */
.about { border-top: 1px solid var(--line); text-align: center; }
.about-text { max-width: 640px; margin: 0 auto 2rem; }
.about-text p { color: var(--muted); margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.steps li { counter-increment: s; display: flex; flex-direction: column; align-items: center; gap: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.steps li::before { content: counter(s); width: 2.5rem; height: 2.5rem; margin-bottom: .4rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--accent); font: 700 1.05rem/1 var(--serif); display: grid; place-items: center; }
.steps strong { font: 700 1.3rem/1.3 var(--serif); }
.steps span { color: var(--muted); font-size: .95rem; max-width: 28ch; }

/* ---------- Book grid & cards ---------- */
.book-grid { display: grid; gap: clamp(.9rem, 2vw, 1.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.results .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .results .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.book-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-cover { position: relative; aspect-ratio: 2 / 3; background: #efe8dc; }
.card-cover .cover-img, .card-cover .cover-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: .5rem; left: .5rem; }
.is-unavailable .cover-img, .is-unavailable .cover-placeholder { filter: grayscale(.8); opacity: .7; }
.card-body { padding: .75rem .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.card-title { font-size: 1.22rem; font-weight: 700; line-height: 1.2; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-author { margin: 0; color: var(--muted); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.price { color: var(--accent); font-weight: 700; }
.price-lg { font-size: 1.75rem; }

.cover-placeholder {
  display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: 1.25rem; text-align: center;
  background: var(--brand-dark); color: #f4efe6;
  box-shadow: inset 0 0 0 8px var(--brand-dark), inset 0 0 0 9px var(--gold);
}
.cover-placeholder::before { content: "\2740"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.ph-title { font: 700 1.2rem/1.2 var(--serif); }
.ph-author { font-size: .8rem; opacity: .85; }
/* Keep long titles/authors inside the placeholder cover */
.cover-placeholder { overflow: hidden; }
.ph-title, .ph-author { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ph-title { -webkit-line-clamp: 4; line-clamp: 4; }
.ph-author { -webkit-line-clamp: 2; line-clamp: 2; }
@media (max-width: 600px) {
  .card-cover .cover-placeholder { padding: .9rem .7rem; gap: .35rem; }
  .card-cover .ph-title { font-size: 1.05rem; }
  .card-cover .ph-author { font-size: .72rem; }
}

.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge-available { background: var(--brand-tint); color: var(--brand-dark); }
.badge-sold { background: #f3dede; color: #7c2929; }
.badge-unavailable { background: #eceae6; color: #4f4a42; }
.badge-featured { background: #f5ead2; color: #6e4f14; }

/* ---------- Listing + filters ---------- */
.listing { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .listing { grid-template-columns: 260px 1fr; align-items: start; } }
.filters-toggle { width: 100%; display: none; }
.filter-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .9rem; }
@media (min-width: 900px) { .filter-form { position: sticky; top: 88px; } }
@media (max-width: 899px) {
  .js .filters-toggle { display: flex; }
  .js .filter-form { display: none; margin-top: .75rem; }
  .js .filter-form.open { display: grid; }
}
.price-range { display: flex; align-items: center; gap: .5rem; }
.price-range input { min-width: 0; }
.filter-actions { display: flex; gap: .5rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=password], select, textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid #cfc6b8; border-radius: 8px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid rgba(122, 38, 48, .2); outline-offset: 0; }
input[readonly] { background: #f5f1ea; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.req { color: var(--danger); }
.field-error, .form-error { color: var(--danger); font-size: .9rem; margin: 0; font-weight: 500; }
.form-error { margin: 1rem 0; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.checkbox-field { justify-content: flex-end; }
.checkbox-field label, .checkbox-inline { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.checkbox-inline { margin-top: .5rem; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.form-actions { display: flex; gap: .75rem; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; }

.notice { background: var(--brand-tint); border-radius: 8px; padding: .8rem 1rem; }
.notice-success { background: var(--brand-tint); color: var(--brand-dark); }
.notice-error { background: #f8e3e3; color: #7c2929; }
.notice-warn { background: var(--warn-bg); color: #6a4a10; }

/* ---------- Book details ---------- */
.breadcrumb { font-size: .95rem; margin-bottom: 1.25rem; color: var(--muted); }
.book-detail { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 800px) { .book-detail { grid-template-columns: minmax(240px, 360px) 1fr; align-items: start; } }
.detail-cover { max-width: 360px; width: 100%; margin-inline: auto; aspect-ratio: 2 / 3; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(31, 42, 48, .18); background: #efe8dc; }
.detail-cover .cover-img, .detail-cover .cover-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-cover .ph-title { font-size: 1.5rem; }
.detail-author { font-size: 1.15rem; color: var(--muted); margin-top: -.25rem; }
.detail-price-row { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 1.25rem; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 0 0 1.5rem; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.description { max-width: 65ch; margin-bottom: 1.5rem; }
.order-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
#order { margin-top: 2.5rem; scroll-margin-top: 90px; }
.mail-fallback { margin-top: 1rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2rem; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.contact-form { display: grid; gap: 1rem; }
.contact-form h2 { margin-bottom: 0; }
.contact-form .muted { margin: 0; }
.contact-form .btn { justify-self: start; }

.error-page { text-align: center; max-width: 560px; }

/* ---------- Admin ---------- */
.admin-search { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-search input { flex: 1 1 220px; width: auto; }
.admin-search select { width: auto; }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.admin-row { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.admin-thumb { width: 64px; aspect-ratio: 2 / 3; position: relative; border-radius: 4px; overflow: hidden; background: #efe8dc; }
.admin-thumb .cover-img, .admin-thumb .cover-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.admin-thumb .cover-placeholder { padding: .2rem; }
.admin-thumb .ph-title { font-size: .5rem; }
.admin-thumb .ph-author { display: none; }
.admin-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.admin-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.admin-title:hover { color: var(--brand); text-decoration: underline; }
.admin-actions { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.status-form { display: flex; gap: .4rem; margin: 0; }
.status-form select { width: auto; min-height: 36px; padding: .35rem .5rem; font-size: .9rem; }
@media (min-width: 760px) {
  .admin-row { grid-template-columns: 64px 1fr auto; }
  .admin-actions { grid-column: auto; justify-content: flex-end; }
}
.cover-upload { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.cover-preview { width: 110px; aspect-ratio: 2 / 3; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; overflow: hidden; background: #f5f1ea; text-align: center; font-size: .8rem; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview img[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #f3e3dc; margin-top: 2rem; border-top: 3px solid var(--gold); }
.site-footer a { color: #fff; }
.site-footer .muted { color: #d9bfb5; }
.footer-inner { display: grid; gap: 1.5rem; padding-block: 2rem 1.25rem; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-inner p { margin: .25rem 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1rem; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.order-form > .btn { margin-top: 1.25rem; }
/* Hidden trap field for spam bots; real visitors never see it. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-sent { text-align: center; padding: 1rem 0; }
.form-sent p { margin: 0 auto; max-width: 52ch; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.order-form .form-error:not([hidden]) + .btn { margin-top: 0; }

.footer-bottom { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.built-by { margin-left: auto; }
.built-by span { color: var(--gold); }
@media (max-width: 600px) { .built-by { margin-left: 0; width: 100%; } }
