@font-face {
  font-family: "Parisienne";
  src: url("../fonts/parisienne-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b1b1a;
  --muted: #6a6862;
  --rule: #e2e0d8;
  --bg: #fdfcf9;
  --accent: #534ab7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceae3;
    --muted: #a3a199;
    --rule: #33322e;
    --bg: #171716;
    --accent: #afa9ec;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site {
  padding: 3.5rem 0 2.25rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

header.site h1 {
  margin: 0;
  font-family: "Parisienne", "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.75rem, 8.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.15;
}

header.site h1 a {
  color: inherit;
  text-decoration: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 3.5rem;
  align-items: start;
  padding: 3rem 0 1rem;
}

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.listing-title {
  margin: 0 0 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

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

.post h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.post h2 a {
  color: inherit;
  text-decoration: none;
}

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

.meta {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.post p.excerpt {
  margin: 0 0 0.75rem;
}

.more {
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.entry h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.entry p {
  margin: 0 0 1.25rem;
}

.entry figure {
  margin: 1.75rem 0;
}

.entry img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--rule);
}

.entry figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.entry blockquote {
  margin: 1.75rem 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.entry-tags {
  margin-top: 2rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.post-nav a {
  color: var(--accent);
  text-decoration: none;
}

.post-nav a:hover {
  text-decoration: underline;
}

.post-nav .newer {
  margin-left: auto;
  text-align: right;
}

aside section {
  margin-bottom: 2.25rem;
}

aside h3 {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

aside p {
  margin: 0;
  font-size: 0.9375rem;
}

aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

aside li {
  margin-bottom: 0.3rem;
}

aside a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

aside a:hover,
aside a[aria-current] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag,
aside a.tag {
  padding: 0.1rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.tag:hover,
.tag[aria-current],
aside a.tag:hover,
aside a.tag[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
