@font-face {
  font-family: "Supreme";
  src: url(../fonts/SupremeLLWeb/SupremeLL-Jumbo.otf);
  font-weight: 900;
}

@font-face {
  font-family: "Supreme";
  src: url("../fonts/SupremeLLWeb/SupremeLLWeb-Bold.woff") format("woff");
  font-weight: 700;
}

@font-face {
  font-family: "Supreme";
  src: url("../fonts/SupremeLLWeb/SupremeLLWeb-Black.woff") format("woff");
  font-weight: 800;
}
/*@font-face {
  font-family: "Supreme";
  src: url("../fonts/SupremeLLWeb/SupremeLLWeb-Medium.woff") format("woff");
  font-weight: 500;
}*/
@font-face {
  font-family: "Supreme";
  src: url("../fonts/SupremeLLWeb/SupremeLLWeb-Regular.woff") format("woff");
  font-weight: normal;
}

@font-face {
  font-family: "Computer Modern";
  src: url("../fonts/ComputerModern/cmunbi.ttf");
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: "Computer Modern";
  src: url("../fonts/ComputerModern/cmunbx.ttf");
  font-weight: bold;
}
@font-face {
  font-family: "Computer Modern";
  src: url("../fonts/ComputerModern/cmunrm.ttf");
}
@font-face {
  font-family: "Computer Modern";
  src: url("../fonts/ComputerModern/cmunti.ttf");
  font-style: italic;
}

:root {
  --color-primary: #FF5733;
  --color-secondary: #ccc;
  --color-text: #333;
  --color-body-bg: #fcfcfc; /* #fafafa */
  --color-main-bg: #fffff4; /* ivory */
  --main-width: 64rem;
}
::selection {
  background: var(--color-text);
  color: var(--color-primary);
}

body, html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Computer Modern", serif;
  color: var(--color-text);
  background: var(--color-body-bg);
  line-height: 1.25;
  font-size: 1.2em;
  counter-reset: chapter -1;
  display: flex;
  flex-direction: column;
}
nav { 
  position: sticky;
  top: 0;
  background: var(--color-main-bg);
  z-index: 1;
  max-width: var(--main-width);
  margin: 0 auto;
}
nav a, footer {
  font-family: "Supreme";
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  margin: 0;
}
footer {
  display: flex;
  gap: 1rem;
  margin-top: 4rem;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Supreme";
  font-weight: 800;
}
a {
  text-decoration: none;
  color: var(--color-primary);
  transition: 0.2s;
}
a:hover { text-decoration: underline; }

main {
  width: 100%;
  max-width: var(--main-width);
  background: var(--color-main-bg);
  margin: 0 auto;
  padding: 0 6rem 4rem 6rem;
  box-sizing: border-box;
  flex: 1;
  border-top: 2px solid var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

.logs-list {
  margin-top: 2rem;
}
.logs-list li { list-style: none; margin: 0.5rem 0; }
.outer-list { padding-left: 0; }
.inner-list { padding-left: 0.75rem; }
.year-li { margin: 1.5rem 0 0.5rem 0 !important; }
.logs-list .day {
  margin-right: 0.25rem;
}

article header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10rem;
  margin-top: 2rem;
  margin-bottom: 8rem;
}
article header h2 {
  font-size: 1.8em;
}
article header h1 {
  text-align: right;
  font-size: 2.5em;
  padding-bottom: 2rem;
  border-bottom: 2px solid;
  margin-bottom: 1rem;
}
article header time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.log-content p:not(h2 + p):not(h3 + p) {
  text-indent: 2rem;
  text-align: justify;
}
.log-content h2 {
  counter-increment: section;
  counter-reset: subsection;
  position: relative;
}
.log-content h3 {
  counter-increment: subsection;
  position: relative;
}
.log-content h2::before, .log-content h3::before {
  content: counter(section) ". ";
  font-family: "Computer Modern", serif;
  font-size: 0.6em;
  left: -1rem;
  position: absolute;
  transform: translateX(calc(-100% + 0rem));
}
.log-content h3::before {
  content: counter(section) "." counter(subsection) !important;
}



.right {
  text-align: right;
}
