/* The Woodcroft Journal: one article (/blog/{slug}). Shared components live in ../wcu.css. Prefix: .w-ar- */

/* ---------- hero: title on the left, the cover in a tall arch and the article at a glance on the right ---------- */
.w-ar-hero { position: relative; background: var(--w-paper); padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--w-line-2); }
.w-ar-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, rgba(8, 25, 51, .05) 1px, transparent 1px); background-size: calc(min(100vw, var(--w-wrap)) / 6) 100%; background-position: center; }
.w-ar-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.w-ar-hero .w-crumbs li { color: var(--w-mute); }
.w-ar-hero .w-crumbs a { color: var(--w-crimson); }
.w-ar-hero .w-crumbs a:hover { color: var(--w-ink); }
.w-ar-hero__cat { margin-bottom: 18px; }
.w-ar-hero__cat:hover { color: var(--w-ink); }
.w-ar-hero__title { font-family: var(--w-serif); font-weight: 400; color: var(--w-ink); font-size: clamp(36px, 4.6vw, 70px); line-height: 1.02; letter-spacing: -.032em; margin: 0 0 24px; font-variation-settings: 'opsz' 144, 'SOFT' 50; overflow-wrap: anywhere; }
.w-ar-hero__lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 60ch; margin-bottom: 30px; }
.w-ar-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 0; padding: 16px 0; border-top: 1px solid var(--w-line-2); border-bottom: 1px solid var(--w-line-2); }
.w-ar-byline > div { padding: 0 clamp(14px, 1.8vw, 24px); border-left: 1px solid var(--w-line-2); font: 600 14.5px/1.3 var(--w-sans); color: var(--w-ink); }
.w-ar-byline > div.w-ar-byline__who { border-left: 0; padding-left: 14px; }
.w-ar-byline small { display: block; margin-bottom: 4px; font: 700 10.5px/1.2 var(--w-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--w-mute); }
.w-ar-byline b { font: 500 18px/1.2 var(--w-serif); }
.w-ar-byline__img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--w-white); box-shadow: 0 0 0 1px var(--w-line-2); }
.w-ar-hero__media { position: relative; justify-self: end; width: 100%; max-width: 470px; padding-right: 18px; }
.w-ar-hero__media .w-arch { aspect-ratio: 3 / 3.7; }

/* at a glance: four numbers on hairlines, then the reading rhythm */
.w-ar-glance { position: relative; z-index: 2; margin: -22% 0 0 clamp(-64px, -4vw, -16px); width: calc(100% + clamp(16px, 4vw, 64px) - 24px); background: var(--w-white); border: 1px solid var(--w-line); border-top: 3px solid var(--w-crimson); border-radius: var(--w-r); box-shadow: var(--w-shadow); padding: 20px 22px 18px; }
.w-ar-glance__t { margin: 0 0 12px; font: 800 11.5px/1.3 var(--w-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--w-ink); }
.w-ar-glance__t--sub { margin: 18px 0 10px; display: flex; justify-content: space-between; gap: 10px; }
.w-ar-glance__t--sub span { font-weight: 600; letter-spacing: .08em; color: var(--w-mute); text-transform: none; }
.w-ar-glance__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--w-line); border-bottom: 1px solid var(--w-line); }
.w-ar-glance__stats > div { padding: 12px 10px 10px; border-left: 1px solid var(--w-line); min-width: 0; }
.w-ar-glance__stats > div:first-child { border-left: 0; padding-left: 0; }
.w-ar-glance__stats dt { order: 2; font: 700 10px/1.25 var(--w-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--w-mute); }
.w-ar-glance__stats dd { margin: 0 0 6px; font: 400 clamp(26px, 2.3vw, 34px)/1 var(--w-serif); color: var(--w-ink); letter-spacing: -.03em; font-variation-settings: 'opsz' 144; font-variant-numeric: lining-nums tabular-nums; }
.w-ar-glance__stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
/* bars: one per section, height = its words; each opens its section. Wide articles scroll sideways inside the card. */
.w-ar-rhythm { list-style: none; margin: 0; padding: 0 0 6px; display: flex; align-items: stretch; gap: 3px; height: 84px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--w-ink); }
.w-ar-rhythm li { flex: 1 0 24px; display: flex; }
.w-ar-rhythm a { position: relative; flex: 1; display: block; }
.w-ar-rhythm a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--h, .5) * 100%); background: var(--w-navy); border-radius: 2px 2px 0 0; transform-origin: 50% 100%; transition: background .3s; }
.w-ar-rhythm a:hover::before, .w-ar-rhythm a:focus-visible::before, .w-ar-rhythm a.is-active::before { background: var(--w-crimson); }
.w-ar-rhythm a.is-done::before { background: var(--w-line-2); }
.w-ar-rhythm a.is-active::before { background: var(--w-crimson); }
@media (max-width: 991px) {
    .w-ar-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .w-ar-hero__media { justify-self: center; max-width: 440px; padding-right: 18px; }
    .w-ar-glance { margin: -16% 0 0 -8px; width: calc(100% + 8px); }
}
@media (max-width: 480px) {
    .w-ar-glance { margin: -12% 0 0 0; width: 100%; padding: 18px 16px 14px; }
    .w-ar-glance__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .w-ar-glance__stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .w-ar-glance__stats > div:nth-child(n+3) { border-top: 1px solid var(--w-line); }
    .w-ar-byline { gap: 14px 26px; }
    .w-ar-byline > div, .w-ar-byline > div.w-ar-byline__who { border-left: 0; padding: 0; }
}

/* ---------- reading: the contents beside the text ---------- */
.w-ar-read { background: var(--w-white); padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 7vw, 110px); }
.w-ar-read__grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.w-ar-read--solo .w-ar-read__grid { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.w-ar-main { min-width: 0; max-width: 780px; }
.w-ar-toc { align-self: stretch; }
.w-ar-toc__in { position: sticky; top: calc(var(--w-head-h) + 24px); max-height: calc(100vh - var(--w-head-h) - 48px); display: flex; flex-direction: column; }
.w-ar-toc__t { margin: 0 0 12px; font: 800 11.5px/1.3 var(--w-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--w-ink); }
.w-ar-prog { display: flex; gap: 3px; height: 5px; margin-bottom: 8px; }
.w-ar-prog i { position: relative; flex-basis: 0; min-width: 4px; background: var(--w-line); overflow: hidden; }
.w-ar-prog b { position: absolute; inset: 0; background: var(--w-crimson); transform: scaleX(0); transform-origin: 0 50%; }
.w-ar-toc__list { list-style: none; margin: 0; padding: 0 6px 0 0; overflow-y: auto; scrollbar-width: thin; border-top: 1px solid var(--w-ink); min-height: 0; }
.w-ar-toc__list li { border-bottom: 1px solid var(--w-line); }
.w-ar-toc__list a { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; padding: 11px 0 11px 0; font: 600 14px/1.4 var(--w-sans); color: var(--w-body); transition: color .3s, padding .5s var(--w-ease); }
.w-ar-toc__list a span { font: 400 14px/1.4 var(--w-serif); color: var(--w-mute); }
.w-ar-toc__list a::before { content: ""; position: absolute; left: -16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--w-crimson); transform: rotate(45deg) scale(0); transition: transform .4s var(--w-ease); }
.w-ar-toc__list a:hover { color: var(--w-ink); }
.w-ar-toc__list a.is-active { color: var(--w-ink); padding-left: 18px; }
.w-ar-toc__list a.is-active span { color: var(--w-crimson); }
.w-ar-toc__list a.is-active::before { transform: rotate(45deg) scale(1); left: 2px; }
@media (max-width: 991px) {
    .w-ar-read__grid { grid-template-columns: minmax(0, 1fr); }
    .w-ar-toc__in { position: static; max-height: none; }
    .w-ar-toc__list { max-height: 320px; }
    .w-ar-toc { padding: 20px; background: var(--w-paper); border: 1px solid var(--w-line); border-radius: var(--w-r); }
}

/* the article text: numbered section heads on a rule; headings land below the header */
.w-ar-prose { overflow-wrap: break-word; }
.w-ar-prose :is(h2, h3, h4, h5, h6) { scroll-margin-top: calc(var(--w-head-h) + 24px); }
.w-ar-prose > :first-child { margin-top: 0; }
.w-ar-prose .w-ar-sec { margin-top: 2.2em; }
.w-ar-sec__n { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font: italic 400 16px/1 var(--w-serif); color: var(--w-crimson); letter-spacing: 0; }
.w-ar-sec__n::after { content: ""; flex: 1; height: 1px; background: var(--w-line-2); }
#w-ar-prose > p:first-of-type, .w-ar-sl__drop { font-size: 19px; line-height: 1.7; color: var(--w-ink); }
.w-ar-prose img { height: auto; }
.w-ar-prose iframe, .w-ar-prose video { max-width: 100%; }
.w-ar-prose pre { max-width: 100%; overflow-x: auto; background: var(--w-paper-2); padding: 16px; border-radius: var(--w-r); font-size: 14px; }

/* share */
.w-ar-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: clamp(36px, 4vw, 56px); padding: 18px 0; border-top: 1px solid var(--w-ink); border-bottom: 1px solid var(--w-line-2); }
.w-ar-share__t { margin: 0; font: 800 11.5px/1.3 var(--w-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--w-ink); }
.w-ar-share__t--follow { margin-left: auto; }
.w-ar-share__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.w-ar-share__btns a, .w-ar-copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--w-line-2); border-radius: 2px; background: transparent; color: var(--w-ink); font: 700 13px/1 var(--w-sans); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.w-ar-share__btns a:hover, .w-ar-copy:hover { background: var(--w-crimson); border-color: var(--w-crimson); color: #fff; }
.w-ar-copy.is-done { background: var(--w-ink); border-color: var(--w-ink); color: #fff; }
@media (max-width: 640px) { .w-ar-share__t--follow { margin-left: 0; flex-basis: 100%; } }

/* FAQ + author */
.w-ar-faq { margin-top: clamp(48px, 6vw, 80px); scroll-margin-top: calc(var(--w-head-h) + 24px); }
.w-ar-faq .w-h3 { margin-bottom: 22px; }
.w-ar-faq__h { margin: 0; font: inherit; }
.w-ar-author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; margin-top: clamp(48px, 6vw, 80px); padding: clamp(22px, 3vw, 34px); background: var(--w-paper); border: 1px solid var(--w-line); border-radius: var(--w-r); }
.w-ar-author__img { width: 130px; aspect-ratio: 4 / 4.8; }
.w-ar-author__img[hidden] { display: none; }
/* Author monogram: initials and a pen nib instead of a photograph (no author photos on the site). */
.w-ar-mono { display: grid; place-items: center; font-family: var(--w-serif); font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.w-ar-byline__img.w-ar-mono { background: #D3224D; color: #fff; font-size: 18px; line-height: 1; }
.w-ar-author__img.w-ar-mono { align-content: center; gap: 10px; background: #081933; color: #fff; }
.w-ar-author__img.w-ar-mono i { color: #FFEC40; font-size: 26px; }
.w-ar-author__img.w-ar-mono b { font-size: 40px; line-height: 1; }
.w-ar-author .w-eyebrow { margin-bottom: 12px; }
.w-ar-author__q { margin: 0; }
.w-ar-author__q p { font: italic 400 clamp(18px, 1.5vw, 21px)/1.55 var(--w-serif); color: var(--w-ink); margin: 0; }
.w-ar-author__q .w-cite { margin-top: 14px; }
@media (max-width: 520px) { .w-ar-author { grid-template-columns: minmax(0, 1fr); } .w-ar-author__img { width: 120px; } }

/* ---------- keep reading: three posts ---------- */
.w-ar-rel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.w-ar-relcard { display: flex; flex-direction: column; }
.w-ar-relcard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--w-r); margin-bottom: 18px; box-shadow: var(--w-shadow); }
.w-ar-relcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--w-ease); }
.w-ar-relcard:hover .w-ar-relcard__img img { transform: scale(1.05); }
.w-ar-kicker { margin: 0 0 8px; font: 800 11.5px/1.3 var(--w-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--w-crimson); }
.w-ar-relcard__t { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.22; margin: 0 0 10px; }
.w-ar-relcard__t a:hover { color: var(--w-crimson); }
.w-ar-relcard__d { font-size: 15px; margin-bottom: 14px; }
.w-ar-relcard__m { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--w-line-2); font: 600 13px/1.3 var(--w-sans); color: var(--w-mute); }
@media (max-width: 991px) { .w-ar-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .w-ar-rel__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the journal's index: recent posts, categories, tags, help ---------- */
.w-ar-more { background: var(--w-paper); }
.w-ar-more__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: clamp(28px, 3.5vw, 52px); align-items: start; }
.w-ar-more__grid > * { min-width: 0; }
.w-ar-box__t { font: 800 12px/1.3 var(--w-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--w-ink); padding-bottom: 12px; margin: 0 0 4px; border-bottom: 1px solid var(--w-ink); }
.w-ar-recent { list-style: none; margin: 0; padding: 0; }
.w-ar-recent li { border-bottom: 1px solid var(--w-line); }
.w-ar-recent a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; }
.w-ar-recent img { width: 72px; height: 48px; object-fit: cover; border-radius: 2px; }
.w-ar-recent span { font: 500 15px/1.3 var(--w-serif); color: var(--w-ink); transition: color .3s; }
.w-ar-recent small { display: block; margin-top: 4px; font: 600 12px/1.2 var(--w-sans); color: var(--w-mute); }
.w-ar-recent a:hover span { color: var(--w-crimson); }
.w-ar-cats { list-style: none; margin: 0; padding: 0; }
.w-ar-cats li { border-bottom: 1px solid var(--w-line); }
.w-ar-cats a { display: flex; align-items: center; gap: 10px; padding: 11px 0; font: 700 14.5px/1.3 var(--w-sans); color: var(--w-ink); transition: color .3s, padding .5s var(--w-ease); }
.w-ar-cats img { width: 22px; height: 22px; object-fit: contain; }
.w-ar-cats a span { margin-left: auto; font: 400 15px/1 var(--w-serif); color: var(--w-crimson); }
.w-ar-cats a:hover, .w-ar-cats a[aria-current] { color: var(--w-crimson); padding-left: 6px; }
.w-ar-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.w-ar-tags a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px solid var(--w-line-2); border-radius: 2px; font: 700 12px/1.25 var(--w-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--w-ink); transition: background .3s, color .3s, border-color .3s; }
.w-ar-tags a:hover { background: var(--w-ink); border-color: var(--w-ink); color: #fff; }
.w-ar-help { padding: 28px 24px 24px; background: var(--w-navy); color: rgba(255, 255, 255, .8); border-radius: var(--w-r); text-align: center; border-top: 4px solid var(--w-yellow); }
.w-ar-help__logo { display: inline-block; background: var(--w-paper); padding: 10px 16px; border-radius: 2px; margin-bottom: 18px; }
.w-ar-help__logo img { display: block; width: 150px; height: auto; }
.w-ar-help h2 { color: #fff; font-size: clamp(22px, 1.8vw, 26px); margin-bottom: 10px; }
.w-ar-help h2 em { color: var(--w-yellow); font-style: italic; }
.w-ar-help__sub { font: 700 11.5px/1.3 var(--w-sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 8px; }
.w-ar-help__tel { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 500 21px/1.3 var(--w-serif); color: #fff; }
.w-ar-help__tel i { color: var(--w-yellow); font-size: 15px; }
.w-ar-help__tel:hover { color: var(--w-yellow); }
@media (max-width: 1199px) { .w-ar-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .w-ar-more__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- /blog-details-slider: the theme's sample article as a journal spread (prefix .w-ar-sl) ---------- */
.w-ar-sl__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 5vw, 80px); align-items: start; }
.w-ar-sl__meta { margin-bottom: 28px; }
.w-ar-sl__cover { aspect-ratio: 16 / 9; margin-bottom: clamp(32px, 4vw, 52px); box-shadow: var(--w-shadow); }
.w-ar-sl__drop::first-letter { float: left; font: 400 4.4em/.8 var(--w-serif); color: var(--w-crimson); margin: .08em .1em 0 0; }
.w-ar-sl__checks { margin: 0 0 1.4em; padding: 0; max-width: none; }
.w-ar-sl__checks li { margin: 0; }
.w-ar-sl__pull { margin: clamp(36px, 5vw, 64px) 0; padding: clamp(28px, 4vw, 48px); background: var(--w-paper-2); border-left: 4px solid var(--w-crimson); border-radius: 0 var(--w-r) var(--w-r) 0; }
.w-ar-sl__pull .w-quote { font-size: clamp(20px, 2vw, 28px); }
.w-ar-sl__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: 8px 0 32px; }
.w-ar-sl__pair .w-frame { aspect-ratio: 4 / 3.2; }
.w-ar-sl__pair .w-frame:nth-child(2) { margin-top: clamp(24px, 4vw, 56px); }
.w-ar-sl__tags { padding-top: 0; }
.w-ar-sl__comments { margin-top: clamp(48px, 6vw, 80px); }
.w-ar-sl__comments h2 em { color: var(--w-crimson); font-style: italic; }
.w-ar-sl__thread { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--w-ink); }
.w-ar-sl__thread > li { border-bottom: 1px solid var(--w-line); }
.w-ar-sl__thread--child { margin: 0 0 0 clamp(24px, 6vw, 88px); border-top: 1px solid var(--w-line); }
.w-ar-sl__thread--child > li:last-child { border-bottom: 0; }
.w-ar-sl__c { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 24px 0; }
.w-ar-sl__c img { width: 64px; height: 64px; border-radius: 999px 999px 2px 2px; object-fit: cover; }
.w-ar-sl__c p { margin-bottom: 8px; }
.w-ar-sl__cname { font-size: 20px; margin: 0 0 2px; }
.w-ar-sl__cdate { font: 600 12.5px/1.3 var(--w-sans); color: var(--w-mute); letter-spacing: .04em; }
.w-ar-sl__cdate span { margin-left: 8px; }
.w-ar-sl__form { margin-top: clamp(40px, 5vw, 64px); padding: clamp(26px, 4vw, 44px); background: var(--w-navy); border-radius: var(--w-r); color: rgba(255, 255, 255, .8); scroll-margin-top: calc(var(--w-head-h) + 24px); }
.w-ar-sl__form .w-h3 { margin-bottom: 24px; }
.w-ar-sl__form .w-h3 em { color: var(--w-yellow); font-style: italic; }
.w-ar-sl__check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.w-ar-sl__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--w-yellow); flex: none; }
.w-ar-sl__side { position: sticky; top: calc(var(--w-head-h) + 24px); display: grid; gap: 34px; }
.w-ar-sl__search { flex: none; }
.w-ar-sl__search .w-bl-search__clear { color: var(--w-crimson); }
@media (max-width: 991px) {
    .w-ar-sl__grid { grid-template-columns: minmax(0, 1fr); }
    .w-ar-sl__side { position: static; }
}
@media (max-width: 520px) { .w-ar-sl__pair { grid-template-columns: minmax(0, 1fr); } .w-ar-sl__pair .w-frame:nth-child(2) { margin-top: 0; } }
