/* Thoughts: the Street sign look from /styles.css, with a plain white column for reading.
   No rules or textures behind body text; structure comes from the yellow title band and spacing. */
body.thoughts-site { background: var(--white); }
.thoughts-main { min-height: 60vh; }

/* List, tag, author and 404 headers */
.notebook-hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px); }
.notebook-hero h1 { font-size: clamp(72px, 16vw, 200px); line-height: .82; overflow-wrap: anywhere; }
.kicker { margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.notebook-description { margin-top: 18px; max-width: 46ch; font-size: clamp(18px, 2vw, 21px); }
.notebook-missing .actions { margin-top: 28px; }

/* The list of posts */
.notebook-list { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.thought-list { display: grid; max-width: 900px; }
.thought-entry a { display: grid; gap: 8px; padding: 24px 12px 26px; margin-inline: -12px; border-top: 3px solid var(--black); text-decoration: none; }
.thought-entry:last-child a { border-bottom: 3px solid var(--black); }
.thought-entry a:hover { background: var(--yellow); }
.thought-entry time, .post-date { font-size: 14.5px; font-weight: 700; }
.thought-entry h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; line-height: .95; overflow-wrap: anywhere; }
.thought-entry p { max-width: 62ch; font-size: 17px; font-weight: 500; color: #2d2d2d; }
.notebook-empty { font-size: 19px; font-weight: 600; }
.thought-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; max-width: 900px; margin-top: 28px; font-size: 15px; }
.thought-pagination > span:first-child, .thought-pagination > span:last-child { flex: 1; }
.page-count { font-weight: 700; }

/* A post */
/* 680px text column plus the page gutter, so titles line up with the body text */
.reading-wrap { max-width: calc(680px + 2 * clamp(16px, 5vw, 48px)); }
.reading-heading { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-date { margin-top: 18px; }
.reading-time { margin-left: 14px; padding-left: 14px; border-left: 2px solid var(--black); }
.reading-heading h1 { margin-top: 12px; font-size: clamp(44px, 7vw, 96px); line-height: .9; overflow-wrap: anywhere; }
.post-standfirst { margin-top: 20px; max-width: 50ch; font-size: clamp(19px, 2.2vw, 23px); font-weight: 500; }
.reading-body { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); background: var(--white); }
.post-feature { max-width: 1040px; margin: 0 auto clamp(32px, 5vw, 56px); padding-inline: clamp(16px, 5vw, 48px); }
.post-feature img { width: 100%; height: auto; }

.reading-content { display: grid; grid-template-columns: minmax(clamp(16px, 5vw, 48px), 1fr) minmax(0, 680px) minmax(clamp(16px, 5vw, 48px), 1fr); font: 400 19.5px/1.7 var(--body); color: #141414; overflow-wrap: anywhere; }
.reading-content > * { grid-column: 2; min-width: 0; }
.reading-content > * + * { margin-top: 1.25em; }
.reading-content h2, .reading-content h3, .reading-content h4 { font-weight: 800; line-height: .95; letter-spacing: .01em; }
.reading-content h2 { margin-top: 1.7em; font-size: clamp(32px, 4vw, 46px); }
.reading-content h3 { margin-top: 1.5em; font-size: clamp(26px, 3vw, 34px); }
.reading-content h4 { margin-top: 1.4em; font-size: 24px; }
.reading-content h2 + *, .reading-content h3 + *, .reading-content h4 + * { margin-top: .6em; }
.reading-content strong { font-weight: 700; }
.reading-content a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.reading-content a:hover { background: var(--yellow); }
.reading-content blockquote { margin-inline: 0; padding-left: 20px; border-left: 6px solid var(--yellow); font-size: 1.08em; font-weight: 500; }
.reading-content ul, .reading-content ol { padding-left: 1.3em; }
.reading-content li + li { margin-top: .45em; }
.reading-content figure { margin-inline: 0; margin-bottom: 0; }
.reading-content figure img { height: auto; margin-inline: auto; }
.reading-content .kg-width-wide { grid-column: 1 / -1; max-width: 1040px; width: 100%; justify-self: center; padding-inline: clamp(16px, 5vw, 48px); }
.reading-content .kg-width-full { grid-column: 1 / -1; width: 100%; }
.reading-content .kg-image-card img { width: 100%; }
.reading-content .kg-gallery-container { width: 100%; }
.reading-content .kg-gallery-row { display: flex; gap: 12px; }
.reading-content .kg-gallery-row + .kg-gallery-row { margin-top: 12px; }
.reading-content .kg-gallery-image { flex: 1; }
.reading-content .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.reading-content .kg-bookmark-card { font-size: 15px; }
.reading-content .kg-bookmark-container { display: flex; text-decoration: none; border: 3px solid var(--black); }
.reading-content .kg-bookmark-container:hover { background: var(--yellow); }
.reading-content .kg-bookmark-content { flex: 1; min-width: 0; padding: 20px 22px; }
.reading-content .kg-bookmark-title { font-weight: 700; }
.reading-content .kg-bookmark-description { margin-top: 6px; color: #3a3a3a; font-size: 14px; }
.reading-content .kg-bookmark-metadata { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 12.5px; }
.reading-content .kg-bookmark-author, .reading-content .kg-bookmark-publisher { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reading-content .kg-bookmark-icon { width: 20px; height: 20px; }
.reading-content .kg-bookmark-thumbnail { flex: 0 0 30%; }
.reading-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.reading-content pre { padding: 20px 22px; background: var(--black); color: #f2f2f2; overflow-x: auto; font-size: 15px; line-height: 1.6; white-space: pre; }
.reading-content :not(pre) > code { padding: .1em .3em; background: #fff6a3; font-size: .85em; }
.reading-content iframe, .reading-content video { max-width: 100%; }
.reading-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .88em; }
.reading-content th, .reading-content td { padding: 10px 14px; border: 2px solid var(--black); }
.reading-content hr { justify-self: center; width: 64px; height: 6px; margin-block: 2.2em; border: 0; background: var(--yellow); }
.reading-content figcaption, .post-feature figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: #3a3a3a; }

/* The pointer to the free skill at the end of every post */
.post-cta h2 { font-size: clamp(44px, 7vw, 96px); color: var(--yellow); }
.post-cta p { margin-top: 16px; max-width: 50ch; font-size: 19px; color: var(--on-black); }
.post-cta .actions { margin-top: 26px; }
.post-cta .text-link { color: var(--white); }

@media (max-width: 600px) {
  .reading-content { font-size: 18.5px; line-height: 1.65; }
  .reading-content .kg-bookmark-thumbnail { display: none; }
}
