/* ============================================================
   Static-pages styles — About, Excerpt, Buy, Contact
   ============================================================ */

/* ---------- About page ---------- */
.about-hero {
  padding: clamp(80px, 11vw, 140px) 0 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.about-hero-grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: clamp(40px, 6vw, 80px); align-items: end;
  padding-bottom: clamp(60px, 8vw, 100px);
}
@media (max-width: 880px) {
  .about-hero-grid { grid-template-columns: 1fr; }
}
.about-hero .eyebrow { margin-bottom: 28px; }
.about-hero h1 { margin-bottom: 28px; max-width: 16ch; }
.about-portrait {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  position: relative; overflow: hidden;
  border: 1px solid var(--ink-2);
}
.about-portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.about-portrait::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 80% 20%, color-mix(in srgb, var(--gold) 25%, transparent), transparent 60%),
    radial-gradient(60% 50% at 20% 80%, color-mix(in srgb, var(--sage) 25%, transparent), transparent 60%);
}
.about-portrait:has(img)::before { display: none; }
.about-portrait .initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 180px; color: var(--paper);
  z-index: 1;
}
.about-portrait .placeholder {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
}

.about-body { padding: clamp(80px, 10vw, 130px) 0; }
.about-body .wrap-narrow { font-size: 18px; line-height: 1.75; color: var(--text); }
.about-body p { margin: 0 0 22px; max-width: 64ch; }
.about-body p:first-of-type::first-letter {
  font-family: var(--serif); float: left;
  font-size: 5.6em; line-height: 0.85; padding: .12em .08em 0 0; color: var(--ink);
}
.about-body h2 { margin: 56px 0 28px; font-size: clamp(32px, 3vw, 44px); }
.about-body em { font-family: var(--italic); font-style: italic; color: var(--ink); }

.about-pull {
  margin: 56px 0;
  padding: 32px 40px;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  color: var(--ink);
}

.about-credentials {
  margin-top: 64px;
  padding: 32px 40px;
  background: var(--ink);
  color: var(--paper);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 540px) { .about-credentials { padding: 24px 22px; } }
@media (max-width: 720px) { .about-credentials { grid-template-columns: 1fr; gap: 20px; } }
.about-credentials .eyebrow { color: var(--gold); margin-bottom: 6px; }
.about-credentials strong {
  font-family: var(--serif); font-weight: 400;
  font-size: 19px; line-height: 1.3;
  color: var(--paper);
  display: block;
}

/* ---------- Excerpt page ---------- */
.excerpt-hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 11vw, 130px) 0 clamp(60px, 8vw, 100px);
  position: relative; overflow: hidden;
}
.excerpt-hero h1 { color: var(--paper); margin-bottom: 24px; }
.excerpt-hero .eyebrow { color: var(--gold); margin-bottom: 28px; }
.excerpt-hero .lede { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.excerpt-meta {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  display: flex; gap: 40px; flex-wrap: wrap;
  font-size: 13px; letter-spacing: .04em;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}
.excerpt-meta strong { color: var(--paper); font-weight: 500; }

.excerpt-body {
  padding: clamp(80px, 10vw, 130px) 0;
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--text);
}
.excerpt-body .wrap-narrow > * + * { margin-top: 22px; }
.excerpt-body h2 {
  font-size: clamp(28px, 2.4vw, 36px);
  margin: 56px 0 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.excerpt-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.excerpt-body em { font-family: var(--italic); font-style: italic; color: var(--ink); }
.excerpt-body p:first-of-type::first-letter {
  font-family: var(--serif); float: left;
  font-size: 5.6em; line-height: 0.85; padding: .12em .12em 0 0; color: var(--ink);
}
.excerpt-end {
  margin-top: 64px; padding: clamp(28px, 4vw, 40px);
  background: var(--paper-warm);
  border-left: 3px solid var(--gold);
  font-family: var(--italic); font-style: italic;
  font-size: clamp(20px, 1.8vw, 24px);
  color: var(--ink);
  display: flex; flex-direction: column; gap: 20px;
  align-items: flex-start;
}
.excerpt-end .btn { font-style: normal; font-family: var(--sans); }

/* Reading progress (top bar) */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--gold); z-index: 60;
  transition: width .1s linear;
}

/* ---------- Buy page ---------- */
.buy-hero { background: var(--paper-2); padding: clamp(80px, 11vw, 130px) 0 clamp(60px, 8vw, 100px); }
.buy-hero-grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
@media (max-width: 880px) { .buy-hero-grid { grid-template-columns: 1fr; } }
.buy-cover {
  width: 100%; aspect-ratio: 1892/2484;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow:
    0 30px 60px -20px rgba(13,79,63,.35),
    0 14px 30px -10px rgba(13,79,63,.18);
  transform: rotate(-1deg);
  position: relative;
}
.buy-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.buy-cover::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.18), transparent);
}

.buy-meta {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px;
  padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  max-width: 520px;
}
.buy-meta dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mid); }
.buy-meta dd { margin: 4px 0 0; font-family: var(--serif); font-size: 18px; color: var(--ink); }

.retailers {
  padding: clamp(80px, 10vw, 130px) 0;
}
.retailer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 640px) { .retailer-grid { grid-template-columns: 1fr; } }
.retailer {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 16px 24px;
  padding: 28px 16px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.retailer:nth-child(even) { border-right: 0; }
@media (max-width: 640px) { .retailer { border-right: 0; } }
.retailer-name {
  font-family: var(--serif); font-size: 22px; color: var(--ink);
}
.retailer-where {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mid); margin-top: 4px;
}
.retailer-arrow {
  font-size: 18px; color: var(--ink);
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center;
  transition: all .2s;
}
.retailer:hover { background: var(--paper-2); }
.retailer:hover .retailer-arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translate(2px, -2px); }

.bulk-strip {
  background: var(--ink); color: var(--paper);
  padding: clamp(60px, 8vw, 100px) 0;
}
.bulk-strip h2 { color: var(--paper); margin-bottom: 16px; }
.bulk-strip .lede { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.bulk-strip .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 50%, transparent); }
.bulk-strip .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- Contact page ---------- */
.contact-hero { padding: clamp(80px, 11vw, 130px) 0 clamp(40px, 6vw, 70px); }
.contact-hero h1 { margin-bottom: 20px; max-width: 18ch; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cell {
  padding: 40px 36px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
@media (max-width: 520px) { .contact-cell { padding: 32px 24px; min-height: 0; } }
.contact-cell:last-child { border-right: 0; }
@media (max-width: 820px) { .contact-cell { border-right: 0; border-bottom: 1px solid var(--rule); } }
@media (max-width: 820px) { .contact-cell:last-child { border-bottom: 0; } }
.contact-cell .eyebrow { color: var(--gold); }
.contact-cell h3 { font-size: clamp(24px, 2.2vw, 32px); margin: 0; }
.contact-cell p { margin: 0; color: var(--text-mid); }
.contact-cell .btn { margin-top: auto; align-self: flex-start; }

.contact-form-section {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
}
.contact-form-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
@media (max-width: 880px) { .contact-form-grid { grid-template-columns: 1fr; } }
.contact-form {
  display: grid; gap: 20px;
}
.contact-form label {
  display: grid; gap: 6px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mid);
}
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--text);
  border-radius: 2px;
  text-transform: none; letter-spacing: 0;
  width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { justify-self: start; margin-top: 8px; }
.contact-form-note { font-size: 13px; color: var(--text-mid); }

/* ============================================================
   Reveal scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
