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

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #222;
  background: #fafaf8;
}

main {
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #111;
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

p { margin-bottom: 1rem; }

a { color: #1a6b8a; text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.3rem; }

img { max-width: 100%; height: auto; border-radius: 4px; margin: 1.5rem 0; display: block; }

hr { border: none; border-top: 1px solid #ddd; margin: 2rem 0; }

code { font-family: 'SF Mono', Menlo, monospace; background: #f0f0ee; padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.9em; }
pre { background: #f0f0ee; padding: 1rem; border-radius: 4px; overflow-x: auto; margin-bottom: 1rem; }
pre code { background: none; padding: 0; }

blockquote { border-left: 3px solid #ccc; margin: 0 0 1rem; padding-left: 1rem; color: #555; }

/* Nav */
nav {
  max-width: 650px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
}

nav .site-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111;
}
nav .site-name:hover { color: #1a6b8a; text-decoration: none; }

nav .nav-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
nav .nav-links a { color: #555; }
nav .nav-links a:hover { color: #1a6b8a; }
nav .nav-links .sep { color: #ccc; user-select: none; }

/* Footer */
footer {
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid #ddd;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: #999;
}
footer a { color: #999; }
footer a:hover { color: #1a6b8a; }
footer .footer-links { margin-top: 0.3rem; }

/* Forms */
label { display: block; font-weight: bold; margin-bottom: 0.3rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 0.95rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.6rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}
textarea { resize: vertical; }
button[type="submit"] {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #222;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
}
button[type="submit"]:hover { background: #444; }

.form-group { margin-bottom: 1.25rem; }

/* Post meta */
.post-meta { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 0.9rem; color: #999; margin-bottom: 1.5rem; }
.post-meta time { color: #999; }
.permalink { color: #c90; text-decoration: none; margin-left: 0.3rem; }
.permalink:hover { color: #a70; }

.post-comment { color: #555; font-size: 0.95rem; margin-bottom: 0.3rem; }
.post-comment-link { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 0.9rem; margin-bottom: 0; }

/* Details/summary */
details { margin: 1rem 0; }
summary { cursor: pointer; color: #1a6b8a; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; }
summary:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 500px) {
  nav { flex-direction: column; gap: 0.5rem; }
  h1 { font-size: 1.6rem; }
}
