/* ==========================================================
   Philip Stanworth — Author Website
   Clean white literary theme with botanical accents
   ========================================================== */

:root {
  --white: #ffffff;
  --paper: #fbfaf7;
  --ink: #1f2421;
  --ink-soft: #4a524d;
  --muted: #7b847e;
  --line: #e8e5de;
  --sage: #5f7d63;
  --sage-dark: #435a46;
  --sage-tint: #eef3ee;
  --rose: #c76b6b;
  --rose-tint: #fbefed;
  --gold: #c9a24a;
  --amazon: #ff9900;
  --goodreads: #553b08;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(31, 36, 33, .06);
  --shadow: 0 18px 45px rgba(31, 36, 33, .10);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); letter-spacing: -.5px; }
h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }

.container { width: min(var(--max), 92%); margin-inline: auto; }
.section { padding: 100px 0; }
.section.tight { padding: 70px 0; }
.bg-paper { background: var(--paper); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sage); font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sage); }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--sage); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.center .lead { margin-inline: auto; }
.script { font-family: var(--serif); font-style: italic; color: var(--rose); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: all .25s ease;
  font-family: var(--sans); white-space: nowrap;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-amazon { background: var(--amazon); color: #111; }
.btn-amazon:hover { background: #e68a00; color: #111; transform: translateY(-2px); }
.btn-goodreads { background: #f4f1ea; color: var(--goodreads); border-color: #e2dccd; }
.btn-goodreads:hover { background: var(--goodreads); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--sage-tint); position: relative;
  background: var(--sage); display: grid; place-items: center;
}
.brand-avatar::before { content: "PS"; font-family: var(--serif); color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--rose); transition: width .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--sage-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amazon); color: #111; font-size: 1.05rem;
  transition: transform .2s, box-shadow .2s;
}
.cart-btn:hover { color: #111; transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 20px rgba(255,153,0,.35); }
.cart-btn .tip {
  position: absolute; top: 54px; right: 0; background: var(--ink); color: #fff; font-size: .72rem;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.cart-btn:hover .tip { opacity: 1; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--ink); cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 110px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -140px; width: 620px; height: 620px;
  border-radius: 50%; background: radial-gradient(circle, var(--sage-tint) 0%, rgba(238,243,238,0) 70%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.hero h1 span { display: block; }
.hero .lead { margin: 18px 0 34px; }
.hero-meta { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta div { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--sage); }

.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px 18px 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%);
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.portrait::before {
  content: "Philip Stanworth"; font-family: var(--serif); font-style: italic; color: rgba(255,255,255,.85);
  font-size: 2rem; text-align: center; padding: 20px;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-wrap { position: relative; }
.portrait-wrap::after {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--rose);
  border-radius: 220px 220px 18px 18px; z-index: -1;
}
.float-badge {
  position: absolute; left: -34px; bottom: 60px; background: #fff; border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; animation: bob 5s ease-in-out infinite;
}
.float-badge i { width: 42px; height: 42px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; }
.float-badge strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1; }
.float-badge span { font-size: .78rem; color: var(--muted); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.5rem; color: var(--ink); line-height: 1.1; }
.stat span { font-size: .86rem; color: var(--muted); }

/* ---------- 3D Book Mockup (animated) ---------- */
.book-stage { perspective: 1400px; display: grid; place-items: center; padding: 30px 0; }
.book3d {
  --w: 230px; --h: 340px; --d: 34px;
  width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d;
  animation: bookSpin 9s ease-in-out infinite;
}
.book3d.small { --w: 150px; --h: 222px; --d: 22px; animation-duration: 10s; }
.book3d.paused { animation-play-state: paused; }
.book-card:hover .book3d, .featured-book:hover .book3d { animation-play-state: paused; }
@keyframes bookSpin {
  0%   { transform: rotateY(-32deg) rotateX(4deg); }
  45%  { transform: rotateY(18deg) rotateX(2deg); }
  55%  { transform: rotateY(18deg) rotateX(2deg); }
  100% { transform: rotateY(-32deg) rotateX(4deg); }
}
.book3d > div { position: absolute; }
.book3d .front, .book3d .back { width: var(--w); height: var(--h); border-radius: 2px 6px 6px 2px; overflow: hidden; }
.book3d .front { transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 4px 0 10px rgba(0,0,0,.15); }
.book3d .back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--c2, #333); }
.book3d .spine {
  width: var(--d); height: var(--h); left: calc(50% - var(--d) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: var(--c2, #333);
  display: grid; place-items: center;
}
.book3d .spine span { writing-mode: vertical-rl; transform: rotate(180deg); color: rgba(255,255,255,.85); font-family: var(--serif); font-size: .72rem; letter-spacing: 1px; white-space: nowrap; }
.book3d .pages {
  width: calc(var(--d) - 4px); height: calc(var(--h) - 8px); top: 4px; left: calc(50% - (var(--d) - 4px) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #fff 0 2px, #e9e4d8 2px 3px);
}
.book-shadow {
  width: 70%; height: 22px; margin-top: 26px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.22), transparent 70%);
  animation: shadowPulse 9s ease-in-out infinite;
}
@keyframes shadowPulse { 0%,100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.85); opacity: .6; } }

/* Designed cover (shows until a real cover image is added) */
.cover {
  position: relative; width: 100%; height: 100%; padding: 22px 18px; display: flex; flex-direction: column;
  justify-content: space-between; text-align: center; color: #fff;
  background: linear-gradient(165deg, var(--c1, #5f7d63), var(--c2, #2b3a2d));
}
.cover::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; pointer-events: none;
}
.cover .c-top { font-size: .62rem; letter-spacing: 2.5px; text-transform: uppercase; opacity: .85; font-weight: 700; }
.cover .c-title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; font-weight: 700; }
.cover .c-icon { font-size: 2.6rem; opacity: .9; color: var(--accent, #f3d27a); }
.cover .c-author { font-size: .68rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; }
.small .cover { padding: 16px 12px; }
.small .cover .c-title { font-size: 1.12rem; }
.small .cover .c-icon { font-size: 1.7rem; }
.small .cover .c-top, .small .cover .c-author { font-size: .5rem; letter-spacing: 1.5px; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* Colour themes per book */
.t-mansion1 { --c1: #2f4a6b; --c2: #16243a; --accent: #f3d27a; }
.t-mansion2 { --c1: #5a3e74; --c2: #2a1b3a; --accent: #f1c27d; }
.t-mansion4 { --c1: #7a3b3b; --c2: #3a1818; --accent: #f3d27a; }
.t-florist  { --c1: #c76b6b; --c2: #7d3a44; --accent: #ffe1dc; }
.t-flower   { --c1: #6f8f63; --c2: #34482f; --accent: #f7e2a6; }
.t-picture  { --c1: #e7a54b; --c2: #b35f2a; --accent: #fff4d6; }

/* ---------- Featured book ---------- */
.featured-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.featured-book { background: linear-gradient(180deg, var(--paper), #fff); border-radius: 24px; padding: 40px 20px; border: 1px solid var(--line); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--rose-tint); color: var(--rose); margin: 0 6px 8px 0;
}
.tag.green { background: var(--sage-tint); color: var(--sage-dark); }
.check-list { list-style: none; padding: 0; margin: 22px 0 30px; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--sage-tint); color: var(--sage); font-size: .65rem;
  display: grid; place-items: center;
}

/* ---------- Book grid ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.book-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s; position: relative;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-card .book-stage { background: var(--paper); padding: 40px 0 10px; }
.book-card .book-shadow { width: 55%; }
.book-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.book-body h3 { margin-bottom: 6px; }
.book-body .meta { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.book-body p { font-size: .95rem; flex: 1; }
.book-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.book-actions .btn { flex: 1; padding: 11px 12px; font-size: .82rem; }
.card-cart {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  background: var(--amazon); color: #111; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.12);
  transition: transform .2s;
}
.card-cart:hover { color: #111; transform: scale(1.1) rotate(-8deg); }

/* ---------- Store banner ---------- */
.store-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  background: var(--ink); color: #d8ddd9; border-radius: 24px; padding: 46px 50px; margin-top: 60px;
}
.store-banner h3 { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.store-banner p { margin: 0; }
.store-logos { display: flex; gap: 14px; flex-wrap: wrap; }
.store-logo {
  display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 14px 22px;
  border-radius: 14px; font-weight: 800; transition: transform .2s;
}
.store-logo:hover { transform: translateY(-3px); color: var(--ink); }
.store-logo i { font-size: 1.7rem; }
.store-logo .fa-amazon { color: var(--amazon); }
.store-logo .fa-goodreads-g { color: var(--goodreads); }
.store-logo small { display: block; font-size: .68rem; color: var(--muted); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1; }

/* ---------- About teaser / split ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.photo-card {
  position: relative; aspect-ratio: 1 / 1.08; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--rose), #7d3a44); display: grid; place-items: center;
}
.photo-card::before { content: "PS"; font-family: var(--serif); color: rgba(255,255,255,.8); font-size: 5rem; font-weight: 700; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.signature { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--sage-dark); margin-top: 10px; }

/* ---------- Mission band ---------- */
.mission { background: var(--sage-tint); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.pillar { background: #fff; border-radius: 18px; padding: 34px 30px; border: 1px solid #dfe8df; transition: transform .3s; }
.pillar:hover { transform: translateY(-5px); }
.pillar .ico {
  width: 58px; height: 58px; border-radius: 16px; background: var(--sage); color: #fff; display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.pillar:nth-child(2) .ico { background: var(--rose); }
.pillar:nth-child(3) .ico { background: var(--gold); }
.pillar p { font-size: .95rem; margin: 0; }

/* ---------- Social ---------- */
.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-row a {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center;
  color: var(--ink); font-size: 1.05rem; transition: all .25s;
}
.social-row a:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.social-row a.tt:hover { background: #111; }
.social-row a.ig:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.social-row a.fb:hover { background: #1877f2; }
.social-row a.yt:hover { background: #ff0000; }
.social-row a.lt:hover { background: #43e660; color: #111; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-box {
  border-radius: 28px; padding: 70px 40px; background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.cta-box::before, .cta-box::after {
  content: "\f4d8"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; font-size: 9rem; color: var(--sage-tint);
}
.cta-box::before { left: -20px; bottom: -40px; transform: rotate(20deg); }
.cta-box::after { right: -10px; top: -40px; transform: rotate(-160deg); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box .btn-row, .cta-box .social-row { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 80px 0 60px; text-align: center; background: linear-gradient(180deg, var(--paper), #fff); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-inline: auto; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.crumbs a { color: var(--muted); }

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-portrait { position: sticky; top: 110px; }
.about-portrait .portrait { aspect-ratio: 3 / 4; border-radius: 24px; }
.about-portrait .portrait-wrap::after { border-radius: 24px; }
.portrait-caption { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink); }
.chip i { color: var(--sage); }

.chapter { margin-bottom: 60px; }
.chapter-title { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.chapter-title .num { font-family: var(--serif); font-size: 3.2rem; color: var(--rose); line-height: 1; font-style: italic; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--sage), var(--rose)); }
.t-item { position: relative; margin-bottom: 34px; }
.t-item::before {
  content: ""; position: absolute; left: -31px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sage);
}
.t-item h3 { font-size: 1.4rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.t-item h3 i { color: var(--sage); font-size: 1rem; }
.t-item p { margin: 0; }

blockquote.pull {
  margin: 0; padding: 40px 44px; border-radius: 22px; background: var(--ink); color: #fff;
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; font-style: italic; position: relative;
}
blockquote.pull::before { content: "\201C"; position: absolute; top: -20px; left: 30px; font-size: 7rem; color: var(--rose); line-height: 1; }
blockquote.pull cite { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; margin-top: 18px; color: #b9c2bc; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: start; }
.social-cards { display: grid; gap: 14px; margin-top: 28px; }
.social-card {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); transition: all .25s;
}
.social-card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); color: var(--ink); border-color: transparent; }
.social-card .s-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.social-card strong { display: block; font-size: 1rem; }
.social-card span { font-size: .86rem; color: var(--muted); }
.social-card .arrow { margin-left: auto; color: var(--muted); transition: transform .25s; }
.social-card:hover .arrow { transform: translateX(4px); color: var(--rose); }
.bg-tt { background: #111; }
.bg-ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.bg-fb { background: #1877f2; }
.bg-yt { background: #ff0000; }
.bg-lt { background: #43e660; color: #111 !important; }
.bg-mail { background: var(--sage); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 44px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .88rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: .95rem;
  color: var(--ink); background: var(--paper); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); background: #fff; box-shadow: 0 0 0 4px var(--sage-tint); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.form-status.ok { display: block; background: var(--sage-tint); color: var(--sage-dark); }
.form-status.err { display: block; background: var(--rose-tint); color: #9b3d3d; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb6b0; padding: 70px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.25rem; margin-bottom: 18px; }
.site-footer a { color: #aeb6b0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .brand-name { color: #fff; }
.site-footer .social-row a { border-color: #3a423d; color: #d8ddd9; }
.footer-bottom { border-top: 1px solid #333b36; margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Floating Amazon cart ---------- */
.float-cart {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 10px;
  background: var(--amazon); color: #111; padding: 14px 20px; border-radius: 999px; font-weight: 800; font-size: .9rem;
  box-shadow: 0 12px 30px rgba(255,153,0,.35); transition: transform .2s;
}
.float-cart:hover { color: #111; transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .book3d, .book-shadow, .float-badge { animation: none !important; }
  .book3d { transform: rotateY(-25deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero-grid, .featured-grid, .split, .about-intro, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-grid .portrait-wrap { max-width: 400px; margin: 0 auto; order: -1; }
  .float-badge { left: -10px; }
  .about-portrait { position: static; max-width: 440px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr; }
  .store-banner { grid-template-columns: 1fr; padding: 36px 30px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 82px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; text-align: center; border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 18px; }
  .nav-links a::after { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .books-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
  .float-cart span { display: none; }
  .float-cart { padding: 16px; }
  .book3d { --w: 190px; --h: 280px; --d: 28px; }
  .cta-box { padding: 50px 22px; }
}

/* Author photo framing (keeps face + book in view) */
.portrait img, .photo-card img { object-position: 30% center; }
.float-badge { left: auto; right: -34px; bottom: 40px; }
@media (max-width: 900px) { .float-badge { right: -10px; } }
