@font-face {
  font-family: 'Exchange';
  src: url('/assets/fonts/Exchange-Book.woff2') format('woff2'),
       url('/assets/fonts/Exchange-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exchange';
  src: url('/assets/fonts/Exchange-BookItalic.woff2') format('woff2'),
       url('/assets/fonts/Exchange-BookItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F5ECD6;
  --ink: #1A3C5E;
  --col: 600px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Exchange', Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 64px 30px 80px;
  flex: 1;
}

h1.doc-title {
  font-family: 'Exchange', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-align: center;
  margin: 0 0 56px;
}

.body {
  font-family: 'Exchange', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
  text-align: justify;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-spacing: -0.01em;
}

.body p {
  margin: 0 0 16px;
}

.body p:last-child { margin-bottom: 0; }

.body p.label {
  margin: 28px 0 6px;
  text-align: left;
}

.body p.label:first-child { margin-top: 0; }

.body p.label + p,
.body p.label + ul {
  margin-top: 0;
}

.body ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.body ul li {
  margin: 0 0 8px;
  padding-left: 20px;
  position: relative;
  text-align: left;
}

.body ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.55;
}

.prompt-verbatim {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  margin: 0;
}

@media (max-width: 600px) {
  .page { padding: 44px 22px 60px; }
  h1.doc-title { font-size: 28px; margin-bottom: 40px; }
  .body { font-size: 15.5px; }
  .prompt-verbatim { font-size: 13px; }
}
