/* ==========================================================
   JOURNA :: THE CHARTER (/charter)
   Plain rules, set like a ship's articles: one column for reading, every rule numbered in the margin so it can be pointed at.
   ========================================================== */

.charter { max-width: 44rem; margin: 0 auto; padding: 2.5rem 0 1rem; }

.charter-head { text-align: center; padding-bottom: 2rem; }
.charter-head h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); margin-bottom: .35rem; }
.charter-adopted { color: var(--ink-faint); font-style: italic; margin: 0 0 1.5rem; }
.charter-preamble { text-align: left; font-size: 1.08rem; }
.charter-motto {
  font-family: var(--display); font-synthesis: none; font-size: clamp(1.3rem, 4vw, 1.6rem); line-height: 1.4;
  color: var(--ink); margin: 2rem auto 0; padding: 1.1rem 0; max-width: 34rem;
  border-top: 1px solid var(--rope); border-bottom: 1px solid var(--rope);
}

/* Contents: the eleven sections, numbered as the rules are. */
.charter-contents { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1rem; }
.charter-contents h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.charter-contents ol { margin: 0; padding-left: 1.6rem; columns: 2 14rem; column-gap: 2rem; }
.charter-contents li { padding: .15rem 0; break-inside: avoid; }
.charter-contents li::marker { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.charter-contents a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: .2em; }

.charter-section { border-top: 1px solid var(--line); margin-top: 2.25rem; padding-top: 1.75rem; scroll-margin-top: 8.5rem; }
.charter-section h2 { font-size: clamp(1.45rem, 4.5vw, 1.8rem); margin-bottom: .9rem; }
.section-no { color: var(--rope); margin-right: .35em; }
.charter-section h3 { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 1.6rem 0 .4rem; }
.charter-section > p { font-size: 1.05rem; }

/* The rules: the number sits in the margin and is its own link. */
.charter-rules { list-style: none; margin: 0; padding: 0; }
.charter-rules > li {
  display: grid; grid-template-columns: 3rem 1fr; column-gap: .6rem; align-items: baseline;
  padding: .55rem .5rem; margin: 0 -.5rem; border-radius: var(--radius-sm); scroll-margin-top: 8.5rem;
}
.charter-rules > li:target { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--rope); }
.rule-no {
  font-family: var(--sans); font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--ink-faint);
  text-decoration: none; justify-self: end;
}
.rule-no:hover, .rule-no:focus-visible { color: var(--ink); text-decoration: underline; }
.rule-text p { margin: 0; font-size: 1.05rem; }
.rule-text ul { margin: .45rem 0 0; padding-left: 1.2rem; }
.rule-text ul li { padding: .2rem 0; }
.rule-text ul li::marker { color: var(--rope); }

/* The words: each term in bold, its meaning beside it. */
.charter-words { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.charter-words li { padding: .5rem 0; border-bottom: 1px dotted var(--line); font-size: 1.02rem; }
.charter-words li:last-child { border-bottom: 0; }
.charter-words strong { font-weight: 600; }

.charter-end { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .92rem; text-align: center; }

@media (max-width: 30rem) {
  .charter { padding-top: 1.5rem; }
  .charter-rules > li { grid-template-columns: 2.4rem 1fr; column-gap: .45rem; }
  .charter-contents ol { columns: 1; }
}

/* ==========================================================
   WHY ANYTHING COSTS MONEY (/why-anything-costs-money): the owner's page, set in the charter's one reading column.
   ========================================================== */
.costs-lead > p { font-size: 1.08rem; }
.costs .costs-strong {
  font-family: var(--display); font-synthesis: none; font-size: clamp(1.2rem, 3.6vw, 1.45rem); line-height: 1.4;
  color: var(--ink); margin: 1.2rem 0;
}
.costs-points { margin: .2rem 0 1.1rem; padding-left: 1.4rem; }
.costs-points li { padding: .12rem 0; }
.costs-points li::marker { color: var(--rope); }
