/* Utilities for this journal. The serif source takes precedence over the grid's type cue. */
:root {
  color-scheme: light;
  --graphite: #2e3338;
  --accent: #b43620;
  --muted: #515e67;
  --cool: #e9edef;
  --paper: #fafbfc;
  --rule: #b5bec5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; padding-top: 1.5rem; color: var(--graphite); background: var(--paper); font-size: 18px; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: .07em; }
a:hover { color: var(--graphite); }
button, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
p { margin: .75rem 0 1.25rem; }
h1, h2, h3, p, a, th, td { overflow-wrap: break-word; }
figure, table, select { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
section:focus, main:focus { outline: none; }
section:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.u-serif { font-family: Georgia, 'Times New Roman', Times, serif; }
.u-wrap { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.u-prose { max-width: 68ch; }
.u-grid { display: grid; }
.u-cols-title { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.u-cols-reading { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.u-cols-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.u-flex { display: flex; align-items: center; }
.u-between { justify-content: space-between; }
.u-wrap-flex { flex-wrap: wrap; }
.u-gap { gap: .5rem 1.25rem; }
.u-gap-lg { gap: 3rem; }
.u-min0 { min-width: 0; }
.u-align-start { align-self: start; }
.u-bg-cool { background: var(--cool); }
.u-rule-top { border-top: 1px solid var(--graphite); }
.u-rule-bottom { border-bottom: 1px solid var(--rule); }
.u-rule-left { border-left: 3px solid var(--accent); }
.u-accent { color: var(--accent); }
.u-muted { color: var(--muted); }
.u-bold { font-weight: 700; }
.u-cap { font-size: 16px; line-height: 1.5; letter-spacing: .055em; }
.u-h1 { font-size: clamp(2.45rem, 4.4vw, 4rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 400; margin: 1.25rem 0 1.5rem; max-width: 24ch; }
.u-h2 { font-size: clamp(1.7rem, 2.5vw, 2.15rem); line-height: 1.25; font-weight: 400; letter-spacing: -.014em; margin: 0 0 1.25rem; }
.u-h3 { font-size: 21px; line-height: 1.35; margin: 0 0 .75rem; }
.u-lead { font-size: 22px; line-height: 1.5; }
.u-pad { padding: 1.5rem; }
.u-py { padding-block: 1.25rem; }
.u-py-lg { padding-block: 3rem; }
.u-pb { padding-bottom: .75rem; }
.u-m0 { margin: 0; }
.u-mt { margin-top: 1rem; }
.u-mb { margin-bottom: 1rem; }
.u-mt-lg { margin-top: 3rem; }
.u-mb-lg { margin-bottom: 3rem; }
.u-my { margin-block: 1.5rem; }
.u-flow > * + * { margin-top: 1rem; }
.u-section { margin-bottom: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.u-plain-list { padding: 0; margin: 0; list-style: none; }
.u-list { padding-left: 1.65rem; margin: 1.5rem 0; }
.u-tap { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; min-width: 44px; padding: .5rem .25rem; }
.u-block { display: block; }
.u-link-row { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4rem; min-height: 44px; padding: 1.1rem 0; text-decoration: none; font-size: 18px; }
.u-link-row:hover > :first-child { text-decoration: underline; text-underline-offset: .22em; }
.u-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 18px; }
.u-table th, .u-table td { text-align: left; vertical-align: top; border-block: 1px solid var(--rule); padding: 1rem .75rem; }
.u-table th:first-child { width: 36%; padding-left: 0; }
.u-table thead { background: var(--cool); }
.u-table thead th { padding-left: .75rem; font-size: 16px; }
.u-table td p { margin: 0; }
.u-control { display: block; width: 100%; min-height: 48px; border: 1px solid var(--muted); border-radius: 0; padding: .6rem .75rem; background: var(--paper); font-size: 18px; }
.u-button { color: var(--paper); background: var(--graphite); border-color: var(--graphite); }
.u-button:hover { background: var(--accent); border-color: var(--accent); }
.u-skip { position: absolute; top: -8rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--paper); border: 2px solid var(--accent); }
.u-skip:focus { top: .5rem; }
@media (min-width: 1000px) {
  [data-role="section-index"] { position: sticky; top: 1.5rem; }
}
@media (max-width: 760px) {
  body { padding-top: 1rem; }
  .u-wrap { width: min(100% - 2rem, 1200px); }
  .u-cols-title, .u-cols-reading, .u-cols-two { grid-template-columns: minmax(0, 1fr); }
  .u-gap-lg { gap: 1.5rem; }
  .u-py-lg { padding-block: 2rem; }
  .u-mb-lg { margin-bottom: 2rem; }
  .u-pad { padding: 1.25rem; }
  .u-h1 { font-size: 2.65rem; }
  .u-lead { font-size: 21px; }
  .u-table { font-size: 17px; }
  .u-table th, .u-table td { padding: .9rem .5rem; }
  .u-table th:first-child { width: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { padding: 0; background: white; color: black; }
  .u-wrap { width: 100%; }
  .u-cols-title, .u-cols-reading { display: block; }
  [data-role="section-index"], [data-role="orientation"], [data-role="next-note"], [data-role="footer-links"], .u-skip { display: none !important; }
  .u-h1 { font-size: 2.2rem; }
  .u-h2 { font-size: 1.6rem; }
  .u-pad { padding: .75rem; }
  .u-mt-lg, .u-mb-lg { margin-block: 1.5rem; }
  .u-py-lg { padding-block: 1.5rem; }
  .u-section { margin-bottom: 1.5rem; }
  table, aside, [data-role="sources-box"] { break-inside: avoid; }
  a { color: black; }
}
