/* =============================================================================
   blog.css — the shop blog, /blog/ and /blog/<story>/ (owner 2026-11-16:
   "make the blog visually super appealing and matching the rest of the
   website").

   It sits ON TOP of styles.css and borrows everything from it: the suede
   ground, ivory ink, copper, Archivo, the page hero, the eyebrows, the buttons,
   the closing band, the roofline divider and the lightbox. This file only lays
   out what is new: the cover-photo hero, the story cards and the article.

   THE SERIF LAW (styles.css) holds: this file declares no serif. The one serif
   on a blog page is the hero title's last word, drawn by the existing
   `.page-hero h1 .accent` rule.
   ============================================================================= */

/* ---------- reading bar: a copper filament that fills as you read ---------- */
.read-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 130; pointer-events: none; }
.read-progress span {
  display: block; height: 100%; background: var(--copper-line);
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 14px rgb(var(--acc-rgb) / 0.55);
}
html.no-js .read-progress { display: none; }

/* small copper dot between two words on one line */
.blog-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.75; flex: none; }
/* a row of small facts (kind of work, date, read time) with a dot between them. Each part carries its dot on its
   left, and the row is pulled left by the same amount inside a box that clips: whichever part starts a line (the
   first, or one that wrapped on a phone) has its dot cut off. No line ever starts or ends on a dot. The box is the
   element around the row: .post-byline, .bf-meta, .bc-meta. */
.dot-row { display: flex; flex-wrap: wrap; row-gap: 0.55em; margin-left: -2em; }
.dot-row > * { position: relative; padding-left: 2em; white-space: nowrap; }
.dot-row > *::before {
  content: ""; position: absolute; left: 0.86em; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--dot, currentColor); opacity: var(--dot-opacity, 0.75);
}

/* a title underline that draws in copper on hover, line by line */
.blog-uline {
  background: var(--copper-line) 0 100% / 0% 2px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-bottom: 0.08em; transition: background-size 0.9s var(--ease);
}
a:hover .blog-uline, a:focus-visible .blog-uline { background-size: 100% 2px; }

/* =============================================================================
   /blog/ — the blog's home
   ============================================================================= */
/* the masthead: words only and short, so the newest story shows on the first screen (its photo leads the list right
   below, once; the old masthead wore the same photo dimmed and filled the whole screen before any story) */
.blog-hero { padding: clamp(7.25rem, 17vh, 10.5rem) 0 clamp(1.4rem, 3.4vh, 2.4rem); }
.blog-mast {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem);
  gap: clamp(1.2rem, 5vw, 5rem); align-items: end; margin-top: clamp(1.1rem, 3vh, 1.9rem);
}
/* sized so "EXCITED ABOUT." holds one line beside the lead from 1101 px up (it measures 10.75em wide):
   two lines of headline, not three */
.blog-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.9rem); max-width: none; margin-top: 1.05rem; }
.blog-hero .lead { margin: 0 0 0.55rem; max-width: 31ch; font-size: clamp(1.02rem, 0.9rem + 0.42vw, 1.24rem); color: var(--dim); }
.blog-list { padding-top: clamp(1.1rem, 3vh, 2rem); }

/* the newest story leads the page: its cover edge to edge, the title set on it (the way a story itself opens) */
.blog-feature {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: flex; align-items: flex-end;
  min-height: clamp(25rem, 66vh, 41rem); border-radius: 3px; background: var(--bg1);
  text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 60px 130px -55px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--hair);
}
.bf-media { position: absolute; inset: 0; z-index: -1; }
.bf-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1.8s var(--ease); }
/* the words' side and floor go dark; the rest of the photo stays as he shot it */
.bf-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(15, 13, 11, 0.95) 3%, rgba(15, 13, 11, 0.7) 34%, rgba(15, 13, 11, 0.12) 68%, rgba(15, 13, 11, 0) 82%),
    linear-gradient(to right, rgba(15, 13, 11, 0.62), rgba(15, 13, 11, 0) 60%);
}
.blog-feature:hover .bf-media img, .blog-feature:focus-visible .bf-media img { transform: scale(1.035); }
.bf-copy { padding: clamp(1.5rem, 4vw, 3.3rem); max-width: 48rem; }
.bf-copy .eyebrow b { color: var(--ink); font-weight: 700; }
.bf-copy h2 {
  font-size: clamp(1.9rem, 4.3vw, 3.9rem); text-transform: uppercase; font-stretch: 116%; font-weight: 900;
  line-height: 0.98; letter-spacing: -0.01em; margin: 1rem 0 1.05rem; text-shadow: 0 2px 34px rgba(0, 0, 0, 0.45);
}
.bf-sum { color: var(--ink); max-width: 46ch; text-shadow: 0 1px 20px rgba(0, 0, 0, 0.6); }
.bf-meta, .bc-meta {
  overflow: hidden; overflow: clip; max-width: none;
  font-family: var(--font); font-stretch: 125%; font-weight: 580; font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.bf-meta { margin-top: 1.3rem; color: var(--dim); --dot: var(--acc); --dot-opacity: 1; }
.bf-copy .arrow-link { margin-top: 1.5rem; }
.blog-feature:hover .arrow-link .arr, .blog-feature:focus-visible .arrow-link .arr { transform: translateX(6px); }
.blog-feature:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
/* a newest story with no photo: the same block on plain ground */
.blog-feature.no-cover {
  min-height: 0; background: radial-gradient(720px 130% at 100% 0%, var(--acc-ghost), transparent 62%), var(--bg1);
}

/* "More from the shop" */
.blog-more-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(4.8rem, 12vh, 8rem); padding-bottom: 1.15rem; border-bottom: 1px solid var(--hair);
}
.blog-count {
  font-family: var(--font); font-stretch: 125%; font-weight: 580;
  font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint);
}

/* the story cards */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: clamp(2.4rem, 5.5vh, 3.6rem) clamp(1rem, 2.4vw, 2.1rem); margin-top: clamp(1.9rem, 4.4vh, 2.8rem);
}
.blog-card { display: block; text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.bc-media {
  position: relative; overflow: clip; isolation: isolate; border-radius: 3px; background: var(--bg1);
  box-shadow: 0 0 0 1px var(--hair), 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.bc-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.bc-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 -2px 0 0 transparent; transition: box-shadow 0.5s var(--ease);
}
.blog-card:hover .bc-media img, .blog-card:focus-visible .bc-media img { transform: scale(1.05); }
.blog-card:hover .bc-media::after, .blog-card:focus-visible .bc-media::after { box-shadow: inset 0 -2px 0 0 var(--acc); }
.blog-card:focus-visible { outline: none; }
.blog-card:focus-visible .bc-media { box-shadow: 0 0 0 2px var(--acc); }
.bc-meta { margin-top: 1.2rem; color: var(--acc); }
.blog-card h3 {
  font-size: clamp(1.22rem, 1.9vw, 1.6rem); text-transform: uppercase; font-stretch: 112%; font-weight: 860;
  line-height: 1.06; margin: 0.6rem 0 0.7rem;
}
.bc-sum {
  color: var(--faint); font-size: 0.98rem; line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-noimg {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: radial-gradient(70% 70% at 50% 40%, var(--acc-ghost), transparent 70%), var(--bg1);
}
.blog-noimg img { width: 42%; height: auto; opacity: 0.5; }
.blog-noimg { width: 100%; }

/* no stories yet */
.blog-empty { text-align: center; padding-block: clamp(2rem, 8vh, 5rem); }
.blog-empty .eyebrow, .blog-empty .btn-row { justify-content: center; }
/* full width, so "COMING SOON" centres on the heading's axis (as a <p> it was pinned to the copy width, left of it) */
.blog-empty .eyebrow { margin-right: calc(-1 * var(--track-label)); max-width: none; }
.blog-empty p:not(.eyebrow) { margin-inline: auto; }
.blog-empty .btn-row { margin-top: 2.2rem; }

/* =============================================================================
   /blog/<story>/ — one story
   ============================================================================= */

/* the cover photo fills the screen; the title sits on its floor */
.post-hero {
  min-height: min(94svh, 980px); display: flex; align-items: flex-end;
  padding: clamp(9rem, 24vh, 14rem) 0 clamp(3rem, 8.5vh, 5.6rem);
}
.post-hero > .wrap { position: relative; }
.post-hero .page-hero-media img {
  opacity: 0.94; object-position: 50% 55%; transform: scale(1.04);
  animation: blog-settle 2.6s var(--ease) both;
}
@keyframes blog-settle {
  from { transform: scale(1.11); filter: brightness(0.55) saturate(0.85); }
  to { transform: scale(1.04); filter: none; }
}
/* the header row stays readable over a bright photo, and the title's floor goes to the page's own ground */
.post-hero .page-hero-media::after {
  background:
    linear-gradient(to bottom, rgba(15, 13, 11, 0.88), rgba(15, 13, 11, 0.58) 3.75rem, rgba(15, 13, 11, 0) 11rem),
    linear-gradient(to top, var(--bg0) 1.5%, rgba(15, 13, 11, 0.86) 24%, rgba(15, 13, 11, 0.42) 52%, rgba(15, 13, 11, 0.06) 80%),
    linear-gradient(to right, rgba(15, 13, 11, 0.55), rgba(15, 13, 11, 0) 62%);
}
.post-hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 6.2rem); max-width: 15ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.post-hero h1.t-long { font-size: clamp(2.2rem, 4.9vw, 4.6rem); max-width: 19ch; }
.post-hero .lead { max-width: 44ch; margin-top: 1.4rem; text-shadow: 0 1px 22px rgba(0, 0, 0, 0.55); }
/* the crumbs ride highest on the photo, so they carry their own shade */
.post-hero .crumbs { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 0.5); }
/* the kind of work, above the title: a link to that service page that only underlines when pointed at */
.post-hero .eyebrow { margin-bottom: 1.25rem; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }
.post-hero .eyebrow a {
  color: inherit; text-decoration: none; padding-bottom: 0.25em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size 0.5s var(--ease);
}
.post-hero .eyebrow a:hover, .post-hero .eyebrow a:focus-visible { background-size: 100% 1px; }
/* who and when, on one quiet line under the title (a .dot-row inside) */
.post-byline {
  margin-top: 1.55rem; max-width: none; overflow: hidden; overflow: clip; --dot: var(--acc); --dot-opacity: 1;
  font-family: var(--font); font-stretch: 125%; font-weight: 580; font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}
.post-hero.no-cover { min-height: 0; display: block; }
.post-hero.no-cover .post-byline { color: var(--dim); text-shadow: none; }

/* the story: a comfortable reading column, photos that break wider than it */
/* one measure for every line of text (rem, not ch: ch grows with each element's own font size, so the lede and the
   headings would set wider than the paragraphs) */
.post-body { --post-measure: 43rem; padding: clamp(3.2rem, 9vh, 6rem) 0 clamp(2rem, 6vh, 4rem); }
.post-body > * { width: min(var(--post-measure), 100% - var(--gutter) * 2); margin-inline: auto; }
.post-body > p { font-size: clamp(1.0625rem, 0.97rem + 0.38vw, 1.22rem); line-height: 1.86; color: var(--dim); max-width: none; }
.post-body > p + p { margin-top: 1.2em; }
.post-body > .post-lede {
  font-size: clamp(1.22rem, 1.02rem + 0.85vw, 1.62rem); line-height: 1.62; color: var(--ink); font-weight: 420;
}
.post-body > .post-lede::first-letter {
  float: left; font-size: 3.25em; line-height: 0.8; font-weight: 900; font-stretch: 125%;
  color: var(--acc); margin: 0.08em 0.11em 0 -0.02em;
}
/* a web address he typed into the story (only inside paragraphs: buttons and arrow links keep their own colours) */
.post-body > p a { color: var(--acc2); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.post-body > p a:hover { color: var(--acc); }
.post-body > h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem); text-transform: uppercase; font-stretch: 114%; font-weight: 900;
  line-height: 1; margin-top: clamp(3rem, 7vh, 4.3rem); margin-bottom: 1.15rem;
}
.post-body > h2::before {
  content: ""; display: block; width: 2.6rem; height: 1px; margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--acc-deep), var(--acc));
}
/* a heading reached from "In this story" stops clear of the fixed header */
.post-body > h2[id] { scroll-margin-top: 6.5rem; }

/* "In this story": a long story's parts, numbered, right under its opening paragraph */
.post-body > .post-toc {
  margin-top: clamp(2rem, 5vh, 3rem); padding: 1.35rem clamp(1.1rem, 3vw, 1.7rem) 1.45rem;
  border-radius: 3px; background: var(--bg1); box-shadow: 0 0 0 1px var(--hair);
}
.post-toc ol { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: toc; display: grid; gap: 0.6rem; }
.post-toc li { counter-increment: toc; display: flex; align-items: baseline; gap: 1em; }
.post-toc li::before {
  content: counter(toc, decimal-leading-zero); flex: none;
  font-family: var(--font); font-stretch: 125%; font-weight: 580; font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.6875rem; letter-spacing: 0.2em; color: var(--acc);
}
.post-toc a {
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35;
  background: var(--copper-line) 0 100% / 0% 1px no-repeat; transition: background-size 0.6s var(--ease);
}
.post-toc a:hover, .post-toc a:focus-visible { background-size: 100% 1px; }
.post-body > .post-toc + p { margin-top: clamp(2rem, 5vh, 3rem); }

/* a line he started with ">": his words, set big, on a copper rule (sans, like every line here: THE SERIF LAW) */
.post-body > .post-quote {
  margin-block: clamp(2.3rem, 6vh, 3.5rem); padding: 0.15em 0 0.15em clamp(1.1rem, 3vw, 1.9rem);
  border-left: 2px solid var(--acc);
}
.post-quote p {
  font-size: clamp(1.4rem, 1.08rem + 1.5vw, 2.2rem); line-height: 1.22; font-weight: 760; font-stretch: 108%;
  letter-spacing: -0.012em; color: var(--ink); max-width: none; text-wrap: balance;
}

/* lists: lines he started with "-" (a copper dash each) or "1." (numbered steps) */
.post-body > .post-list {
  list-style: none; margin-top: 1.1em; margin-bottom: 0; padding: 0; display: grid; gap: 0.6em;
  font-size: clamp(1.0625rem, 0.97rem + 0.38vw, 1.22rem); line-height: 1.7; color: var(--dim);
}
.post-body > .post-list + p, .post-body > .post-quote + p { margin-top: 1.2em; }
.post-list li { position: relative; padding-left: 1.75em; }
ul.post-list li::before {
  content: ""; position: absolute; left: 0.1em; top: 0.82em; width: 0.8em; height: 1px;
  background: linear-gradient(90deg, var(--acc-deep), var(--acc));
}
ol.post-list li { counter-increment: step; padding-left: 2.6em; }
ol.post-list li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.42em;
  font-family: var(--font); font-stretch: 125%; font-weight: 580; font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--acc);
}
.post-list a { color: var(--acc2); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.post-body > .post-fig, .post-body > .post-row {
  width: min(1180px, 100% - var(--gutter) * 2); margin: clamp(2.6rem, 7.5vh, 4.8rem) auto;
}
.post-body > .post-fig.is-tall { width: min(760px, 100% - var(--gutter) * 2); }
.post-row > .post-fig { margin: 0; }
.post-zoom {
  position: relative; display: block; overflow: clip; isolation: isolate; border-radius: 3px; cursor: zoom-in;
  background: var(--bg1); -webkit-tap-highlight-color: transparent;
  box-shadow: 0 70px 130px -70px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--hair);
}
.post-zoom img { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.post-zoom:hover img { transform: scale(1.025); }
.post-zoom::after {
  content: ""; position: absolute; right: 0.9rem; bottom: 0.9rem; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(15, 13, 11, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0e9d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--hair2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.post-zoom:hover::after, .post-zoom:focus-visible::after { opacity: 1; transform: none; }
.post-zoom:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--acc); }
@media (hover: none) { .post-zoom::after { opacity: 0.9; transform: none; } }
.post-fig figcaption {
  margin-top: 1rem; padding-left: 1rem; border-left: 2px solid var(--acc); max-width: 62ch;
  font-size: 0.92rem; line-height: 1.55; color: var(--faint);
}
/* photos side by side keep their own shapes: each takes a share of the row equal to its width over its height
   (--ar, set on the figure), which makes their heights match. A car is never cropped to fit a box. */
.post-row { display: flex; gap: clamp(0.7rem, 1.6vw, 1.4rem); align-items: flex-start; }
.post-row > .post-fig { flex: var(--ar, 1) 1 0%; min-width: 0; }

/* ---------- before and after ----------
   Plain markup is the two photos side by side, each labelled, so it reads with no script (and in his preview).
   blog.js turns it into ONE frame with a handle: the before photo on the left of the handle, the after on the
   right; drag it, tap a spot, or use the arrow keys. */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.7rem, 1.6vw, 1.4rem); }
.ba-side { position: relative; overflow: hidden; overflow: clip; border-radius: 3px; background: var(--bg1); box-shadow: 0 0 0 1px var(--hair); }
.ba-side img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 1.5); object-fit: cover; }
.ba-tag {
  position: absolute; left: 0.8rem; bottom: 0.8rem; z-index: 2; padding: 0.55em 0.95em; border-radius: 2px;
  font-family: var(--font); font-stretch: 125%; font-weight: 620; font-size: 0.625rem; letter-spacing: 0.24em;
  text-transform: uppercase; line-height: 1; color: var(--ink); background: rgba(15, 13, 11, 0.72);
  border: 1px solid var(--hair2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}
.ba-after .ba-tag { left: auto; right: 0.8rem; color: var(--on-acc); background: var(--copper-fill); border-color: transparent; }
.ba.is-live {
  --pos: 50%; display: block; position: relative; aspect-ratio: var(--ar, 1.5); overflow: hidden; overflow: clip;
  border-radius: 3px; background: var(--bg1); cursor: ew-resize; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 70px 130px -70px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--hair);
}
.ba.is-live .ba-side { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
.ba.is-live .ba-side img { height: 100%; aspect-ratio: auto; pointer-events: none; -webkit-user-drag: none; }
.ba.is-live .ba-after { -webkit-clip-path: inset(0 0 0 var(--pos)); clip-path: inset(0 0 0 var(--pos)); }
.ba.at-start .ba-before .ba-tag, .ba.at-end .ba-after .ba-tag { opacity: 0; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px;
  background: var(--ivory-hi); box-shadow: 0 0 0 1px rgba(15, 13, 11, 0.3); pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a100a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat,
    var(--copper-fill);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 0 5px rgb(var(--acc-rgb) / 0.24);
}
/* until someone moves it, the grip breathes once in a while so it reads as something to drag */
.ba.is-live:not(.is-touched) .ba-handle::after { animation: ba-breathe 2.8s ease-in-out infinite; }
@keyframes ba-breathe {
  0%, 60%, 100% { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 0 5px rgb(var(--acc-rgb) / 0.24); }
  30% { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 0 12px rgb(var(--acc-rgb) / 0.1); }
}
/* the keyboard's way in: a real slider, out of sight; its focus rings the whole frame */
.ba-range { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ba.is-live:focus-within { outline: 2px solid var(--acc); outline-offset: 3px; }
.post-ba figcaption b { color: var(--dim); font-weight: 700; }

/* ---------- videos: an uploaded clip plays on its cover image; a YouTube video is a still with a copper play
   button until someone taps it (blog.js swaps in the player then, so the page stays fast) ---------- */
.post-video video {
  display: block; width: 100%; height: auto; border-radius: 3px; background: #000;
  box-shadow: 0 70px 130px -70px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--hair);
}
.yt-lite {
  position: relative; display: block; overflow: clip; isolation: isolate; aspect-ratio: 16 / 9; border-radius: 3px;
  background: #000; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 70px 130px -70px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--hair);
}
.post-yt.is-short .yt-lite { aspect-ratio: 9 / 16; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 1.2s var(--ease), opacity 0.4s ease; }
.yt-lite::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, transparent 40%, rgba(15, 13, 11, 0.45));
}
.yt-lite:hover img, .yt-lite:focus-visible img { transform: scale(1.02); opacity: 1; }
.yt-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
  background: var(--copper-fill); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 0 6px rgb(var(--acc-rgb) / 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.yt-play::after {
  content: ""; position: absolute; left: 31px; top: 25px; border-style: solid;
  border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--on-acc);
}
.yt-lite:hover .yt-play, .yt-lite:focus-visible .yt-play { transform: scale(1.08); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 0 10px rgb(var(--acc-rgb) / 0.18); }
.yt-lite:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--acc); }
.yt-lite.is-playing { cursor: default; }
.yt-lite.is-playing::after { display: none; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* upright clips (a phone held upright, a YouTube Short) sit narrower, like a tall photo */
.post-body > .post-video.is-tall, .post-body > .post-yt.is-short { width: min(440px, 100% - var(--gutter) * 2); }
@media (max-width: 640px) { .yt-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .yt-play::after { left: 25px; top: 20px; border-width: 12px 0 12px 19px; } }

/* the box at the end of a story: the matching service page and a free estimate */
.post-body > .post-cta {
  position: relative; overflow: clip; isolation: isolate;
  width: min(56rem, 100% - var(--gutter) * 2); margin-top: clamp(3.2rem, 8vh, 4.8rem);
  padding: clamp(1.7rem, 4vw, 2.7rem) clamp(1.4rem, 4vw, 2.9rem);
  border-radius: 3px;
  background: radial-gradient(720px 130% at 100% 0%, var(--acc-ghost), transparent 62%), var(--bg1);
  box-shadow: 0 0 0 1px var(--hair2), 0 50px 120px -60px rgba(0, 0, 0, 0.9);
}
.post-cta::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--copper-line); }
.post-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem); text-transform: uppercase; font-stretch: 116%; font-weight: 900;
  line-height: 1; margin: 0.95rem 0 0.75rem; max-width: 22ch;
}
.post-cta p:not(.eyebrow) { color: var(--dim); max-width: 52ch; }
.post-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 1.6rem; }
.post-body > .post-cta + .post-sign { margin-top: clamp(2.2rem, 5vh, 3.2rem); }
h2.eyebrow { margin: 0; line-height: inherit; }

/* the sign-off line under the story */
.post-body > .post-sign {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(3rem, 8vh, 4.8rem); padding-top: 1.5rem; border-top: 1px solid var(--hair);
}
.post-sign p { font-size: 0.92rem; color: var(--faint); max-width: none; }
.post-sign b { color: var(--ink); font-weight: 700; }
/* the shop's name is a link to Contact (hours, map, phone): it reads as the name, with the copper line on hover */
.post-sign p a {
  color: inherit; text-decoration: none;
  background: var(--copper-line) 0 100% / 0% 1px no-repeat; transition: background-size 0.6s var(--ease);
}
.post-sign p a:hover, .post-sign p a:focus-visible { background-size: 100% 1px; }

/* share: plain links first (they work with no script); blog.js shows the phone's own share sheet and "Copy link"
   where the browser has them */
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.55rem; }
.post-share-label, .share-btn {
  font-family: var(--font); font-stretch: 125%; font-weight: 580; font-size: 0.6875rem; letter-spacing: 0.2em;
  text-transform: uppercase; line-height: 1;
}
.post-share-label { color: var(--faint); margin-right: 0.45rem; }
.share-btn {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1.05em; border-radius: 2px;
  border: 1px solid var(--hair2); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.share-btn[hidden] { display: none; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--acc); color: var(--acc2); outline: none; }
.share-btn[data-share-native] { background: var(--copper-fill); border-color: transparent; color: var(--on-acc); font-weight: 700; }
.share-btn[data-share-native]:hover, .share-btn[data-share-native]:focus-visible { color: var(--on-acc); box-shadow: 0 0 0 2px var(--bg0), 0 0 0 3px var(--acc); }
.share-btn.is-done { border-color: var(--acc); color: var(--acc); }
/* a phone with a share sheet does not need the email link too */
.post-share.can-share [data-share-email] { display: none; }

.blog-bodyline { margin-block: clamp(0.5rem, 3vh, 2rem); }
.post-more { padding-top: clamp(1.5rem, 5vh, 3.5rem); }
.post-more .blog-more-head { margin-top: 0; }

/* the owner's preview inside the portal: one line that says it is not live */
.blog-preview-ribbon {
  position: fixed; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 140; margin: 0;
  max-width: calc(100vw - 2rem); padding: 0.7em 1.3em; border-radius: 999px; text-align: center;
  background: var(--copper-fill); color: var(--on-acc); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; font-stretch: 112%;
}

/* ---------- phones and tablets ---------- */
@media (max-width: 1100px) {
  .blog-mast { grid-template-columns: 1fr; gap: 1.1rem; align-items: start; }
  .blog-hero .lead { margin-bottom: 0; max-width: 36ch; }
}
@media (max-width: 760px) {
  /* the lead story on a phone: the photo, then the words under it (a title set on a small photo is hard to read) */
  .blog-feature { display: block; min-height: 0; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .bf-media {
    position: relative; z-index: 0; overflow: hidden; overflow: clip; border-radius: 3px; background: var(--bg1);
    box-shadow: 0 50px 100px -55px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--hair);
  }
  /* height:auto matters: the <img> carries its real width and height, and a height attribute would beat aspect-ratio */
  .bf-media img { height: auto; aspect-ratio: 4 / 3; }
  .bf-media::after { background: linear-gradient(to top, rgba(15, 13, 11, 0.5), transparent 42%); }
  .bf-copy { padding: 1.35rem 0 0; max-width: none; }
  .bf-copy h2 { text-shadow: none; margin: 0.85rem 0 0.9rem; }
  .bf-sum { color: var(--dim); text-shadow: none; }
  .bf-meta { color: var(--faint); }
  .blog-feature.no-cover { padding: 1.4rem 1.2rem 1.6rem; border-radius: 3px; box-shadow: 0 0 0 1px var(--hair); }
  .blog-feature.no-cover .bf-copy { padding: 0; }
  .blog-feature:focus-visible { outline-offset: 6px; }

  .post-hero { min-height: min(86svh, 760px); padding-bottom: 2.4rem; }
  /* on a phone the title, summary and date line fill most of the screen, so the floor's shade climbs higher: the
     crumbs and the first lines never sit on a bright part of the photo (sparks, a white booth, a sky) */
  .post-hero .page-hero-media::after {
    background:
      linear-gradient(to bottom, rgba(15, 13, 11, 0.88), rgba(15, 13, 11, 0.58) 3.75rem, rgba(15, 13, 11, 0) 9rem),
      linear-gradient(to top, var(--bg0) 2%, rgba(15, 13, 11, 0.9) 30%, rgba(15, 13, 11, 0.68) 58%, rgba(15, 13, 11, 0.18) 86%);
  }
  .post-hero h1 { font-size: clamp(2.1rem, 9.6vw, 3.3rem); }
  .post-hero h1.t-long { font-size: clamp(1.8rem, 7.8vw, 2.6rem); }
  .post-byline { letter-spacing: 0.18em; }
  .blog-preview-ribbon { bottom: 5.6rem; letter-spacing: 0.14em; }
}
@media (max-width: 640px) {
  /* a phone shows side-by-side photos one above the other, full width; two upright photos stay side by side */
  .post-row:not(.is-tall-pair) { flex-direction: column; gap: 1.6rem; }
  .post-row:not(.is-tall-pair) > .post-fig { flex: none; width: 100%; }
  .ba:not(.is-live) { grid-template-columns: 1fr; }
  .ba-handle::after { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .post-body > .post-lede::first-letter { font-size: 2.9em; }
  .post-body > .post-sign { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .post-hero .page-hero-media img { animation: none; transform: none; }
  .bf-media img, .bc-media img, .post-zoom img, .blog-uline, .bc-media::after, .ba-tag, .share-btn, .post-toc a, .post-sign p a { transition: none; }
  .ba.is-live:not(.is-touched) .ba-handle::after { animation: none; }
}
