/* Journal design layer, loaded after blog.css. */
:root { --t: #ff6a1a; --head: "Clash Display", "Montserrat", system-ui, sans-serif; --body: "General Sans", "Montserrat", system-ui, sans-serif; --tag: "Space Mono", ui-monospace, monospace; }
[data-topic="local-business"] { --t: #ffab52; }
[data-topic="history"] { --t: #ee8a62; }
[data-topic="weather"] { --t: #7cd2ff; }
[data-topic="kitchen-science"] { --t: #c699ff; }
[data-topic="buyer-s-guide"] { --t: #ff8cae; }
[data-topic="travel"] { --t: #5fead0; }
[data-topic="technology"] { --t: #9db4ff; }
[data-topic="design"] { --t: #ff6a1a; }
[data-topic="science"] { --t: #b6ee7a; }
[data-topic="time"] { --t: #ffd36a; }
[data-topic="internet"] { --t: #5fd8ea; }
[data-topic="studio"] { --t: #ff6a1a; }

body { font-family: var(--body); font-size: 18px; overflow-x: clip; }
.bnav__logo img { height: 28px; }
.bnav__links { font-family: var(--body); }
.bnav__cta:hover { border-color: var(--t); }
.reading-bar__fill { background: var(--t); }

/* ---------- the homepage's world ---------- */
html { background: var(--bg); }
#sky { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100lvh; z-index: -2; pointer-events: none; }
.world body { background: transparent; }
.world body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(8, 5, 4, .72) 0%, rgba(8, 5, 4, .5) 45%, rgba(8, 5, 4, .12) 100%); }
.world .toc, .world .tbl { background: rgba(14, 10, 8, .7); }
.world .bhead--essay::before { display: none; }
.bnav { background: rgba(11, 8, 6, .55); }
.veil { position: fixed; inset: -30% -10%; z-index: 90; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(38% 26% at 22% 62%, rgba(255, 247, 238, .85), transparent 70%), radial-gradient(44% 30% at 74% 44%, color-mix(in srgb, var(--t) 90%, #fff), transparent 72%), radial-gradient(60% 40% at 46% 80%, var(--t), transparent 72%), radial-gradient(70% 55% at 50% 40%, color-mix(in srgb, var(--t) 45%, #0b0806), transparent 80%), color-mix(in srgb, var(--t) 14%, #0b0806);
  animation: fog-lift 1.15s cubic-bezier(.5, 0, .2, 1) both; }
.veil.close { animation: fog-fall .45s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes fog-lift { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-34%) rotate(5deg) scale(1.3); visibility: hidden; } }
@keyframes fog-fall { from { opacity: 0; transform: translateY(34%) rotate(-5deg) scale(1.25); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .veil { display: none; } }

@media (max-width: 860px) { .world body::before { background: rgba(8, 5, 4, .24); } }

/* ---------- index ---------- */
.bhead:not(.bhead--essay) { position: relative; max-width: 1360px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 40px; align-content: center; min-height: min(620px, 74vh); padding-top: 56px; padding-bottom: 36px; }
.bhead:not(.bhead--essay) > :not(.bhead__art) { grid-column: 1; }
.bhead__art { grid-column: 2; grid-row: 1 / span 4; align-self: center; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; }
.bhead .eyebrow, .kicker { font-family: var(--tag); font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--t); }
.bhead:not(.bhead--essay) h1 { font-family: var(--head); font-weight: 600; font-size: clamp(42px, 6.2vw, 94px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.bhead h1 em { font-family: inherit; color: var(--orange); font-size: 1em; padding: 0; }
.bhead p.lede { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; }

.filters { max-width: 1360px; margin: 0 auto 28px; padding: 0 var(--pad); display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--mute); font: 500 13.5px var(--body); cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.journal-list { max-width: 1360px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.journal-list li, .journal-list li:last-child { display: flex; border: 0; }
.journal-list li[hidden] { display: none; }
.journal-list a, .journal-list a:hover { position: relative; width: 100%; min-height: 270px; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(90% 75% at 0% 0%, color-mix(in srgb, var(--t) 17%, transparent), transparent 72%), rgba(14, 10, 8, .76); transform: none; transition: border-color .35s, transform .55s cubic-bezier(.19, 1, .22, 1), box-shadow .45s; }
.journal-list a::before { content: ""; position: absolute; left: 26px; top: -1px; width: 44px; height: 3px; background: var(--t); transition: width .6s cubic-bezier(.19, 1, .22, 1); }
.journal-list a:hover::before, .journal-list a:focus-visible::before { width: calc(100% - 52px); }
.journal-list a:hover { border-color: color-mix(in srgb, var(--t) 65%, transparent); transform: translateY(-6px); box-shadow: 0 30px 60px -34px var(--t); }
.journal-list a > span:not(.jl-meta):not(.jl-read) { display: block; padding: 0 26px 62px; }
.journal-list .jl-meta { display: flex; justify-content: space-between; gap: 12px; padding: 30px 26px 16px; font-family: var(--tag); font-size: 11px; letter-spacing: .06em; }
.journal-list .jl-meta b { display: inline; margin: 0; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--t); }
.journal-list h2 { font-family: var(--head); font-weight: 600; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.18; margin-bottom: 12px; text-wrap: balance; }
.journal-list a:hover h2 { color: var(--ink); }
.journal-list p { font-size: 14.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.journal-list .jl-read, .journal-list a:hover .jl-read { display: block; position: absolute; left: 26px; bottom: 22px; font-family: var(--tag); font-size: 11px; color: var(--mute); transform: none; }
.journal-list a:hover .jl-read { color: var(--t); }
.journal-list li.is-lead { grid-column: 1 / -1; }
.journal-list li.is-lead a { min-height: 340px; justify-content: space-between; }
.journal-list li.is-lead .jl-meta { justify-content: flex-start; padding: 40px 48px 28px; }
.journal-list li.is-lead a::before { left: 48px; }
.journal-list li.is-lead a:hover::before { width: calc(100% - 96px); }
.journal-list li.is-lead a > span:not(.jl-meta):not(.jl-read) { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: end; padding: 0 48px 86px; }
.journal-list li.is-lead h2 { margin: 0; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.08; }
.journal-list li.is-lead p { margin: 0; font-size: 16.5px; }
.journal-list li.is-lead .jl-read { left: 48px; bottom: 32px; }

.journal-list[hidden], .shelf[hidden] { display: none; }
.shelf { margin-bottom: 64px; scroll-margin-top: 96px; }
.shelf__title { max-width: 1360px; margin: 0 auto 22px; padding: 0 var(--pad); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-family: var(--head); font-weight: 600; font-size: clamp(25px, 2.8vw, 40px); line-height: 1.15; }
.shelf__title span { flex: none; font: 400 11.5px var(--tag); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.shelf .journal-list { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.journal-list[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- article ---------- */
.bhead--essay { position: relative; max-width: 1320px; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(30px, 4vw, 54px); }
.bhead--essay::before { content: ""; position: absolute; inset: -80px -20% 0; z-index: -1; background: radial-gradient(40% 70% at 74% 40%, color-mix(in srgb, var(--t) 20%, transparent), transparent 70%); pointer-events: none; }
.bhead--essay h1 { max-width: 19ch; font-family: var(--head); font-weight: 600; font-size: clamp(34px, 4.8vw, 70px); line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
.bhead--essay p.lede { max-width: 58ch; }
.crumbs, .meta { font-family: var(--tag); font-size: 11.5px; letter-spacing: .06em; }
.meta span + span::before { content: "/"; margin-right: 14px; color: var(--t); }
.meta { gap: 8px 14px; }
.hero-art { display: none; }
.hero-img img { border-radius: 26px; }

.article-grid { border-top: 1px solid var(--line); counter-reset: part; }
.prose p, .prose li { color: rgba(239, 231, 218, .82); }
.prose--essay p { line-height: 1.85; }
.prose { max-width: 720px; }
.prose--essay > p:first-child { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.6; color: var(--ink); }
.prose h2, .prose--essay h2 { counter-increment: part; font-family: var(--head); font-weight: 600; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; margin-top: 64px; }
.prose h2::before { content: counter(part, decimal-leading-zero); display: block; margin-bottom: 12px; font: 400 12px var(--tag); letter-spacing: .2em; color: var(--t); }
.prose h3 { font-family: var(--head); font-weight: 500; }
.prose a { color: var(--ink); text-decoration-color: var(--t); text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--t); }
.prose li::marker { color: var(--t); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding: 14px 0 14px 30px; margin: 0; border-bottom: 1px solid var(--line); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 9px; height: 9px; background: var(--t); clip-path: polygon(50% 0, 100% 100%, 0 80%); }
.prose b { color: var(--ink); font-weight: 600; }
@media (min-width: 1100px) {
  .article-grid { grid-template-columns: 250px minmax(0, 720px); justify-content: space-between; padding-right: calc(var(--pad) + 60px); }
  .toc-side .toc p { font-family: var(--tag); font-weight: 400; color: var(--t); }
  .toc-side .toc a.is-on { color: var(--t); }
  .toc-side .toc a.is-on::before { background: var(--t); }
}
.toc { background: #100c09; }
.tbl { border-radius: 20px; }
.tbl th { font-family: var(--tag); font-weight: 400; color: var(--t); background: color-mix(in srgb, var(--t) 8%, #100c09); }
.sources { font-size: 13px; overflow-wrap: anywhere; }

.next { max-width: 1360px; margin: 0 auto; padding: 70px var(--pad) 0; border-top: 1px solid var(--line); }
.next > h2 { margin: 0 0 28px; font-family: var(--head); font-weight: 600; font-size: clamp(28px, 3.4vw, 46px); }
.next .journal-list { padding: 0; max-width: none; margin: 0; }
.next .journal-list a { min-height: 210px; }
.next h3 { margin: 0; font-family: var(--head); font-weight: 600; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.2; text-wrap: balance; }

.js .rise { opacity: 0; translate: 0 34px; }
.js .rise.in { opacity: 1; translate: 0 0; transition: opacity .7s ease, translate .9s cubic-bezier(.19, 1, .22, 1); }

@media (max-width: 1000px) {
  .journal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-list li.is-lead a { min-height: 270px; justify-content: flex-start; }
  .journal-list li.is-lead .jl-meta { padding: 30px 26px 16px; justify-content: space-between; }
  .journal-list li.is-lead a::before { left: 26px; }
  .journal-list li.is-lead a:hover::before { width: calc(100% - 52px); }
  .journal-list li.is-lead a > span:not(.jl-meta):not(.jl-read) { display: block; padding: 0 26px 62px; }
  .journal-list li.is-lead h2 { margin-bottom: 14px; }
  .journal-list li.is-lead .jl-read { left: 26px; bottom: 22px; }
}
@media (max-width: 860px) {
  .bhead:not(.bhead--essay) { display: block; min-height: 0; }
  .bhead__art { max-width: 260px; margin: 0 auto 4px; }
}
@media (max-width: 660px) {
  body { font-size: 16.5px; }
  .journal-list, .journal-list[data-n="2"] { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .journal-list a { min-height: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters button { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; translate: none; } .journal-list a:hover { transform: none; } }
