/* ===============================
   Simple Static Blog — style.css
   =============================== */

/* ---- Theme variables ---- */
:root{
  /* Layout */
  --page-max: 720px;

  /* Colors */
  --body-bg: #f4f5f7;      /* page background (soft gray) */
  --paper:   #ffffff;      /* card surface */
  --ink:     #3c4f65;      /* main body text with bluish-gray */
  --muted:   #6e7a88;      /* secondary text */
  --accent:  #49677d;      /* Williamsburg blue base for links */
  --accent-hover: #5c85a3; /* brighter steel blue hover */
  --border:  #e5e5e5;      /* light hairlines */
  --border-strong: #d8d8d8;

  /* Typography */
  --font-body: Georgia, "Times New Roman", Times, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --leading: 1.65;
  --base: 18px;
}

/* ---- Reset-ish ---- */
* { box-sizing: border-box; }
html { font-size: 100%; }
body{
  margin: 0;
  color: var(--ink);
  background: var(--body-bg);
  font: var(--base)/var(--leading) var(--font-body);
}

/* ---- Layout wrapper ---- */
.wrapper{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

/* ---- Header ---- */
.site-header{
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0 1rem;
  margin: 0 0 2rem;
}
.site-title{
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.4rem;
}
.site-title a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.site-title a:hover{
  color: var(--accent-hover);
  border-bottom: 1px dotted var(--accent-hover);
}
.site-tagline{
  margin: .25rem 0 0;
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--muted);
}
.site-nav{
  margin-top: .5rem;
  font-family: var(--font-ui);
  font-size: .95rem;
}

/* Navigation links */
.site-nav a{
  display: inline-block;
  margin-right: .85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.site-nav a:hover{
  color: var(--accent-hover);
  border-bottom: 1px dotted var(--accent-hover);
}

/* ---- Post (card style) ---- */
.post{
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow:
    0 1px 0 rgba(0,0,0,.03),
    0 10px 30px rgba(0,0,0,.06);
}
.post-header{ margin-bottom: .75rem; }

/* Main post title with dotted underline */
.post-title{
  margin: 0 0 .4rem;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.25;
}
.post-title a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.post-title a:hover{
  color: var(--accent-hover);
  border-bottom: 1px dotted var(--accent-hover);
}

.post-meta{
  margin: 0 0 1.25rem;
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--muted);
}
.post-content{ font-size: 1.05rem; }
.post-content p{ margin: 0 0 1.1rem; }

/* Body links */
.post-content a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.post-content a:hover{
  color: var(--accent-hover);
  border-bottom: 1px dotted var(--accent-hover);
}

.post-content img,
.post-content figure img{
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

figure{ margin: 1.25rem 0; }
figcaption{
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: .9rem;
  margin-top: .35rem;
}

/* Blockquotes */
blockquote{
  margin: 1.2rem 0;
  padding: .75rem 1rem;
  background: #fbfbfb;
  border-left: 4px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-style: italic;
}

/* Lists, code, rules */
.post-content ul,
.post-content ol{ margin: 0 0 1.1rem 1.5rem; }
code, pre{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
}
pre{
  background: #f7f7f7;
  border: 1px solid var(--border);
  padding: .75rem;
  overflow: auto;
}
hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ---- Footer ---- */
.site-footer{
  background: #fafafa;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .95rem;
}

/* ---- Index (list of posts) ---- */
.post-list{
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
}
.post-list li{
  margin: 1rem 0;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--paper);
  box-shadow:
    0 1px 0 rgba(0,0,0,.02),
    0 8px 24px rgba(0,0,0,.05);
}
.post-list h2{
  margin: 0 0 .35rem;
  font-size: 1.45rem;
}
.post-list h2 a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.post-list h2 a:hover{
  color: var(--accent-hover);
  border-bottom: 1px dotted var(--accent-hover);
}
.post-list .byline{
  margin: 0 0 .5rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .95rem;
}

/* ---- Small screens ---- */
@media (max-width: 420px){
  :root{ --base: 17px; }
  .post{ padding: 1.5rem 1.1rem; }
}
