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

body {
  font-family: "Geist Mono", monospace;
  font-size: 15px; line-height: 1.75;
  max-width: min(960px, 92vw);
  margin: 0 auto; padding: 3rem 2rem;
  background: var(--bg); color: var(--fg);
}

a                     { color: var(--accent); text-decoration: none; }
.post-content a:hover,
.post-list a:hover    { text-decoration: underline; }

header                { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3.5rem; }
.site-title           { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
header nav            { display: flex; gap: 1.5rem; }
header nav a          { font-size: 0.8rem; color: var(--muted); }
header nav a:hover    { color: var(--fg); }

footer                { display: flex; gap: 1.5rem; align-items: center; margin-top: 5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
footer a              { color: var(--muted); }
footer a:hover        { color: var(--fg); }

.post-list            { list-style: none; }
.post-list li         { display: flex; gap: 2rem; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
.post-list li:last-child { border-bottom: none; }
.post-list time       { color: var(--muted); flex-shrink: 0; font-size: 0.82rem; }
.post-list a          { font-size: 0.95rem; }

.post-header          { margin-bottom: 2rem; }
.post-header h1       { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
time.post-meta        { font-size: 0.82rem; color: var(--muted); display: block; }

.post-content         { margin-top: 2rem; font-family: "Geist", sans-serif; font-size: 16px; line-height: 1.8; }
.post-content h1,
.post-content h2,
.post-content h3      { font-weight: 700; line-height: 1.3; margin: 2rem 0 0.5rem; }
.post-content h1      { font-size: 1.1rem; }
.post-content h2      { font-size: 1rem; }
.post-content h3      { font-size: 0.9rem; color: var(--muted); }
.post-content p       { margin: 1rem 0; }
.post-content ul,
.post-content ol      { margin: 1rem 0 1rem 1.4rem; }
.post-content li      { margin: 0.25rem 0; }
.post-content code    { font-family: "Geist Mono", monospace; font-size: 0.85em; background: var(--code); padding: 0.15em 0.4em; border-radius: 3px; }
.post-content pre     { font-family: "Geist Mono", monospace; border: 1px solid var(--border); border-radius: 4px; padding: 1rem 1.2rem; overflow-x: auto; margin: 1.5rem 0; font-size: 0.88rem; line-height: 1.6; }
.post-content pre code { background: none; padding: 0; font-size: inherit; }
.post-content blockquote { border-left: 2px solid var(--border); margin: 1.5rem 0; padding: 0.2rem 1rem; color: var(--muted); }
.post-content hr      { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.post-content table   { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1.5rem 0; }
.post-content th,
.post-content td      { text-align: left; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--border); }
.post-content th      { color: var(--muted); font-weight: 600; }
.post-content img          { max-width: 100%; height: auto; border-radius: 4px; margin: 1.5rem 0; }
.post-content figure       { margin: 1.5rem 0; }
.post-content figure img   { margin: 0; }
.post-content figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; text-align: center; }

.rocks                { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.rocks-title          { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.6rem; letter-spacing: 0.06em; }
.rocks-item           { padding: 0.2rem 0; font-size: 0.95rem; font-family: "Geist Mono", monospace; }
.rocks-desc           { color: var(--muted); font-size: 0.88rem; }

.post-nav             { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-size: 0.82rem; }
.post-nav a           { color: var(--muted); }
.post-nav a:hover     { color: var(--fg); }

@media (max-width: 520px) {
  body          { padding: 1.5rem 1rem 2rem; }
  header        { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .post-list li { flex-direction: column; gap: 0.15rem; }
  footer        { flex-direction: column; gap: 0.8rem; }
  .post-nav     { flex-direction: column; gap: 0.5rem; }
}
