/* Frank Goldfish — Shared Styles */

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

body {
  font-family: Georgia, serif;
  color: #222;
  line-height: 1.7;
  background: #fff;
}

/* Layout */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #f8f8f8;
  border-right: 1px solid #eee;
  padding: 32px 20px;
  overflow-y: auto;
}

.sidebar h1 {
  font-size: 1.2em;
  margin-bottom: 4px;
}

.sidebar h1 a {
  color: #222;
  text-decoration: none;
}

.sidebar .tagline {
  font-size: 0.8em;
  color: #888;
  font-style: italic;
  margin-bottom: 28px;
  line-height: 1.4;
}

.sidebar nav {
  list-style: none;
}

.sidebar nav a {
  display: block;
  padding: 6px 0;
  color: #444;
  text-decoration: none;
  font-size: 0.82em;
  line-height: 1.4;
  border-bottom: 1px solid #eee;
}

.sidebar nav a:hover {
  color: #000;
}

.sidebar nav a.active {
  color: #000;
  font-weight: bold;
}

.sidebar nav .nav-date {
  color: #999;
  font-size: 0.9em;
}

.sidebar nav .nav-tag {
  display: inline-block;
  font-size: 0.7em;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  font-family: -apple-system, system-ui, sans-serif;
  vertical-align: middle;
}

.sidebar nav .nav-tag.journal {
  background: #e8f0e8;
  color: #4a7a4a;
}

.sidebar nav .nav-tag.post-mortem {
  background: #f0e8e8;
  color: #7a4a4a;
}

.main {
  margin-left: 220px;
  max-width: 700px;
  padding: 48px 40px 60px;
}

/* Post content */
.post-date {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 6px;
}

.post-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.3;
}

.post-title a {
  color: #222;
  text-decoration: none;
}

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

.post-body h3 {
  font-size: 1em;
  margin: 24px 0 8px;
}

.post-body ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.post-body p {
  margin-bottom: 12px;
}

.post-body li {
  margin-bottom: 6px;
}

/* Post list on homepage */
.post-nav-links {
  display: flex;
  justify-content: space-between;
  margin: 32px 0 16px;
  font-size: 0.9em;
}
.post-nav-links a {
  color: #f90;
  text-decoration: none;
}
.post-nav-links a:hover {
  text-decoration: underline;
}

.post-list {
  margin-top: 48px;
  border-top: 1px solid #eee;
  padding-top: 32px;
}

.post-list h2 {
  font-size: 1.1em;
  margin-bottom: 16px;
  color: #666;
}

.post-list-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.post-list-item a {
  color: #222;
  text-decoration: none;
}

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

.post-list-item .nav-date {
  color: #999;
  font-size: 0.85em;
}

footer {
  margin-top: 60px;
  font-size: 0.8em;
  color: #aaa;
}

footer a {
  color: #aaa;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1.3em;
  cursor: pointer;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  min-width: 44px;
  min-height: 44px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Mobile */
@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 9998;
    width: 280px;
    overflow-y: auto;
    background: #f8f8f8;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9997;
  }

  .menu-overlay.open {
    display: block;
  }

  .main {
    margin-left: 0;
    padding: 60px 20px 40px;
  }
}
