/* Section 8, "Notes on getting more leads": the newspaper. The page unfolds as it comes into view,
   the masthead inks in, a strip of headlines runs under it, the columns print line by line and the
   halftone pictures develop. Hover lifts a column (the article is a still hit area; its link moves). */
@font-face { font-family: "IBM Plex Mono"; src: url(brandfonts/IBMPlexMono-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
.bl { --px: clamp(24px, 7vw, 120px); position: relative; isolation: isolate; overflow-x: clip; background: var(--bg); color: var(--ink); padding: clamp(110px, calc(var(--vh, 1vh) * 16), 180px) var(--px) clamp(80px, calc(var(--vh, 1vh) * 12), 120px); }
.bl[data-tone="dark"] { --bg: #17110E; --ink: #F1E9DE; --muted: #B3A392; --accent: #CDA85F; --accent-text: #CDA85F; --rule: rgba(205,168,95,.22); --line: rgba(241,233,222,.12); --panel: #201915; --grid: rgba(205,168,95,.07); }
.bl[data-tone="light"] { --bg: #FAFAF8; --ink: #17110E; --muted: #5F5A55; --accent: #A9853D; --accent-text: #7A5A16; --rule: rgba(23,17,14,.14); --line: rgba(23,17,14,.1); --panel: #FFFFFF; --grid: rgba(23,17,14,.055); }
.bl::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 100%); }
.bl-wrap { max-width: 1400px; margin: 0 auto; }
.bl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, calc(var(--vh, 1vh) * 5), 48px); }
.bl h2 { margin: 0; font: 700 clamp(2.4rem, 5vw, 4.6rem)/1.02 var(--serif); letter-spacing: -0.03em; }
.bl[data-tone="light"] .btn-line { color: #17110E; border-color: rgba(169,133,61,.6); } .bl[data-tone="light"] .btn-line::before { background: #CDA85F; }

/* the post */
.bl-p { position: relative; margin: 0; }
.bl-a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.bl-a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 18px; }
.bl-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 16px; background: #201915; }
.bl-img img, .bl-art { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bl-tx { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; flex: 1; }
.bl-cat { align-self: flex-start; font: 600 .75rem/1 "IBM Plex Mono", monospace; color: var(--accent-text); padding: 6px 10px; border: 1px solid var(--rule); border-radius: 99px; }
.bl-p h3 { margin: 0; font: 700 clamp(1.25rem, 1.7vw, 1.6rem)/1.2 var(--serif); letter-spacing: -0.01em; }
.bl-p h3 { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); display: inline; }
.bl-p p { margin: 0; color: var(--muted); }
.bl-ft { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bl-read { font: 600 .75rem/1 "IBM Plex Mono", monospace; color: var(--muted); }
.bl-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--accent-text); }
.bl-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .bl-a:hover .bl-img img, .bl-a:hover .bl-art { transform: scale(1.06); }
  .bl-a:hover h3 { background-size: 100% 1.5px; }
  .bl-a:hover .bl-more svg { transform: translateX(5px); }
}

/* ---------- the newspaper ---------- */
.np { --mx: -999px; --my: -999px; position: relative; padding: clamp(22px, 3vw, 40px); color: #17110E; border: 1px solid rgba(23,17,14,.12); box-shadow: 0 24px 60px rgba(0,0,0,.25);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(205,168,95,.14), transparent 60%), #F7F2E9;
  transform-origin: 50% 0; transform: perspective(1800px) rotateX(16deg) translateY(50px); opacity: 0; transition: transform 1.1s var(--ease), opacity .8s var(--ease); }
.bl-body.in .np { transform: none; opacity: 1; }
.np::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 40px; margin-top: -20px; pointer-events: none;   /* the fold, fading once the page is open */
  background: linear-gradient(rgba(23,17,14,0), rgba(23,17,14,.12) 50%, rgba(23,17,14,0)); opacity: 1; transition: opacity 1.2s var(--ease) .5s; }
.bl-body.in .np::before { opacity: 0; }
.np-mast { position: relative; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; font: 600 .75rem/1 "IBM Plex Mono", monospace; color: #5F5A55; }
.np-mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-top: 1px solid #17110E; border-bottom: 1px solid #17110E; transform: scaleX(0); transition: transform 1s var(--ease) .5s; }
.bl-body.in .np-mast::after { transform: scaleX(1); }
.np-mast b { display: inline-block; padding-bottom: .16em; margin-bottom: -.16em; font: 700 clamp(1.6rem, 3vw, 2.6rem)/1.1 var(--serif); letter-spacing: -0.02em; color: transparent;   /* room for the "g" (11 Oct) */
  background: linear-gradient(90deg, #17110E 50%, rgba(23,17,14,.12) 50%) 100% 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; transition: background-position 1.2s var(--ease) .6s; }
.bl-body.in .np-mast b { background-position: 0 0; }
.np-tick { overflow: hidden; margin: 10px 0 22px; padding: 8px 0; border-bottom: 1px solid rgba(23,17,14,.18); font: 600 .75rem/1 "IBM Plex Mono", monospace; color: #5F5A55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.np-tick span { display: inline-flex; gap: 40px; width: max-content; white-space: nowrap; animation: npTick 32s linear infinite; animation-play-state: paused; }
.bl-body.run .np-tick span { animation-play-state: running; } .np-tick b { color: #7A5A16; font-weight: 600; }
@keyframes npTick { to { transform: translate3d(-50%, 0, 0); } }
.np-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.np .bl-p { padding: 0 clamp(16px, 2vw, 28px); } .np .bl-p:first-child { padding-left: 0; } .np .bl-p:last-child { padding-right: 0; }
.np .bl-p + .bl-p { border-left: 1px solid rgba(23,17,14,.18); }
.np .bl-a { transition: transform .5s var(--ease); }
.np .bl-img { border-radius: 0; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.np .bl-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(23,17,14,.4) 1px, transparent 1.5px) 0 0 / 11px 11px; mix-blend-mode: multiply; transition: background-size 1.6s var(--ease) .8s, opacity .5s; }
.bl-body.in .np .bl-img::after { background-size: 5px 5px; }   /* the halftone "develops" */
.np .lead h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.np .bl-cat { border-radius: 0; border-color: #17110E; color: #17110E; transition: background-color .3s, color .3s; }
.np .bl-p p, .np .bl-read { color: #5F5A55; } .np .bl-more { color: #7A5A16; }
.np .bl-tx > *, .np .bl-img { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease), filter .6s var(--ease); }
.np .bl-p:nth-child(1) { --c: 0; } .np .bl-p:nth-child(2) { --c: 1; } .np .bl-p:nth-child(3) { --c: 2; }
.np .bl-img { transition-delay: calc(var(--c) * .25s + .5s); } .np .bl-cat { transition-delay: calc(var(--c) * .25s + .6s); } .np .bl-p h3 { transition-delay: calc(var(--c) * .25s + .7s); } .np .bl-p p { transition-delay: calc(var(--c) * .25s + .8s); } .np .bl-ft { transition-delay: calc(var(--c) * .25s + .9s); }
.bl-body.in .np .bl-tx > *, .bl-body.in .np .bl-img { opacity: 1; transform: none; }
@media (hover: hover) {
  .np .bl-p:hover .bl-a { transform: translateY(-5px); }
  .np .bl-p:hover .bl-img { filter: none; transition-delay: 0s; } .np .bl-p:hover .bl-img::after { opacity: 0; }
  .np .bl-p:hover .bl-cat { background: #17110E; color: #F7F2E9; }
  .np-cols:hover .bl-p:not(:hover) { opacity: .6; } .np .bl-p { transition: opacity .4s var(--ease); }
}
@media (max-width: 860px) {
  .np-cols { grid-template-columns: 1fr; }
  .np .bl-p { padding: 0 0 22px; } .np .bl-p + .bl-p { border-left: 0; border-top: 1px solid rgba(23,17,14,.18); padding-top: 22px; }
  .np-mast span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bl *, .bl *::before, .bl *::after { animation: none !important; transition: none !important; } .np, .np .bl-tx > *, .np .bl-img { opacity: 1; transform: none; } .np-mast b { background-position: 0 0; } }
