@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700;800&family=Newsreader:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  color-scheme: light dark;
  --bg: #f6f1e7;
  --panel: #fffdf7;
  --fg: #241d13;
  --muted: #6e6150;
  --line: #d8cdbb;
  --accent: #9c3d00;
  --accent-soft: rgba(156, 61, 0, 0.12);
  --code-bg: #f0e8d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --panel: #211b15;
    --fg: #efe7db;
    --muted: #b2a48f;
    --line: #463b2e;
    --accent: #ffb168;
    --accent-soft: rgba(255, 177, 104, 0.16);
    --code-bg: #2a231c;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f6f1e7;
  background: var(--bg);
  color: #241d13;
  color: var(--fg);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.75;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

img {
  max-width: 100%;
  height: auto;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.2rem;
  padding: 0.68rem 1rem;
  background: #fffdf7;
  background: var(--panel);
  border-bottom: 1px solid #d8cdbb;
  border-bottom-color: var(--line);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.strip a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.strip span {
  color: var(--muted);
}

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

.masthead {
  padding-top: 3rem;
  padding-bottom: 1.2rem;
}

.avatar {
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.blog-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.blog-title a {
  color: var(--fg);
  text-decoration: none;
}

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

.tagline {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-style: italic;
  max-width: 34rem;
}

main {
  padding-bottom: 3.5rem;
  overflow-wrap: anywhere;
  min-width: 0;
}

.about {
  background: #fffdf7;
  background: var(--panel);
  border: 1px solid #d8cdbb;
  border-color: var(--line);
  border-left: 0.4rem solid #9c3d00;
  border-left-color: var(--accent);
  border-radius: 0.8rem;
  padding: 1.2rem 1.3rem;
  margin-bottom: 2.2rem;
}

.about > :first-child {
  margin-top: 0;
}

.about > :last-child {
  margin-bottom: 0;
}

.about h2,
.about h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
  margin: 0.4rem 0 0.6rem;
}

.about h2 {
  font-size: 1.35rem;
}

.about h3 {
  font-size: 1.12rem;
}

.posts h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.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 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.post-list li:first-child {
  border-top: 1px solid var(--line);
}

.post-link {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.post-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

time {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  font-style: italic;
  margin: 0.7rem 0 0;
}

.post-header {
  border-left: 0.4rem solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.8rem;
}

.post-header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
}

.post-header time {
  display: inline-block;
}

.post-body {
  font-size: 1.08rem;
  min-width: 0;
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body > :last-child {
  margin-bottom: 0;
}

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

.post-body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.48rem;
  line-height: 1.22;
  margin: 2.2rem 0 0.7rem;
}

.post-body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.28;
  margin: 1.8rem 0 0.6rem;
}

.post-body h4 {
  font-size: 1.04rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

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

.post-body li {
  margin: 0.35rem 0;
}

.post-body li::marker {
  color: var(--accent);
}

.post-body blockquote {
  margin: 1.4rem 0;
  padding: 0.75rem 1.1rem;
  border-left: 0.35rem solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 0.6rem 0.6rem 0;
}

.post-body blockquote > :first-child {
  margin-top: 0;
}

.post-body blockquote > :last-child {
  margin-bottom: 0;
}

.post-body pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 1.4rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--code-bg);
  font-size: 0.88rem;
  line-height: 1.6;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.08rem 0.3rem;
}

.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 1em;
}

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

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

.notice {
  color: var(--fg);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 0.35rem solid var(--accent);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  margin: 1.6rem 0 0;
  font-style: normal;
}

.receipt {
  margin: 2.5rem 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

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

.colophon {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 3rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.colophon p {
  margin: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .masthead,
  main,
  .colophon {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .masthead {
    padding-top: 2.1rem;
  }

  .strip {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .about {
    padding: 1rem;
    border-radius: 0.7rem;
  }

  .post-header {
    padding-left: 0.85rem;
  }

  .post-body {
    font-size: 1.02rem;
  }
}
