/* Homasm blog reading layout. Applies to every single post. */
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500 600;font-display:swap;src:url('fonts/cormorant-garamond-italic.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500 700;font-display:swap;src:url('fonts/cormorant-garamond-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Jost';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/jost-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

body.single-post{
  --hb-ink:#2A2D32;--hb-text:#3A3834;--hb-muted:#6B665D;--hb-accent:#9A6B1F;--hb-gold:#DAA14C;
  --hb-cream:#FBF7EF;--hb-line:#E8DFCE;
  --hb-display:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --hb-body:'Jost','Helvetica Neue',Arial,sans-serif;
}

/* ---------- Page frame: one centred column, no sidebar ---------- */
body.single-post #page .site-content{margin-top:120px;margin-bottom:80px;padding-left:20px;padding-right:20px}
body.single-post .site-content>.col-full{max-width:1120px}
body.single-post #primary.content-area{width:100%;float:none;max-width:none;margin:0}
body.single-post #secondary{display:none!important}
body.single-post .single-content{display:flex;flex-direction:column}
body.single-post .single-content>*{order:5}
body.single-post .single-content>.entry-header{order:1}
body.single-post .single-content>.post-thumbnail{order:2}
body.single-post .single-content>.entry-content{order:3}

/* ---------- Title block ---------- */
body.single-post article.hentry .entry-header{max-width:820px;margin:0 auto 36px;text-align:center}
body.single-post article.hentry .entry-header h1.entry-title{
  font-family:var(--hb-display);font-weight:600;font-size:clamp(2.1rem,5vw,3.4rem);line-height:1.1;
  letter-spacing:-.01em;color:var(--hb-ink);margin:0 0 20px;text-transform:none}
body.single-post article.hentry .entry-header .entry-meta{
  display:flex;flex-wrap:wrap;justify-content:center;gap:8px 26px;margin:0;
  font-family:var(--hb-body);font-size:13px;letter-spacing:.09em;text-transform:uppercase;color:var(--hb-muted)}
body.single-post article.hentry .entry-header .entry-meta a{color:var(--hb-muted);text-decoration:none}
body.single-post article.hentry .entry-header .entry-meta a:hover{color:var(--hb-accent)}

/* ---------- Featured image ---------- */
body.single-post .single-content>.post-thumbnail{width:100%;max-width:1040px;margin:0 auto 52px}
body.single-post .single-content>.post-thumbnail img{display:block;width:100%;height:auto;aspect-ratio:21/10;max-height:540px;object-fit:cover;border-radius:10px}

/* ---------- Reading column ---------- */
body.single-post .entry-content{
  max-width:740px;margin:0 auto;font-family:var(--hb-body);font-size:18px;line-height:1.8;
  color:var(--hb-text);overflow-wrap:break-word}
body.single-post .entry-content p{margin:0 0 1.35em;font-size:inherit;line-height:inherit;color:inherit}
body.single-post .entry-content p.hb-lead{font-size:1.24em;line-height:1.65;color:var(--hb-ink)}
body.single-post .entry-content strong,body.single-post .entry-content b{font-weight:600;color:var(--hb-ink)}
body.single-post .entry-content a{color:var(--hb-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body.single-post .entry-content a:hover{color:var(--hb-ink)}

body.single-post .entry-content :is(h2,h3,h4,h5,h6){font-family:var(--hb-display);color:var(--hb-ink);text-transform:none;letter-spacing:0;scroll-margin-top:110px}
body.single-post .entry-content h2{font-weight:600;font-size:clamp(1.95rem,3.6vw,2.55rem);line-height:1.15;margin:2.1em 0 .6em}
body.single-post .entry-content h2::before{content:"";display:block;width:44px;height:3px;background:var(--hb-gold);margin-bottom:16px}
body.single-post .entry-content h3{font-weight:600;font-size:clamp(1.65rem,3vw,2.05rem);line-height:1.2;margin:2em 0 .55em}
body.single-post .entry-content h4{font-weight:700;font-size:clamp(1.35rem,2.4vw,1.55rem);line-height:1.25;margin:1.8em 0 .45em}
body.single-post .entry-content :is(h5,h6){font-family:var(--hb-body);font-weight:600;font-size:1.08rem;line-height:1.4;margin:1.6em 0 .4em}
body.single-post .entry-content>:first-child{margin-top:0}

body.single-post .entry-content :is(ul,ol){margin:0 0 1.5em;padding-left:1.35em}
body.single-post .entry-content ul{list-style:disc}
body.single-post .entry-content ol{list-style:decimal}
body.single-post .entry-content li{margin:0 0 .6em;padding-left:.3em;line-height:1.75}
body.single-post .entry-content li::marker{color:var(--hb-gold);font-weight:600}
body.single-post .entry-content ol li::marker{color:var(--hb-accent)}
body.single-post .entry-content li>:is(ul,ol){margin-top:.6em;margin-bottom:0}

body.single-post .entry-content blockquote{
  margin:2.2em 0;padding:6px 0 6px 28px;border:0;border-left:3px solid var(--hb-gold);background:none;
  font-family:var(--hb-display);font-style:italic;font-size:1.4rem;line-height:1.45;color:var(--hb-ink)}
body.single-post .entry-content blockquote p{margin:0 0 .6em;font-size:inherit;line-height:inherit;color:inherit}
body.single-post .entry-content blockquote p:last-child{margin-bottom:0}
body.single-post .entry-content blockquote cite{display:block;margin-top:.6em;font-family:var(--hb-body);font-style:normal;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--hb-muted)}
body.single-post .entry-content hr{border:0;height:1px;background:var(--hb-line);margin:3em 0}

/* ---------- Images ---------- */
body.single-post .entry-content img{display:block;max-width:100%;height:auto;margin:2.1em auto;border-radius:10px}
body.single-post .entry-content p>img:only-child{margin:.4em auto}
body.single-post .entry-content figure{margin:2.1em 0}
body.single-post .entry-content figure img{margin:0 auto}
body.single-post .entry-content figcaption{margin-top:12px;text-align:center;font-size:14px;line-height:1.5;color:var(--hb-muted)}
body.single-post .entry-content iframe,body.single-post .entry-content video{max-width:100%;border-radius:10px}

/* ---------- Tables ---------- */
body.single-post .entry-content .hb-table{margin:2em 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--hb-line);border-radius:10px}
body.single-post .entry-content .hb-table table{width:100%;min-width:480px;margin:0;border-collapse:collapse;font-size:16px;line-height:1.5}
body.single-post .entry-content .hb-table :is(th,td){padding:14px 18px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid var(--hb-line);color:var(--hb-text)}
body.single-post .entry-content .hb-table th{background:var(--hb-ink);color:#FBF7EF;font-weight:600;letter-spacing:.03em;border-bottom:0}
body.single-post .entry-content .hb-table tbody tr:nth-child(even) td{background:var(--hb-cream)}
body.single-post .entry-content .hb-table tbody tr:last-child td{border-bottom:0}
body.single-post .entry-content .hb-table tbody td:first-child{font-weight:600;color:var(--hb-ink)}

/* ---------- Contents panel ---------- */
body.single-post .entry-content .hb-toc{margin:2.2em 0 2.6em;padding:26px 30px 14px;background:var(--hb-cream);border:1px solid var(--hb-line);border-radius:4px}
body.single-post .entry-content .hb-toc__top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 20px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--hb-line)}
body.single-post .entry-content .hb-toc__title{font-family:var(--hb-display);font-weight:600;font-size:1.7rem;line-height:1.1;color:var(--hb-ink)}
body.single-post .entry-content .hb-toc__time{font-size:13px;letter-spacing:.09em;text-transform:uppercase;color:var(--hb-muted)}
body.single-post .entry-content .hb-toc ol{list-style:none;margin:0;padding:0;counter-reset:hb;column-count:2;column-gap:36px}
body.single-post .entry-content .hb-toc li{counter-increment:hb;break-inside:avoid;margin:0;padding:0 0 12px;display:flex;gap:12px;font-size:16px;line-height:1.4}
body.single-post .entry-content .hb-toc li::before{content:counter(hb,decimal-leading-zero);flex:0 0 auto;font-family:var(--hb-display);font-weight:700;font-size:1.15rem;line-height:1.2;color:var(--hb-gold)}
body.single-post .entry-content .hb-toc li::marker{content:""}
body.single-post .entry-content .hb-toc a{color:var(--hb-ink);text-decoration:none}
body.single-post .entry-content .hb-toc a:hover{color:var(--hb-accent);text-decoration:underline}
body.single-post .entry-content .hb-readtime{margin:0 0 1.6em;font-size:13px;letter-spacing:.09em;text-transform:uppercase;color:var(--hb-muted)}

/* ---------- FAQ accordion ---------- */
body.single-post .entry-content .hb-faq-list{margin:1.4em 0 2.4em;border-top:1px solid var(--hb-line)}
body.single-post .entry-content details.hb-faq{border-bottom:1px solid var(--hb-line)}
body.single-post .entry-content details.hb-faq>summary{position:relative;display:block;list-style:none;cursor:pointer;padding:20px 48px 20px 0;font-family:var(--hb-body);font-weight:600;font-size:1.06rem;line-height:1.45;color:var(--hb-ink)}
body.single-post .entry-content details.hb-faq>summary::-webkit-details-marker{display:none}
body.single-post .entry-content details.hb-faq>summary::marker{content:""}
body.single-post .entry-content details.hb-faq>summary::after{content:"+";position:absolute;right:6px;top:50%;transform:translateY(-52%);font-family:var(--hb-display);font-weight:500;font-size:1.9rem;line-height:1;color:var(--hb-accent)}
body.single-post .entry-content details.hb-faq[open]>summary::after{content:"\2212"}
body.single-post .entry-content details.hb-faq>summary:hover{color:var(--hb-accent)}
body.single-post .entry-content details.hb-faq>summary:focus-visible{outline:2px solid var(--hb-accent);outline-offset:2px}
body.single-post .entry-content .hb-faq__a{padding:0 48px 8px 0;font-size:17px;line-height:1.75}
body.single-post .entry-content .hb-faq__a>:last-child{margin-bottom:1em}

/* ---------- After the article: call to action, related reads ---------- */
body.single-post .hb-after{max-width:740px;width:100%;margin:56px auto 0}
body.single-post .hb-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 36px;padding:34px 36px;background:var(--hb-cream);border:1px solid var(--hb-line);border-left:4px solid var(--hb-gold);border-radius:4px}
body.single-post .hb-cta__text{flex:1 1 320px}
body.single-post .hb-cta__title{margin:0 0 8px;font-family:var(--hb-display);font-weight:600;font-size:clamp(1.7rem,3vw,2.1rem);line-height:1.15;color:var(--hb-ink)}
body.single-post .hb-cta__copy{margin:0;font-family:var(--hb-body);font-size:16px;line-height:1.6;color:var(--hb-text)}
body.single-post .hb-cta__actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
body.single-post .hb-cta__btn{display:inline-block;padding:14px 26px;background:var(--hb-accent);color:#fff;border-radius:4px;font-family:var(--hb-body);font-weight:500;font-size:15px;letter-spacing:.04em;text-decoration:none;white-space:nowrap}
body.single-post .hb-cta__btn:hover{background:var(--hb-ink);color:#fff}
body.single-post .hb-cta__link{font-family:var(--hb-body);font-size:14px;color:var(--hb-accent);text-decoration:underline;text-underline-offset:3px}
body.single-post .hb-cta__link:hover{color:var(--hb-ink)}

body.single-post .hb-related{max-width:1040px;margin:72px auto 0}
body.single-post .hb-related__title{margin:0 0 26px;font-family:var(--hb-display);font-weight:600;font-size:clamp(1.8rem,3.2vw,2.3rem);line-height:1.15;color:var(--hb-ink);text-align:center}
body.single-post .hb-related__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
body.single-post .hb-related__item{display:block;text-decoration:none;color:var(--hb-ink)}
body.single-post .hb-related__img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:10px;margin:0 0 14px;background:var(--hb-cream)}
body.single-post .hb-related__date{display:block;margin-bottom:6px;font-family:var(--hb-body);font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--hb-muted)}
body.single-post .hb-related__name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-family:var(--hb-display);font-weight:600;font-size:1.35rem;line-height:1.25;color:var(--hb-ink)}
body.single-post .hb-related__item:hover .hb-related__name{color:var(--hb-accent)}

/* ---------- Tags, post navigation, comments ---------- */
body.single-post .single-content>aside.entry-taxonomy{max-width:740px;width:100%;margin:36px auto 0;padding:0;border:0}\nbody.single-post .single-content .tags-links{display:flex;flex-wrap:wrap;gap:0}
body.single-post .single-content a[rel="tag"]{display:inline-block;margin:0 8px 8px 0;padding:5px 14px;border:1px solid var(--hb-line);border-radius:99px;font-family:var(--hb-body);font-size:13px;color:var(--hb-muted);text-decoration:none}
body.single-post .single-content a[rel="tag"]:hover{border-color:var(--hb-accent);color:var(--hb-accent)}
body.single-post .single-content>nav.post-navigation{max-width:740px;width:100%;margin:40px auto 0}
body.single-post .single-content>#comments,body.single-post .single-content>.comments-area{max-width:740px;width:100%;margin:56px auto 0;font-family:var(--hb-body)}
body.single-post #comments .comment-reply-title,body.single-post #comments .comments-title{font-family:var(--hb-display);font-weight:600;font-size:1.9rem;color:var(--hb-ink)}

/* ---------- Tablet and phone ---------- */
@media (max-width:900px){
  body.single-post .hb-related__grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  body.single-post #page .site-content{margin-top:96px;margin-bottom:56px;padding-left:18px;padding-right:18px}
  body.single-post .single-content>.post-thumbnail{margin-bottom:34px}
  body.single-post .single-content>.post-thumbnail img{aspect-ratio:3/2;border-radius:8px}
  body.single-post .entry-content{font-size:17px;line-height:1.75}
  body.single-post .entry-content blockquote{font-size:1.25rem;padding-left:20px}
  body.single-post .entry-content .hb-toc{padding:22px 20px 10px}
  body.single-post .entry-content .hb-toc ol{column-count:1}
  body.single-post .entry-content details.hb-faq>summary{padding-right:40px}
  body.single-post .entry-content .hb-faq__a{padding-right:0}
  body.single-post .hb-cta{padding:26px 22px}
  body.single-post .hb-cta__actions{width:100%}
  body.single-post .hb-cta__btn{width:100%;text-align:center}
  body.single-post .hb-related__grid{grid-template-columns:1fr;gap:26px}
}
