@view-transition {
  navigation: auto;
}

/*
  Josh's Custom CSS Reset
  joshwcomeau.com/css/custom-css-reset/
*/

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

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

/* end josh's reset */

:root {
  --pagefind-ui-scale: 1.2!important;
}

/* googled for a font stack */
body {
  & p {
    text-align: justify;
    text-indent: 2em;
    margin: 0.5rem 0;
  }

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  margin: 2rem auto;
  max-width: 650px;
}

/* end font stack */
h1 {
  font-size: 1.5rem;
}
h2 {
  font-size: 1.25rem;
}
h1,
h2 {
  padding-bottom: 1rem;
}
.subchapter {
  margin: 1rem 0;
}
.content-wrap {
  max-width: 650px;
  margin: 0 auto;
}
.navbar, .all-navbar {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  & a {
    margin-left: 1rem;
  }
}

.all-navbar {
  position: sticky;
  top: 0;
  padding: .5rem;
  background-color: white;
}

.index li,
.subchapter li {
  margin-bottom: 0.25rem;
  list-style-type: none;
  display: grid;
  grid-template-columns: 16fr 2fr 1fr;
}
.index li {
  display: block;
}
.alt1,
.alt2 {
  margin: 0 0.5rem;
  font-size: 0.6rem;
}

.single-rule {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid goldenrod;
}

.r-title {
  font-weight: bold;
  margin-bottom: 1rem;
}

.footnote {
  margin-top: 2rem;
  font-style: italic;
}
.subchapter-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.index-container {
  width: 100%;
}

#pagefind-search {
  width: 600px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  body > * {
     margin: 20px;
  }
}



@media (min-width: 1400px) {
  body {
    max-width: unset;
  }
  h1, .index {
    margin: 0 auto;
    width: max-content;
  }
  .subchapter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
