/* ============================================================
   peteragro.com — a publisher's site
   Palette taken from the books themselves.
   ============================================================ */

:root {
  --navy:       #1F3A5F;
  --navy-deep:  #16293F;
  --gold:       #C9A227;
  --gold-soft:  #B0894A;
  --sage:       #3E5548;
  --ivory:      #F7F3EA;
  --paper:      #FCFAF5;
  --ink:        #1B1D1C;
  --ink-soft:   #4A4F4C;
  --rule:       #D9D2C2;

  --display: "Spectral", Georgia, "Times New Roman", serif;
  --label:   "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

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

.wrap { width: min(72rem, 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { max-width: var(--measure); }

/* ---------- utility type ---------- */
.eyebrow {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0 0 1rem;
}
.eyebrow-light { color: var(--gold); }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.masthead-in {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 1rem 0;
}
.wordmark {
  font-family: var(--label);
  text-transform: uppercase; letter-spacing: .28em;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy);
  white-space: nowrap;
}
.nav { display: flex; gap: 1.5rem; }
.nav a + a { margin-left: 0; }
@supports not (gap: 1rem) { .nav a + a { margin-left: 1.5rem; } }
.nav a {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .16em;
  font-size: .8125rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.hero h1 { max-width: 18ch; }
.hero .lede { max-width: 46ch; }

/* ---------- SIGNATURE: the spine shelf ---------- */
.shelf-frame { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.shelf {
  display: flex; align-items: flex-end; gap: 5px;
  padding: 1.75rem 1.25rem .5rem;
  overflow-x: auto; scrollbar-width: thin;
  border-bottom: 3px solid var(--navy-deep);
}
.spine {
  flex: 0 0 auto;
  width: 46px; height: 250px;
  background: var(--navy);
  border: none; border-radius: 1px 1px 0 0;
  padding: 12px 0 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
  box-shadow: 1px 0 0 rgba(0,0,0,.25) inset, -1px 0 3px rgba(0,0,0,.12);
}
.spine::before, .spine::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 1px; background: var(--gold); opacity: .85;
}
.spine::before { top: 8px; }
.spine::after  { bottom: 34px; }
.spine:hover, .spine:focus-visible {
  transform: translateY(-14px);
  box-shadow: 0 10px 18px rgba(22,41,63,.25);
  outline: none;
}
.spine:focus-visible { box-shadow: 0 10px 18px rgba(22,41,63,.25), 0 0 0 3px var(--gold); }
.spine-title {
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--label); text-transform: uppercase;
  letter-spacing: .12em; font-size: .72rem; font-weight: 600;
  color: var(--ivory); margin-top: 6px;
  white-space: nowrap; overflow: hidden;
}
.spine-vol {
  font-family: var(--label); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; color: var(--gold);
}
.spine--gold { background: var(--navy-deep); }
.spine--gold::before, .spine--gold::after { background: var(--gold); opacity: 1; }
.spine--gold .spine-vol { color: var(--gold); }
.spine--sage { background: var(--sage); }
.spine--sage::before, .spine--sage::after { background: var(--gold-soft); }
.spine--sage .spine-vol { color: var(--gold-soft); }
.shelf-caption {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .18em;
  font-size: .75rem; color: var(--ink-soft); margin-top: .9rem;
}

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.section--companion { background: linear-gradient(180deg, rgba(31,58,95,.04), rgba(31,58,95,0)); }
.section--companion .eyebrow { color: var(--gold-soft); }
.section-head { margin-bottom: 2.5rem; }
.section-head p { max-width: 52ch; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- book grid ---------- */
.books { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.book { scroll-margin-top: 5rem; }
.book a { text-decoration: none; display: block; }
.book img {
  width: 100%; height: auto; border: 1px solid var(--rule);
  box-shadow: 0 2px 10px rgba(27,29,28,.10);
  transition: transform .22s ease, box-shadow .22s ease;
}
.book a:hover img, .book a:focus-visible img {
  transform: translateY(-4px); box-shadow: 0 10px 22px rgba(27,29,28,.18);
}
.book-vol {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .18em;
  font-size: .7rem; font-weight: 600; color: var(--gold-soft); margin: .8rem 0 .2rem;
}
.book-title { font-size: .98rem; font-weight: 600; line-height: 1.3; margin: 0; color: var(--ink); }
.book-note { font-size: .85rem; color: var(--ink-soft); margin: .25rem 0 0; line-height: 1.4; }

/* ---------- rates ---------- */
.rates { border-top: 1px solid var(--rule); margin-top: 2rem; }
.rate {
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.rate-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem; }
.rate-desc { margin: 0; color: var(--ink-soft); font-size: .97rem; max-width: 46ch; }
.rate-price {
  font-family: var(--label); font-size: 1.3rem; font-weight: 600;
  color: var(--navy); white-space: nowrap; letter-spacing: .02em;
}
.rate-price small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 34rem) {
  .rate { grid-template-columns: 1fr; }
  .rate-price { text-align: left; }
}

/* ---------- callout ---------- */
.callout {
  background: var(--navy); color: var(--ivory);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-left: 4px solid var(--gold);
}
.callout p { margin-bottom: .8em; }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--gold); }
.callout--sage { background: var(--sage); border-left-color: var(--gold-soft); }
.callout--sage a { color: #E8D9B8; }

/* ---------- links & buttons ---------- */
.link {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .16em;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 3px; color: var(--navy);
  display: inline-block;
}
.link:hover, .link:focus-visible { color: var(--gold-soft); }
.btn {
  display: inline-block; background: var(--navy); color: var(--ivory);
  font-family: var(--label); text-transform: uppercase; letter-spacing: .16em;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  padding: .85rem 1.6rem; border: 1px solid var(--navy);
  transition: background .18s ease, color .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

/* ---------- colophon ---------- */
.colophon {
  border-top: 3px double var(--rule); margin-top: 2rem;
  padding: 2.5rem 0 3.5rem; color: var(--ink-soft); font-size: .9rem;
}
.colophon-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: baseline; }
.colophon a { color: var(--navy); }
.colophon .eyebrow { margin-bottom: .5rem; }

/* ---------- misc ---------- */
.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: var(--ivory); padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: .5rem; }
.stack > * + * { margin-top: 1.5rem; }


/* ---------- featured book layout ---------- */
.books--feature {
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 44rem) {
  .books--feature { grid-template-columns: 1fr; gap: 1.75rem; }
  .books--feature .book { max-width: 210px; }
}

/* ---------- shelf scroll hint on small screens ---------- */
@media (max-width: 40rem) {
  .shelf { padding-inline: .25rem; }
  .shelf-caption::after { content: " \2192"; }
}


/* ---------- The Trilogy: warm charcoal + brass ---------- */
.trilogy { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2.5rem; }
.tri-card {
  background: #2E2A26; color: var(--ivory);
  padding: 1.75rem 1.5rem 1.5rem;
  border-top: 3px solid var(--gold-soft);
  display: flex; flex-direction: column;
  min-height: 15rem;
}
.tri-domain {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .28em;
  font-size: .75rem; font-weight: 600; color: var(--gold-soft); margin: 0 0 1.25rem;
}
.tri-book { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em;
  font-size: .68rem; color: rgba(247,243,234,.55); margin: 0 0 .4rem; }
.tri-title { font-size: 1.35rem; font-weight: 700; line-height: 1.2; margin: 0 0 .7rem; }
.tri-desc { font-size: .93rem; line-height: 1.55; color: rgba(247,243,234,.82); margin: 0 0 1.25rem; }
.tri-link {
  margin-top: auto; font-family: var(--label); text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; font-weight: 600;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(201,162,39,.45); padding-bottom: 2px; align-self: flex-start;
}
.tri-link:hover, .tri-link:focus-visible { border-bottom-color: var(--gold); }
.tri-langs {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .18em;
  font-size: .75rem; color: var(--ink-soft); margin-top: 1.75rem;
}

/* ---------- author note ---------- */
.author-note {
  border-left: 3px solid var(--gold-soft);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  max-width: 46rem;
}
.author-note .pull {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.45; font-weight: 600;
  color: var(--navy-deep); margin-bottom: 1.2rem;
}

/* ---------- forthcoming ---------- */
.forthcoming {
  border: 1px solid var(--rule); padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #F4F1EA;
}
.tag {
  display: inline-block; font-family: var(--label); text-transform: uppercase;
  letter-spacing: .18em; font-size: .7rem; font-weight: 600;
  color: var(--ink-soft); border: 1px solid var(--rule); padding: .25rem .6rem; margin-left: .6rem;
  vertical-align: middle;
}
.spine--ink { background: #2E2A26; }
.spine--ink::before, .spine--ink::after { background: var(--gold-soft); }
.spine--ink .spine-vol { color: var(--gold-soft); }
.spine--void { background: #191B22; }
.spine--void::before, .spine--void::after { background: #9AAFC7; }
.spine--void .spine-vol { color: #9AAFC7; }


/* ---------- Fiction: full-bleed dark band ---------- */
.void {
  background: #191B22; color: #E6E9EF;
  border-top: none;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.void h2 { color: #FFFFFF; }
.void .eyebrow { color: #9AAFC7; }
.void .section-head p { color: rgba(230,233,239,.72); }
.void-hook {
  font-size: clamp(1.25rem, 2.8vw, 1.7rem); line-height: 1.4; font-weight: 600;
  color: #FFFFFF; max-width: 30ch; margin: 0 0 1.6rem;
}
.void-body { max-width: 58ch; color: rgba(230,233,239,.78); }
.void-body strong { color: #FFFFFF; font-weight: 600; }
.void-close {
  font-style: italic; font-size: 1.15rem; color: #9AAFC7;
  border-left: 2px solid #9AAFC7; padding-left: 1.1rem; margin: 2rem 0 0; max-width: 46ch;
}
.void-books {
  display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 3rem; background: rgba(154,175,199,.22);
  border: 1px solid rgba(154,175,199,.22);
}
.void-book { background: #191B22; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; }
.void-scope {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .2em;
  font-size: .7rem; font-weight: 600; color: #9AAFC7; margin: 0 0 1.1rem;
}
.void-num { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em;
  font-size: .68rem; color: rgba(230,233,239,.45); margin: 0 0 .35rem; }
.void-title { font-size: 1.25rem; font-weight: 700; color: #FFFFFF; margin: 0 0 .9rem; line-height: 1.2; }
.void-status {
  margin-top: auto; font-family: var(--label); text-transform: uppercase;
  letter-spacing: .16em; font-size: .72rem; font-weight: 600;
}
.void-status--out { color: #9AAFC7; }
.void-status--soon { color: rgba(230,233,239,.4); }
.void-link { color: #9AAFC7; text-decoration: none; border-bottom: 1px solid rgba(154,175,199,.45); padding-bottom: 2px; }
.void-link:hover, .void-link:focus-visible { border-bottom-color: #9AAFC7; color: #FFFFFF; }

/* forthcoming spines: outlined rather than solid */
.spine--ghost { background: transparent; border: 1px dashed rgba(25,27,34,.4); box-shadow: none; }
.spine--ghost .spine-title { color: rgba(25,27,34,.5); }
.spine--ghost .spine-vol { color: rgba(25,27,34,.4); }
.spine--ghost::before, .spine--ghost::after { background: rgba(25,27,34,.25); }
.spine--ghost:hover, .spine--ghost:focus-visible { transform: translateY(-8px); box-shadow: none; }


/* ---------- The Bet: oxblood case-study band ---------- */
.bet { background: #5E2230; color: #F4E9E4; border-top: none; padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.bet h2 { color: #FFFFFF; }
.bet .eyebrow { color: #E0B36A; }
.bet-hook {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem); line-height: 1.45; font-weight: 600;
  color: #FFFFFF; max-width: 40ch; margin: 0 0 1.5rem;
}
.bet-body { max-width: 56ch; color: rgba(244,233,228,.82); }
.bet-body em { color: #E0B36A; font-style: italic; }
.bet-decisions {
  columns: 2; column-gap: 2.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none;
  max-width: 52rem;
}
.bet-decisions li {
  break-inside: avoid; margin: 0 0 .9rem; padding-left: 1.4rem; position: relative;
  font-size: .95rem; line-height: 1.5; color: rgba(244,233,228,.9);
}
.bet-decisions li::before {
  content: "\2014"; position: absolute; left: 0; color: #E0B36A;
}
@media (max-width: 42rem) { .bet-decisions { columns: 1; } }
.bet-close {
  font-size: 1.15rem; font-weight: 600; color: #FFFFFF;
  border-left: 2px solid #E0B36A; padding-left: 1.1rem; margin: 2.5rem 0 0; max-width: 44ch;
}
.bet-link {
  display: inline-block; margin-top: 2rem;
  font-family: var(--label); text-transform: uppercase; letter-spacing: .16em;
  font-size: .82rem; font-weight: 600; color: #E0B36A; text-decoration: none;
  border-bottom: 2px solid rgba(224,179,106,.5); padding-bottom: 3px;
}
.bet-link:hover, .bet-link:focus-visible { border-bottom-color: #E0B36A; color: #FFFFFF; }
.spine--bet { background: #5E2230; }
.spine--bet::before, .spine--bet::after { background: #E0B36A; }
.spine--bet .spine-vol { color: #E0B36A; }


/* ---------- covers inside the trilogy cards ---------- */
.tri-cover { width: 100%; height: auto; border: 1px solid rgba(176,137,74,.35); margin-bottom: 1.25rem; }
.tri-card--img { padding-top: 1.25rem; }

/* ---------- covers inside the fiction band ---------- */
.void-cover {
  width: 100%; height: auto; border: 1px solid rgba(154,175,199,.25); margin-bottom: 1.25rem;
  transition: transform .22s ease;
}
.void-book a:hover .void-cover, .void-book a:focus-visible .void-cover { transform: translateY(-4px); }
.void-book-link { text-decoration: none; color: inherit; display: block; }


/* ---------- about / author ---------- */
.about { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.about-photo { width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 3px 14px rgba(27,29,28,.12); }
.about .pull {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.4; font-weight: 600;
  color: var(--navy-deep); margin: 0 0 1.2rem;
}
@media (max-width: 40rem) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 190px; }
}
.bet-cover { width: 100%; height: auto; max-width: 230px; border: 1px solid rgba(224,179,106,.3); margin-bottom: 1.75rem; }
.bet-grid { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (max-width: 44rem) { .bet-grid { grid-template-columns: 1fr; } }
.services-portrait { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--rule); margin-bottom: 1.25rem; }


/* ---------- promo card that fills the last grid row ---------- */
.promo {
  background: var(--navy); color: var(--ivory);
  border-top: 3px solid var(--gold);
  padding: 1.4rem 1.25rem 1.25rem;
  display: flex; flex-direction: column;
  min-height: 0;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.promo:hover, .promo:focus-visible {
  transform: translateY(-4px); box-shadow: 0 10px 22px rgba(27,29,28,.20); outline: none;
}
.promo-eyebrow {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .2em;
  font-size: .68rem; font-weight: 600; color: var(--gold); margin: 0 0 .9rem;
}
.promo-title { font-size: 1.05rem; font-weight: 700; line-height: 1.25; margin: 0 0 .55rem; color: #FFF; }
.promo-text { font-size: .85rem; line-height: 1.5; color: rgba(247,243,234,.82); margin: 0 0 1.1rem; }
.promo-cta {
  margin-top: auto; font-family: var(--label); text-transform: uppercase;
  letter-spacing: .16em; font-size: .74rem; font-weight: 600; color: var(--gold);
  border-bottom: 1px solid rgba(201,162,39,.5); padding-bottom: 2px; align-self: flex-start;
}
.promo--sage { background: var(--sage); border-top-color: var(--gold-soft); }
.promo--sage .promo-eyebrow, .promo--sage .promo-cta { color: #E8D9B8; }
.promo--sage .promo-cta { border-bottom-color: rgba(232,217,184,.5); }


/* ---------- mailing list ---------- */
.list-block { background: var(--navy); color: var(--ivory); padding: clamp(2rem, 5vw, 3rem); }
.list-block h2 { color: #FFF; margin-bottom: .6rem; }
.list-block .eyebrow { color: var(--gold); }
.list-block p { color: rgba(247,243,234,.85); max-width: 46ch; }
.list-embed { margin-top: 1.75rem; }
.list-embed input[type="email"] {
  font-family: var(--display); font-size: 1rem; padding: .8rem 1rem;
  border: 1px solid rgba(247,243,234,.35); background: rgba(255,255,255,.06);
  color: var(--ivory); width: min(22rem, 100%); margin-right: .5rem;
}
.list-embed input[type="email"]::placeholder { color: rgba(247,243,234,.5); }
.list-note { font-size: .82rem; color: rgba(247,243,234,.6); margin-top: 1rem; }


/* ---------- free reader magnet card in the fiction band ---------- */
.void-book--free {
  background: rgba(154,175,199,.07);
  border-left: 3px solid #9AAFC7;
}
.void-free-tag {
  display: inline-block; font-family: var(--label); text-transform: uppercase;
  letter-spacing: .2em; font-size: .66rem; font-weight: 600; color: #191B22;
  background: #9AAFC7; padding: .22rem .55rem; margin-bottom: 1rem;
}
.void-free-text { font-size: .9rem; line-height: 1.5; color: rgba(230,233,239,.78); margin: 0 0 1.2rem; }
