/* ============================================
   clintkennedy.us — Old School Black & White
   Courier / monospace, minimal, readable
   ============================================ */

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

/* Base */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --gray: #666666;
  --light-gray: #cccccc;
  --rule: #000000;
  --max-width: 640px;
  --font: "Courier New", Courier, "Liberation Mono", monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }

p {
  margin-bottom: 1.2rem;
}

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

a:hover {
  text-decoration: none;
}

blockquote {
  border-left: 3px solid var(--fg);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray);
}

code {
  font-family: var(--font);
  background: #f0f0f0;
  padding: 0.15rem 0.3rem;
  font-size: 0.9rem;
}

pre {
  background: #f0f0f0;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--light-gray);
}

pre code {
  background: none;
  padding: 0;
}

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

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.3rem;
}

/* ============================================
   Site Header
   ============================================ */
.site-header {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--fg);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.site-title:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  text-transform: lowercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

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

.site-nav a[aria-current="page"],
.site-nav a.active {
  text-decoration: underline;
  font-weight: 700;
}

/* ============================================
   Site Footer
   ============================================ */
.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fg);
  font-size: 0.8rem;
  color: var(--gray);
}

.site-footer a {
  color: var(--gray);
}

.footer-feeds {
  margin-top: 0.5rem;
}

.footer-feeds a {
  margin-right: 1rem;
}

/* ============================================
   Homepage
   ============================================ */
.home-intro {
  margin-bottom: 3rem;
}

.home-intro p {
  font-size: 1rem;
}

.home-section {
  margin-bottom: 2.5rem;
}

.home-section h2 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--fg);
}

/* ============================================
   Post List (Substack-style)
   ============================================ */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

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

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

.post-meta {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ============================================
   Single Post (Substack-style reading)
   ============================================ */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-header .post-meta {
  font-size: 0.85rem;
  color: var(--gray);
}

.post-body {
  font-size: 1rem;
  line-height: 1.8;
}

.post-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-body p {
  margin-bottom: 1.3rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
  font-size: 0.85rem;
  color: var(--gray);
}

/* ============================================
   Projects Section
   ============================================ */
.project-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
}

.project-link::before {
  content: "→ ";
}

/* ============================================
   Section Header (for listing pages)
   ============================================ */
.section-header {
  margin-bottom: 2rem;
}

.section-header h1 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.section-header p {
  color: var(--gray);
  font-size: 0.9rem;
}

.section-subscribe {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.section-subscribe a {
  color: var(--gray);
  margin-right: 1rem;
}

/* ============================================
   h-card (IndieWeb)
   ============================================ */
.h-card {
  display: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  h1 { font-size: 1.3rem; }
  .post-title { font-size: 1.1rem; }
}

/* Print */
@media print {
  body {
    max-width: 100%;
    padding: 0;
  }

  .site-header, .site-footer, .section-subscribe {
    display: none;
  }
}
