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

:root {
  color-scheme: light;
  --paper: #f3eee6;
  --ink: #1c1814;
  --ink-soft: #3a342e;
  --muted: #5e574f;
  --rule: #e4d9c8;
  --copper: #c24b34;
  --copper-ink: #8e2f1c;
  --code-bg: #e8e0d3;
  --notice-bg: #f3ddd4;
}

html { background: var(--paper); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Newsreader, "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  font-size: 1.075rem;
  line-height: 1.7;
  font-optical-sizing: auto;
}

::selection {
  background: #f0cfc6;
  color: var(--ink);
}

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

.strip {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--copper);
  padding: 0.65rem 1.15rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.strip a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.strip span { color: #c9c0b4; }

.masthead, main, .colophon {
  max-width: 40rem;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  row-gap: 0.3rem;
  align-items: center;
  padding-top: 2.6rem;
  padding-bottom: 0.4rem;
}

.avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0;
  background: var(--ink);
  border: 0;
  border-radius: 22%;
}

.blog-title {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

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

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

.tagline {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
}

body.post .masthead { padding-top: 2rem; }

body.post .blog-title {
  font-size: clamp(1.45rem, 3vw, 1.7rem);
}

@media (max-width: 28rem) {
  .masthead {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
  }
  .avatar,
  .blog-title,
  .tagline {
    grid-column: 1;
    grid-row: auto;
  }
  .avatar { margin-bottom: 0.35rem; }
}

main { padding-bottom: 3rem; }

.about { padding-top: 0.4rem; }

.about::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 1.1rem 0 1.15rem;
  background: var(--copper);
}

.about p,
.post-body p { margin: 0.85rem 0; }

.about p:first-of-type,
.post-body p:first-child { margin-top: 0; }

.posts { margin-top: 2.6rem; }

.posts > h2 {
  margin: 0 0 0.35rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-ink);
}

.post-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0.8rem 0;
  gap: 0.3rem 1rem;
}

.post-link {
  font-weight: 600;
  letter-spacing: -0.011em;
  text-decoration: none;
  overflow-wrap: break-word;
}

.post-link:hover,
.post-link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

time {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

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

.post-header { margin-bottom: 1.4rem; }

.post-header h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: Newsreader, Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.post-header h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.2rem);
  font-weight: 650;
  margin: 1.4rem 0 0.2rem;
}

.post-header time {
  display: inline-block;
  margin-top: 0.4rem;
}

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

.post-body h2 { font-size: 1.35rem; margin: 2rem 0 0.45rem; }
.post-body h3,
.post-body h4 { font-size: 1.12rem; margin: 1.5rem 0 0.4rem; }

.about a,
.post-body a,
.receipt a,
.colophon a {
  color: var(--copper-ink);
  text-decoration-color: #d7a094;
  text-underline-offset: 0.15em;
}

.about a:hover,
.post-body a:hover,
.receipt a:hover,
.colophon a:hover {
  color: #6e2214;
  text-decoration-color: currentColor;
}

.about ul,
.about ol,
.post-body ul,
.post-body ol {
  padding-left: 1.25rem;
  margin: 0.8rem 0;
}

.about li,
.post-body li { margin: 0.28rem 0; }

.about li::marker,
.post-body li::marker { color: var(--copper); }

blockquote {
  margin: 1.3rem 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 3px solid var(--copper);
  color: var(--ink-soft);
  font-style: italic;
}

hr {
  width: 2.5rem;
  border: 0;
  border-top: 3px solid var(--copper);
  margin: 2rem 0;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 0.84em;
  background: var(--code-bg);
  padding: 0.08em 0.32em;
  border-radius: 0.2em;
}

pre {
  overflow-x: auto;
  overflow-wrap: normal;
  word-break: normal;
  white-space: pre;
  background: var(--code-bg);
  border: 0;
  border-left: 3px solid var(--copper);
  border-radius: 0 0.3rem 0.3rem 0;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

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

.notice {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #6e2818;
  background: var(--notice-bg);
  border-left: 3px solid var(--copper);
  padding: 0.65rem 0.85rem;
  margin-top: 1.6rem;
}

.receipt {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

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