@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Mono:wght@300;400&display=swap');

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

:root {
  --sidebar-width: 160px;
  --text:          #111;
  --muted:         #777;
  --link:          #111;
  --border:        #e4e4e0;
  --bg:            #fdfcfa;
  --font-body:     'Lora', Georgia, serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  padding: 2.25rem 1rem 2.25rem 1.75rem;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.site-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 1.75rem;
}

.site-title:hover { color: #000; }

nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

nav a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.4;
  transition: color 0.1s;
}

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

nav a.active {
  color: var(--text);
  font-style: italic;
}

.content {
  flex: 1;
  padding: 2.25rem 2.5rem 4rem 3rem;
  max-width: 660px;
}

.content h1 {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.content h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 2.5rem 0 0.75rem;
}

.content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.content ul,
.content ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.content li {
  font-size: 17px;
  line-height: 1.75;
  padding-left: 1rem;
  position: relative;
}

.content ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.content a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 3px;
}

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

.content strong { font-weight: 500; }

.content em {
  font-style: italic;
  color: var(--muted);
}

.placeholder {
  color: var(--muted);
  font-style: italic;
  font-size: 17px;
  line-height: 1.8;
}

.home { padding-top: 2.5rem; }
.home p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}

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

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 1.5rem 1.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .site-title { margin-bottom: 0.75rem; }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  nav a { font-size: 14px; }

  .content {
    padding: 1.75rem 1.5rem 3rem;
    max-width: 100%;
  }
}