/* Space Vanta Theme 1.0 | Journal Hub | JOURNAL-HUB-001
   Fracture lives in the hero only. Below it: a calm topic bar, hand-picked features on layered plates, a clean card grid, one band. */
.sv-jh { max-width: 78rem; margin: 0 auto; padding: 0 var(--jr-gutter) clamp(2.5rem, 6vw, 5rem); }

.sv-jh__hero { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(1.4rem, 3vw, 2.2rem); overflow: hidden; }
.sv-jh__shard--a { right: 3%; top: 18%; width: 6rem; height: 3.8rem; clip-path: polygon(0 0, 100% 22%, 40% 100%); }
.sv-jh__shard--b { right: 12%; top: 38%; width: 2.8rem; height: 3.8rem; clip-path: polygon(30% 0, 100% 100%, 0 72%); opacity: .4; }
.sv-jh__title { margin: 0; max-width: 16ch; font: 600 clamp(2.2rem, 6vw, 4rem)/1.04 var(--sv-font-display, sans-serif); letter-spacing: -.02em; text-wrap: balance; }
.sv-jh__lead { margin: 0; max-width: 54ch; color: var(--jr-mute); font-size: 1.05rem; line-height: 1.6; }

.sv-jh__topics { display: flex; gap: .45rem; overflow-x: auto; padding: .3rem 0 .6rem; margin-bottom: clamp(1.6rem, 3.6vw, 2.6rem); border-bottom: 1px solid var(--jr-line); scrollbar-width: thin; }

/* hand-picked features */
.sv-jh__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.6vw, 1.8rem); margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sv-jh__features:not(:has(*)) { display: none; }
.sv-jh__feature { position: relative; display: flex; transition: transform .45s var(--jr-ease), filter .45s var(--jr-ease);
  filter: drop-shadow(0 20px 18px rgba(27,32,38,.15)) drop-shadow(0 2px 3px rgba(27,32,38,.10)); }
.sv-jh__feature:hover, .sv-jh__feature:focus-within { filter: drop-shadow(0 26px 22px rgba(27,32,38,.19)) drop-shadow(0 2px 3px rgba(27,32,38,.10)); }
.sv-jh__fcard { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; background: var(--jr-surface); border: 1px solid var(--jr-line);
  clip-path: polygon(0 0, calc(100% - var(--jr-cut)) 0, 100% var(--jr-cut), 100% 100%, 0 100%); }
.sv-jh__fcard::before { content: ""; position: absolute; left: 1.2rem; top: 0; z-index: 2; width: 3rem; height: 2px; background: var(--jr-blue); }
.sv-jh__feature:hover, .sv-jh__feature:focus-within { transform: translateY(-4px); }
.sv-jh__fm { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--jr-s1), #fff); }
.sv-jh__fm img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--jr-ease); }
.sv-jh__feature:hover .sv-jh__fm img { transform: scale(1.03); }
.sv-jh__fc { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; }
.sv-jh__fname { margin: 0; font: 600 1.2rem/1.22 var(--sv-font-display, sans-serif); text-wrap: balance; }
.sv-jh__flink { text-decoration: none; }
.sv-jh__flink::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sv-jh__feature:first-child { grid-column: span 2; grid-row: span 2; }
.sv-jh__feature:first-child .sv-jh__fcard { flex-direction: row; }
.sv-jh__feature:first-child .sv-jh__fm { flex: 1 1 56%; aspect-ratio: auto; min-height: 20rem; }
.sv-jh__features > .sv-jh__feature:nth-child(n+2) .sv-jh__fm { aspect-ratio: 16 / 9; }
.sv-jh__feature:first-child .sv-jh__fc { flex: 1 1 44%; justify-content: center; padding: 1.6rem; }
.sv-jh__feature:first-child .sv-jh__fname { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.sv-jh__meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin: 0; font: 600 .72rem/1.3 var(--sv-font-display, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--jr-mute); }
.sv-jh__meta time { font-weight: 500; letter-spacing: .04em; text-transform: none; }
.sv-jh__kind { color: var(--jr-blue-ink); }
.sv-jh__sum { margin: 0; color: var(--jr-mute); font-size: .96rem; line-height: 1.55; }

/* latest */
.sv-jh__h2 { margin: 0 0 1.3rem; font: 600 clamp(1.3rem, 2.4vw, 1.7rem)/1.2 var(--sv-font-display, sans-serif); }
.sv-jh__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 2.6vw, 2rem) clamp(1rem, 2.4vw, 1.6rem); }
.sv-jh__card { position: relative; display: flex; flex-direction: column; gap: .8rem; }
.sv-jh__ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--jr-s1), #fff); border: 1px solid var(--jr-line);
  clip-path: polygon(0 0, calc(100% - var(--jr-cut)) 0, 100% var(--jr-cut), 100% 100%, 0 100%); }
.sv-jh__ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--jr-ease); }
.sv-jh__card:hover .sv-jh__ph img { transform: scale(1.04); }
.sv-jh__cb { display: flex; flex-direction: column; gap: .4rem; }
.sv-jh__name { margin: 0; font: 600 1.08rem/1.28 var(--sv-font-display, sans-serif); text-wrap: balance; }
.sv-jh__name a { text-decoration: none; }
.sv-jh__name a::after { content: ""; position: absolute; inset: 0; }
.sv-jh__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Made to Order band */
.sv-jh__band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; margin-top: clamp(2.6rem, 6vw, 4.5rem); padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--jr-surface); border: 1px solid var(--jr-line);
  clip-path: polygon(0 0, calc(100% - var(--jr-cut)) 0, 100% var(--jr-cut), 100% 100%, 0 100%); }
.sv-jh__band::before { content: ""; position: absolute; left: 1.4rem; top: 0; width: 3.4rem; height: 2px; background: var(--jr-blue); }
.sv-jh__band > div { display: flex; flex-direction: column; gap: .6rem; max-width: 46rem; }
.sv-jh__band-title { margin: 0; font: 600 clamp(1.3rem, 2.6vw, 1.8rem)/1.15 var(--sv-font-display, sans-serif); }
.sv-jh__band-text { margin: 0; color: var(--jr-mute); line-height: 1.6; }

@media (max-width: 960px) {
  .sv-jh__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-jh__feature:first-child { grid-column: span 2; grid-row: auto; }
  .sv-jh__features > .sv-jh__feature:nth-child(n+2) .sv-jh__fm { aspect-ratio: 4 / 3; }
  .sv-jh__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sv-jh__features, .sv-jh__list { grid-template-columns: minmax(0, 1fr); }
  .sv-jh__feature:first-child { grid-column: auto; grid-row: auto; }
  .sv-jh__feature:first-child .sv-jh__fcard { flex-direction: column; }
  .sv-jh__feature:first-child .sv-jh__fm { aspect-ratio: 4 / 3; min-height: 0; }
  .sv-jh__feature:first-child .sv-jh__fc { padding: 1.1rem 1.2rem 1.3rem; }
  .sv-jh__shard--a, .sv-jh__shard--b { display: none; }
  .sv-jh__band .sv-jr-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-jh__feature:hover, .sv-jh__feature:focus-within { transform: none; }
  .sv-jh__feature:hover .sv-jh__fm img, .sv-jh__card:hover .sv-jh__ph img { transform: none; }
}

/* Social link in the hero, and a fade at the end of the scrolling topic bar so a cut-off chip reads as "more" */
.sv-jh__social { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: .4rem; font: 600 .9rem var(--sv-font-body, sans-serif); color: var(--jr-blue-ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.sv-jh__social span { transition: transform .3s var(--jr-ease); }
.sv-jh__social:hover span { transform: translateX(4px); }
@media (max-width: 720px) {
  .sv-jh__topics { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 2rem; }
}
