@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap');

:root {
  color-scheme: light;
  --paper: #faf6ec;
  --paper-2: #f0ebdd;
  --ink: #29241d;
  --ink-soft: #4a4438;
  --muted: #6e6656;
  --line: #ddd6c4;
  --accent: #b3401f;
  --accent-bright: #d9542a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.08rem/1.72 'Newsreader', Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.3rem 1.2rem; padding: 0.55rem 1.1rem;
  background: #26211b; color: #d8d1c0;
  font: 500 0.7rem/1.5 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: none;
}
.strip a { color: #faf6ec; text-decoration: none; border-bottom: 1px solid #6e6656; padding-bottom: 1px; }
.strip a:hover { color: var(--accent-bright); border-bottom-color: var(--accent-bright); }
.strip span { color: #a89f8c; }

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

.masthead { padding-top: 3rem; padding-bottom: 1.4rem; border-bottom: 2px solid var(--ink); }
.avatar { width: 4.75rem; height: 4.75rem; margin-bottom: 1.1rem; border-radius: 22%; }
.blog-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.1rem, 6.5vw, 2.9rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0;
}
.blog-title a { text-decoration: none; }
.blog-title a:hover { color: var(--accent); }
.tagline { margin: 0.55rem 0 0; font-style: italic; color: var(--muted); font-size: 1.02rem; }

main { padding-top: 0.5rem; padding-bottom: 3rem; overflow-wrap: anywhere; }

h1, h2, h3, h4 { font-family: 'Newsreader', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.05rem); line-height: 1.2; margin: 1.75rem 0 0.35rem; }
h2 { font-size: 1.28rem; line-height: 1.3; margin: 2.1rem 0 0.5rem; }
h3, h4 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }

.posts > h2, .about h2 {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 0.45rem;
}

time { font: 0.78rem 'IBM Plex Mono', ui-monospace, monospace; color: var(--muted); letter-spacing: 0.03em; }

.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.2rem 1.25rem; padding: 0.7rem 0.1rem; border-bottom: 1px dashed var(--line);
}
.post-link { text-decoration: none; font-weight: 500; font-size: 1.12rem; }
.post-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.empty, .notice { color: var(--muted); font-style: italic; }
.notice { border-left: 3px solid var(--accent-bright); padding-left: 0.8rem; }

.about p, .post-body p { margin: 1.05rem 0; }
.about li, .post-body li { margin: 0.35rem 0; }
.about ul, .about ol, .post-body ul, .post-body ol { padding-left: 1.4rem; }

main a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d9b7a6; }
main a:hover { text-decoration-color: var(--accent); }

blockquote {
  margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft); font-style: italic;
}

code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.86em;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 4px; padding: 0.12em 0.38em;
}
pre {
  overflow-x: auto; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.85rem 1rem; font-size: 0.85rem; line-height: 1.55;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; }

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

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.receipt, .colophon {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem; line-height: 1.6; color: var(--muted); letter-spacing: 0.02em;
}
.receipt { margin-top: 2.5rem; border-top: 1px dashed var(--line); padding-top: 1rem; }
.colophon { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 3rem; }

@media (max-width: 600px) {
  body { font-size: 1rem; line-height: 1.68; }
  .strip { font-size: 0.62rem; gap: 0.25rem 0.8rem; padding: 0.5rem 0.85rem; }
  .masthead { padding-top: 2.1rem; padding-bottom: 1.1rem; }
  .masthead, main, .colophon { padding-left: 1rem; padding-right: 1rem; }
  .post-list li { padding: 0.6rem 0; }
}
