/* Bodyways — theme stylesheet.
   Section 1–13 are lifted verbatim from the approved static page.
   Section 14+ is theme-only: post list, article body, Ghost cards. */

/* ============================================================
   1. BRAND TOKENS  —  Bodyways Brand Guidelines 2025, p.7
   ============================================================ */
:root{
  --cloud:#F6F5F7;
  --rose:#E7BED2;
  --clay:#B34F34;
  --sunray:#F9D466;
  --earth:#332210;

  /* Guidelines p.9. All five faces are licensed and self-hosted below.
     Fallbacks cover the seconds before they load, or a 404. No trial
     family is named on purpose — a locally installed trial would mask
     a missing webfont. */
  --f-display:"Stinger",Georgia,"Times New Roman",serif;
  --f-head:"Sofia Pro Condensed","Avenir Next Condensed","HelveticaNeue-CondensedBold","Arial Narrow",Helvetica,sans-serif;
  --f-body:"Schibsted Grotesk",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;

  --measure:34rem;        /* reading measure, ~68 characters */
  --gutter:clamp(1.25rem,5vw,3.5rem);
  --band:clamp(3.5rem,9vw,7rem);   /* vertical rhythm between sections */
}

/* ------------------------------------------------------------
   FONT LICENSING — all five faces licensed, verified 2026-08-05
   against the licence documents archived in
   02 Assets/Fonts - licensed originals/.
   Stinger Reg    · Zetafonts (Florence), licence 225u-oqx58dk5/101149,
                    issued to Bodyways 04 Aug 2026. Web only, single
                    domain (bodyways.co.uk), up to 25k pageviews/month,
                    self-hosted, perpetual.
                    NOT SUBSETTED, deliberately: clause 2 of that EULA
                    prohibits converting, modifying or reformatting the
                    font. Costs 48 KB against the page budget. See
                    assets/fonts/HOW-THESE-WERE-MADE.md.
                    Do not trust this font's internal metadata — Zetafonts
                    ships one identical file for every licence tier and
                    its nameID 13 still reads "personal - not commercial".
                    The PDF is the licence; the file is not.
   Sofia Pro Cond · Mostardesign via Fontspring, order 131913232.
                    Perpetual one-time webfont licence, self-hosted.
   Schibsted Grot · SIL Open Font License 1.1. Free, self-hostable.
   The four non-Stinger files are subsets of licensed originals archived
   in 02 Assets/Fonts - licensed originals/. Command in
   assets/fonts/HOW-THESE-WERE-MADE.md. Replacing a face means starting
   from that archive, never from a fresh web download.
   ------------------------------------------------------------ */
@font-face{font-family:"Stinger";src:url("../fonts/stinger-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Sofia Pro Condensed";src:url("../fonts/sofiapro-cond-medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Sofia Pro Condensed";src:url("../fonts/sofiapro-cond-semibold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Schibsted Grotesk";src:url("../fonts/schibstedgrotesk-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Schibsted Grotesk";src:url("../fonts/schibstedgrotesk-bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

/* ============================================================
   2. BASE
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--cloud);
  color:var(--earth);
  font-family:var(--f-body);
  font-size:clamp(1.0625rem,0.98rem + 0.42vw,1.1875rem);
  line-height:1.62;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
p{margin:0 0 1.15em}
p:last-child{margin-bottom:0}

.skip{
  position:absolute;left:-9999px;top:0;background:var(--sunray);color:var(--earth);
  padding:.75rem 1.25rem;font-family:var(--f-head);font-weight:600;z-index:99;
}
.skip:focus{left:0}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

:focus-visible{outline:3px solid var(--clay);outline-offset:3px}

.wrap{width:min(72rem,100%);margin-inline:auto;padding-inline:var(--gutter)}
.narrow{max-width:var(--measure)}

/* ============================================================
   3. TYPE  —  Guidelines p.9
   H1 Stinger Regular · H2/H3/H4 Sofia Pro Cond Semi Bold
   Quote Sofia Pro Cond Medium · Body Schibsted Grotesk
   ============================================================ */
h1,h2,h3,h4{margin:0 0 .5em;text-wrap:balance}

/* The hero header is a full descriptive sentence, not a slogan — it has to
   dominate without becoming a wall. Sized so it sets in 6–7 lines. */
h1{
  font-family:var(--f-display);
  font-weight:400;
  font-size:clamp(1.95rem,1.1rem + 3.5vw,3.5rem);
  line-height:1.06;
  letter-spacing:-0.015em;
}
h2{
  font-family:var(--f-head);
  font-weight:600;
  font-size:clamp(1.7rem,1.25rem + 1.9vw,2.5rem);
  line-height:1.1;
  letter-spacing:-0.005em;
}
h3{
  font-family:var(--f-head);
  font-weight:600;
  font-size:clamp(1.3rem,1.1rem + 0.85vw,1.7rem);
  line-height:1.15;
  color:var(--clay);
  margin-top:2.4em;
}
h3:first-child{margin-top:0}
h4{
  font-family:var(--f-head);
  font-weight:600;
  font-size:.82rem;
  letter-spacing:.13em;
  text-transform:uppercase;
}
strong,b{font-weight:700}

/* section eyebrow — small, unemphatic, per the hero hierarchy rule */
.eyebrow{
  font-family:var(--f-head);font-weight:500;
  font-size:.86rem;letter-spacing:.19em;text-transform:uppercase;
  margin:0 0 1.4rem;
}

/* ============================================================
   4. BANDS  —  one ground colour per section (Guidelines p.16:
   don't use too many colours in a single layout)
   ============================================================ */
.band{padding-block:var(--band);position:relative;overflow:hidden}
.band--cloud{background:var(--cloud);color:var(--earth)}
.band--rose {background:var(--rose); color:var(--earth)}
.band--earth{background:var(--earth);color:var(--cloud)}
.band--clay {background:var(--clay); color:var(--cloud)}
.band--sunray{background:var(--sunray);color:var(--earth)}
.band--earth h3,.band--clay h3{color:var(--sunray)}
.band--rose h3{color:var(--clay)}

/* ============================================================
   5. NAVBAR  —  non-sticky, by decision (skeleton §1)
   ============================================================ */
.nav{background:var(--cloud);border-bottom:1px solid rgba(51,34,16,.14)}
.nav__inner{
  display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;
  padding-block:1.1rem;
}
.nav__logo img{width:clamp(132px,17vw,168px)}   /* min 90px, Guidelines p.5 */
.nav__links{
  margin-left:auto;display:flex;align-items:center;flex-wrap:wrap;
  column-gap:clamp(.9rem,2.4vw,1.9rem);row-gap:.65rem;
  font-family:var(--f-head);font-weight:600;
  font-size:clamp(.94rem,.9rem + .2vw,1rem);
  letter-spacing:.02em;
}
.nav__links a{text-decoration:none;padding-block:.35rem;border-bottom:2px solid transparent}
.nav__links a:hover{border-bottom-color:var(--clay)}
.nav__links .btn{border-bottom:0}

/* ============================================================
   6. BUTTONS  —  Sunray ground, Earth text (10.6:1). Never Sunray
   text on Clay (3.6:1) and never Rose with Sunray (Guidelines p.7).
   ============================================================ */
.btn{
  display:inline-block;background:var(--sunray);color:var(--earth);
  font-family:var(--f-head);font-weight:600;font-size:1.05rem;letter-spacing:.02em;
  padding:.72em 1.5em;border:2px solid var(--earth);border-radius:2px;
  text-decoration:none;
  box-shadow:5px 5px 0 var(--earth);
  transition:transform .12s ease,box-shadow .12s ease;
}
.btn:hover{transform:translate(2px,2px);box-shadow:3px 3px 0 var(--earth)}
.btn:active{transform:translate(5px,5px);box-shadow:0 0 0 var(--earth)}
.btn--lg{font-size:clamp(1.1rem,1rem + 0.5vw,1.35rem);padding:.8em 1.7em}
.band--earth .btn,.band--clay .btn{border-color:var(--cloud);box-shadow:5px 5px 0 rgba(246,245,247,.9)}
.band--earth .btn:hover,.band--clay .btn:hover{box-shadow:3px 3px 0 rgba(246,245,247,.9)}

/* ============================================================
   7. HERO
   ============================================================ */
.hero{padding-block:clamp(2.75rem,7vw,5.5rem) 0;position:relative}
.hero__grid{display:grid;gap:clamp(2rem,5vw,3.5rem);align-items:center}
@media(min-width:60rem){.hero__grid{grid-template-columns:1.08fr .92fr}}
.hero .eyebrow{color:var(--clay)}
.hero__coda{
  font-size:1rem;line-height:1.5;color:rgba(51,34,16,.72);
  max-width:30rem;margin-top:1.6rem;
}
.hero__art{position:relative}
/* Brand form as a stamp behind the top-right of the image, sized so it
   never overruns the placeholder into the doors below. */
.hero__art .form{
  position:absolute;width:46%;right:-6%;top:-9%;z-index:0;
  pointer-events:none;
}

/* two doors — at the foot of the hero, equal weight */
.doors{
  display:grid;gap:1.1rem;margin-top:clamp(2.5rem,6vw,4rem);
  padding-bottom:var(--band);
}
@media(min-width:44rem){.doors{grid-template-columns:1fr 1fr}}
.door{
  display:flex;gap:1.1rem;align-items:flex-start;
  background:var(--cloud);border:2px solid var(--earth);border-radius:2px;
  padding:1.35rem 1.4rem;text-decoration:none;
  box-shadow:6px 6px 0 var(--rose);
  transition:transform .12s ease,box-shadow .12s ease;
}
.door:hover{transform:translate(2px,2px);box-shadow:4px 4px 0 var(--rose)}
.door img{width:38px;flex:none;margin-top:.15rem}
.door__t{font-family:var(--f-head);font-weight:600;font-size:1.35rem;line-height:1.1;display:block;margin-bottom:.3rem}
.door__d{font-size:.98rem;line-height:1.45;color:rgba(51,34,16,.78)}
.door__go{font-family:var(--f-head);font-weight:600;color:var(--clay);display:block;margin-top:.55rem;font-size:.95rem}

/* ============================================================
   8. IMAGE PLACEHOLDERS  —  new photography arrives late October.
   These must be unmistakably placeholders, not design.
   ============================================================ */
.ph{
  position:relative;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;
  gap:.5rem;padding:1.5rem;
  border:3px dashed var(--clay);border-radius:2px;
  background-color:rgba(179,79,52,.07);
  background-image:repeating-linear-gradient(45deg,
    rgba(179,79,52,.13) 0 2px,transparent 2px 13px);
  color:var(--clay);
}
.ph::after{
  content:"PLACEHOLDER";
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%) rotate(-11deg);
  font-family:var(--f-head);font-weight:600;
  font-size:clamp(1.5rem,5.5vw,3rem);letter-spacing:.16em;
  color:rgba(179,79,52,.22);white-space:nowrap;pointer-events:none;
}
.ph__l{
  font-family:var(--f-head);font-weight:600;
  font-size:clamp(.95rem,.85rem + .4vw,1.2rem);
  letter-spacing:.06em;text-transform:uppercase;line-height:1.2;
  position:relative;z-index:1;max-width:22ch;
}
.ph__m{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.75rem;letter-spacing:.03em;line-height:1.5;
  position:relative;z-index:1;color:rgba(51,34,16,.62);
}
.ph--hero{aspect-ratio:3/2;position:relative;z-index:1}
.ph--room{aspect-ratio:4/3}
.ph--portrait{aspect-ratio:4/5}

/* real photographs, with provenance */
figure{margin:0}
figure img{border-radius:2px}
figcaption{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.74rem;letter-spacing:.02em;color:rgba(51,34,16,.6);
  margin-top:.6rem;
}
.band--rose figcaption{color:rgba(51,34,16,.68)}

/* ============================================================
   9. TESTIMONY  —  skim layer: the bolded phrase is the whole point
   ============================================================ */
.testimony__grid{display:grid;gap:clamp(1.75rem,4vw,3rem)}
@media(min-width:62rem){.testimony__grid{grid-template-columns:1fr 1fr}}
.quotes{display:grid;gap:1.9rem}
blockquote{
  margin:0;font-family:var(--f-head);font-weight:500;
  font-size:clamp(1.08rem,1rem + .45vw,1.28rem);line-height:1.42;
  border-left:5px solid var(--clay);padding-left:1.15rem;
}
blockquote strong{font-weight:600;background:rgba(246,245,247,.82);
  box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:.06em .16em}
blockquote cite{
  display:block;margin-top:.7rem;font-style:normal;
  font-family:var(--f-head);font-weight:600;font-size:.9rem;
  letter-spacing:.11em;text-transform:uppercase;color:var(--clay);
}

/* ============================================================
   10. CONTENT BLOCKS
   ============================================================ */
.lede{
  font-family:var(--f-head);font-weight:500;
  font-size:clamp(1.28rem,1.1rem + 1vw,1.85rem);line-height:1.28;
  margin:0 0 2.2rem;max-width:26ch;
}
.cols{display:grid;gap:clamp(2rem,5vw,3.5rem)}
@media(min-width:62rem){.cols{grid-template-columns:minmax(0,1fr) minmax(0,22rem)}}
.aside{display:grid;gap:2.25rem;align-content:start}
@media(min-width:62rem){.aside{position:relative;top:.35rem}}

.list{list-style:none;margin:0 0 1em;padding:0;display:grid;gap:.55rem}
.list li{padding-left:1.5rem;position:relative;line-height:1.45}
.list li::before{
  content:"";position:absolute;left:0;top:.62em;
  width:.55rem;height:.55rem;background:var(--clay);
  clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);
}
@media(min-width:48rem){.list--two{grid-template-columns:1fr 1fr;column-gap:2rem}}

.dates{
  list-style:none;margin:.4rem 0 0;padding:0;
  font-family:var(--f-head);font-weight:500;font-size:1.08rem;
}
.dates li{display:flex;gap:1rem;padding:.5rem 0;border-bottom:1px solid rgba(51,34,16,.16)}
.dates b{font-weight:600;flex:none;width:5.2rem;color:var(--clay)}

/* price table — a skim-layer object; must read at a glance */
.price{
  width:100%;border-collapse:collapse;margin:.4rem 0 1.5rem;
  font-size:1.02rem;
}
.price th{
  text-align:left;font-family:var(--f-head);font-weight:600;
  font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;
  padding:.5rem .75rem;background:var(--earth);color:var(--sunray);
}
.price td{padding:.85rem .75rem;border-bottom:1px solid rgba(51,34,16,.18);vertical-align:top;line-height:1.4}
.price tr:nth-child(even) td{background:rgba(179,79,52,.05)}
.price td:last-child{font-family:var(--f-head);font-weight:500}
.price td strong{font-family:var(--f-head);font-weight:600;font-size:1.28rem;color:var(--clay)}

/* objections — the italic questions become the skim layer */
.asks{display:grid;gap:1.5rem;margin-top:.6rem}
.ask__q{
  font-family:var(--f-head);font-weight:600;
  font-size:1.12rem;color:var(--clay);margin:0 0 .3rem;line-height:1.25;
}

/* Archival cut-outs — idea slots only, never a claim slot.
   Guidelines p.16: never place a cut-out on a non-contrasting ground.
   The archive is greyscale and dark, so every form behind it is a LIGHT
   colourway (Sunray, Cloud, Rose) whatever the band it sits in. */
.plate{
  position:relative;display:grid;place-items:center;
  aspect-ratio:4/5;max-width:26rem;margin-inline:auto;
}
.plate .form{
  position:absolute;height:92%;width:auto;max-width:none;z-index:0;
  pointer-events:none;
}
.plate .cut{
  position:relative;z-index:1;
  max-height:64%;max-width:70%;width:auto;
  filter:drop-shadow(0 3px 7px rgba(51,34,16,.28));
}
.plate--sm .cut{max-height:58%;max-width:52%}
.credit{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.7rem;color:rgba(51,34,16,.55);text-align:center;margin-top:.5rem;
}

/* ============================================================
   11. CALLS TO ACTION
   ============================================================ */
.cta__q{max-width:20ch}
.cta__body{max-width:var(--measure)}
.cta .btn{margin-top:1.4rem}
.signup{
  margin-top:2.75rem;padding-top:1.6rem;
  border-top:1px solid rgba(246,245,247,.3);
  max-width:var(--measure);
}
.signup p{font-size:1rem;color:rgba(246,245,247,.85)}
.signup__row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.9rem}
.signup input{
  flex:1 1 15rem;min-width:0;font:inherit;font-size:1rem;
  padding:.68em .85em;border:2px solid var(--cloud);border-radius:2px;
  background:var(--cloud);color:var(--earth);
}
.signup button{
  font-family:var(--f-head);font-weight:600;font-size:1rem;
  background:var(--cloud);color:var(--earth);
  border:2px solid var(--cloud);border-radius:2px;
  padding:.68em 1.35em;cursor:pointer;
}
.signup button:hover{background:var(--sunray);border-color:var(--sunray)}

/* ============================================================
   12. FOOTER
   ============================================================ */
.foot{background:var(--earth);color:var(--cloud);padding-block:clamp(2.75rem,6vw,4.25rem)}
.foot__grid{display:flex;flex-wrap:wrap;gap:2.5rem;align-items:flex-start}
.foot__main{flex:1 1 20rem}
.foot__mark{flex:none;margin-left:auto;order:9}
.foot__mark img{width:74px}
.foot a{color:var(--sunray)}
.foot__links{
  display:flex;flex-wrap:wrap;gap:1.4rem;margin-top:1.5rem;
  font-family:var(--f-head);font-weight:600;letter-spacing:.02em;
}
.foot__note{
  margin-top:1.8rem;font-size:.95rem;color:rgba(246,245,247,.72);
  font-family:var(--f-head);font-weight:500;letter-spacing:.03em;
}
.foot__place{font-family:var(--f-head);font-weight:600;font-size:1.15rem;margin:0 0 .35rem}

/* ============================================================
   13. BUILD NOTES  —  visible on purpose. Delete this rule to hide.
   ============================================================ */
.buildnote{
  display:block;margin:1.1rem 0;padding:.7rem .9rem;
  border:2px dotted #7a1f1f;background:rgba(122,31,31,.07);color:#7a1f1f;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.74rem;line-height:1.55;letter-spacing:.01em;border-radius:2px;
}
.buildnote b{font-weight:700;letter-spacing:.08em}
.band--earth .buildnote,.band--clay .buildnote{
  border-color:var(--sunray);background:rgba(249,212,102,.13);color:var(--sunray);
}

@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{.buildnote,.nav,.btn{display:none}}

/* ============================================================
   14. THEME ONLY — post list, article body, Ghost cards.
   Nothing below appears on the landing page.
   ============================================================ */

.blog__title{font-family:var(--f-display);font-weight:400;
  font-size:clamp(2.4rem,1.6rem + 3.5vw,4rem);line-height:1;margin-bottom:.35em}
.eyebrow a{color:inherit;text-decoration:none;border-bottom:1px solid currentColor}

/* --- post list --- */
.postlist{list-style:none;margin:0;padding:0;display:grid;gap:0;max-width:44rem}
.postcard{border-top:2px solid var(--earth)}
.postcard:last-child{border-bottom:2px solid var(--earth)}
.postcard__link{display:block;text-decoration:none;padding:1.9rem 0;transition:background .12s ease}
.postcard__link:hover{background:rgba(179,79,52,.06)}
.postcard__title{
  font-family:var(--f-head);font-weight:600;
  font-size:clamp(1.35rem,1.15rem + .9vw,1.85rem);line-height:1.14;
  margin:0 0 .45rem;color:var(--earth);
}
.postcard__link:hover .postcard__title{color:var(--clay)}
.postcard__meta{
  font-family:var(--f-head);font-weight:500;
  font-size:.85rem;letter-spacing:.11em;text-transform:uppercase;
  color:var(--clay);margin:0 0 .6rem;
}
.postcard__meta span{margin:0 .45em}
.postcard__excerpt{margin:0;color:rgba(51,34,16,.82);max-width:42rem}

/* --- pagination: pages, not an endless feed --- */
.pagination{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  margin-top:2.75rem;max-width:44rem;
  font-family:var(--f-head);font-weight:600;
}
.pagination a{text-decoration:none;border-bottom:2px solid var(--clay);padding-bottom:.1rem}
.page-number{color:rgba(51,34,16,.6);font-weight:500;letter-spacing:.08em;font-size:.9rem}

/* --- article --- */
.article__head{margin-bottom:2rem}
.article__head h1{margin-bottom:.35em}
.article__meta{
  font-family:var(--f-head);font-weight:500;
  font-size:.85rem;letter-spacing:.11em;text-transform:uppercase;color:var(--clay);
}
.article__meta span{margin:0 .35em}
.article__standfirst{
  font-family:var(--f-head);font-weight:500;
  font-size:clamp(1.15rem,1.05rem + .6vw,1.45rem);line-height:1.32;
  margin-top:1.1rem;
}
.article__lead{margin:0 0 2.5rem;max-width:60rem}
.article__lead img{width:100%}
.article__body{font-size:1.125rem;line-height:1.7}
.article__body h2{
  font-size:clamp(1.5rem,1.3rem + .9vw,1.95rem);
  margin-top:2.2em;color:var(--earth);
}
.article__body h3{font-size:1.3rem;margin-top:1.9em}
.article__body blockquote{
  border-left:5px solid var(--clay);padding-left:1.15rem;margin:2rem 0;
  font-family:var(--f-head);font-weight:500;font-size:1.2rem;line-height:1.4;
}
.article__body a{color:var(--clay);text-decoration-thickness:1px;text-underline-offset:.18em}
.article__body ul,.article__body ol{padding-left:1.35rem;margin:0 0 1.15em}
.article__body li{margin-bottom:.4em}
.article__body hr{border:0;border-top:2px solid rgba(51,34,16,.2);margin:2.5rem 0}
.article__body code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;
  background:rgba(179,79,52,.09);padding:.12em .35em;border-radius:2px;
}
.article__body pre{
  background:var(--earth);color:var(--cloud);padding:1.1rem 1.25rem;
  border-radius:2px;overflow-x:auto;font-size:.9rem;line-height:1.55;
}
.article__body pre code{background:none;padding:0;color:inherit}
.article__foot{margin-top:3rem;padding-top:1.5rem;border-top:2px solid rgba(51,34,16,.2)}
.article__tags{font-family:var(--f-head);font-weight:500;font-size:.95rem;color:rgba(51,34,16,.75)}
.backlink{font-family:var(--f-head);font-weight:600;color:var(--clay);text-decoration:none;
  border-bottom:2px solid var(--clay)}

/* --- Ghost editor cards --- */
.kg-card{margin:2rem 0}
.kg-width-wide{max-width:min(56rem,92vw);margin-inline:auto}
.kg-width-full{max-width:none;width:100vw;margin-left:50%;transform:translateX(-50%)}
.kg-image{width:100%;border-radius:2px}
.kg-image-card figcaption,.kg-embed-card figcaption,.kg-gallery-card figcaption{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.74rem;color:rgba(51,34,16,.6);margin-top:.6rem;text-align:center;
}
.kg-callout-card{
  display:flex;gap:.9rem;padding:1.1rem 1.25rem;border-radius:2px;
  background:rgba(249,212,102,.4);border-left:5px solid var(--sunray);
}
.kg-toggle-card{border:2px solid rgba(51,34,16,.2);border-radius:2px;padding:1rem 1.25rem}
.kg-button-card{display:flex;justify-content:center}
.kg-btn{
  display:inline-block;background:var(--sunray);color:var(--earth);
  font-family:var(--f-head);font-weight:600;padding:.72em 1.5em;
  border:2px solid var(--earth);border-radius:2px;text-decoration:none;
  box-shadow:5px 5px 0 var(--earth);
}

/* --- signup states (Ghost adds .loading/.success/.error to the form) --- */
.signup--standalone{border-top:0;padding-top:0;margin-top:0}
.signup__msg{display:none;font-size:.95rem;margin-top:.8rem}
.signup__row.success ~ .signup__msg--ok{display:block;color:var(--sunray)}
.signup__row.error   ~ .signup__msg--err{display:block;color:var(--sunray)}
.signup__row.loading button{opacity:.6;cursor:progress}

/* --- Ghost gallery and bookmark cards.
   Styled here rather than letting Ghost inject its own stylesheet, so the
   only CSS the site loads is CSS that was written for it. --- */
.kg-gallery-container{display:flex;flex-direction:column;gap:.6rem;
  max-width:min(56rem,92vw);margin-inline:auto}
.kg-gallery-row{display:flex;gap:.6rem;justify-content:center}
.kg-gallery-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px}

.kg-bookmark-card{width:100%}
.kg-bookmark-container{
  display:flex;text-decoration:none;color:var(--earth);
  border:2px solid var(--earth);border-radius:2px;background:var(--cloud);
  box-shadow:5px 5px 0 var(--rose);min-height:8rem;
}
.kg-bookmark-container:hover{box-shadow:3px 3px 0 var(--rose)}
.kg-bookmark-content{flex:1 1 auto;display:flex;flex-direction:column;
  justify-content:flex-start;padding:1.1rem 1.25rem;overflow:hidden}
.kg-bookmark-title{font-family:var(--f-head);font-weight:600;font-size:1.1rem;line-height:1.25}
.kg-bookmark-description{
  margin-top:.45rem;font-size:.95rem;line-height:1.45;color:rgba(51,34,16,.78);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.kg-bookmark-metadata{
  display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.75rem;
  font-family:var(--f-head);font-weight:500;font-size:.85rem;color:var(--clay);
}
.kg-bookmark-icon{width:1.1rem;height:1.1rem;margin-right:.25rem}
.kg-bookmark-author{white-space:nowrap}
.kg-bookmark-publisher{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:14rem}
.kg-bookmark-publisher::before{content:"·";margin-right:.5rem}
.kg-bookmark-thumbnail{flex:0 0 33%;position:relative;min-width:8rem}
.kg-bookmark-thumbnail img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media(max-width:36rem){
  .kg-bookmark-container{flex-direction:column-reverse}
  .kg-bookmark-thumbnail{flex:1 1 auto;min-height:9rem}
}
