/* Inutili Press only. Does not replace or import Tinchetanche's stylesheet.
   Fonts, colours and reading-column width match the supplied Tinchetanche files. */
:root {
  color-scheme: light;
  --ip-paper: #fcfbf8;
  --ip-ink: #232323;
  --ip-muted: #73716e;
  --ip-line: #dcd9d4;
  --ip-link: #262626;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.ip-page {
  margin: 0;
  background: var(--ip-paper);
  color: var(--ip-ink);
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}
.ip-page [hidden] { display: none !important; }
.ip-main {
  width: min(calc(100% - 48px), 750px);
  margin: 0 auto;
  padding-bottom: 68px;
}
.ip-masthead {
  padding: clamp(78px, 13vw, 145px) 0 78px;
  border-bottom: 1px solid var(--ip-line);
}
.ip-masthead h1 {
  margin: 0;
  color: var(--ip-ink);
  font-size: clamp(2.45rem, 6.9vw, 4.45rem);
  line-height: 1.13;
  letter-spacing: -.045em;
  font-weight: 400;
  overflow-wrap: break-word;
}
.ip-masthead h1 a { color: inherit; text-decoration: none; }
.ip-back {
  position: fixed;
  z-index: 5;
  top: 145px;
  right: max(28px, calc((100vw - 1400px) / 2));
  padding: 2px 0 2px 17px;
  border-left: 1px solid var(--ip-line);
  background: var(--ip-paper);
  font: 600 .88rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ip-back a { color: var(--ip-ink); text-decoration: none; }
.ip-back a:hover,
.ip-back a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.ip-book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: start;
  gap: 42px;
  padding: 72px 0 77px;
  border-bottom: 1px solid var(--ip-line);
  scroll-margin-top: 65px;
}
.ip-book-cover { min-width: 0; }
.ip-cover-link { display: block; color: inherit; text-decoration: none; }
.ip-cover {
  display: block;
  width: 100%;
  height: auto;
  /* Reserve approximate cover space without cropping books of other proportions. */
  aspect-ratio: auto 2 / 3;
}
.ip-cover-fallback {
  display: block;
  padding: 0 0 8px;
  font-size: 1.65rem;
  line-height: 1.3;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.ip-cover-fallback small {
  display: block;
  margin-top: 12px;
  color: var(--ip-muted);
  font: .82rem/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ip-purchase {
  margin: 18px 0 0;
  font: .84rem/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ip-purchase a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  color: var(--ip-link);
  text-decoration-color: #aca8a0;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.ip-book-text { min-width: 0; font-size: 1.17rem; line-height: 1.78; overflow-wrap: anywhere; }
.ip-book-text p { margin: 0 0 1.3em; }
.ip-book-text p:last-child { margin-bottom: 0; }
.ip-book-text h2,
.ip-book-text h3 { margin: 1.6em 0 .6em; font-weight: 400; line-height: 1.25; }
.ip-book-text > :first-child { margin-top: 0; }
.ip-book-text img { max-width: 100%; height: auto; }
.ip-book-text a { color: var(--ip-link); text-underline-offset: .16em; }
.ip-book-text blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 2px solid var(--ip-line); }
.ip-book-text pre { max-width: 100%; overflow-x: auto; font-size: .85rem; }
.ip-book-text ul,
.ip-book-text ol { padding-left: 1.4em; }
.ip-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;
}
.ip-skip {
  position: absolute;
  z-index: 10;
  top: -100px;
  left: 20px;
  padding: 10px;
  background: var(--ip-paper);
  color: var(--ip-ink);
}
.ip-skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ip-ink); outline-offset: 5px; }
@media (max-width: 1249px) {
  .ip-back {
    top: 15px;
    right: 20px;
    border-left: 0;
    padding: 0 4px;
    font-size: .8rem;
  }
  .ip-back a { display: flex; gap: .4em; align-items: center; min-height: 40px; }
}
@media (max-width: 600px) {
  .ip-main { width: min(calc(100% - 40px), 750px); padding-bottom: 32px; }
  .ip-masthead { padding: 75px 0 53px; }
  .ip-book { grid-template-columns: 1fr; gap: 28px; padding: 51px 0 57px; }
  .ip-book-cover { width: min(100%, 220px); }
  .ip-book-text { font-size: 1.1rem; line-height: 1.75; }
}
@media print {
  .ip-back, .ip-skip { display: none; }
  .ip-main { width: 100%; }
  .ip-masthead { padding: 24px 0; }
  .ip-book { break-inside: avoid; padding: 32px 0; }
}
