/* styles.css - minimal, readable, no frameworks */

:root {
    --max-width: 900px;
    --muted: #6b6b6b;
    --accent: #0b5fff;
    --bg: #F2F2F2;
    --text: #111111;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    margin: 0;
  }
  
  .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px;
  }
  
  /* Header */
  .site-header {
    border-bottom: 1px solid #f2f2f2;
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .brand {
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  }
  
  .brand a {
    text-decoration: none;
    color: inherit;
  }
  
  .site-nav a {
    margin-left: 18px;
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
  }
  
  /* Hero */
  .hero {
    padding: 36px 0;
  }
  
  .hero h1 {
    font-size: 1.9rem;
    margin: 0 0 8px 0;
  }
  
  .lede {
    color: var(--muted);
    max-width: 72ch;
  }
  
  .cta {
    display: inline-block;
    margin-top: 4px;
    padding: 0;
    border: none;
    text-decoration: underline;
    color: inherit;
  }
  
  /* Two columns */
  .featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 18px;
  }
  
  .col h2 {
    margin-top: 0;
  }
  
  .post-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .post-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .post-list a {
    display: block;
    font-weight: normal;
    text-decoration: none;
    color: var(--muted);
  }
  
  .post-list a:hover {
    text-decoration: underline;
  }
  
  .post-list .post-description {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 4px 0 0 1.5rem;
    font-style: normal;
    line-height: 1.5;
  }
  
  .meta {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 6px;
  }
  
  /* Post pages */
  .post {
    margin-top: 32px;
  }
  
  .post h1 {
    font-size: 2rem;
    margin: 0 0 12px 0;
    line-height: 1.2;
  }
  
  .post-description {
    color: var(--muted);
    font-size: 1rem;
    margin: 0 0 12px 0;
    font-style: italic;
  }
  
  .post-body {
    margin-top: 24px;
    max-width: 65ch;
  }
  
  .post-body p {
    margin: 0 0 16px 0;
  }
  
  .post-body h2 {
    font-size: 1.4rem;
    margin: 32px 0 16px 0;
    font-weight: 600;
    scroll-margin-top: 80px;
    display: block;
    visibility: visible;
  }
  
  .post-body ul,
  .post-body ol {
    margin: 0 0 16px 0;
    padding-left: 1.5rem;
  }
  
  .post-body li {
    margin: 0 0 8px 0;
  }
  
  .post-body pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 16px 0;
  }
  
  .post-body code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
  }
  
  .post-body pre code {
    background: none;
    padding: 0;
  }
  
  .post-body strong {
    font-weight: 600;
  }

  /* All links in post body - black with dashed underline */
  .post-body a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 2px;
  }

  .post-body a:hover {
    color: var(--text);
    text-decoration-style: solid;
  }
  
  .post-excerpt {
    margin: 0 0 32px 0;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .post-excerpt:last-child {
    border-bottom: none;
  }
  
  .post-excerpt h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
  }
  
  .post-excerpt h2 a {
    text-decoration: none;
    color: inherit;
  }
  
  .post-excerpt h2 a:hover {
    color: var(--accent);
  }
  
  .post-excerpt p {
    margin: 0 0 8px 0;
  }
  
  .post-excerpt .post-description {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 4px 0 8px 0;
    font-style: normal;
    line-height: 1.6;
  }
  
  .post-nav {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
  }
  
  .post-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
  }
  
  .post-nav a:hover {
    color: var(--text);
  }
  
  .posts {
    margin-top: 32px;
  }
  
  /* Divider */
  .spine {
    border: none;
    height: 1px;
    background: #eeeeee;
    margin: 28px 0;
  }
  
  /* Working On */
  .working-on ul {
    margin: 0;
    padding-left: 1rem;
  }
  
  /* Subscribe */
  .subscribe-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .subscribe-form input {
    padding: 8px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    min-width: 220px;
  }
  
  .subscribe-form button {
    padding: 8px 12px;
    border: 0;
    background: var(--accent);
    color: #ffffff;
    border-radius: 4px;
  }
  
  /* Footer */
  .site-footer {
    border-top: 1px solid #f0f0f0;
    margin-top: 24px;
    padding: 12px 0;
    color: var(--muted);
    font-size: 0.85rem;
  }
  
  .footer-nav a {
    margin-left: 12px;
    text-decoration: none;
    color: inherit;
  }
  
  /* Responsive */
  @media (max-width: 700px) {
    .featured {
      grid-template-columns: 1fr;
    }
  
    .site-nav a {
      margin-left: 12px;
    }
  
    .container {
      padding: 18px;
    }
  }
  