/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Geist", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

/* ===== NAVIGATION ===== */
nav {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid #222;
  margin-bottom: 40px;
}

nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #222;
}

nav a:hover {
  text-decoration: none;
  opacity: 0.6;
}

/* ===== POST LIST (Index) ===== */
.post-list {
  list-style: none;
}

.post-list li {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
}

.post-list li a {
  white-space: nowrap;
  flex-shrink: 0;
}

.post-list li .leader {
  flex: 1;
  border-bottom: 1px solid #bbb;
  margin: 0 8px;
  position: relative;
  top: -4px;
}

.post-list li .date {
  white-space: nowrap;
  flex-shrink: 0;
  color: #222;
}

/* ===== PAGE CONTENT (About, Links, etc.) ===== */
.page-content {
  line-height: 1.8;
}

.page-content h1 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.page-content h3 {
  font-size: 13px;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.page-content h4 {
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

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

.page-content a {
  text-decoration: underline;
}

.page-content a:hover {
  opacity: 0.6;
}

.page-content ul,
.page-content ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.page-content li {
  margin-bottom: 0.4em;
}

/* ===== LINKS LIST (for Links page) ===== */
.links-list {
  list-style: none;
}

.links-list li {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
}

.links-list li a {
  white-space: nowrap;
  flex-shrink: 0;
}

.links-list li .leader {
  flex: 1;
  border-bottom: 1px solid #bbb;
  margin: 0 8px;
  position: relative;
  top: -4px;
}

.links-list li .desc {
  white-space: nowrap;
  flex-shrink: 0;
  color: #666;
}

/* ===== IMAGES & FIGURES ===== */
.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-content figure {
  margin: 1.5em 0;
}

.page-content figcaption {
  font-size: 11px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}

/* ===== BLOCKQUOTES ===== */
.page-content blockquote {
  border-left: 2px solid #bbb;
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.5em;
  color: #555;
}

/* ===== TABLES ===== */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 12px;
}

.page-content th,
.page-content td {
  padding: 6px 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.page-content th {
  font-weight: 600;
  border-bottom: 2px solid #222;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #222;
  font-size: 13px;
  color: #666;
  text-align: center;
}
