/* =========================================================
   SINGLE BLOG POST | iamshubham.net
   Paste into: Appearance > Customize > Additional CSS
   (below the blog archive CSS). Scoped to body.single-post.
   ========================================================= */

/* Fonts: skip this line if you already added it with the archive CSS
@import url("https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@700,800&f[]=general-sans@400,500,600&display=swap");
*/

/* ---------- Tokens ---------- */
body.single-post {
  --ink: #141414;
  --body: #3a3a3a;
  --muted: #5a5a5a;
  --line: #c4c4c4;
  --paper: #fafafa;
  --tint: #fff1eb;
  --tint-line: #f2cdbd;
  --orange: #ff571a;
  --f-display: "Cabinet Grotesk", "Schibsted Grotesk", system-ui, sans-serif;
  --f-body: "General Sans", "Instrument Sans", system-ui, sans-serif;
  background: #fff;
}

/* ---------- Page container ---------- */
body.single-post #container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.single-post #content {
    box-sizing: border-box;
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 104px 5.2%;
    font-family: var(--f-body);
    color: var(--ink);
}

body.single-post #content > .post-back-wrap,
body.single-post #content > article.post {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Back link (PHP snippet) ---------- */
body.single-post .post-back-wrap {
  padding-top: clamp(28px, 4vw, 48px);
}

body.single-post .post-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
}

/* ---------- Article header ---------- */
body.single-post #content article.post {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

body.single-post #content article.post > header {
    padding: 0 0 48px 0;
}

body.single-post #content .entry-title {
    margin: 0;
    max-width: 1000px;
    font: 800 clamp(38px, 95px, 95px) / 1.02 var(--f-display);
    letter-spacing: -0.035em;
    color: var(--ink);
}

body.single-post #content .entry-title a {
    color: inherit;
    text-decoration: none;
    font-weight: 800;
}

body.single-post #content .post-edit-link {
  display: none;
}

body.single-post #content .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}

body.single-post #content .entry-meta a {
  color: inherit;
  text-decoration: none;
}

body.single-post #content .entry-meta .author::before {
  content: "By ";
}

body.single-post #content .entry-meta .meta-sep {
  font-size: 0;
}

body.single-post #content .entry-meta .meta-sep::before {
  content: "\00B7";
  font-size: 15px;
}

/* ---------- Article body: wide image, narrow reading column ---------- */
body.single-post #content .entry-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--body);
}

body.single-post #content .entry-content > * {
  box-sizing: border-box;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* featured image (first element in the content) */
body.single-post #content .entry-content > a:first-child {
  display: block;
  max-width: none;
  margin: 0 0 clamp(40px, 5vw, 72px);
}

body.single-post #content .entry-content > a:first-child img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  box-sizing: border-box;
}

/* paragraphs */
body.single-post #content .entry-content p {
  margin-top: 0;
  margin-bottom: 24px;
}

body.single-post #content .entry-content > p:first-of-type {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  color: var(--ink);
}

body.single-post #content .entry-content strong {
  color: var(--ink);
  font-weight: 600;
}

/* "The fix:" paragraphs (needs "The fix:" in bold) become tinted callouts */
body.single-post #content .entry-content > p:has(> strong:first-child) {
  padding: 20px 24px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  color: var(--body);
}

/* headings */
body.single-post #content .entry-content h2 {
  margin-top: clamp(56px, 7vw, 80px);
  margin-bottom: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font: 700 clamp(28px, 3.2vw, 40px) / 1.1 var(--f-display);
  letter-spacing: -0.03em;
  color: var(--ink);
}

body.single-post #content .entry-content h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  font: 700 clamp(22px, 2.4vw, 28px) / 1.15 var(--f-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* lists */
body.single-post #content .entry-content ul,
body.single-post #content .entry-content ol {
  margin-top: 0;
  margin-bottom: 24px;
  padding-left: 22px;
}

body.single-post #content .entry-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}

body.single-post #content .entry-content li::marker {
  color: var(--orange);
  font-weight: 700;
}

/* checklist: in the editor add the CSS class "checklist" to a List block */
body.single-post #content .entry-content ul.checklist {
  list-style: none;
  padding-left: 0;
}

body.single-post #content .entry-content ul.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-left: 0;
}

body.single-post #content .entry-content ul.checklist li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 5px;
  box-sizing: border-box;
  border: 2px solid var(--ink);
  border-radius: 2px;
}

/* links inside text */
body.single-post #content .entry-content p a,
body.single-post #content .entry-content li a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* quotes */
body.single-post #content .entry-content blockquote {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  color: var(--ink);
}

body.single-post #content .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* tables */
body.single-post #content .entry-content .wp-block-table {
  max-width: 720px;
  margin-bottom: 24px;
  overflow-x: auto;
}

body.single-post #content .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}

body.single-post #content .entry-content th,
body.single-post #content .entry-content td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

body.single-post #content .entry-content th {
  background: var(--tint);
  color: var(--ink);
}

/* ---------- Author box (PHP snippet) ---------- */
body.single-post #content .entry-content > .post-author {
  margin-top: clamp(56px, 7vw, 80px);
  margin-bottom: 0;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
}

body.single-post .post-author__text {
  flex: 1 1 320px;
}

body.single-post .post-author__label {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

body.single-post .post-author__name {
  margin: 0 0 8px;
  font: 700 26px / 1.15 var(--f-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

body.single-post .post-author__bio {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

body.single-post .post-author__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 2px;
  background: var(--orange);
  color: var(--ink);
  font: 600 16px / 1 var(--f-body);
  text-decoration: none;
}

body.single-post .post-author__btn:hover {
  background: #ff7340;
}

body.single-post .post-author__btn:focus-visible,
body.single-post .post-back:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Footer of the article: category, comments, navigation ---------- */
body.single-post #content article.post > .entry-footer {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

body.single-post #content .entry-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

body.single-post #content .entry-footer .meta-sep,
body.single-post #content .entry-footer .comments-link {
  display: none;
}

/* hide the public comment form (also switch comments off in Settings > Discussion) */
body.single-post #comments {
  display: none;
}

body.single-post #content > footer.footer {
  max-width: 720px;
  margin: 40px auto 0;
}

body.single-post #content .post-navigation .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.single-post #content .post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

body.single-post #content .post-navigation a {
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

body.single-post #content .post-navigation a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Menu: keep "Blog" marked while reading a post ---------- */
body.single-post #menu li.current-menu-item:not(.hm_btn) > a,
body.single-post #menu li.current-menu-ancestor:not(.hm_btn) > a {
  box-shadow: inset 0 -2px 0 var(--orange);
}

@media (max-width: 765px){
	
	body.single-post #content {
		padding: 68px 5.2%;
	}
	
	body.single-post #content .entry-title {
		margin: 0;
		max-width: 1000px;
		font: 800 clamp(40px, 40px, 40px) / 1.02 var(--f-display);
		letter-spacing: -0.035em;
		color: var(--ink);
	}
	
	body.single-post #content .entry-content h2 {
		font: 800 clamp(30px, 3.2vw, 40px) / 1.1 var(--f-display);
	}
	
	body.single-post #content .entry-content > p:first-of-type {
		font-size: clamp(15px, 2vw, 24px);
		line-height: 1.5;
		color: var(--ink);
	}
	
	body.single-post #content .entry-content p{
		margin-top: 0;
		margin-bottom: 24px;
		font-size: 15px;
	}
	
	body.single-post #content .entry-content li {
		font-size: 15px;
	}
}

@media (max-width: 480px){
	body.single-post #content {
		padding: 50px 5.2%;
	}
}