:root {
  --accent-color: #c97855;
  --bg-color: #ffffff;
  --text-color: #000000;
  --font-base: 20px;
  --font-serif: Georgia, 'Times New Roman', serif;
  --sidebar-width: 260px;
  --divider-width: 4px;
  --mobile-content-padding: 120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: var(--font-base);
  line-height: 1.6;
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  padding: 2rem 1.5rem;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.sidebar h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.sidebar .subtitle {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--text-color);
  opacity: 0.8;
}

.sidebar h1 a {
  color: var(--text-color);
  text-decoration: none;
}

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

.post-list li {
  margin-bottom: 0.75rem;
}

.post-list a {
  color: var(--text-color);
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

.divider {
  width: var(--divider-width);
  background-color: var(--accent-color);
  flex-shrink: 0;
}

.content {
  flex: 1;
  padding: 2rem 3rem;
  max-width: 800px;
}

article h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

article p {
  margin-bottom: 1rem;
}

article ul,
article ol {
  margin-bottom: 1rem;
  margin-left: 2rem;
}

article li {
  margin-bottom: 0.5rem;
}

@media (max-width: 799px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    display: contents;
  }

  .sidebar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid var(--accent-color);
    background-color: var(--bg-color);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .sidebar nav {
    order: 2;
    padding: 2rem 1rem;
    width: 100%;
    border-top: 1px solid var(--accent-color);
  }

  .sidebar h1 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .sidebar .subtitle {
    margin-bottom: 0;
  }

  .post-list {
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .post-list li {
    margin-bottom: 0;
  }

  .divider {
    display: none;
  }

  .content {
    order: 1;
    padding: 1rem;
    padding-top: var(--mobile-content-padding);
  }
}
