/* Classic blog-theme inspired baseline */
* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

:root {
  /* Light: unchanged from pre-theme-toggle maxima */
  --bg: #fdfdfd;
  --text: #111;
  --muted: #828282;
  --border: #e8e8e8;
  --site-title: #424242;
  --link: #2a7ae2;
  --link-visited: #1756a9;
  --accent-blue: #2a7ae2;
}

/* Dark: same token palette as default theme */
[data-theme="dark"] {
  --bg: #1e1e1e;
  --text: #ddd;
  --muted: #888;
  --border: #333;
  --site-title: #ddd;
  --link: #7d96ff;
  --link-visited: #b392ff;
  --accent-blue: #7d96ff;
}

body {
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
ul,
ol,
dl,
figure,
.highlight {
  margin-bottom: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul,
ol {
  margin-left: 30px;
}

li > ul,
li > ol {
  margin-bottom: 0;
}

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

a:visited {
  color: var(--link-visited);
}

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

.wrapper {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  min-height: 56px;
  line-height: 54px;
  position: relative;
}

.site-title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
}

.site-title,
.site-title:visited {
  color: var(--site-title);
}

.site-nav {
  float: right;
  line-height: 54px;
}

.site-nav .page-link {
  color: var(--text);
  line-height: 1.5;
}

.site-nav .page-link:not(:last-child) {
  margin-right: 20px;
}

#theme-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  padding: 0 0 0 16px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

#theme-btn:hover {
  color: var(--text);
}

.theme-icon {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.page-content {
  padding: 30px 0;
}

.page-heading {
  font-size: 32px;
}

.post-list-heading {
  font-size: 28px;
}

.post-list {
  margin-left: 0;
  list-style: none;
}

.post-list > li {
  margin-bottom: 30px;
}

.post-meta {
  font-size: 14px;
  color: var(--muted);
}

.post-link {
  display: block;
  font-size: 24px;
  font-weight: 400;
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1;
}

.post-content {
  margin-bottom: 30px;
}

.post-content h2 {
  font-size: 32px;
}

.post-content h3 {
  font-size: 26px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 15px;
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.social-media-list li {
  margin-bottom: 5px;
}

.social-media-list a {
  display: inline-flex;
  align-items: center;
}

.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

.grey {
  fill: var(--muted);
  color: var(--muted);
}

.username {
  margin-left: 7px;
}

.rss-subscribe {
  color: var(--muted);
  font-size: 15px;
}

.footer-col-wrapper {
  font-size: 15px;
  color: var(--muted);
  margin-left: -15px;
  display: flex;
  flex-wrap: wrap;
}

.footer-col {
  padding-left: 15px;
  margin-bottom: 15px;
}

.footer-col-1 {
  width: calc(35% - 15px);
}

.footer-col-2 {
  width: calc(20% - 15px);
}

.footer-col-3 {
  width: calc(45% - 15px);
}

@media screen and (max-width: 800px) {
  .wrapper {
    max-width: 800px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .footer-col-1,
  .footer-col-2,
  .footer-col-3 {
    width: calc(100% - 15px);
  }

  .post-title {
    font-size: 36px;
  }
}
