/* ============================================================
   Reading theme — the Writing section. Calm, literary, type-first.
   No period chrome; just a good page to read on.
   ============================================================ */
body.reading { margin: 0; background: #fbf9f4; color: #2c2925;
  font-family: -apple-system, "Segoe UI", system-ui, Helvetica, Arial, sans-serif; }

/* --- Slim top bar --- */
.read-top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 720px; margin: 0 auto; padding: 18px 24px 0;
}
.read-logo {
  font-family: Georgia, "Times New Roman", serif; font-weight: bold;
  letter-spacing: -1px; font-size: 22px; text-decoration: none;
}
.read-logo .b1 { color: #3366cc; } .read-logo .u { color: #dd3311; }
.read-logo .r { color: #ffcc22; } .read-logo .g { color: #3366cc; }
.read-logo .l { color: #119933; } .read-logo .e { color: #dd3311; }
.read-logo .tm { font-size: .5em; vertical-align: super; color: #999; }
.read-nav a { color: #8a7d6a; text-decoration: none; font-size: 14px; margin-left: 18px; }
.read-nav a:hover { color: #b6452f; }

/* --- Article --- */
.read { max-width: 680px; margin: 0 auto; padding: 40px 24px 20px; }
.read-kicker {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #b6452f;
}
.read-title {
  margin: 0 0 14px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  font-weight: 600; font-size: 42px; line-height: 1.12; letter-spacing: -.3px; color: #211d18;
}
.read-meta { margin: 0 0 22px; font-size: 15px; color: #9a8f7e; }
.read-meta .read-date::after { content: " · "; color: #c9bfae; }
.read-meta a { color: #9a8f7e; text-decoration: none; }
.read-meta a:hover { color: #b6452f; text-decoration: underline; }
.read-links {
  margin: 0 0 30px; padding-bottom: 26px; border-bottom: 1px solid #ece5d8; font-size: 16px;
}
.read-links a {
  display: inline-block; color: #b6452f; text-decoration: none; font-weight: 600; margin-right: 18px;
}
.read-links a:hover { text-decoration: underline; }

/* --- Body type --- */
.read-body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  font-size: 19px; line-height: 1.78; color: #2c2925;
}
.read-body p { margin: 0 0 1.25em; }
.read-body > p:first-of-type { font-size: 20.5px; line-height: 1.7; color: #221f1b; }
.read-body h2 { font-size: 27px; font-weight: 600; line-height: 1.25; margin: 1.7em 0 .5em; color: #211d18; }
.read-body h3 { font-size: 21px; font-weight: 600; margin: 1.6em 0 .4em; color: #211d18; }
.read-body a { color: #2c2925; text-decoration: underline; text-decoration-color: #cdbfa6; text-underline-offset: 2px; }
.read-body a:hover { color: #b6452f; text-decoration-color: #b6452f; }
.read-body strong { font-weight: 700; }
.read-body em { font-style: italic; }
.read-body blockquote {
  margin: 1.5em 0; padding: 2px 0 2px 22px; border-left: 3px solid #e0b9ac;
  color: #5a534a; font-style: italic;
}
.read-body ul, .read-body ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.read-body li { margin: 0 0 .4em; }
.read-body hr { border: 0; border-top: 1px solid #e6dECF; margin: 2em 0; }
.read-body code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .88em; background: #f0ebe0; padding: 1px 5px; border-radius: 3px; }

/* The Not Shit Promise stamp */
.notshit-badge {
  display: inline-flex; align-items: center; gap: 11px; margin: 4px 0 30px; padding: 9px 16px;
  text-decoration: none; color: #b6452f; transform: rotate(-1.8deg);
  border: 2px solid #b6452f; border-radius: 5px; background: rgba(182,69,47,.05);
  box-shadow: inset 0 0 0 1px rgba(182,69,47,.35);
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}
.notshit-badge .ns-mark { font-size: 22px; line-height: 1; }
.notshit-badge .ns-text { display: flex; flex-direction: column; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.3; }
.notshit-badge small { font-size: 10px; font-weight: 600; letter-spacing: .3px; text-transform: none; opacity: .85; }
.notshit-badge:hover { background: rgba(182,69,47,.12); }

/* Tab switcher (e.g. "The article" / "The prompt I wrote") */
.read-tabbar { display: flex; gap: 4px; margin: 0 0 26px; border-bottom: 1px solid #ece5d8; }
.read-tab {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif; font-size: 14.5px;
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 9px 14px; color: #9a8f7e; cursor: pointer;
}
.read-tab:hover { color: #b6452f; }
.read-tab.is-active { color: #b6452f; border-bottom-color: #b6452f; font-weight: 600; }
.read-pane { display: none; }
.read-pane.is-active { display: block; }
.read-prompt-note {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif; font-size: 15px;
  color: #6a5f4f; background: #f4efe4; border-left: 3px solid #c8a98f; border-radius: 3px;
  padding: 12px 16px; margin: 0 0 1.6em;
}
.read-prompt { font-size: 17px; }
.read-prompt p { color: #4a443c; }

/* Editor's note — "this was imported from my Substack" callout */
.read-body .import-note {
  margin: 0 0 2em; padding: 16px 20px; background: #f4efe4;
  border: 1px solid #e6dECF; border-left: 3px solid #c8a98f; border-radius: 3px;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 15.5px; line-height: 1.6; color: #6a5f4f;
}
.read-body .import-note p { margin: 0 0 .6em; }
.read-body .import-note p:last-child { margin: 0; }
.read-body .import-note em { font-style: italic; }

/* Inline images (figure.shot.inline from the render hook) */
.read-body .inline { margin: 2em auto; max-width: 100%; text-align: center; }
.read-body .inline img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 2px; box-shadow: 0 2px 14px rgba(0,0,0,.12); }
.read-body .inline figcaption { font-family: -apple-system, "Segoe UI", sans-serif; font-size: 14px; color: #9a8f7e; margin-top: 10px; }
.read-body .inline-img { max-width: 100%; height: auto; }

/* Footnotes (Goldmark) */
.read-body sup .footnote-ref { text-decoration: none; color: #b6452f; padding: 0 1px; }
.read-body .footnotes { margin-top: 44px; font-size: 16px; line-height: 1.65; color: #5a534a; }
.read-body .footnotes hr { border: 0; border-top: 1px solid #e6dECF; margin: 0 0 16px; }
.read-body .footnotes ol { padding-left: 22px; }
.read-body .footnotes li { margin: 0 0 9px; }
.read-body .footnotes li::marker { color: #b09c80; }
.read-body .footnotes p { margin: 0; }
.read-body .footnote-backref { text-decoration: none; margin-left: 5px; color: #b6452f; }

/* Trailing gallery (rare for writing) */
.read-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 30px 0 0; }
.read-gallery figure { margin: 0; }
.read-gallery img { width: 100%; height: auto; display: block; border-radius: 2px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.read-gallery figcaption { font-size: 13px; color: #9a8f7e; margin-top: 5px; }

/* Footer */
.read-foot { max-width: 680px; margin: 0 auto; padding: 30px 24px 70px; border-top: 1px solid #ece5d8; }
.read-foot a { color: #b6452f; text-decoration: none; font-size: 16px; }
.read-foot a:hover { text-decoration: underline; }

@media (max-width: 700px) { .read-title { font-size: 33px; } .read-body { font-size: 18px; } }
