/* This-Life Practice: quiet library pamphlet. Ink and linen, sage accent. */
:root {
  --tlp-ink: #1e1a16;
  --tlp-linen: #f3efe6;
  --tlp-sage: #5d7356;
  --tlp-hair: #d8d1c4;
  --tlp-faded: #5f574d;
  --tlp-serif: ui-serif, "Iowan Old Style", Palatino, Georgia, serif;
  --tlp-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { background: var(--tlp-linen); color: var(--tlp-ink); }

body.tlp-body {
  margin: 0;
  font-family: var(--tlp-sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-text-size-adjust: 100%;
}

.tlp-sheet {
  display: grid;
  grid-template-columns: minmax(1rem, 1fr) 3.25rem minmax(0, 37rem) minmax(1rem, 1.6fr);
  min-height: 100vh;
}

.tlp-rule {
  grid-column: 2;
  border-left: 1px solid var(--tlp-hair);
  margin-left: 1.1rem;
  position: relative;
}
.tlp-rule::before {
  content: "";
  position: sticky;
  top: 2.4rem;
  display: block;
  width: 5px;
  height: 5px;
  margin-left: -3px;
  background: var(--tlp-sage);
}

.tlp-leaf { grid-column: 3; padding: 2.6rem 0 3rem; min-width: 0; }

a { color: var(--tlp-ink); text-decoration-color: var(--tlp-sage); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { color: var(--tlp-sage); }
a:focus-visible { outline: 2px solid var(--tlp-sage); outline-offset: 2px; }

/* masthead */
.tlp-mast { border-bottom: 1px solid var(--tlp-hair); padding-bottom: 1.1rem; margin-bottom: 2.4rem; }
.tlp-mark { margin: 0; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--tlp-faded); }
.tlp-mark a { text-decoration: none; color: inherit; }
.tlp-title { margin: 0.35rem 0 0; font-family: var(--tlp-serif); font-size: 1.85rem; line-height: 1.15; }
.tlp-title a { text-decoration: none; }
.tlp-strap { margin: 0.25rem 0 0; font-family: var(--tlp-serif); font-style: italic; color: var(--tlp-faded); }
.tlp-menu ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0; font-size: 0.86rem; }
.tlp-menu li + li::before { content: "·"; padding: 0 0.55rem; color: var(--tlp-hair); }
.tlp-menu a { text-decoration: none; }
.tlp-menu a[aria-current="page"] { color: var(--tlp-sage); border-bottom: 1px solid var(--tlp-sage); }

/* headings and running header */
.tlp-running { margin: 0 0 0.6rem; font-size: 0.8rem; color: var(--tlp-faded); letter-spacing: 0.02em; }
.tlp-running a { color: var(--tlp-sage); text-decoration: none; }
.tlp-h { font-family: var(--tlp-serif); font-weight: 600; font-size: 2.05rem; line-height: 1.18; margin: 0 0 0.9rem; }
.tlp-standfirst { font-family: var(--tlp-serif); font-size: 1.16rem; color: var(--tlp-faded); margin: 0 0 2rem; }
.tlp-sub { font-family: var(--tlp-serif); font-weight: 600; font-size: 1.2rem; margin: 2.6rem 0 0.8rem; }

.tlp-prose h2 { font-family: var(--tlp-serif); font-weight: 600; font-size: 1.32rem; line-height: 1.3; margin: 2.3rem 0 0.6rem; }
.tlp-prose h3 { font-family: var(--tlp-serif); font-weight: 600; font-size: 1.08rem; margin: 1.8rem 0 0.4rem; }
.tlp-prose p, .tlp-prose ul, .tlp-prose ol { margin: 0 0 1.1rem; }
.tlp-prose li { margin-bottom: 0.35rem; }
.tlp-prose blockquote { margin: 1.4rem 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--tlp-sage); font-family: var(--tlp-serif); }
.tlp-prose figure { margin: 2rem 0; }
.tlp-prose figure svg { width: 100%; height: auto; display: block; }
.tlp-prose figcaption { font-size: 0.82rem; color: var(--tlp-faded); margin-top: 0.5rem; }
.tlp-prose hr { border: 0; border-top: 1px solid var(--tlp-hair); margin: 2.2rem 0; }

/* homepage contents */
.tlp-intro { font-family: var(--tlp-serif); font-size: 1.14rem; margin: 0 0 2rem; }
.tlp-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tlp-hair); }
.tlp-toc li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--tlp-hair); }
.tlp-num { font-family: var(--tlp-serif); color: var(--tlp-sage); font-size: 1.05rem; text-align: right; padding-top: 0.08rem; }
.tlp-toc-title { font-family: var(--tlp-serif); font-size: 1.16rem; }
.tlp-gist { color: var(--tlp-faded); font-size: 0.94rem; }
.tlp-meta { color: var(--tlp-faded); font-size: 0.8rem; }

.tlp-list { padding-left: 1.4rem; }
.tlp-list li { margin-bottom: 1rem; }
.tlp-list li::marker { color: var(--tlp-sage); font-family: var(--tlp-serif); }

/* turn the page */
.tlp-turn { margin-top: 3rem; border-top: 1px solid var(--tlp-hair); padding-top: 1rem; font-size: 0.92rem; }
.tlp-turn p { margin: 0 0 0.4rem; }
.tlp-turn span { display: inline-block; min-width: 4.2rem; color: var(--tlp-faded); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* colophon */
.tlp-foot { margin-top: 3.4rem; border-top: 1px solid var(--tlp-hair); padding-top: 1.2rem; font-size: 0.8rem; color: var(--tlp-faded); }
.tlp-foot-line { font-family: var(--tlp-serif); font-style: italic; font-size: 0.88rem; margin: 0 0 0.8rem; }
.tlp-foot-meta { margin: 0 0 0.3rem; }
.tlp-foot a { color: var(--tlp-faded); }

@media (max-width: 40rem) {
  body.tlp-body { font-size: 1rem; }
  .tlp-sheet { grid-template-columns: 16px 1.1rem minmax(0, 1fr) 16px; }
  .tlp-rule { margin-left: 0; }
  .tlp-leaf { padding-top: 1.6rem; }
  .tlp-h { font-size: 1.65rem; }
  .tlp-toc li { grid-template-columns: 2.4rem 1fr; }
}

@media print {
  .tlp-menu, .tlp-turn, .tlp-rule { display: none; }
  .tlp-sheet { display: block; }
}
