/* The Grey Analogue — a plain reading theme */

:root {
  --bg: #f7f4ee;
  --bg-soft: #ede9e0;
  --ink: #2a2824;
  --ink-soft: #4a4840;
  --ink-mute: #6a665c;
  --ink-faint: #8a8576;
  --rule: #d4cfc2;
  --max: 600px;
  --font: Georgia, 'Iowan Old Style', 'Charter', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  min-height: 100vh;
}

::selection { background: var(--bg-soft); color: var(--ink); }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ink-faint); }
a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; }

img { max-width: 100%; height: auto; }

.site-wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px 40px;
}

@media (min-width: 600px) {
  .site-wrapper { padding: 64px 48px 56px; }
}

.site-header { margin-bottom: 56px; }

.site-title-link {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-mute);
  text-decoration: none;
}
.site-title-link:hover { color: var(--ink); }

.site-hero { margin-bottom: 56px; }

.hero-quote {
  font-size: 19px;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 500px;
}
.hero-quote em { font-style: normal; color: var(--ink); }

.section-label { display: none; }

.hero-divider { display: none; }

.post-feed { list-style: none; }

.post-card {
  margin-bottom: 40px;
}

.post-card-date {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.post-card-title {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 6px;
}

.post-card-title a {
  color: var(--ink);
  text-decoration: none;
}
.post-card-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink);
}

.post-card-tag { display: none; }

.post-card-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.site-nav {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 0.5px solid var(--rule);
  font-size: 14px;
  font-style: italic;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-mute);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.nav-current { color: var(--ink); }

.site-footer {
  margin-top: 40px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer a {
  color: var(--ink-faint);
  text-decoration: none;
}
.site-footer a:hover { color: var(--ink-mute); text-decoration: none; }

.post-header { margin-bottom: 40px; }

.post-meta {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.post-meta a { color: var(--ink-faint); text-decoration: none; }
.post-meta a:hover { color: var(--ink-mute); }

.post-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}

.post-subtitle {
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}

.post-content p { margin-bottom: 1.6em; }

.post-content h2 {
  font-size: 22px;
  font-weight: 400;
  margin: 2.4em 0 0.8em;
  color: var(--ink);
}

.post-content h3 {
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  margin: 2em 0 0.6em;
  color: var(--ink);
}

.post-content blockquote {
  border-left: 2px solid var(--rule);
  padding-left: 20px;
  margin: 2em 0;
  font-style: italic;
  color: var(--ink-soft);
}
.post-content blockquote p { margin-bottom: 0.8em; }

.post-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-faint);
}
.post-content a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; }

.post-content code {
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content pre {
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 2em 0;
}
.post-content pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

.post-content ul, .post-content ol {
  margin: 1.2em 0;
  padding-left: 24px;
}
.post-content li { margin-bottom: 0.5em; }

.post-content img {
  margin: 2em 0;
}

.post-content hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 3em 0;
}

.post-content figcaption {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 8px;
}

.post-content .kg-width-wide img,
.post-content .kg-width-full img { width: 100%; }

.post-content .kg-bookmark-card {
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
  margin: 2em 0;
}
.post-content .kg-bookmark-content { padding: 16px 20px; }
.post-content .kg-bookmark-title { font-size: 16px; color: var(--ink); }
.post-content .kg-bookmark-description { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.post-content .kg-bookmark-metadata { font-size: 13px; color: var(--ink-faint); margin-top: 8px; }

.post-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 0.5px solid var(--rule);
}

.post-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 14px;
  font-style: italic;
}
.post-tag-link {
  color: var(--ink-mute);
  text-decoration: none;
}
.post-tag-link:hover { color: var(--ink); }

.subscribe-box {
  margin: 48px 0 24px;
  padding: 0;
}
.subscribe-box p {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 500px;
}

.subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--rule);
  border-radius: 0;
  padding: 8px 0;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  outline: none;
}
.subscribe-form input[type="email"]:focus { border-bottom-color: var(--ink); }
.subscribe-form input[type="email"]::placeholder { color: var(--ink-faint); font-style: italic; }

.subscribe-form button {
  background: transparent;
  border: none;
  padding: 8px 0;
  font-size: 15px;
  font-style: italic;
  font-family: var(--font);
  color: var(--ink-mute);
  cursor: pointer;
  white-space: nowrap;
}
.subscribe-form button:hover { color: var(--ink); }

.tag-header { margin-bottom: 40px; }
.tag-name {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
}
.tag-description {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 8px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-faint);
}
.pagination a { color: var(--ink-mute); text-decoration: none; }
.pagination a:hover { color: var(--ink); }

.gh-portal-triggerbtn-iframe { display: none !important; }

@media (max-width: 500px) {
  .hero-quote { font-size: 17px; }
  .post-title { font-size: 24px; }
  .post-content { font-size: 16px; }
  .subscribe-form { flex-direction: column; }
}
