/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Geneva, 'Lucida Sans', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
  color: #fff;
  background-color: #503a19;
  min-height: 100vh;
}

a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed #fff;
}

a:hover {
  border-bottom-style: solid;
}

/* ===== Home Page ===== */
.home-layout {
  padding: 40px 40px 60px;
  min-height: 100vh;
}

.home-columns {
  display: flex;
  gap: 80px;
}

@media (max-width: 768px) {
  .home-columns {
    flex-direction: column;
    gap: 2em;
  }
}

.menu-col {
  flex-shrink: 0;
}

.content-col {
  flex: 1;
  border-left: 1px solid rgba(255,255,255,0.05);
  padding-left: 80px;
}

div.bg {
  min-height: 100%;
  min-width: 100%;
  width: 100%;
  height: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1000;
  background: url('/assets/img/tom1.jpg') bottom left no-repeat #503a19;
}

@media (max-width: 768px) {
  .content-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5em;
  }

  div.bg {
    background-image: url('/assets/img/tom1-mobile.jpg');
  }

  h1.span::before {
    content: "\A";
    white-space: pre;
  }
}

.home-layout h1 {
  font-size: 2em;
  margin-bottom: 1em;
}

.home-layout .antiem {
  font-size: 50%;
  font-weight: normal;
}

.home-layout .section {
  margin-bottom: 0.3em;
}

.home-layout .section h3 {
  margin: 0;
  padding: 0;
  float: left;
  font-size: 1.5em;
}

.content-col h2 {
  font-size: 1.8em;
  margin: 0 0 0.5em 0;
}

.home-layout .section ul {
  list-style: none;
  padding-top: 0.5em;
  margin: 0 0 20px 150px;
}

.home-layout .section ul::before {
  content: '(';
}

.home-layout .section ul::after {
  content: ')';
}

.home-layout .section ul li {
  display: inline;
  padding-left: 10px;
}

.home-layout .section ul li:first-child {
  padding-left: 0;
}

.home-layout .section::after {
  content: '';
  display: block;
  clear: both;
}

/* Blog section on home layout */
.blog-section .blog-content {
  margin-left: 150px;
}

.blog-section .blog-content .post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-section .blog-content .post-list::before,
.blog-section .blog-content .post-list::after {
  content: none;
}

.blog-section .blog-content .post-list li {
  display: block;
  padding: 0.3em 0;
}

.blog-section .blog-content .post-date {
  font-size: 0.8em;
  margin-right: 0.5em;
}

.pagination {
  margin-top: 1em;
}

.pagination a {
  margin-right: 1em;
}

.credit {
  font-size: 60%;
  position: fixed;
  bottom: 10px;
  right: 10px;
}

/* ===== Blog List & Post Pages ===== */
.blog-layout {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.blog-layout .site-header {
  margin-bottom: 2em;
}

.blog-layout .site-header h1 {
  font-size: 1.5em;
}

.blog-layout .site-header h1 a {
  border-bottom: none;
}

.blog-layout .site-header .antiem {
  font-size: 50%;
  font-weight: normal;
}

.blog-layout .site-header nav {
  margin-top: 0.5em;
  font-size: 0.9em;
}

.blog-layout .site-header nav a {
  margin-right: 1em;
}

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 1.5em;
}

.post-list .post-date {
  font-size: 0.8em;
  opacity: 0.7;
}

.post-list .post-title {
  font-size: 1.2em;
}

.post-list .post-excerpt {
  margin-top: 0.3em;
  font-size: 0.9em;
  opacity: 0.85;
  line-height: 1.5;
}

/* Single post */
.post-date {
  font-size: 0.8em;
  opacity: 0.7;
  margin-bottom: 2em;
}

.post-content {
  line-height: 1.7;
}

.post-content h1, .post-content h2, .post-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.post-content p {
  margin-bottom: 1em;
}

.post-content pre {
  background: rgba(0,0,0,0.3);
  padding: 1em;
  overflow-x: auto;
  border-radius: 4px;
  margin-bottom: 1em;
}

.post-content code {
  font-size: 0.9em;
}

.post-content blockquote {
  border-left: 3px solid rgba(255,255,255,0.4);
  padding-left: 1em;
  margin: 1em 0;
  opacity: 0.85;
}

.post-content ul, .post-content ol {
  margin: 0 0 1em 1.5em;
}

.post-content img {
  max-width: 100%;
}

.post-meta {
  font-size: 0.85em;
  opacity: 0.7;
  margin-bottom: 2em;
}

.back-link {
  margin-top: 3em;
  display: inline-block;
}
