:root {
  --forest: #1a3026;
  --ivory: #f6f4ef;
  --ink: #1a1a1a;
  --gray: #6b6b65;
  --rule: #c7cbc5;
  --body: "Public Sans", sans-serif;
  --display: Fraunces, Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e3e3df;
  color: var(--ink);
  font-family: var(--body);
  font-size: 11.5pt;
  line-height: 1.5;
  font-synthesis: none;
}
a {
  color: inherit;
  text-decoration-thickness: 0.6px;
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  padding: 12px;
  background: white;
  z-index: 10;
}
.page {
  width: 210mm;
  height: 297mm;
  padding: 18mm 23mm 20mm;
  background: var(--ivory);
  position: relative;
  margin: 24px auto;
  break-after: page;
}
.running {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4mm;
  margin-bottom: 6mm;
  font-size: 8pt;
  color: var(--gray);
}
.running > span:first-child {
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.16em;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--forest);
}
h2 {
  font-size: 29pt;
  margin-bottom: 7mm;
  max-width: 155mm;
}
h3 {
  font-size: 11pt;
  line-height: 1.3;
  margin: 5.5mm 0 2.5mm;
  font-weight: 600;
  color: var(--forest);
}
p {
  margin: 0 0 3.5mm;
}
strong {
  font-weight: 600;
}
ol,
ul {
  padding-left: 6mm;
  margin: 4mm 0 5mm;
}
li {
  padding-left: 1mm;
  margin-bottom: 3mm;
}
footer {
  position: absolute;
  left: 23mm;
  right: 23mm;
  bottom: 9mm;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 3mm;
  font-size: 7.5pt;
  color: var(--gray);
}
footer > span:last-child {
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}
.page-content {
  display: flow-root;
}
.brand {
  font-size: 12pt;
  letter-spacing: 0.18em;
  display: flex;
  justify-content: space-between;
  color: var(--forest);
}
.brand > span {
  font-size: 7pt;
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.cover-title {
  margin-top: 28mm;
}
.eyebrow {
  font-size: 9pt;
  color: var(--gray);
  margin-bottom: 6mm;
  letter-spacing: 0.06em;
}
h1 {
  font-size: 42pt;
  line-height: 1.04;
  margin-bottom: 9mm;
}
.subtitle {
  font-size: 17pt;
  line-height: 1.45;
  color: var(--forest);
}
.book-trace {
  width: 100%;
  height: 58mm;
  margin: 10mm 0 5mm;
  color: var(--forest);
}
.cover-note {
  font-size: 12pt;
  line-height: 1.5;
  color: var(--forest);
}
.status {
  margin-top: 9mm;
  border-left: 2px solid var(--forest);
  padding-left: 4mm;
  font-size: 8pt;
  line-height: 1.65;
}
.routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8mm;
  margin-bottom: 9mm;
}
.routes > a {
  text-decoration: none;
  border-top: 2px solid var(--forest);
  padding-top: 4mm;
}
.routes strong {
  font-family: var(--display);
  display: block;
  font-size: 17pt;
  font-weight: 500;
  margin-bottom: 2mm;
}
.routes span {
  display: block;
  font-size: 10pt;
  line-height: 1.5;
}
.index {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11pt;
}
.index li {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.index a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 3mm 0;
  text-decoration: none;
}
.index-note {
  font-size: 10pt;
  margin-top: 7mm;
  color: var(--gray);
}
.practice .running {
  border-bottom: 2px solid var(--forest);
}
.practice ol {
  padding-left: 9mm;
  border-left: 1px solid var(--forest);
}
.practice li {
  padding-left: 2mm;
  margin-bottom: 2.5mm;
}
.practice p:has(> strong:first-child) {
  border-top: 1px solid var(--rule);
  padding-top: 3mm;
}
.references {
  font-size: 10pt;
  line-height: 1.45;
}
.references h2 {
  font-size: 28pt;
}
.references ol {
  padding-left: 7mm;
}
.references li {
  margin-bottom: 4mm;
  overflow-wrap: anywhere;
}
.references p:last-child {
  font-size: 9pt;
  color: var(--gray);
}
.worksheet {
  background: white;
  padding-top: 14mm;
}
.worksheet .running {
  margin-bottom: 5mm;
}
.worksheet h2,
.worksheet h1 {
  font-size: 27pt;
  margin-bottom: 4mm;
  line-height: 1.13;
}
.worksheet p {
  font-size: 10.5pt;
  line-height: 1.45;
  margin-bottom: 3mm;
}
.worksheet h3,
.worksheet .field-title {
  font-family: var(--body);
  font-size: 11.5pt;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: normal;
  margin: 4mm 0 2mm;
  max-width: none;
  color: var(--forest);
}
.writing-space {
  height: 21mm;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 6.5mm,
    #c7cbc5 6.5mm,
    #c7cbc5 6.7mm
  );
  margin: 1mm 0 4mm;
}
.worksheet .page-content > p:last-child {
  border-top: 1px solid var(--ink);
  padding-top: 3mm;
  font-size: 9.5pt;
}
.standalone .worksheet {
  margin: 0;
}
.standalone .skip {
  display: none;
}
@page {
  size: A4;
  margin: 0;
}
@media print {
  body {
    background: white;
  }
  .page {
    margin: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .page:last-child {
    break-after: auto;
  }
  .skip {
    display: none;
  }
}
@media screen and (max-width: 820px) {
  body {
    font-size: 17px;
    line-height: 1.65;
    background: var(--ivory);
  }
  .page {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 28px 24px;
    border-bottom: 1px solid var(--rule);
  }
  .running {
    font-size: 10px;
    margin-bottom: 28px;
  }
  .running > span:last-child {
    text-align: right;
  }
  h2,
  .references h2,
  .worksheet h2,
  .worksheet h1 {
    font-size: 34px;
    margin-bottom: 25px;
  }
  h3 {
    font-size: 17px;
  }
  .cover-title {
    margin-top: 55px;
  }
  h1 {
    font-size: clamp(40px, 9vw, 64px);
  }
  .brand {
    font-size: 12px;
  }
  .brand > span {
    font-size: 8px;
  }
  .eyebrow {
    font-size: 13px;
  }
  .subtitle {
    font-size: 23px;
  }
  .book-trace {
    height: auto;
    margin-top: 25px;
  }
  .cover-note {
    font-size: 18px;
  }
  .status {
    font-size: 12px;
  }
  .routes {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .routes strong {
    font-size: 26px;
  }
  .routes span,
  .index-note {
    font-size: 16px;
  }
  .index {
    font-size: 16px;
  }
  .index a {
    padding: 12px 0;
  }
  .references {
    font-size: 16px;
    line-height: 1.65;
  }
  .references p:last-child {
    font-size: 14px;
  }
  .worksheet p,
  .worksheet .page-content > p:last-child {
    font-size: 16px;
  }
  .worksheet h3,
  .worksheet .field-title {
    font-size: 18px;
  }
  .writing-space {
    height: 90px;
  }
  footer {
    position: static;
    margin-top: 35px;
    font-size: 10px;
    padding-top: 12px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
}
