/* Journal list and post pages. */

/* ================= LIST ================= */
.jhead { position: relative; overflow: hidden; padding: 150px var(--gutter) 60px; max-width: 1280px; margin: 0 auto; }
.jhead__sun {
  position: absolute;
  right: -6vw;
  top: 60px;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-1) 0 19.2%, transparent 19.2% 20.4%, var(--sun-2) 20.4% 39.2%, transparent 39.2% 40.4%, var(--sun-3) 40.4% 59.2%, transparent 59.2% 60.4%, var(--sun-4) 60.4% 79.2%, transparent 79.2% 80.4%, var(--sun-5) 80.4% 100%);
  z-index: -1;
}
.jhead__title {
  margin: 14px 0 18px;
  font-size: min(22vw, 320px);
  line-height: .78;
  text-transform: uppercase;
  font-variation-settings: "wdth" var(--w, 62);
  color: var(--ink);
  mix-blend-mode: multiply;
  white-space: nowrap;
}
.jhead__title .char { display: inline-block; }
.jhead__lede { max-width: 420px; font-size: 18px; color: var(--ink-2); }

.jlist { max-width: 1280px; margin: 0 auto; padding: 20px var(--gutter) 140px; display: grid; gap: 0; }
.jrow {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr 120px 40px;
  grid-template-areas: "code title date go" "kicker excerpt date go";
  gap: 6px 28px;
  align-items: baseline;
  padding: 30px 12px;
  border-top: 2px solid var(--ink);
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
}
.jrow:last-child { border-bottom: 2px solid var(--ink); }
.jrow__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease); }
.jrow::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 8, 4, .75), rgba(20, 8, 4, .25)); opacity: 0; transition: opacity .6s; }
.jrow__code { grid-area: code; font-size: 11px; letter-spacing: .2em; font-variation-settings: "wdth" 125; font-weight: 650; color: var(--muted); }
.jrow__kicker { grid-area: kicker; align-self: start; justify-self: start; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--acrylic-deep); font-size: 10.5px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; font-variation-settings: "wdth" 120; }
.jrow__title { grid-area: title; font-size: clamp(26px, 3.4vw, 46px); font-weight: 880; line-height: .96; text-transform: uppercase; font-variation-settings: "wdth" 66; transition: font-variation-settings .8s var(--ease), color .4s; }
.jrow__excerpt { grid-area: excerpt; max-width: 640px; font-size: 15.5px; color: var(--ink-2); transition: color .4s; }
.jrow__date { grid-area: date; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-variation-settings: "wdth" 115; color: var(--muted); text-align: right; transition: color .4s; }
.jrow__go { grid-area: go; font-size: 28px; color: var(--acrylic-deep); transition: translate .6s var(--ease), color .4s; }
.jrow > span { position: relative; z-index: 1; }
.jrow__cover { position: absolute; right: 70px; top: 50%; width: 170px; height: 170px; object-fit: cover; border-radius: 6px; translate: 0 -50%; rotate: 8deg; scale: .4; opacity: 0; transition: scale .7s var(--ease), opacity .4s, rotate .7s var(--ease); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); z-index: 0; pointer-events: none; }
.jrow:hover .jrow__art, .jrow:focus-visible .jrow__art { clip-path: inset(0 0 0 0); }
.jrow:hover::after, .jrow:focus-visible::after { opacity: 1; }
.jrow:hover .jrow__title, .jrow:focus-visible .jrow__title { color: #fff; font-variation-settings: "wdth" 90; }
.jrow:hover .jrow__excerpt, .jrow:hover .jrow__date, .jrow:hover .jrow__code { color: #ffe9d4; }
.jrow:hover .jrow__go { translate: 8px 0; color: #fff; }
.jrow:hover .jrow__cover { scale: 1; opacity: 1; rotate: -4deg; }
.jrow--lead .jrow__title { font-size: clamp(32px, 4.6vw, 66px); }
@media (max-width: 760px) {
  .jrow { grid-template-columns: 1fr 30px; grid-template-areas: "code go" "title go" "excerpt excerpt" "kicker date"; }
  .jrow__date { text-align: right; }
  .jrow__cover { display: none; }
}

/* ================= POST ================= */
.post__head { position: relative; overflow: hidden; padding: 150px var(--gutter) 70px; color: #fff; background: var(--ink); isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.post__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .7; }
.post__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 8, 4, .2), rgba(20, 8, 4, .85)); }
.post__head-inner { max-width: 960px; }
.post__head .label, .post__head .label a { color: #ffd7ae; text-decoration: none; }
.post__head .label b { color: #fff; }
.post__title { margin: 18px 0 22px; font-size: clamp(38px, 6vw, 92px); line-height: .92; text-transform: uppercase; font-variation-settings: "wdth" 68; text-wrap: balance; }
.post__title .line { overflow: hidden; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-variation-settings: "wdth" 118; color: #ffe1c2; }
.post__artist { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 220, 180, .35); transition: background .3s; }
.post__artist:hover { background: color-mix(in srgb, var(--c) 60%, transparent); }
.post__artist img { width: 36px; height: 36px; border-radius: 50%; background: #120604; object-fit: contain; }
.post__cover { margin: 0; width: min(300px, 30vw); transform: rotate(4deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.post__cover img { width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 760px) { .post__head { grid-template-columns: 1fr; } .post__cover { width: 60%; } }

.prose { max-width: 720px; margin: 0 auto; padding: 70px var(--gutter) 40px; font-size: 18.5px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 30px; line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 70; color: var(--ink); }
.prose h3 { font-size: 22px; text-transform: uppercase; font-variation-settings: "wdth" 76; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--acrylic-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 0 18px 18px 0; background: linear-gradient(90deg, #fff1e2, #fffaf4); box-shadow: inset 6px 0 0 var(--acrylic); font-size: 21px; line-height: 1.5; color: var(--ink); }
.prose blockquote p + p { margin-top: .8em; }
.prose ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.prose ul li a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: linear-gradient(180deg, #fff, #fff1e2); box-shadow: inset 0 0 0 1px rgba(217, 72, 15, .3), 0 6px 14px -8px rgba(120, 45, 10, .5); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: "wdth" 110; transition: transform .4s var(--ease), background .3s; }
.prose ul li a:hover { transform: translateY(-2px); background: linear-gradient(180deg, #ffd4a6, #ffb26b); }
.prose ol { padding-left: 1.2em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 8px; width: 100%; height: auto; }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.post__nav { max-width: 1080px; margin: 40px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.post__next { display: grid; gap: 8px; padding: 22px 24px; border-radius: 18px; background: #fff; text-decoration: none; box-shadow: 0 0 0 1px rgba(217, 72, 15, .16), 0 20px 40px -28px rgba(120, 45, 10, .55); transition: transform .6s var(--ease), box-shadow .6s; }
.post__next b { font-size: 20px; line-height: 1.05; text-transform: uppercase; font-variation-settings: "wdth" 74; }
.post__next--newer { text-align: right; }
.post__next:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(217, 72, 15, .4), 0 30px 50px -28px rgba(200, 70, 10, .6); }
.post__back { text-align: center; padding: 50px 0 110px; }

/* tape counter: three rolling digits that count up as you read */
.counter {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf4, #f1e2d2);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -12px rgba(80, 30, 0, .6), 0 0 0 1px rgba(217, 72, 15, .2);
}
.counter__label { font-size: 9.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-variation-settings: "wdth" 125; color: var(--muted); }
.counter__digits { display: flex; gap: 2px; }
.counter__digits i { display: grid; place-items: center; width: 18px; height: 26px; border-radius: 3px; background: #1d100b; color: #ffb347; font-style: normal; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; box-shadow: inset 0 -8px 8px rgba(255, 255, 255, .06), inset 0 2px 3px rgba(0, 0, 0, .6); }
.readbar { position: fixed; z-index: 45; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; scale: 0 1; background: linear-gradient(90deg, var(--sun-1), var(--sun-3), var(--sun-5)); box-shadow: 0 0 10px rgba(255, 122, 26, .7); }
