/* THE BOOK — jasminew.me
   Rebuilt from the Wayback Machine (Sept 2021 captures).
   Typefaces: the original used Sabon (a commercial Linotype face) and Pinyon Script.
   EB Garamond is bundled as a free stand-in for Sabon; if you own Sabon, it is
   first in the font stack and will be used automatically wherever installed. */

@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond-Italic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Pinyon Script';
  src: url('fonts/PinyonScript.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f8f8;
  --frame: #bc2e24;      /* the double red frame */
  --red: #b31b1b;        /* links + active chapter */
  --ink: rgba(0, 0, 0, 0.75);
  --ink-strong: rgba(0, 0, 0, 0.85);
  --rule: #bababa;
  --serif: 'Sabon', 'Sabon LT Std', 'EB Garamond', Georgia, serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
}

html { font-size: clamp(11px, 0.826vw, 22px); }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--serif);
  color: var(--ink);
}

.book {
  display: flex;
  align-items: stretch;
  gap: 1.8rem;
  padding: 1.1rem;
  min-height: 100vh;
}

.page {
  position: relative;
  flex: 1 1 50%;
  background: var(--paper);
  border: 1px solid var(--frame);
  display: flex;
  flex-direction: column;
  padding: 1.35rem 2.7rem 6.5rem;
}
.page::before {
  content: '';
  position: absolute;
  inset: clamp(3px, 0.2vw, 5px);
  border: 1px solid var(--frame);
  pointer-events: none;
}

.pagetitle {
  font-size: 1.82rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-align: center;
  color: var(--ink);
  margin: 0;
}
.pagetitle a { color: inherit; text-decoration: none; font-style: normal; }

.rule {
  width: 5.1rem;
  border-top: 1px solid var(--rule);
  margin: 1.55rem auto 0;
}

/* ---------- left page ---------- */

.middle { flex: 1 1 auto; display: flex; flex-direction: column; }
.centerwrap { margin-top: auto; margin-bottom: auto; padding-top: 6rem; }

.bodycopy {
  font-size: 1.95rem;
  line-height: 1.19;
  letter-spacing: 0.012em;
  text-align: center;
}
.bodycopy p { margin: 1.1em 0; }
.bodycopy a {
  color: inherit;
  text-decoration: none;
  font-style: italic;
  transition: color 0.15s ease;
}
.bodycopy a:hover { color: var(--red); }

.works { line-height: 1.55; }

.people-list {
  font-size: 1.22rem;
  line-height: 1.34;
  letter-spacing: 0.03em;
}
.bodycopy .people-intro { max-width: 21em; margin: 1.1em auto; }

.motto {
  font-size: 1.1rem;
  letter-spacing: 0.035em;
  line-height: 1.45;
  text-align: center;
  margin: 2.6em 0 0;
}

.socials {
  position: absolute;
  left: 0; right: 0; bottom: 2.1rem;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.035em;
  color: var(--red);
}
.socials a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.15s ease;
}
.socials a:hover { color: #7c1010; }

/* ---------- right page ---------- */

.toc { display: flex; width: 86%; margin: 13.1rem auto 0; }
.toc-col { flex: 1 1 50%; text-align: center; }

.toc-col a, .garden {
  display: block;
  font-family: var(--script);
  font-size: 2.34rem;
  line-height: 1.44;
  font-weight: 400;
  color: var(--ink-strong);
  text-decoration: none;
  transition: color 0.15s ease;
}
.toc-col a:hover { color: var(--red); }
.toc-col a.active { color: var(--red); }

.gloves {
  position: absolute;
  left: 58.5%;
  top: 68.5vh;
  width: 32.5%;
}
.gloves img { width: 100%; height: auto; display: block; }

/* ---------- smaller screens ---------- */

@media (max-width: 760px) {
  html { font-size: 12px; }
  .book { flex-direction: column; gap: 1.1rem; }
  .page { min-height: 94vh; padding: 1.6rem 1.8rem 6.5rem; }
  .toc { margin-top: 7rem; }
  .gloves { top: auto; bottom: 5rem; left: 60%; width: 38%; }
}
