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

body {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  color: #1a1a1a;
  background: #fafaf8;
  max-width: 65ch;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) 1.25rem;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { opacity: 0.6; }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  opacity: 1;
}
a:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #1a1a1a;
  color: #fafaf8;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 2px;
}

.site-intro {
  margin-bottom: 2.25rem;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0dc;
}

.site-title { font-weight: 600; text-decoration: none; }

nav { display: flex; gap: 1.5rem; font-size: 0.9rem; }
nav a { text-decoration: none; }

h1 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); line-height: 1.25; margin-bottom: 0.4rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }

time { display: block; font-size: 0.85rem; color: #888; margin-bottom: 2rem; font-style: italic; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

article { margin-bottom: 3rem; }

/* Post list on index */
.post-list { list-style: none; }
.post-list li { margin-bottom: 2rem; }
.post-list .post-meta { font-size: 0.85rem; color: #888; font-style: italic; }
.post-list .post-excerpt {
  margin-top: 0.35rem;
  color: #444;
  font-size: 0.98em;
}
.post-list .post-excerpt p { margin-bottom: 0.5rem; }
.post-list .post-excerpt p:last-child { margin-bottom: 0; }
.post-list a { text-decoration: none; font-weight: 600; }
.post-list a:hover { opacity: 0.6; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0dc;
  font-size: 0.85rem;
  color: #888;
}

/* About: circular avatar + text wrap (needs main.css loaded — use jekyll serve, not file://) */
.about-with-avatar::after {
  content: "";
  display: block;
  clear: both;
}

.about-with-avatar .about-avatar-float {
  float: left;
  width: clamp(4.25rem, 11vw, 6.75rem);
  height: clamp(4.25rem, 11vw, 6.75rem);
  margin: 0.15em 1.15rem 0.85rem 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
  shape-outside: circle(50%);
  -webkit-shape-outside: circle(50%);
}

.about-with-avatar .about-avatar-float .about-avatar {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}

.about-with-avatar .about-body > h2:first-child {
  margin-top: 0;
}
