/* Crust of Heaven. Everything here is taken from the logo: its olive ground,
   bone and orange inks, lavender small caps, and the worn, speckled print. */
:root {
  --bg: #262a10;            /* the logo's olive, as it is around the artwork */
  --bg-glow: #343a16;       /* the lighter olive behind the logo's centre */
  --panel: #1b1d0b;
  --ink: #0d0e05;           /* near-black olive for borders and hard shadows */
  --line: rgba(214, 209, 176, .17);
  --bone: #d6d1b0;
  --text: #e6e2c9;
  --muted: #aaa686;
  --orange: #ee6a17;
  --orange-hi: #ff9d5c;
  --orange-text: #f98a45;   /* the orange, lifted enough to read at text sizes */
  --lav: #c3a6dc;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --black: "Pirata One", "UnifrakturCook", "Old English Text MT", serif;
  --speckle: url(/img/speckle.png);
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  /* the logo's vignette, held to the edges of the window */
  background: radial-gradient(ellipse 115% 90% at 50% 42%, transparent 42%, rgba(8, 9, 2, .62) 100%) fixed;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--serif);
  min-height: 100vh;
  overflow-x: hidden;
}
/* film grain over the whole page, photos included */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: url(/img/grain.png); opacity: .55;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-hi); }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* worn print, like the logo's lettering */
.worn, .section-title, .section-head h1, .review-artist, .review-work, .list-title,
.score-num, .chip-rating, .entry-rank, .empty-mark, .rule {
  -webkit-mask-image: var(--speckle); mask-image: var(--speckle);
  -webkit-mask-size: 360px; mask-size: 360px;
}

/* ---------- masthead ---------- */
.masthead {
  max-width: var(--wrap); margin: 0 auto; padding: .5rem 16px 0; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 46% 62% at 50% 44%, var(--bg-glow), transparent 100%);
}
.logo { display: block; width: min(340px, 86vw); margin: 0 auto; }
/* no transform here: it would wall the artwork off from the page it blends with */
.home .logo { width: min(620px, 112vw); margin-left: calc(50% - min(310px, 56vw)); }
.logo img {
  width: 100%; max-width: none; height: auto;
  /* fade the artwork's own background into the page */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  /* its inks are all lighter than the page, so only they show where the two olives differ */
  mix-blend-mode: lighten;
}
.nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 2.2rem;
  margin: .25rem auto 0; padding: .6rem 0 1.1rem;
  font: 500 .95rem/1 var(--head); letter-spacing: .3em; text-transform: uppercase;
}
.nav a { color: var(--lav); text-decoration: none; padding: .45rem 0 .4rem .3em; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--bone); }
.nav a[aria-current] { color: var(--orange-text); border-bottom-color: var(--orange); }
.rule { display: block; height: 4px; background: var(--orange); border: 0; margin: 0; }

main { max-width: var(--wrap); margin: 0 auto; padding: 2.75rem 16px 4.5rem; }

/* ---------- shared bits ---------- */
/* headings sit between two orange rules, like the "of" in the logo */
.section-title, .section-head h1 {
  font: 400 2.3rem/1 var(--black); color: var(--orange); letter-spacing: .01em;
  margin: 3.75rem 0 1.75rem; display: flex; align-items: center; gap: 1.1rem;
}
.section-title::before, .section-title::after, .section-head h1::before, .section-head h1::after {
  content: ""; flex: 1; height: 4px; background: var(--orange);
}
/* finer wear on the rules, so they come out nicked rather than dashed */
.section-title, .section-head h1, .rule { -webkit-mask-size: 230px; mask-size: 230px; }
.section-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--bone); margin-top: 0; }

.badge {
  display: inline-block; font: 500 .8rem/1 var(--head); letter-spacing: .28em; text-transform: uppercase;
  color: var(--lav); text-decoration: none;
}
.badge::before { content: "\2020"; margin-right: .55em; color: var(--orange); letter-spacing: 0; }
a.badge:hover { color: var(--bone); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  position: relative; background: var(--panel); border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink); transition: transform .16s, box-shadow .16s, rotate .16s;
}
.grid .card:nth-child(3n+1) { rotate: -.6deg; }
.grid .card:nth-child(3n+2) { rotate: .5deg; }
.grid .card:nth-child(4n+3) { rotate: -.3deg; }
.card:hover, .card:focus-within { transform: translate(-4px, -4px); box-shadow: 11px 11px 0 var(--orange); rotate: 0deg; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-img { position: relative; aspect-ratio: 1; background: var(--ink); border-bottom: 2px solid var(--ink); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg {
  display: grid; place-items: center; height: 100%;
  font: 7rem/1 var(--black); color: var(--lav); opacity: .5;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(214, 209, 176, .05) 14px 16px);
}
/* the score, as a price sticker slapped on the sleeve */
.chip-rating {
  position: absolute; top: -14px; right: -12px; width: 66px; height: 66px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--orange); color: var(--ink); border: 2px solid var(--ink);
  font: 400 1.75rem/.9 var(--black); rotate: 9deg; box-shadow: 2px 3px 0 var(--ink);
}
.chip-rating small { font: 600 .58rem/1 var(--head); letter-spacing: .08em; margin-top: 2px; }
.card-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body .badge { align-self: flex-start; }
.card-title { margin: 0; font: 400 1.75rem/1.05 var(--black); color: var(--bone); letter-spacing: .01em; }
.card:hover .card-title { color: var(--orange); }
.card-artist { display: block; }
.card-album .card-work { display: block; font: italic 400 1.05rem/1.3 var(--serif); color: var(--lav); margin-top: .3rem; }
.card:hover .card-album .card-work { color: var(--lav); }
.card-year { color: var(--muted); font: 500 1rem var(--head); letter-spacing: .08em; }
.card-excerpt { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; flex: 1; }
.card time { font: 500 .74rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.feature .card { box-shadow: 10px 10px 0 var(--orange); }
.feature .card:hover, .feature .card:focus-within { box-shadow: 15px 15px 0 var(--orange); }
.feature .card-link { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .feature .card-link { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
  .feature .card-img { border-bottom: 0; border-right: 2px solid var(--ink); }
  .feature .card-body { padding: 2rem 2.5rem; justify-content: center; gap: 1rem; }
  .feature .card-title { font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: .98; }
  .feature .card-album .card-work { font-size: 1.5rem; margin-top: .5rem; }
  .feature .card-excerpt { font-size: 1.1rem; flex: 0; color: var(--text); }
  .feature .chip-rating { width: 92px; height: 92px; font-size: 2.5rem; top: -18px; right: -20px; }
  .feature .chip-rating small { font-size: .7rem; }
}

.more-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 3rem; font: 500 .9rem var(--head); letter-spacing: .2em; text-transform: uppercase; }
.more-links a, .pager a { text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: .15rem; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 3.5rem; font: 500 .9rem var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.empty { text-align: center; padding: 3rem 1rem 4rem; color: var(--muted); }
.empty h2 { font: 400 2.4rem/1.1 var(--black); color: var(--bone); margin: 0 0 .6rem; }
.empty-mark { font: 6.5rem/1 var(--black); color: var(--orange); margin: 0 0 .75rem; }

/* ---------- review page ---------- */
.review-head { display: grid; gap: 2.25rem; align-items: end; margin-bottom: 3rem; }
@media (min-width: 760px) {
  .review-head { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 3.5rem; }
  .review-head:not(:has(figure)) { grid-template-columns: 1fr; }
}
/* cover with an orange block behind it, like a print knocked out of register */
.review-cover { margin: 0 12px 12px 0; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--orange); rotate: -1.2deg; }
.review-cover img { width: 100%; }
@media (max-width: 759px) { .review-cover-movie { max-width: 240px; } }
.review-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.review-title { margin: 0; }
.review-artist, .review-work { display: block; font: 400 clamp(2.9rem, 7.2vw, 5.2rem)/.95 var(--black); color: var(--bone); letter-spacing: .01em; }
.review-artist + .review-work {
  font: italic 400 clamp(1.5rem, 3.2vw, 2.1rem)/1.2 var(--serif); color: var(--lav); margin-top: .6rem;
  -webkit-mask-image: none; mask-image: none;
}
.review-facts { margin: 0; color: var(--muted); font: 500 .9rem/1.5 var(--head); letter-spacing: .2em; text-transform: uppercase; }
.score { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: .4rem .6rem; width: min(100%, 360px); }
.score-num { font: 400 5.4rem/.85 var(--black); color: var(--orange); }
.score-of { font: 500 1.3rem/1 var(--head); letter-spacing: .1em; color: var(--muted); }
/* ten pips */
.score-bar {
  grid-column: 1 / -1; height: 14px; background: var(--ink);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(10% - 5px), transparent calc(10% - 5px) 10%);
  mask-image: repeating-linear-gradient(90deg, #000 0 calc(10% - 5px), transparent calc(10% - 5px) 10%);
}
.score-bar span { display: block; height: 100%; background: var(--orange); }
.byline { margin: 0; color: var(--muted); font: 500 .8rem/1.4 var(--head); letter-spacing: .2em; text-transform: uppercase; }

.prose { max-width: 68ch; font-size: 1.15rem; line-height: 1.75; }
.review .prose, .list-intro { margin: 0 auto; }
.prose p { margin: 0 0 1.3em; }
.prose > p:first-child::first-letter {
  float: left; font: 5.2em/.78 var(--black); color: var(--orange); padding: .08em .1em 0 0;
}
.entry .prose > p:first-child::first-letter, .list-intro > p:first-child::first-letter { all: unset; }
.prose h2, .prose h3 { font-family: var(--black); font-weight: 400; color: var(--bone); line-height: 1.1; margin: 1.8em 0 .5em; }
.prose h2 { font-size: 2.1rem; } .prose h3 { font-size: 1.6rem; }
.prose blockquote {
  margin: 1.8em 0; padding: .1em 0 .1em 1.3em; border-left: 4px solid var(--orange);
  color: var(--bone); font-style: italic; font-size: 1.12em;
}
.prose img { margin: 1.5em 0; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.prose hr { border: 0; margin: 2.5em 0; text-align: center; height: auto; overflow: visible; }
.prose hr::before { content: "\2020"; color: var(--orange); font-size: 1.6rem; line-height: 1; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--orange); }
.prose strong { color: #fffbe6; }

.player, .review .tags { max-width: 68ch; margin-left: auto; margin-right: auto; }
.toplist .tags { max-width: 980px; margin-left: auto; margin-right: auto; }
.embed { margin: 1.25rem 0; border: 2px solid var(--ink); background: var(--panel); box-shadow: 7px 7px 0 var(--ink); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed-video { aspect-ratio: 16 / 9; }
.embed-video iframe { height: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.75rem; }
.tags span { font: 500 .74rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--lav); border: 1px solid rgba(195, 166, 220, .45); padding: .5rem .65rem .45rem; }

.related { margin-top: 4.5rem; }

/* ---------- top ten ---------- */
.list-head { text-align: center; max-width: 900px; margin: 0 auto 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.list-cover { margin: 0 0 1.25rem; width: 100%; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--orange); }
.list-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.list-title { margin: 0; font: 400 clamp(2.8rem, 7.5vw, 5.4rem)/.98 var(--black); color: var(--bone); }
.entries { list-style: none; margin: 3rem auto 0; padding: 0; max-width: 980px; }
.entry {
  display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); gap: 0 1.5rem;
  padding: 2.75rem 0; border-top: 3px solid var(--ink);
}
.entry-rank {
  grid-row: span 2; font: 400 6.6rem/.8 var(--black); text-align: right;
  color: transparent; -webkit-text-stroke: 2px var(--lav);
}
/* number one gets the orange ink */
.entry:last-child .entry-rank,
.entries:not([reversed]) .entry:first-child .entry-rank { color: var(--orange); -webkit-text-stroke: 0; }
.entries:not([reversed]) .entry:last-child .entry-rank { color: transparent; -webkit-text-stroke: 2px var(--lav); }
.entry-img { margin: 0 0 1.4rem; grid-column: 2; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); max-width: 520px; }
.entry-body { grid-column: 2; }
.entry-name { margin: 0 0 .75rem; font: 400 clamp(1.9rem, 4.2vw, 2.7rem)/1.05 var(--black); color: var(--bone); }
.entry .prose { font-size: 1.08rem; }
@media (max-width: 560px) {
  .entry { grid-template-columns: 4.4rem minmax(0, 1fr); gap: 0 .9rem; }
  .entry-rank { font-size: 4rem; -webkit-text-stroke-width: 1.5px; }
  .chip-rating { right: -6px; }
  .section-title { font-size: 1.9rem; }
  .nav { gap: .35rem 1.15rem; font-size: .85rem; letter-spacing: .2em; }
}

/* ---------- footer ---------- */
.footer { background: rgba(8, 9, 2, .5); padding: 0 16px 3rem; text-align: center; color: var(--muted); font-size: .9rem; }
.footer .rule { max-width: var(--wrap); margin: 0 auto 2.5rem; }
.footer-tag { font: 500 .85rem/1.6 var(--head); letter-spacing: .34em; text-transform: uppercase; color: var(--lav); margin: 0 0 .75rem; }
.footer p { margin: .35rem 0; }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
