/* By Oskar Wickström\nLicensed under the MIT License (https://github.com/owickstrom/the-proportional-web/blob/main/LICENSE.md)\n*/
@import "https://fonts.googleapis.com/css2?family=Alegreya+SC:ital,wght@0,400;0,500;0,700;0,800;0,900;1,400;1,500;1,700;1,800;1,900&family=Alegreya:ital,wght@0,400..900;1,400..900&family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap";

/* src/reset.css */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* src/base.css */
:root {
  --font-family: "Alegreya", serif;
  --font-family-code: "Courier Prime", monospace;
  --line-height: 1.20rem;
  --border-thickness: 1.5px;
  --text-color: #000;
  --background-color: #fff;
  --horizontal-margin: 3ch;
  --body-inner-width: 66ch;
  --body-max-width: calc(var(--body-inner-width) + var(--horizontal-margin) * 2);
  --font-weight-normal: 450;
  --font-weight-medium: 600;
  --font-weight-bold: 800;
  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-weight: var(--font-weight-normal);
  font-style: normal;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "onum";
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
* + * {
  margin-top: var(--line-height);
}

/* src/headings.css */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-normal);
  margin: calc(var(--line-height) * 2) 0 var(--line-height);
  line-height: var(--line-height);
}
.header-section-number {
  font-family: "Alegreya", serif;
  font-size: .875rem;
  font-weight: 500;
  font-variant: initial;
  letter-spacing: 0;
  margin-right: .5ch;
  font-style: normal;
}
body h1,
h2#toc-title {
  font-family: "Alegreya SC", serif;
  font-variant: titling-caps;
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--line-height) 0 calc(var(--line-height) - var(--border-thickness));
  border-bottom: var(--border-thickness) solid var(--text-color);
}
h1 .header-section-number {
  display: none;
}
h2 {
  font-family: "Alegreya SC", serif;
  font-size: 1.25rem;
  font-variant: all-small-caps;
  font-weight: 450;
  line-height: var(--line-height);
  letter-spacing: 0.125em;
}
h3 {
  font-style: italic;
  margin: var(--line-height) 0;
}
h4 {
}

/* src/tables.css */
table {
  width: 100%;
  border-collapse: collapse;
  margin: calc(var(--line-height) * -0.5) 0 calc(var(--line-height) * 1.5);
  padding: 0;
}
th,
td {
  padding: calc(var(--line-height) / 2) .5ch;
  line-height: var(--line-height);
  vertical-align: top;
  text-align: left;
}
th {
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 500;
  letter-spacing: 0.075em;
}
thead tr:last-child th {
  border-bottom: var(--border-thickness) solid var(--text-color);
}

/* src/blockquotes.css */
blockquote {
  padding: 0;
  margin: var(--line-height) 3ch;
}
blockquote p {
  text-indent: 0;
  white-space: normal;
}
blockquote p:first-of-type:before {
  display: inline;
  content: "\201c";
}
blockquote p:last-of-type::after {
  display: inline;
  content: "\201d";
}
blockquote footer {
  order: 9999;
  margin-top: var(--line-height);
  font-style: normal;
}
blockquote footer > * {
  margin: 0;
}
blockquote .author {
  font-family: "Alegreya SC", serif;
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 450;
  line-height: var(--line-height);
  letter-spacing: 0.075em;
  height: 1rem;
  line-height: 1rem;
}
blockquote cite {
  font-style: italic;
  margin: 0;
  line-height: var(--line-height);
}
blockquote .year {
  display: block;
}

/* src/details.css */
details {
  margin: var(--line-height) 0;
  border-top: var(--border-thickness) solid var(--text-color);
  border-bottom: var(--border-thickness) solid var(--text-color);
  padding: var(--line-height) 0;
}
summary {
  font-weight: var(--font-weight-normal);
  font-style: italic;
  cursor: pointer;
}
details[open] summary {
  margin-bottom: var(--line-height);
}
details ::marker {
  content: "";
}
details summary::before {
  display: inline-block;
  content: "\bb";
  margin: 0 .5ch 0 0;
  font-style: normal;
}
details[open] summary::before {
  transform: rotate(90deg);
}
details :last-child {
  margin-bottom: 0;
}

/* src/asides.css */
aside {
  position: relative;
  font-size: 0.875rem;
  line-height: var(--line-height);
  margin: var(--line-height) 0;
}
aside:before {
  display: inline-block;
  content: "\2767";
  font-size: 1rem;
  height: .875rem;
  margin-right: .5ch;
  line-height: var(--line-height);
}
@media screen and (min-width: 95ch) {
  aside {
    position: absolute;
    width: 20ch;
    top: anchor(top);
    left: 100%;
    margin: 0;
    text-align: left;
  }
  aside:before {
    display: none;
  }
  p + aside + p {
    margin-top: 0;
    text-indent: 3ch;
  }
}

/* src/figures.css */
figure {
  margin: calc(var(--line-height) * 2) var(--horizontal-margin);
  overflow-x: auto;
  overflow-y: hidden;
}
figure > *:first-child {
  margin-top: 0;
}
figure > *:last-child {
  margin-bottom: 0;
}
figcaption {
  display: block;
  margin-top: var(--line-height);
}
figcaption .author {
  font-family: "Alegreya SC", serif;
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 450;
  line-height: var(--line-height);
  letter-spacing: 0.075em;
  height: 1rem;
  line-height: 1rem;
}
figcaption cite {
  font-style: italic;
  margin: 0;
  line-height: var(--line-height);
}
figure pre {
  margin: 0;
}

/* src/elements.css */
hr {
  position: relative;
  display: block;
  height: var(--line-height);
  margin: calc(var(--line-height) * 1.5) 0;
  border: none;
  color: var(--text-color);
}
hr:before {
  display: block;
  content: "";
  position: absolute;
  top: calc(var(--line-height) / 2);
  left: 0;
  width: 100%;
  border-top: var(--border-thickness) solid var(--text-color);
  height: 0;
}
hr:after {
  display: inline-block;
  content: "\2767";
  position: absolute;
  top: 0;
  left: calc(50% - 1ch);
  width: 2ch;
  text-align: center;
  font-size: 2rem;
  background: var(--background-color);
}
a {
  text-decoration-thickness: var(--border-thickness);
}
a:link,
a:visited {
  color: var(--text-color);
}
p {
  margin: var(--line-height) 0 0;
  text-align: justify;
  word-break: break-all;
}
p + p {
  margin-top: 0;
  text-indent: 3ch;
}
h1 + p,
h2 + p,
h3 + p,
h4 + p,
hr + p {
  text-indent: 0;
}
strong {
  font-weight: var(--font-weight-bold);
}
em {
  font-style: italic;
}
abbr {
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 500;
  letter-spacing: 0.05em;
}
sub {
  position: relative;
  display: inline-block;
  margin: 0;
  vertical-align: sub;
  line-height: 0;
  width: calc(1ch / 0.75);
  font-size: .75rem;
}
p {
  word-break: break-word;
  text-wrap: pretty;
  hyphens: auto;
  hyphenate-limit-chars: 3;
}
img,
video {
  display: block;
  width: 100%;
  object-fit: contain;
  overflow: hidden;
}
img {
  font-style: italic;
  color: var(--text-color);
}
pre {
  white-space: pre;
  margin: var(--line-height) 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
pre,
code {
  font-family: var(--font-family-code);
  font-weight: 450;
}
code {
  font-size: .95em;
  letter-spacing: -0.025em;
}
ul,
ol {
  padding: 0;
  margin: 0 0 var(--line-height);
}
ul {
  list-style-type: none;
  padding: 0;
}
ul li:before {
  content: "\2022";
  margin-right: 1ch;
}
ol {
  list-style-type: none;
  counter-reset: item;
  padding: 0;
}
ol ul,
ol ol,
ul ol,
ul ul {
  padding: 0 0 0 2ch;
  margin: 0;
}
ol li:before {
  font-size: .875rem;
  font-weight: 500;
  content: counters(item, ".") ". ";
  counter-increment: item;
}
li {
  margin: 0;
  padding: 0;
}
li::marker {
  line-height: 0;
}

/* src/layout.css */
html {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  flex-direction: column;
  align-items: left;
  background: var(--background-color);
  color: var(--text-color);
}
body {
  position: relative;
  width: 100%;
  margin: 0;
  padding: var(--line-height) var(--horizontal-margin);
  max-width: var(--body-max-width);
  line-height: var(--line-height);
  overflow-x: hidden;
}
@media screen and (min-width: 112ch) {
  html {
    align-items: center;
  }
}
@media screen and (max-width: 480px) {
  :root {
    font-size: 14px;
  }
  body {
    padding: var(--line-height) 1.5ch;
  }
}
.toc-section-number {
  height: 1rem;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-right: .5ch;
  font-style: normal;
}
#TOC > ul {
  padding: 0;
}
#TOC ul li:before {
  content: "";
  margin: 0;
}
#TOC a {
  display: block;
  height: var(--line-height);
  text-decoration: none;
}
#TOC a:hover {
  text-decoration: underline;
}
@media print {
  body {
    max-width: initial;
  }
  body > h1,
  img {
    break-before: page;
  }
}

/* src/header.css */
header {
  margin: calc(var(--line-height) * 3) 0;
}
header h1 {
  font-family: "Alegreya SC", serif;
  font-variant: all-small-caps;
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: calc(2 * var(--line-height));
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}
header .subtitle {
  font-size: 1.25rem;
  line-height: calc(2 * var(--line-height));
  margin: calc(var(--line-height) * .5) 0;
}
header p {
  text-indent: 0;
  text-align: left;
}

/* src/extras.css */
.canonical-name {
  font-family: "Alegreya SC", serif;
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 450;
  line-height: var(--line-height);
  letter-spacing: 0.075em;
}

/* src/index.css */
