:root {
  --ink: #171717;
  --muted: #77736d;
  --paper: #fbfaf7;
  --line: #dedbd4;
  --soft-pink: #f2dedf;
  --soft-yellow: #eee7c8;
  --soft-blue: #dce7e8;
  --wrap: min(980px, calc(100% - 48px));
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

a { color: inherit; }
button { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .08em;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: auto;
  height: 1.05em;
}

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active { color: var(--ink); }
.site-nav a.active { text-decoration: underline; text-underline-offset: 5px; }

.hero { padding: 104px 0 112px; }
.hero h1 {
  max-width: 870px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 8vw, 6.65rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: .98;
}
.hero p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.journal-section { padding: 0 0 110px; }
.journal-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--ink);
}
.journal-topline h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}
.filters { display: flex; gap: 19px; flex-wrap: wrap; }
.filter-chip {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .84rem;
}
.filter-chip:hover,
.filter-chip.selected { color: var(--ink); }
.filter-chip.selected { text-decoration: underline; text-underline-offset: 4px; }

.post-list { display: block; }
.post-card { border-bottom: 1px solid var(--line); }
.post-card-link {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 196px;
  padding: 28px 0;
  text-decoration: none;
}
.post-card-link:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.post-visual {
  width: 150px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 2.15rem;
}
.post-card[data-accent="sunset"] .post-visual { background: var(--soft-pink); }
.post-card[data-accent="lemon"] .post-visual { background: var(--soft-yellow); }
.post-card[data-accent="berry"] .post-visual { background: var(--soft-blue); }
.post-card[data-accent]:not([data-accent="sunset"]):not([data-accent="lemon"]):not([data-accent="berry"]) .post-visual { background: #ece9e3; }
.post-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-card-body { min-width: 0; }
.post-meta {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: .78rem;
}
.post-category { color: var(--ink); }
.post-title {
  max-width: 650px;
  margin: 10px 0 9px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.post-excerpt {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}
.post-arrow { color: var(--muted); font-size: 1.25rem; }
.empty-state { padding: 40px 0; color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
.site-footer p { margin: 0; }

.post-page { max-width: 760px; padding: 54px 0 110px; }
.back-link,
.text-link {
  display: inline-block;
  color: var(--muted);
  font-size: .86rem;
  text-decoration: none;
}
.back-link:hover,
.text-link:hover { color: var(--ink); }
.back-link { margin-bottom: 70px; }

.post-article { max-width: 720px; }
.article-header { margin-bottom: 62px; }
.article-header .post-meta { margin-bottom: 18px; }
.article-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.9rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: .98;
}
.article-deck {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.48;
}
.button-share {
  margin-top: 28px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .86rem;
}

.article-body { max-width: 670px; }
.article-body p,
.article-body li {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.82;
}
.article-body p { margin: 0 0 27px; }
.article-body ul { margin: 0 0 30px; padding-left: 22px; }
.article-body h2 {
  margin: 54px 0 18px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.article-body blockquote {
  margin: 46px 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.45;
}
.article-body figure { margin: 50px 0; }
.article-body img { width: 100%; display: block; }
.article-body figcaption { margin-top: 9px; color: var(--muted); font-size: .78rem; }
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.photo-mosaic figure { margin: 0; }
.photo-mosaic .photo-wide { grid-column: 1 / -1; }
.article-end {
  margin-top: 70px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.article-end p { margin: 0; }

.missing-post { padding: 40px 0; }
.missing-post h1 {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
}

.about-page { max-width: 780px; padding: 104px 0 130px; }
.small-label { margin: 0 0 28px; color: var(--muted); font-size: .82rem; }
.about-page h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 8vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: .98;
}
.about-copy {
  max-width: 590px;
  margin: 60px 0 48px;
}
.about-copy p {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.75;
}

@media (max-width: 700px) {
  :root { --wrap: min(100% - 30px, 980px); }
  .site-header { min-height: 76px; }
  .site-nav { gap: 18px; }
  .hero { padding: 72px 0 84px; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5.5rem); }
  .journal-topline { align-items: flex-start; flex-direction: column; }
  .post-card-link { grid-template-columns: 88px 1fr; gap: 18px; min-height: 0; }
  .post-visual { width: 88px; }
  .post-arrow { display: none; }
  .post-title { font-size: 1.55rem; }
  .post-excerpt { display: none; }
  .post-meta { flex-wrap: wrap; gap: 7px 10px; }
  .back-link { margin-bottom: 48px; }
  .post-page { padding-top: 40px; }
  .photo-mosaic { grid-template-columns: 1fr; gap: 18px; }
  .photo-mosaic .photo-wide { grid-column: auto; }
}

/* Markdown article elements */
.article-body h3 {
  margin: 38px 0 14px;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.article-body ol { margin: 0 0 30px; padding-left: 24px; }
.article-body a { text-underline-offset: 3px; }
.article-body hr {
  width: 56px;
  margin: 56px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.article-body code {
  padding: .08em .28em;
  background: #efede8;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .88em;
}
.post-card[hidden] { display: none; }
