/* ============================================
   Base & Reset
   ============================================ */

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

/* ============================================
   Typography & Color
   ============================================ */

:root {
  --bg:        #f5f2eb;       /* warm off-white */
  --text:      #1a1a1a;       /* near black */
  --muted:     #666666;       /* secondary text */
  --accent:    #2a4a7f;       /* classic link blue */
  --accent-visited: #6b3a8a; /* classic visited purple */
  --border:    #c8c0b0;       /* warm grey border */
  --rule:      #d4cec4;       /* horizontal rule */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  padding: 2rem 1rem;
}

/* ============================================
   Layout
   ============================================ */

#wrapper {
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================
   Header
   ============================================ */

header {
  padding-bottom: 1rem;
}

header h1 {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.tagline {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* ============================================
   Navigation
   ============================================ */

nav {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

nav a {
  color: var(--accent);
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

nav a:visited {
  color: var(--accent-visited);
}

.divider {
  color: var(--border);
  margin: 0 0.4rem;
  user-select: none;
}

/* ============================================
   Horizontal Rules
   ============================================ */

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.5rem 0;
}

hr.section-divider {
  border-top-style: dashed;
  margin: 2rem 0;
}

/* ============================================
   Main Content
   ============================================ */

main {
  padding: 0.5rem 0;
}

main h2 {
  font-size: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: normal;
  text-transform: lowercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

main p {
  margin-bottom: 1rem;
}

/* ============================================
   Posts / Blog Entries
   ============================================ */

.post {
  margin-bottom: 1.75rem;
}

.post-date {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.15rem;
}

.post-title {
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 0.3rem;
}

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

.post-title:visited {
  color: var(--accent-visited);
}

.post p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================
   Lists
   ============================================ */

ul {
  list-style: none;
  padding: 0;
}

ul li {
  padding: 0.2rem 0;
  font-size: 0.95rem;
}

ul li::before {
  content: "›  ";
  color: var(--muted);
  font-family: 'Courier New', Courier, monospace;
}

/* ============================================
   Footer
   ============================================ */

footer {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 0.5rem;
}

footer p {
  margin-bottom: 0.25rem;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
}

footer a:hover {
  color: var(--accent);
}

.updated {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* ============================================
   Links (general)
   ============================================ */

a {
  color: var(--accent);
}

a:visited {
  color: var(--accent-visited);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 1.25rem 1rem;
  }

  header h1 {
    font-size: 1.6rem;
  }
}
