:root {
  --bg: #f7f7f7;
  --bg-accent: #f1f1f1;
  --bg-card: #ffffff;
  --ink: #121212;
  --muted: #5b5b5b;
  --accent: #0b5fff;
  --accent-2: #1f2937;
  --accent-tint: rgba(11, 95, 255, 0.12);
  --accent-tint-soft: rgba(11, 95, 255, 0.04);
  --border: #d9d9d9;
  --shadow: none;
  --radius: 8px;
  --max-width: 1100px;
  --date-width: 140px;
  --font-heading: "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-serif: "Source Serif 4", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  :root {
    --accent-tint: color-mix(in srgb, var(--accent) 16%, transparent);
    --accent-tint-soft: color-mix(in srgb, var(--accent) 6%, transparent);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: -1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 12px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  font-size: 16px;
  line-height: 1.25;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 17.6px;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 500;
  font-size: 15.2px;
  letter-spacing: 0.01em;
  font-family: var(--font-heading);
}

.site-nav a {
  padding: 4px 0;
  border-bottom: none;
}

.site-header .site-nav a:hover {
  border-bottom-color: transparent;
  color: var(--accent);
}

.site-header a:hover {
  color: inherit;
}

.site-main {
  padding-bottom: 80px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.home-intro {
  width: 100%;
}

.intro-panel {
  background: linear-gradient(135deg, var(--accent-tint), var(--bg) 60%);
  border-radius: 14px;
  padding: 28px 32px;
}

.intro-body p {
  font-size: 1.2rem;
  line-height: 1.75;
  margin: 0 0 14px;
  text-align: justify;
  hyphens: auto;
}

.intro-body p:last-child {
  margin-bottom: 0;
}

.intro-body p:first-child {
  font-size: 1.35rem;
  font-weight: 500;
}

.intro-body em {
  font-style: italic;
  color: var(--accent-2);
}

.intro-body {
  max-width: none;
  width: 100%;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
}

.link-icon {
  width: 14px;
  height: 14px;
}

.lede {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.button {
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.section {
  padding: 48px 0;
}

.section-tight {
  padding: 40px 0 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.section-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
}

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

.simple-header {
  align-items: center;
}

.rss-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
}

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

.list-stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.photo-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 1 / 1;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.list-row {
  display: grid;
  grid-template-columns: var(--date-width) minmax(0, 1fr) minmax(0, 240px);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.list-row:hover {
  background: #fbfbfb;
}

.list-row h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.list-main p {
  margin: 0;
}

.list-row .tag-row {
  margin-top: 0;
}

.list-tags {
  text-align: right;
  max-width: 240px;
  justify-self: end;
}

.list-tags .tag-row {
  justify-content: flex-end;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.list-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.list-card:hover {
  border-color: var(--accent);
  background: #fbfbfb;
}

.list-card h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.list-meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  font-family: var(--font-mono);
}

.list-kind {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--font-heading);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-hash {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 8px;
}

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

.tag-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f0f0;
  color: var(--muted);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.tag-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

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

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

.prose {
  max-width: 720px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.85;
  color: #221f1c;
}

.prose h2,
.prose h3 {
  font-family: var(--font-serif);
}

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

.prose p {
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

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

.prose sup {
  font-size: 0.75rem;
}

.prose-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}

.writing-page {
  --bg: #fffff8;
  --bg-accent: #f9f6ef;
  --bg-card: #fffdf6;
  --border: #d6d2c8;
  --muted: #5b554b;
  --ink: #111;
  --font-body: "et-book", Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  --font-serif: "et-book", Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  line-height: 1.7;
}

.writing-page .section-header h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  margin: 0;
}

.writing-page .lede {
  font-family: var(--font-serif);
  line-height: 1.75;
  margin: 6px 0 0;
}

.writing-page .section + .section {
  padding-top: 16px;
}

.writing-page .list-stack {
  margin-top: 4px;
}

.writing-page .list-row {
  padding: 18px 0;
}

.writing-page .list-row h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
}

.writing-page .tag-hash {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.writing-page .list-row:hover {
  background: transparent;
}

.writing-page .list-row h3 a:hover {
  color: inherit;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}


.post-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.site-footer {
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.site-footer .muted {
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.icon-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
}

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

.site-footer a:hover {
  color: inherit;
}

.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

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

@media (max-width: 900px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .list-row {
    grid-template-columns: 1fr;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }

  .list-tags {
    text-align: left;
    max-width: none;
    justify-self: start;
  }

  .list-tags .tag-row {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .list-type {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-meta {
    flex-direction: column;
    gap: 6px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .page-bg,
  .site-header,
  .site-footer {
    display: none;
  }
}



body.home-page {
  --bg: #fffff8;
  --bg-accent: #f9f6ef;
  --bg-card: #fffdf6;
  --border: #d6d2c8;
  --muted: #5b554b;
  --ink: #111;
  --font-body: "et-book", Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  --font-serif: "et-book", Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  line-height: 1.7;
}

body.home-page .intro-panel {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
}

body.home-page .intro-body {
  max-width: none;
}

body.home-page .intro-body p {
  font-size: 1.25rem;
  line-height: 1.85;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}

body.home-page .intro-body p:first-child {
  font-size: 1.3rem;
  font-weight: 400;
}

body.home-page .intro-body em {
  color: #3f3a33;
}

body.home-page .text-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

body.home-page .text-link:hover {
  border-bottom-color: var(--accent);
}

body.home-page .section-header h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
}

body.home-page .rss-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.home-page .list-row {
  padding: 18px 0;
}

body.home-page .list-stack {
  margin-top: 4px;
}

body.home-page .section + .section {
  padding-top: 16px;
}

body.home-page .list-stack .list-row:last-child {
  border-bottom: 0;
}

body.home-page .list-row:hover {
  background: transparent;
}

body.home-page .list-row h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
}

body.home-page .tag-hash {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}
