
:root {
  --bg: #fff;
  --text: #242424;
  --text-muted: #333333;
  --subtext: #555453;
  --link: #267df4;
  --nav-bg: #eee;
  --nav-text: #444;
  --header-bg: #aec6cf;
  --footer-bg: #aec6cf;
  --aside-bg: #aec6cf;
  --article-border: #999;
}

body.dark-mode {
  --bg: #121212;
  --text: #f2f2f2;
  --text-muted: #cccccc;
  --subtext: #aaaaaa;
  --link: #82b1ff;
  --nav-bg: #333;
  --nav-text: #f2f2f2;
  --header-bg: #1e1e1e;
  --footer-bg: #1e1e1e;
  --aside-bg: #1e1e1e;
  --article-border: #555;
}

.column {
  float: left;
  width: 25%;
  padding: 5px;
}

.row::after {
  content: "";
  clear: both;
  display: table;
} 

body, html {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
}
header {
  background: var(--header-bg);
  padding: 20px 30px;
  max-width: 940px;
  margin: auto;
}

nav {
  display: inline-block;
}

nav ul li a {
  background: var(--nav-bg);
  padding: 2px 10px;
  font-size: 20px;
  text-decoration: none;
  font-weight: bold;
  color: var(--nav-text);
  border-radius: 10px;
}

nav ul li a:hover {
  background: var(--bg);
}

nav ul li {
  display: inline-block;
  margin: 10px;
}

nav ul {
  list-style: none;
}

#pageContent {
  max-width: 1000px;
  margin: auto;
  border: none;
}

main {
  float: left;
  width: 60%;
}

aside {
  float: right;
  width: 30%;
}

article {
  border-bottom: 2px dotted var(--article-border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

article h2 {
  font-weight: normal;
  margin-bottom: 12px;
}

h1 {
  font-size: 62px;
  line-height: 72px;
  max-width: 680px;
  width: 100%;
  font-family: Helvetica, sans-serif;
  font-weight: 700;
  color: var(--text);
  margin: auto;
}

h2 {
  font-size: 46px;
  line-height: 52px;
  margin-bottom: 64px;
  max-width: 680px;
  width: 100%;
  font-family: Helvetica, sans-serif;
  font-weight: 700;
  color: var(--text);
  margin: auto;
}

h3 {
  font-size: 32px;
  line-height: 38px;
  font-weight: 300;
  margin-bottom: 46px;
  color: var(--text);
}

h4 {
  font-size: 26px;
  line-height: 34px;
  font-weight: 300;
  margin-bottom: 25px;
  color: var(--text);
}

p {
  font-size: 20px;
  font-family: "Georgia", Times, serif;
  line-height: 32px;
  color: var(--text-muted);
  max-width: 680px;
  width: 100%;
  text-align: justify;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 32px);
}

a {
  color: var(--link);
  text-decoration: underline;
}

sub {
  color: var(--subtext);
  font-size: 16px;
  max-width: 680px;
  display: inline-block;
}

footer {
  background: var(--footer-bg);
  max-width: 1000px;
  margin: auto;
  clear: both;
  text-align: right;
}

footer p {
  padding: 20px;
}

address {
  padding: 10px 20px 30px 10px;
}

aside > div {
  margin: 10px auto;
  background: var(--aside-bg);
  min-height: 100px;
}

@media screen and (max-width: 1000px) {
  body > section {
    padding: 30px 20px;
  }
}

@media screen and (max-width: 800px) {
  main {
    float: none;
    width: 100%;
  }
  aside {
    float: none;
    width: 100%;
  }
  h1 {
    font-size: 36px; line-height: 42px;
  }
  h2 {
    font-size: 28px; line-height: 34px; margin-bottom: 32px;
  }
  h3 {
    font-size: 22px; line-height: 28px;
  }
  h4 {
    font-size: 18px; line-height: 24px;
  }
  p {
    font-size: 16px; line-height: 26px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block; 
}

.inline-img {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px; 
  margin: 0 auto;
}

.inline-img img {
  flex: 1 1 calc(50% - 10px); 
  margin: 5px; 
}

@media (min-width: 800px) {
  .inline-img img {
    flex: 1 1 calc(33.333% - 10px); 
  }
}

#theme-toggle {
  position: relative;
  float: right;
  top: 1rem; 
  right: 1rem; 
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 2px;
}