/* Lost Notes — handmade, no framework */
:root {
  --paper: #f3eee4;
  --ink: #1e1a16;
  --muted: #6b635a;
  --rule: #d8d0c4;
  --accent: #8c3f2b;
  --link: #6a3a28;
}

* { box-sizing: border-box; }
html { font-size: 19px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2.25rem 1.35rem 4.5rem;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.85rem;
  margin-bottom: 2.4rem;
}

.mark {
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

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

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--ink); }

h1, h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 { font-size: 1.85rem; margin: 0 0 0.35rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }

.lede {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 2rem;
}

time, .meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

article p { margin: 0.9rem 0; }
article p + p { margin-top: 0.85rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

ul.posts li {
  border-top: 1px solid var(--rule);
  padding: 1.05rem 0;
}

ul.posts li:last-child { border-bottom: 1px solid var(--rule); }

ul.posts a.title {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.12rem;
}

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

ul.posts .sum {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer.site {
  margin-top: 3.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
}

.not-found { margin-top: 3rem; }

@media (max-width: 520px) {
  html { font-size: 17px; }
  header.site { flex-direction: column; gap: 0.4rem; }
  nav a { margin-left: 0; margin-right: 0.9rem; }
}
