/*
  SINGLE POST — the blog article design. Applies to every post, including new
  posts created in the WordPress editor, because the full-canvas template wraps
  single posts in .fsm-post. Content typography is scoped under .fsm-post-body so
  it styles any block the editor produces.
*/

.fsm-post{background:var(--ink);color:var(--paper);font-family:var(--sans);font-size:var(--body);line-height:1.7}
.fsm-post *{box-sizing:border-box}
.fsm-post img{display:block;max-width:100%}
.fsm-post-wrap{max-width:820px;margin:0 auto;padding:0 clamp(1.25rem,4vw,2rem)}

/* ---------- Hero ---------- */
.fsm-post-hero{position:relative;overflow:hidden;background:var(--ink);color:var(--cream);text-align:center;padding:clamp(8rem,16vh,11rem) 0 clamp(2.5rem,5vw,4rem)}
.fsm-post-hero::before{content:"";position:absolute;top:-40%;left:50%;transform:translateX(-50%);width:70vw;height:70vw;background:radial-gradient(circle,rgba(24,170,204,.16),transparent 62%);pointer-events:none}
.fsm-post-hero .fsm-post-wrap{position:relative;z-index:2}
.fsm-post-crumb{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:1.6rem}
.fsm-post-crumb a{color:var(--muted);transition:color .2s}
.fsm-post-crumb a:hover{color:var(--accent)}
.fsm-post-crumb span{color:var(--muted)}
.fsm-post-cat{
  display:inline-block;font-size:.7rem;letter-spacing:.24em;text-transform:uppercase;font-weight:700;
  color:var(--accent);border:1px solid var(--line-l);padding:.45rem 1.1rem;margin-bottom:1.6rem;transition:.2s;
}
.fsm-post-cat:hover{border-color:var(--accent);background:rgba(24,170,204,.1)}
.fsm-post-hero h1{
  font-family:var(--serif);font-weight:800;color:var(--cream);
  font-size:clamp(2rem,1.15rem + 3.8vw,3.7rem);line-height:1.08;letter-spacing:-.025em;
  max-width:22ch;margin:0 auto;
}
.fsm-post-meta{display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;justify-content:center;margin-top:1.8rem;color:var(--muted);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600}
.fsm-post-meta span{position:relative;padding-left:1.1rem}
.fsm-post-meta span::before{content:"";position:absolute;left:0;top:50%;width:6px;height:6px;margin-top:-3px;background:var(--accent);border-radius:50%}
.fsm-post-meta span:first-child{padding-left:0}
.fsm-post-meta span:first-child::before{display:none}

/* ---------- Featured cover ---------- */
.fsm-post-cover{background:var(--ink)}
.fsm-post-cover img{width:100%;max-height:72vh;object-fit:cover}

/* ---------- Content ---------- */
.fsm-post-content{background:var(--cream);color:var(--ink);padding:clamp(3rem,7vw,5.5rem) 0}
.fsm-post-body{color:#3d3a31}
.fsm-post-body > *:first-child{margin-top:0}
.fsm-post-body h2,.fsm-post-body h3,.fsm-post-body h4{font-family:var(--serif);color:var(--ink);font-weight:800;line-height:1.15;letter-spacing:-.015em}
.fsm-post-body h2{font-size:clamp(1.6rem,1.15rem + 1.6vw,2.35rem);margin:2.8rem 0 1rem}
.fsm-post-body h3{font-size:1.5rem;margin:2.2rem 0 .8rem}
.fsm-post-body h4{font-size:1.2rem;margin:1.8rem 0 .6rem}
.fsm-post-body p{margin:0 0 1.5rem}
.fsm-post-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;transition:color .2s}
.fsm-post-body a:hover{color:var(--ink)}
.fsm-post-body strong{color:var(--ink);font-weight:700}
.fsm-post-body ul,.fsm-post-body ol{margin:0 0 1.5rem;padding-left:1.4rem}
.fsm-post-body li{margin:.5rem 0}
.fsm-post-body li::marker{color:var(--accent)}
.fsm-post-body blockquote,.fsm-post-body .wp-block-quote{
  border-left:4px solid var(--accent);margin:2.2rem 0;padding:.4rem 0 .4rem 1.6rem;
  font-family:var(--serif);font-size:1.28rem;line-height:1.4;color:var(--ink);
}
.fsm-post-body blockquote p:last-child,.fsm-post-body .wp-block-quote p:last-child{margin-bottom:0}
.fsm-post-body figure{margin:3.25rem 0}
.fsm-post-body img{border:0}
.fsm-post-body p > img,.fsm-post-body > img{margin:2.75rem auto}
.fsm-post-body figcaption,.fsm-post-body .wp-element-caption{font-size:.82rem;color:var(--muted);text-align:center;margin-top:1rem;letter-spacing:.02em}

.fsm-post-body hr{border:0;border-top:1px solid var(--line);margin:2.8rem 0}
.fsm-post-body code{background:rgba(10,10,10,.07);padding:.15em .45em;font-size:.9em;border-radius:2px}
.fsm-post-body pre{background:var(--ink);color:var(--cream);padding:1.3rem 1.5rem;overflow:auto;margin:1.8rem 0;font-size:.9rem}
.fsm-post-body pre code{background:none;padding:0;color:inherit}
.fsm-post-body .alignwide{max-width:1040px;margin-left:auto;margin-right:auto}
.fsm-post-body .alignfull{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.fsm-post-body .wp-block-image{margin:3.25rem 0}
.fsm-post-body .wp-block-button__link{
  display:inline-block;background:var(--accent);color:var(--ink);font-weight:700;padding:.9rem 1.7rem;
  text-decoration:none;transition:.25s;
}
.fsm-post-body .wp-block-button__link:hover{background:var(--ink);color:var(--cream)}
.fsm-post-body table{width:100%;border-collapse:collapse;margin:1.8rem 0}
.fsm-post-body th,.fsm-post-body td{border:1px solid var(--line);padding:.7rem .9rem;text-align:left}

/* ---------- Post end: donate ---------- */
.fsm-post-donate{background:#f2ede1;border-top:1px solid var(--line);padding:clamp(2.5rem,5vw,4rem) 0}
.fsm-post-donate .fsm-post-wrap{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.fsm-post-donate-label{margin:0;font-family:var(--serif);font-weight:800;font-size:clamp(1.2rem,1rem + 1vw,1.7rem);color:var(--ink);max-width:36rem}
.fsm-post-donate .fh-btn{flex:none}

/* ---------- Footer: related + actions ---------- */
.fsm-post-foot{background:var(--ink);color:var(--cream);padding:clamp(3rem,7vw,5rem) 0}
.fsm-post-related-title{font-family:var(--serif);font-weight:800;font-size:clamp(1.4rem,1.1rem + 1vw,2rem);color:var(--cream);margin:0 0 1.6rem}
.fsm-post-related-list{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
@media(max-width:820px){.fsm-post-related-list{grid-template-columns:1fr}}
.fsm-post-card{display:flex;flex-direction:column;gap:.6rem;border:1px solid var(--line-l);padding:1.2rem;transition:border-color .25s,background .25s}
.fsm-post-card:hover{border-color:var(--accent);background:rgba(255,255,255,.03)}
.fsm-post-card-thumb{display:block;overflow:hidden;margin:-1.2rem -1.2rem .4rem}
.fsm-post-card-thumb img{width:100%;aspect-ratio:16/10;object-fit:cover}
.fsm-post-card-cat{font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:var(--accent)}
.fsm-post-card-title{font-family:var(--serif);font-weight:700;font-size:1.2rem;line-height:1.2;color:var(--cream)}
.fsm-post-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:2.5rem}
@media(max-width:520px){.fsm-post-actions .fh-btn{width:100%;justify-content:center}}
