/* One typeface throughout: Libre Baskerville, the Baskerville of the books' copyright pages. The logo is drawn, so it needs no font. */
@font-face{font-family:"Libre Baskerville";src:url(/assets/fonts/libre-baskerville-latin-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Libre Baskerville";src:url(/assets/fonts/libre-baskerville-latin-400-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Libre Baskerville";src:url(/assets/fonts/libre-baskerville-latin-700-normal.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}

/* Black ink on the cream of the logo. The books supply all the color. */
:root{
  --paper:#FBFAF5;
  --ink:#000000;
  --charcoal:#34322F;
  --white:#FFFFFF;
  --shadow:30,24,12;
  --inch:3rem;              /* covers are drawn at their real trim sizes */
}
*,*::before,*::after{box-sizing:border-box}
/* Everywhere outside the charcoal bands, the page is a very light cream parchment. The color under it shows while the texture loads. */
html{background:#F7F2E5 url(/assets/parchment.webp) repeat;background-size:1024px 1024px;color:var(--ink);-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Libre Baskerville",Baskerville,Georgia,serif;
  font-size:1.1875rem;
  line-height:1.7;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
a:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
.page{max-width:68rem;margin:0 auto;padding:0 1.5rem}

/* Home: the masthead is set like the title page of a book. */
.masthead{text-align:center;padding:4.75rem 0 4.5rem}
.masthead h1{margin:0;line-height:0}
.masthead h1 img{width:23rem;margin:0 auto}
.tagline{font-style:italic;font-size:1.625rem;line-height:1.5;max-width:25em;margin:2.25rem auto 0;text-wrap:balance}

/* Book pages: the small logo leads home. */
.topbar{text-align:center;padding:2.25rem 0}
.topbar a{display:inline-block;line-height:0}
.topbar img{width:12.5rem}

/* A cover drawn as a printed paperback: a shadow under it and a crease beside the spine. */
.book{position:relative;display:block;margin:0 auto}
.book img{
  width:100%;
  box-shadow:0 1px 1px rgba(var(--shadow),.22),0 6px 12px -2px rgba(var(--shadow),.18),0 24px 38px -16px rgba(var(--shadow),.5);
}
.book::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.22) 0,rgba(255,255,255,.14) 1.1%,rgba(0,0,0,.07) 2.4%,rgba(0,0,0,0) 5%);
}
.trim-6x75{width:calc(6 * var(--inch))}
.trim-55x85{width:calc(5.5 * var(--inch))}

/* A page from inside a book: flat paper, lifted just enough to show its edge. */
.leaf{display:block;width:100%;box-shadow:0 0 0 1px rgba(var(--shadow),.10),0 3px 10px -3px rgba(var(--shadow),.30)}

/* A book and its words, side by side, like a page in a publisher's catalogue. */
.intro{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4.5rem;align-items:center;padding-top:4.5rem;padding-bottom:5.5rem}
.intro .book{--inch:clamp(3.5rem, 5.6vw, 4.25rem)}
.intro h1,.intro h2{font-weight:400;font-size:2.25rem;line-height:1.25;letter-spacing:.06em;text-transform:uppercase;margin:0;text-wrap:balance}
.intro h2 a{text-decoration:none}
.intro h2 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.15em}
.subtitle{font-style:italic;font-size:1.375rem;line-height:1.35;margin:.7rem 0 0}
.byline{font-size:1.0625rem;margin:1.1rem 0 0}
.hook{font-weight:700;font-size:1.1875rem;line-height:1.6;margin:2rem 0 0;max-width:32em}
.description p,.description{margin:1rem 0 0;max-width:33em}
.description p:first-child{margin-top:1rem}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2rem;margin-top:2.25rem}
.buy{
  display:inline-block;padding:.8rem 1.75rem .75rem;
  background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:2px;
  font-size:1.0625rem;line-height:1.4;text-decoration:none;
}
.buy:hover{background:var(--paper);color:var(--ink)}
.more-link{font-size:1.0625rem;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.more-link:hover{text-decoration-thickness:2px}
.status{display:inline-block;margin-top:2.25rem;padding:.45rem 1.1rem .4rem;border:1px solid var(--ink);font-size:1rem;letter-spacing:.02em}

/* Section headings sit between two rules, the way the ampersand does in the logo. */
.ruled{
  display:flex;align-items:center;gap:1.5rem;
  max-width:42rem;margin:0 auto 3.25rem;
  font-weight:400;font-size:1.875rem;line-height:1.25;text-align:center;
}
.ruled::before,.ruled::after{content:"";flex:1;min-width:2rem;border-top:1px solid currentColor}

/* Home: three of the singles from Tall, Dark & Neutered. */
.singles{padding-bottom:5.5rem}
.singles ul{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem;max-width:58rem}
.singles a{display:block;text-decoration:none}
.singles a:hover .leaf{box-shadow:0 0 0 1px rgba(var(--shadow),.25),0 6px 16px -4px rgba(var(--shadow),.45)}
.singles .name{display:block;text-align:center;font-size:1.0625rem;margin-top:.8rem}
.singles .to-book{text-align:center;margin:2.25rem 0 0}

/* Coming soon, and "Also from": covers stand on a shared shelf line, at true scale. */
.shelf-row{display:grid;grid-template-columns:repeat(2,minmax(0,20rem));justify-content:center;column-gap:6rem;row-gap:4rem;text-align:center;padding-bottom:5.5rem}
.shelf{display:flex;align-items:flex-end;justify-content:center;height:calc(8.5 * var(--inch))}
.shelf-row h3{font-weight:400;font-size:1.1875rem;line-height:1.45;letter-spacing:.06em;text-transform:uppercase;margin:2rem 0 0;text-wrap:balance}
.shelf-row h3 a{text-decoration:none}
.shelf-row h3 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.15em}
.shelf-row .byline{font-size:1rem;margin:.5rem 0 0}
.shelf-row .line{font-size:1.0625rem;line-height:1.6;margin:.9rem auto 0;max-width:20em}
.shelf-row .more-link{display:inline-block;margin-top:1rem;font-size:1rem}
.also .shelf-row{--inch:2.4rem}
.also .shelf-row h3{font-size:1.0625rem;margin-top:1.5rem}

/* Home: about the press. */
.about{padding-top:5.5rem;padding-bottom:5.5rem}
.about p{max-width:33em;margin:0 auto;text-align:center;text-wrap:pretty}

/* Tall, Dark & Neutered: each single's photo page and profile page, then what the human says. */
.inside{padding-bottom:5rem}
.pet{max-width:62rem;margin:0 auto 5.5rem;scroll-margin-top:1.5rem}
.pet-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.verdict{max-width:calc((100% - 1.5rem) / 2);margin:1.5rem auto 0}
.inside .closing{text-align:center;margin:0}

/* If Dogs Ruled the World: whole pages, two to a row so the captions can be read. */
.leaves{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem 2.5rem;max-width:56rem}

/* If Dogs Ruled the World: the notice from the back cover, in a ruled frame. */
.notice{margin:2rem 0 0;padding:1.6rem 1.75rem 1.4rem;border:1px solid var(--ink);outline:1px solid var(--ink);outline-offset:4px;max-width:32em}
.notice h3{font-weight:400;font-size:1.375rem;line-height:1.3;margin:0 0 .85rem}
.notice p{margin:0 0 .75rem}
.notice p+p{text-indent:1.5em}
.notice p:last-child{margin-bottom:0}
.closing-line{font-style:italic;margin:1.75rem 0 0;max-width:30em}

/* Charcoal bands: the top of every page, Coming Soon on the home page and Inside the Book on the If Dogs page.
   White words are set larger, because white on a dark ground reads smaller than black on paper. */
.dark{background:var(--charcoal);color:var(--white);-webkit-font-smoothing:auto}
.dark a{color:var(--white)}
.dark a:focus-visible{outline-color:var(--white)}
.band{padding:5rem 0 5.5rem}
.band .ruled{font-size:2.25rem;margin-bottom:3.75rem}
.band .shelf-row{padding-bottom:0;grid-template-columns:repeat(2,minmax(0,26rem));column-gap:4rem}
.band .shelf-row h3{font-size:1.4375rem;line-height:1.45}
.band .shelf-row .byline{font-size:1.1875rem;margin-top:.6rem}
.band .shelf-row .line{font-size:1.25rem;line-height:1.6;max-width:21em;text-wrap:balance}
.band .shelf-row .more-link{font-size:1.1875rem;margin-top:1.1rem}
.band .book img{box-shadow:0 2px 4px rgba(0,0,0,.45),0 22px 36px -14px rgba(0,0,0,.7)}
.band .leaf{box-shadow:0 2px 4px rgba(0,0,0,.45),0 16px 30px -12px rgba(0,0,0,.65)}
.band + .also{padding-top:5.5rem}

footer{text-align:center;font-size:1rem;padding:0 0 3.5rem}
footer p{margin:0}

@media (max-width:52rem){
  body{font-size:1.125rem}
  .masthead{padding:3.25rem 0 3rem}
  .masthead h1 img{width:17rem}
  .tagline{font-size:1.375rem;margin-top:1.75rem}
  .topbar{padding:1.6rem 0}
  .topbar img{width:10rem}
  .intro{grid-template-columns:minmax(0,1fr);gap:2.75rem;padding-top:3rem;padding-bottom:4.5rem}
  .band{padding:3.75rem 0 4.25rem}
  .band .ruled{font-size:1.875rem;margin-bottom:2.75rem}
  .band .shelf-row{grid-template-columns:minmax(0,1fr)}
  .band .shelf-row h3{font-size:1.3125rem}
  .band .shelf-row .byline,.band .shelf-row .more-link{font-size:1.125rem}
  .band .shelf-row .line{font-size:1.1875rem}
  .about{padding-top:4rem;padding-bottom:4.5rem}
  .band + .also{padding-top:4rem}
  .intro .book{--inch:min(3.5rem, 13.5vw)}
  .intro h1,.intro h2{font-size:1.75rem}
  .subtitle{font-size:1.25rem}
  .hook{font-size:1.125rem;margin-top:1.6rem}
  .ruled{font-size:1.625rem;margin-bottom:2.5rem}
  .singles ul{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:1rem;margin:0 -1.5rem;padding:0 1.5rem 1rem}
  .singles li{flex:0 0 72%;scroll-snap-align:center}
  .shelf-row{grid-template-columns:minmax(0,1fr);row-gap:4rem;padding-bottom:4.5rem;--inch:min(2.75rem, 11.5vw)}
  .also .shelf-row{--inch:min(2.4rem, 10vw)}
  .shelf{height:auto}
  .pet{margin-bottom:4rem}
  .pet-pages{grid-template-columns:minmax(0,1fr);gap:1.25rem}
  .verdict{max-width:100%;margin-top:1.25rem}
  .leaves{grid-template-columns:minmax(0,1fr);gap:2.5rem}
  .notice{padding:1.25rem 1.1rem 1.1rem}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
