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

html {
  font-size: 17px;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #fff;
  color: #111;
  line-height: 1.75;
}

a {
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #555;
}

.site {
  max-width: 920px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  padding: 3rem 1.5rem 1.5rem;
  border-bottom: 2px solid #111;
}

.site-header h1 {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.site-header a {
  text-decoration: none;
}

.site-header a:hover {
  color: #555;
}

/* Layout */
.container {
  display: flex;
  flex: 1;
  gap: 3rem;
  padding: 2rem 1.5rem;
}

/* Sidebar */
.sidebar {
  width: 140px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  padding-top: 0.25rem;
}

.sidebar ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.sidebar li {
  margin-bottom: 0.3rem;
}

.sidebar a {
  color: #888;
  font-size: 0.8rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
}

.sidebar a:hover {
  color: #111;
}

.nav-secondary {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

/* Content */
.content {
  flex: 1;
  min-width: 0;
  max-width: 620px;
}

.content h1, .content h2, .content h3, .content h4 {
  color: #111;
  margin: 1.8em 0 0.5em;
  line-height: 1.25;
}

.content h1 {
  font-size: 1.6rem;
  font-weight: normal;
  font-style: italic;
}

.content h2 {
  font-size: 1.2rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.4em;
}

.content h3 {
  font-size: 1rem;
  font-style: italic;
  font-weight: normal;
}

.content p {
  margin: 1em 0;
}

.content ul, .content ol {
  margin: 1em 0 1em 1.2em;
}

.content li {
  margin-bottom: 0.25em;
}

.content ul li {
  list-style-type: none;
  position: relative;
  padding-left: 0.8em;
}

.content ul li::before {
  content: "\2014";
  position: absolute;
  left: -0.8em;
  color: #bbb;
}

.content ul ul li::before {
  content: "\2013";
}

.content blockquote {
  border-left: 2px solid #111;
  padding: 0.4em 0 0.4em 1.5em;
  margin: 1.5em 0;
}

.content blockquote p {
  color: #444;
  font-style: italic;
  font-size: 1rem;
}

.content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5rem 0;
}

/* Timeline TOC */
.timeline-toc {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.timeline-toc a {
  text-decoration: none;
  color: #111;
}

.timeline-toc a:hover {
  text-decoration: underline;
}

.timeline-toc span {
  color: #aaa;
  font-size: 0.8rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.timeline-note {
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.content table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
}

.content th, .content td {
  border-bottom: 1px solid #ddd;
  padding: 0.3em 0.6em;
  text-align: left;
  font-size: 0.95rem;
}

.content del {
  color: #aaa;
}

.content ins {
  color: #111;
  text-decoration: none;
  font-weight: bold;
}

.content code {
  background: #f5f5f5;
  padding: 0.1em 0.35em;
  border-radius: 2px;
  font-size: 0.88em;
}

/* Home page */
.home-hero {
  margin-bottom: 2rem;
  color: #555;
  font-size: 0.95rem;
}

.home-hero em {
  font-style: italic;
}

.home-hero p {
  margin: 0;
}

.home-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.home-sections section {
  padding: 0;
}

.home-sections h2 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin: 0 0 0.6rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: normal;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.4em;
}

.home-sections ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-sections li {
  margin-bottom: 0.1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  padding-left: 0;
}

.home-sections li::before {
  display: none;
}

.home-sections a {
  text-decoration: none;
  color: #333;
}

.home-sections a:hover {
  color: #111;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  border-top: 2px solid #111;
  text-align: center;
  font-size: 0.75rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-footer a {
  color: #888;
  text-decoration: none;
}

.site-footer a:hover {
  color: #111;
}

/* Responsive */
@media (max-width: 700px) {
  .container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .sidebar {
    position: static;
    width: 100%;
    display: flex;
    gap: 2rem;
  }
  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
  }
  .nav-secondary {
    border-top: none;
    padding-top: 0;
    border-left: 1px solid #ddd;
    padding-left: 1rem;
  }
  .home-sections {
    grid-template-columns: 1fr;
  }
  .home-sections ul {
    column-count: 1;
  }
}
