/* Single story */

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.caption { margin-top: 12px; font-size: 13px; color: var(--muted); letter-spacing: .04em; line-height: 1.5; }
.caption a { text-decoration: underline; text-underline-offset: 2px; }

/* Header */
.story-head { padding-top: 56px; }
.story-head__crumbs { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 26px; }
.story-head__crumb { color: var(--muted); }
.story-head__sep { color: var(--muted); margin: 0 -10px; }
.story-head__cat { background: var(--ink); color: #fff; padding: 5px 10px; }
.story-head__cat:hover { background: var(--accent); color: #fff; }
.story-head__eyebrow { color: var(--accent); }
.story-head__title { max-width: 1100px; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.story-head__title em { font-style: italic; }
.story-head__dek { margin-top: 26px; max-width: 760px; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2vw, 27px); line-height: 1.3; color: var(--text-2); }
.story-head__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--ink); }

.byline-block { display: flex; align-items: center; gap: 14px; }
.byline-block__mark { width: 44px; height: 44px; border-radius: 50%; background: var(--blush); flex: none; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.byline-block__text { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6; }
.byline-block__who { font-weight: 600; }

.sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sharebar__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-right: 6px; color: var(--muted); }
.sharebar__btn { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background-color .2s, color .2s, border-color .2s; }
.sharebar__btn:hover, .sharebar__btn:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Hero */
.story-hero { margin-top: 36px; }

/* Body + aside */
.story-layout { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; }
.story-body { flex: 1 1 560px; max-width: 720px; min-width: 0; font-size: 18px; line-height: 1.7; color: #1c1c1c; }
.story-p + .story-p { margin-top: 24px; }
.dropcap::first-letter { float: left; font-family: var(--serif); font-weight: 500; font-size: 96px; line-height: .78; padding: 10px 12px 0 0; color: var(--accent); }
.story-rule { margin: 56px 0 0; border: 0; border-top: 1px solid var(--ink); }
.qa { margin-top: 44px; }
.qa__label { font-size: 13px; }
.qa__q { margin-top: 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; text-wrap: pretty; }
.qa__a { margin-top: 18px; }
/* Pull quote: a blush panel with a large terracotta quote mark, so it reads as a pause in the
   interview rather than another question. */
.pullquote { position: relative; margin: 72px 0; padding: 56px 48px 40px; background: var(--blush); text-align: center; }
.pullquote::before { content: '“'; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-family: var(--serif); font-weight: 500; font-size: 120px; line-height: 1; color: var(--accent-large); }
.pullquote p { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; text-wrap: balance; color: var(--ink); }
.pullquote footer { margin-top: 20px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-blush); }
.story-p + .pullquote--first { margin-top: 48px; }
.pullquote--first:first-child { margin-top: 0; }
.gallery { margin-top: 64px; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.gallery + .qa { margin-top: 56px; }

.comingnote { margin-top: 56px; padding: 32px; background: var(--blush); }
.comingnote__copy { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.comingnote__ctas { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.comingnote .btn { white-space: normal; text-align: center; }

.tags { list-style: none; margin: 64px 0 0; padding: 32px 0 0; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 12px; }
.tag { display: inline-flex; align-items: center; white-space: nowrap; border: 1px solid var(--ink); padding: 8px 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; line-height: 1.3; }
.tag:hover { background: var(--ink); color: #fff; }

.sharecta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.sharecta__box { flex: 1 1 300px; min-width: 0; background: var(--mist); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.sharecta__title { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; }
.sharecta__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sharecta__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; padding: 11px 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; white-space: nowrap; line-height: 1.2; transition: background-color .25s; }
.sharecta__btn:hover { background: var(--accent); color: #fff; }
.sharecta__kit { flex: 0 1 260px; min-width: 220px; background: var(--ink); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.sharecta__kit:hover { background: var(--accent); color: #fff; }
.sharecta__kit > span:first-child { display: block; }
.sharecta__for { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #d6d6d6; }
.sharecta__kittitle { display: block; margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.05; }
.sharecta__kitcopy { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: #e6e6e6; }
.sharecta__see { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

.story-aside { flex: 1 1 300px; min-width: 0; position: sticky; top: calc(var(--nav-h) + 28px); display: grid; gap: 28px; }
.sidecard-box { border: 1px solid var(--ink); padding: 26px; }
.sidecard-box--mist { border-color: var(--mist); background: var(--mist); }
.founder-card { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.founder-card__photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--stone); flex: none; }
.founder-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-card__name { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1; }
.founder-card__role { margin-top: 6px; font-size: 13px; color: var(--muted); }
.founder-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.biz__name { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1; }
.biz__desc { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.facts { margin: 18px 0 0; display: grid; gap: 10px; font-size: 14px; }
.facts__row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.facts dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.biz__cta { margin-top: 20px; padding: 13px 16px; font-size: 12px; letter-spacing: .16em; white-space: normal; text-align: center; }
.biz__handle { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; }
.biz__dir { display: block; margin-top: 14px; white-space: normal; }

/* Sidebar: read next + share */
.sidenext { margin-top: 14px; display: grid; gap: 14px; }
.sidenext__item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; color: inherit; }
.sidenext__item:hover { color: inherit; }
.sidenext__item .frame { aspect-ratio: 1; overflow: hidden; }
.sidenext__item .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidenext__title { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.2; transition: color .25s; }
.sidenext__item:hover .sidenext__title { color: var(--accent); }
.sidenext__by { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.sidenext__all { display: inline-block; margin-top: 16px; }
.sideshare { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.sideshare .sharebar__btn { width: 46px; height: 46px; }
.minijoin__copy { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.minijoin { margin-top: 14px; position: relative; }
.minijoin__row { display: flex; border: 1px solid var(--ink); background: #fff; }
.minijoin__row:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.minijoin input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 14px; font-size: 14px; background: transparent; color: var(--ink); border-radius: 0; }
.minijoin button { background: var(--ink); color: #fff; border: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: 12px 16px; white-space: nowrap; transition: background-color .25s; }
.minijoin button:hover { background: var(--accent); }
.minijoin button[disabled] { opacity: .6; cursor: default; }
.minijoin .form-status { margin-top: 10px; font-size: 13px; line-height: 1.4; }
.minijoin .form-status.is-ok { color: var(--olive); }
.minijoin .form-status.is-error { color: var(--error); }

/* Share kit */
.sharekit { background: var(--mist); margin-top: 104px; padding: 80px 0 88px; }
.sharekit__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 36px; }
.sharekit__head .kicker { font-size: 11px; margin-bottom: 12px; }
.sharekit__title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; }
.sharekit__intro { margin-top: 12px; max-width: 520px; font-size: 16px; line-height: 1.5; color: var(--text-3); }
.segmented-kit { display: flex; }
.segmented-kit button { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 11px 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.segmented-kit button + button { border-left: 0; }
.segmented-kit button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sharekit__note { margin-top: 32px; font-size: 12px; color: var(--muted); }
.sharekit__note a { text-decoration: underline; text-underline-offset: 2px; }

.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; align-items: start; }
@media (min-width: 1100px) { .kit { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.kit__item { display: flex; flex-direction: column; gap: 14px; }
.kit__card { aspect-ratio: 1 / 1; position: relative; overflow: hidden; min-height: 0; min-width: 0; }
.kit--story .kit__card { aspect-ratio: 9 / 16; }
.kit__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; min-height: 32px; }
.kit__dl { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border: 0; padding: 9px 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; white-space: nowrap; transition: background-color .25s; }
.kit__dl:hover { background: var(--accent); }
.kit__dl[disabled] { opacity: .6; cursor: progress; }

/* Previews are painted by public/js/story.js onto a canvas, so they match the downloads exactly.
   Until then (or without JavaScript) a quiet placeholder shows. */
.kit-ph--featured, .kit-ph--quote { background: var(--blush); }
.kit-ph--meet { background: var(--ink); }
.kit-ph--portrait, .kit-ph--headline { background: var(--stone); }
.kit-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kit-ph__mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1; color: var(--ink); }
.kit-ph__mark em { color: var(--accent); }
.kit-ph--quote .kit-ph__mark { font-size: 80px; color: var(--accent); }
.kit__card > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kit__card.is-painted > :not(canvas) { visibility: hidden; }

/* Nominate band */
.story-nominate { background: var(--ink); color: #fff; padding: 96px 0; }
.sharekit + .story-nominate { margin-top: 0; }
article + .story-nominate { margin-top: 104px; }
.story-nominate__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.story-nominate__main { flex: 1.4 1 400px; min-width: 0; }
.story-nominate__kicker { margin-bottom: 20px; font-size: 13px; color: #D9967F; }
.story-nominate__title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.2vw, 80px); line-height: .92; letter-spacing: -.01em; }
.story-nominate__title em { font-style: italic; }
.story-nominate__side { flex: 1 1 300px; min-width: 0; max-width: 440px; }
.story-nominate__copy { font-size: 18px; line-height: 1.55; color: #d6d6d6; }
.story-nominate__side .btn { margin-top: 30px; }
.story-nominate__note { margin-top: 18px; font-size: 14px; color: #a8a8a8; }

/* Related */
.related { padding-top: 88px; margin-bottom: 104px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.related__card { display: block; color: inherit; }
.related__card:hover { color: inherit; }
.related__card h3 { transition: color .25s; }
.related__card:hover h3 { color: var(--accent); }
.related__kicker { margin: 16px 0 8px; }
.related__title { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.1; text-wrap: pretty; }
.related__by { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Toast for share feedback */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 70; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 18px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

@media (max-width: 960px) {
  .story-aside { position: static; }
  .story-body { max-width: none; }
}

@media (max-width: 560px) {
  .story-head { padding-top: 36px; }
  .story-head__crumbs { gap: 8px 16px; }
  .story-head__sep { margin: 0 -6px; }
  .story-head__meta { align-items: flex-start; flex-direction: column; }
  .sharebar__label { flex-basis: 100%; }
  .story-hero { margin-top: 28px; }
  .story-layout { margin-top: 40px; gap: 48px; }
  .story-body { font-size: 17px; }
  .dropcap::first-letter { font-size: 78px; }
  .pullquote { margin: 48px 0; padding: 36px 24px 28px; }
  .pullquote::before { font-size: 88px; top: -10px; }
  .comingnote { padding: 24px; }
  .comingnote .btn { flex: 1 1 100%; }
  .sharecta__kit { flex-basis: 100%; }
  .sharekit { margin-top: 72px; padding: 56px 0 64px; }
  .kit--story .kit__card { max-width: 320px; }
  .story-nominate { padding: 64px 0; }
  .story-nominate__side .btn { width: 100%; }
  .related { padding-top: 64px; margin-bottom: 72px; }
}

/* Blocks added for the admin editor */
/* Section heading: a full rule and a terracotta mark above, larger than the questions below
   it, so the page clearly starts a new chapter. */
.story-h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 54px); line-height: 1.04; letter-spacing: -.01em; margin: 96px 0 8px; padding-top: 28px; border-top: 1px solid var(--ink); position: relative; text-wrap: balance; }
.story-h2::before { content: ''; position: absolute; top: -1px; left: 0; width: 64px; height: 4px; background: var(--accent); }
.story-h2 + .qa { margin-top: 28px; }
@media (max-width: 700px) { .story-h2 { margin-top: 72px; padding-top: 22px; } }
.story-figure { margin: 40px 0; }
.story-figure .frame > img { height: auto; }
.pullquote__by { margin-top: 20px; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-blush); }
.story-p a, .qa__a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Automatic photo layouts (assigned in src/article-layout.js) ---- */
.story-figure .frame > img { width: 100%; height: auto; display: block; }
.fig--inline { margin: 44px 0; }
.fig--lead { margin: 36px 0 48px; }
.fig--lead .frame { box-shadow: 0 24px 60px -30px rgba(10,10,10,.35); }
.fig--wide { margin: 64px 0; }
.fig--pair { margin: 56px 0; }
.fig--pair .gallery__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
.fig--portrait { margin: 8px 0 24px; }
.qa .fig--portrait { margin-top: 20px; }
.fig--trio .gallery__grid { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 961px) {
  /* The sidebar sits beside the column, so a "wide" photo fills the column edge to edge and
     the inline treatment is set in a little, which gives the page rhythm without overlap. */
  .story-body .fig--wide { width: 100%; }
  .story-body .fig--wide .frame { box-shadow: 0 24px 60px -30px rgba(10,10,10,.35); }
  .story-body .fig--inline:not(.fig--tall) { width: 86%; margin-left: auto; margin-right: auto; }
  /* A tall photo tucks beside the text that follows it. */
  .story-body .fig--portrait { float: right; width: 340px; margin: 6px 0 20px 36px; }
  .story-body .fig--portrait + * { clear: none; }
  /* Inside a Q&A it sits under the question and the answer wraps beside it. */
  .story-body .qa .fig--portrait { width: 300px; margin: 24px 0 16px 32px; }
  .story-body .qa { display: flow-root; }
  .story-body .qa, .story-body .story-rule, .story-body .story-h2, .story-body .fig--wide, .story-body .fig--pair, .story-body .fig--lead { clear: both; }
}
@media (max-width: 700px) {
  .fig--pair .gallery__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fig--pair-tall .gallery__grid { grid-template-columns: 1fr 1fr; }
  .fig--trio .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .fig--wide, .fig--pair, .fig--inline, .fig--lead { margin: 36px 0; }
}
.fig--tall { max-width: 440px; margin-left: auto; margin-right: auto; }
.fig--tall figcaption { text-align: center; }
@media (max-width: 960px) {
  /* Without the float a tall photo would fill a phone screen: keep it narrower, centered. */
  .fig--portrait, .fig--tall { max-width: min(78%, 440px); margin-left: auto; margin-right: auto; }
}

/* Business card: type line under the name, "Follow" above the social icons */
.biz__type { margin-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent-on-blush, #8F4631); }
.sociallinks-wrap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sociallinks__title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.story-aside .sociallinks-wrap .sociallinks { margin-top: 0; }
