/* Signal reading group: /insights/, the articles, /locations/ and the place pages.
   Uses only the tone variables from site.css, so it works on ink, paper and orange. */

/* ---------- Numbered index lists (insights + locations) ---------- */
.reading-index .grid.cards { display: block; counter-reset: post; border-top: 2px solid var(--fg); }
.reading-index .grid.cards > .card {
  counter-increment: post; position: relative; display: grid; align-items: center;
  grid-template-columns: clamp(64px, 11vw, 168px) minmax(0, 1.15fr) minmax(0, 1fr) auto;
  grid-template-areas: "num title tag go" "num title text go" "num title meta go";
  column-gap: clamp(16px, 3vw, 48px); row-gap: 6px;
  padding: clamp(22px, 3vw, 40px) 0; margin: 0; background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; box-shadow: none;
  transition: padding .25s ease, background-color .2s ease;
}
.reading-index .grid.cards > .card::before {
  content: counter(post, decimal-leading-zero); grid-area: num; align-self: start;
  font: 800 clamp(3rem, 8vw, 7rem)/.8 var(--display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px var(--fg);
}
.reading-index .grid.cards > .card:hover { background: var(--surface); box-shadow: -14px 0 0 var(--surface), 14px 0 0 var(--surface); transform: none; }
.reading-index .card h3 { transition: transform .25s ease; }
.reading-index .grid.cards > .card:hover h3 { transform: translateX(10px); }
.reading-index .grid.cards > .card:hover::before { -webkit-text-stroke-color: var(--sun); }
.reading-index .card h3 { grid-area: title; margin: 0; font-size: clamp(1.45rem, 2.6vw, 2.4rem); line-height: 1.02; letter-spacing: -.03em; max-width: 16em; }
.reading-index .card > p:not(.card-meta), .reading-index .card > div:not(.card-top):not(:first-child) > p:not(.card-meta) { grid-area: text; margin: 0; max-width: 46ch; color: var(--fg-2); }
.reading-index .card .card-meta { grid-area: meta; margin: 0; }
.reading-index .card .card-top { grid-area: tag; justify-self: start; margin: 0; }
.reading-index .card .card-top .icon-tile { display: none; }
.reading-index .card .card-link { grid-area: go; position: static; justify-self: end; align-self: center; margin: 0; width: 52px; height: 52px; padding: 0; border: 1px solid var(--fg); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 0; line-height: 0; gap: 0; }
.reading-index .card .card-link svg { width: 22px; height: 22px; display: block; margin: 0; }
.reading-index .card .card-link::after { content: ''; position: absolute; inset: 0; } /* whole row clickable */
.reading-index .card:hover .card-link { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.reading-index .card:focus-within { outline: 2px solid var(--focus); outline-offset: 4px; }
.reading-index .card-featured { --focus: var(--ink); }
.tone-ink .reading-index .card-featured { --focus: var(--amber); }
.reading-index .card .card-meta { margin-top: .6em; }
.reading-index .card:focus-within .card-link { outline: none; }

/* Featured (newest) article: a normal row (cancel the inverted panel), bigger title, orange number */
.reading-index .card-featured { --fg: var(--ink); --fg-2: #39424e; --mut: #59626e; --rule: rgba(14,27,42,.22); --rule-2: rgba(14,27,42,.3); --surface: rgba(14,27,42,.05); background: transparent; color: var(--fg); border-color: transparent; }
.tone-ink .reading-index .card-featured { --fg: var(--paper); --fg-2: #d9dee6; --mut: #9eabbd; --rule: rgba(251,248,243,.25); }
.reading-index .card-featured > div { display: contents; }
.reading-index .card-featured .pill { grid-area: tag; justify-self: start; margin: 0; }
.reading-index .card-featured > div:last-child > p:not(.card-meta) { grid-area: text; margin: 0; max-width: 46ch; color: var(--fg-2); }
.reading-index .card-featured h3 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); color: var(--fg); }
.reading-index .card-featured::before { -webkit-text-stroke-color: var(--sun); }

/* The "your own industry" prompt closes the list as a strip, not a numbered row */
.reading-index .card-cta, .reading-index .card-cta-tile { counter-increment: none; margin-top: clamp(28px, 4vw, 56px); }

@media (max-width: 800px) {
  .reading-index .grid.cards > .card { grid-template-columns: 56px minmax(0, 1fr) 48px; grid-template-areas: "num title go" "num tag go" "num text go" "num meta go"; column-gap: 14px; }
  .reading-index .grid.cards > .card::before { font-size: 2.6rem; -webkit-text-stroke-width: 1.5px; }
  .reading-index .card .card-link { width: 44px; height: 44px; align-self: start; }
}

/* ---------- Locations index ---------- */
.loc-index .wrap { counter-reset: loc; }
.loc-list { display: block; border-top: 2px solid var(--fg); }
.loc-list + .loc-list { border-top: 0; margin: 0; }
.loc-row {
  counter-increment: loc; position: relative; display: grid; align-items: center; color: var(--fg);
  grid-template-columns: clamp(60px, 9vw, 140px) minmax(0, 1fr) auto auto; column-gap: clamp(14px, 3vw, 40px);
  padding: clamp(18px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: padding .25s ease, background-color .2s ease;
}
.loc-row::before { content: counter(loc, decimal-leading-zero); font: 500 clamp(.8rem, 1.1vw, .95rem)/1 var(--mono); letter-spacing: .08em; color: var(--mut); }
.loc-row h3 { margin: 0; font: 800 clamp(2.6rem, 8vw, 7rem)/.92 var(--display); letter-spacing: -.05em; }
.loc-row .icon-tile { order: 3; width: 46px; height: 46px; }
.loc-row .card-link { position: static; display: inline-flex; gap: 10px; align-items: center; font: 500 .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--fg); border-radius: var(--r); transition: background-color .2s, border-color .2s; }
.loc-row:hover, .loc-row:focus-visible { background: var(--surface); box-shadow: -14px 0 0 var(--surface), 14px 0 0 var(--surface); }
.loc-row h3 { justify-self: start; transition: transform .25s ease; background: linear-gradient(transparent 64%, var(--sun) 64%, var(--sun) 90%, transparent 90%) 0 0 / 0% 100% no-repeat; }
.loc-row:hover h3, .loc-row:focus-visible h3 { background-size: 100% 100%; transform: translateX(10px); }
.loc-row:hover .card-link { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.loc-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.loc-index .wrap > .section-head:not(.center):has(> p:not(.eyebrow)) { display: block; max-width: none; padding-top: 0; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); background: none; }
.loc-index .wrap > .section-head:not(.center):has(> p:not(.eyebrow)) > p:not(.eyebrow) { max-width: 34em; margin: 0; font: 500 clamp(1.2rem, 2.2vw, 1.9rem)/1.3 var(--display); letter-spacing: -.02em; color: var(--fg); }
.loc-index .actions { margin-top: clamp(28px, 4vw, 56px); }
@media (max-width: 700px) {
  .loc-row { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 12px; }
  .loc-row h3 { font-size: clamp(2.2rem, 11.5vw, 3.4rem); }
  .loc-row .icon-tile { display: none; }
  .loc-row .card-link { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- Place pages ---------- */
.loc-lead-sec { padding-block: clamp(56px, 8vw, 120px); }
.loc-lead { max-width: none; }
.loc-lead p { max-width: 17em; }
.loc-lead p { font: 800 clamp(2.1rem, 6.2vw, 5.8rem)/1 var(--display); letter-spacing: -.045em; margin: 0; color: var(--fg); }
.loc-lead .hl { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.loc-detail .split { gap: clamp(2rem, 6vw, 6rem); }
.loc-detail h2 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.loc-detail .split > div:last-child p { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; max-width: 36ch; }
.loc-links { list-style: none; margin: 0; padding: 0; counter-reset: ll; }
.loc-links li { counter-increment: ll; border-bottom: 1px solid var(--rule); }
.loc-links a { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; text-decoration: none; color: var(--fg); font: 700 clamp(1.3rem, 2.4vw, 2rem)/1.1 var(--display); letter-spacing: -.025em; transition: padding .2s ease, color .2s; }
.loc-links a::before { content: counter(ll, decimal-leading-zero); font: 500 .75rem/1 var(--mono); letter-spacing: .08em; color: var(--accent); }
.loc-links a:hover { color: var(--fg); padding-left: 10px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }

/* ---------- Articles ---------- */
@media (min-width: 1021px) { .page-article .article-layout { grid-template-columns: minmax(0, 70ch) 290px; gap: clamp(2rem, 5vw, 5rem); justify-content: center; } }
.page-article .prose { font-size: clamp(1.08rem, 1.15vw, 1.2rem); line-height: 1.72; max-width: 70ch; color: var(--fg-2); }
.page-article .prose > p:first-child { font: 500 clamp(1.4rem, 2.2vw, 1.85rem)/1.32 var(--display); letter-spacing: -.02em; color: var(--fg); }
.page-article .prose > p:first-child + p { font-size: 1.05em; }
.page-article .prose strong { color: var(--fg); }
.page-article .prose a { color: var(--fg); text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page-article .prose a:hover { background: var(--sun); color: var(--ink); text-decoration: none; }

/* numbered subheads: hairline above, big outline number */
.page-article .prose h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1; letter-spacing: -.045em; margin: 2.6em 0 .7em; padding-top: 1rem; border-top: 2px solid var(--fg); color: var(--fg); }
.page-article .prose h2.h-num { display: block; position: relative; }
.page-article .prose h2.h-num .h-num-n { position: static; display: block; width: auto; height: auto; margin: 0 0 .3em; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; font: 500 .8rem/1 var(--mono); letter-spacing: .08em; color: var(--mut); text-transform: uppercase; }
.page-article .prose h2.h-num .h-num-n::before { content: 'No. 0'; }
.page-article .prose h2.h-num .h-num-n { color: var(--mut); }
.page-article .prose h3 { font-family: var(--mono); font-weight: 500; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); margin: 2.4em 0 1em; padding: 6px 10px; border: 1px solid var(--fg); border-radius: var(--r); display: inline-block; }

/* pull quote: huge, highlighter swipe behind the words, bleeds past the measure on desktop */
.page-article .prose .pull-quote { border: 0; padding: 0; margin: 3rem 0; font: 400 clamp(1.9rem, 3.6vw, 3rem)/1.3 var(--serif); font-style: italic; letter-spacing: -.01em; color: var(--ink); }
.page-article .prose .pq-hl { background: linear-gradient(transparent 12%, var(--amber) 12%, var(--amber) 92%, transparent 92%); padding: .02em .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 1100px) { .page-article .prose .pull-quote { margin-right: -6%; } }

.page-article .prose .callout { border: 1px solid var(--fg); border-left-width: 6px; border-left-color: var(--sun); border-radius: var(--r); background: var(--surface); box-shadow: 6px 6px 0 var(--rule-2); }
.page-article .prose .callout h3 { display: block; border: 0; padding: 0; margin: 0 0 .6em; }

/* rail: hairline index, mono labels */
.page-article .article-rail .toc summary { font-size: .78rem; padding-bottom: 12px; border-bottom: 2px solid var(--fg); }
.page-article .article-rail .toc a { border-bottom: 1px solid var(--rule); }

/* end block */
.page-article .article-end { max-width: 70ch; }
.page-article .post-nav .card { border-radius: var(--r); }
.page-article .post-nav .card small { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
@media (max-width: 1020px) {
  .page-article .prose h2 { margin-top: 2em; }
}

@media (prefers-reduced-motion: reduce) { .loc-row h3, .reading-index .card h3, .loc-links a { transition: none; } .loc-row:hover h3, .reading-index .grid.cards > .card:hover h3 { transform: none; } }
