@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,650;1,9..144,480&family=IBM+Plex+Mono:wght@400&family=IBM+Plex+Sans:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap");

:root {
  color-scheme: light dark;
  --bg: #f3eee3;
  --text: #1b1814;
  --muted: #6e675a;
  --accent: #a33b1c;
  --rule: #d8d0bf;
  --code: #ebe4d6;
  --focus: #a33b1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --text: #eee6d6;
    --muted: #9a927f;
    --accent: #e0b45a;
    --rule: #2e2c26;
    --code: #1c1b17;
    --focus: #e0b45a;
  }
}

html, body { background: var(--bg); color: var(--text); }

body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.strip {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1.2rem;
  padding: 0.55rem 1.15rem;
  background: var(--bg);
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.strip a {
  color: var(--text);
  text-decoration: none;
}

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

.masthead,
main,
.colophon {
  max-width: 38rem;
  margin: 0 auto;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.masthead {
  padding-top: 2.75rem;
  padding-bottom: 1.25rem;
}

.avatar {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.35rem;
  border-radius: 0.9rem;
}

.blog-title {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 650;
  font-size: clamp(2rem, 6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}

.blog-title a {
  text-decoration: none;
}

.blog-title a:hover { color: var(--accent); }

.tagline {
  margin: 0.7rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 480;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--muted);
}

main {
  padding-bottom: 3.5rem;
  overflow-wrap: break-word;
}

.about {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.5rem;
}

.about p { margin: 0.9rem 0; }
.about p:first-child { margin-top: 0; }

.about ul,
.about ol {
  margin: 0.7rem 0 1rem;
  padding-left: 1.2rem;
}

.posts > h2 {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.2rem 0 0.6rem;
}

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

.post-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1.1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-link {
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.post-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

time {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.empty,
.notice {
  color: var(--muted);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.92rem;
}

.empty { font-style: italic; }

.notice {
  margin-top: 2rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  color: var(--text);
}

h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--text);
}

.post-header h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.15rem);
  margin: 1.4rem 0 0.4rem;
}

.post-header time { display: block; }

h2 { font-size: 1.3rem; margin: 2.1rem 0 0.5rem; }
h3, h4 { font-size: 1.08rem; margin: 1.6rem 0 0.45rem; }

.post-body p { margin: 0.95rem 0; }

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

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

.about a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

blockquote {
  margin: 1.4rem 0;
  padding: 0.1rem 0 0.1rem 1.15rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 480;
}

pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  background: var(--code);
  border-radius: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  line-height: 1.5;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86em;
  background: var(--code);
  padding: 0.12em 0.35em;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.2rem 0;
}

.receipt,
.colophon {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.receipt { margin-top: 2.6rem; }
.receipt a { color: var(--text); }

.colophon {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  padding-bottom: 3rem;
}

body.post .masthead {
  padding-top: 1.5rem;
  padding-bottom: 0.4rem;
}

body.post .avatar {
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.7rem;
  border-radius: 0.55rem;
}

body.post .blog-title {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

body.post .tagline { display: none; }

@media (max-width: 40rem) {
  body { font-size: 1.02rem; }
  .masthead { padding-top: 2rem; }
  .post-list li { padding: 0.7rem 0; }
}
