/* Blog stylesheet — Anthropic-aesthetic personal blog.
   Edit by hand. Don't add JS, web fonts, or third-party assets. */

:root {
  --bg:        #F5F1EB;   /* warm cream */
  --ink:       #2C2A26;   /* near-black, warm */
  --muted:     #6B6660;   /* secondary text */
  --rule:      #D9D2C7;   /* hairlines */
  --accent:    #CC785C;   /* Anthropic terracotta */
  --accent-dk: #A85B40;   /* hover */

  --serif: Charter, "Iowan Old Style", "Source Serif Pro", "Source Serif 4",
           "Times New Roman", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
           Arial, sans-serif;

  --content-width: 640px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Layout ----- */

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}

header.site .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

header.site .title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

header.site nav a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

header.site nav a:hover { color: var(--accent); }

footer.site {
  margin-top: 96px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* ----- Index ----- */

.index-intro {
  margin-bottom: 56px;
}

.index-intro h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.index-intro p {
  color: var(--muted);
  margin: 0;
}

ul.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.posts li {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

ul.posts li:last-child { border-bottom: none; }

ul.posts a.post-title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

ul.posts a.post-title:hover { color: var(--accent); }

ul.posts .meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

ul.posts .summary {
  color: var(--muted);
  margin: 0;
}

/* ----- Post ----- */

article.post header {
  margin-bottom: 40px;
}

article.post .dateline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

article.post h1 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

article.post .meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

article.post .body { margin-top: 0; }

article.post .body h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
}

article.post .body h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 40px 0 12px;
}

article.post .body p { margin: 0 0 1.4em; }

article.post .body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

article.post .body a:hover { color: var(--accent-dk); }

article.post .body blockquote {
  border-left: 2px solid var(--accent);
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-style: italic;
}

article.post .body code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(204, 120, 92, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

article.post .body pre {
  background: #2C2A26;
  color: #F5F1EB;
  padding: 18px 20px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}

article.post .body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

article.post .body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px auto;
  width: 60%;
}

article.post .body ul,
article.post .body ol {
  padding-left: 1.4em;
  margin: 0 0 1.4em;
}

article.post .body li { margin-bottom: 0.4em; }

article.post .body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
}

.back {
  display: inline-block;
  margin-top: 64px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.back:hover { color: var(--accent); }

/* ----- Small screens ----- */

@media (max-width: 560px) {
  body { font-size: 18px; }
  .wrap { padding: 0 20px; }
  article.post h1 { font-size: 30px; }
  .index-intro h1 { font-size: 28px; }
  header.site { margin-bottom: 40px; }
}
