/* ==========================================================================
   Personal zine — stylesheet
   Colours, fonts and spacing all live in :root below. Change them there and
   the whole site follows. Everything is plain CSS, no build step.
   ========================================================================== */

:root {
  /* paper + ink */
  --paper:      #f3efe2;
  --paper-deep: #e9e2cd;
  --ink:        #191712;
  --ink-soft:   #4a453b;

  /* riso-ish accents */
  --red:    #e23b2e;
  --blue:   #2b47d8;
  --yellow: #ffcf33;
  --green:  #1f7a4d;
  --pink:   #d63b7a;
  --purple: #6b4ca8;

  /* per-section colour */
  --c-music:    #d63b7a;
  --c-movies:   #2b47d8;
  --c-football: #1f7a4d;
  --c-misc:     var(--ink);

  --shadow: 5px 5px 0 var(--ink);
  --rule: 2px solid var(--ink);

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 70rem;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #17140f;
    --paper-deep: #211c15;
    --ink:        #efe9d8;
    --ink-soft:   #b3ab97;
    --shadow: 5px 5px 0 #000;
  }
}

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* the `hidden` attribute must win over any component's display rule
   (e.g. .wordcard { display: flex }) — used by the filter scripts */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 .4em;
}

code, kbd, samp { font-family: var(--font-mono); font-size: .85em; }

::selection { background: var(--yellow); color: #191712; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem;
}
.skip:focus { left: 0; z-index: 20; }

/* film-grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { .grain { mix-blend-mode: screen; opacity: .28; } }

/* --------------------------------------------------------------------------
   masthead + nav
   -------------------------------------------------------------------------- */

.masthead {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 0;
}

.masthead__bar {
  border-top: 6px solid var(--ink);
  border-bottom: var(--rule);
  padding: .6rem 0 .8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1.2rem;
}

.masthead__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: .95;
}

.masthead__tagline {
  margin: 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1.1rem;
  padding: .7rem 0 1rem;
  border-bottom: var(--rule);
  font-family: var(--font-mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nav__link { text-decoration: none; padding: .15rem 0; }
.nav__link:hover { text-decoration: underline; text-decoration-color: var(--red); }
.nav__link.is-current { background: var(--ink); color: var(--paper); padding: .15rem .4rem; }

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 3rem;
  border-top: var(--rule);
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1rem;
}
.footer p { margin: 0; }

.strip-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 1.1rem;
  padding-bottom: .35rem;
  border-bottom: var(--rule);
}

/* --------------------------------------------------------------------------
   home — hero
   -------------------------------------------------------------------------- */

.hero { margin-bottom: 3rem; }

.hero__headline {
  font-size: clamp(2.1rem, 7vw, 4rem);
  max-width: 18ch;
  margin-bottom: .5rem;
}
.hero__lede {
  font-size: 1.2rem;
  max-width: var(--measure);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   home — cards
   -------------------------------------------------------------------------- */

.cards {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.6rem;
}

.card {
  border: var(--rule);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:nth-child(3n+1) { transform: rotate(-1deg); }
.card:nth-child(3n+2) { transform: rotate(.6deg); }
.card:hover {
  transform: rotate(0) translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.card__link { display: block; padding: 1.1rem 1.15rem 1.25rem; text-decoration: none; height: 100%; }

.card__cat {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  display: inline-block;
  padding: .12rem .45rem;
  margin-bottom: .55rem;
  color: #fff;
  background: var(--c-misc);
}
.card--music   .card__cat { background: var(--c-music); }
.card--movies  .card__cat { background: var(--c-movies); }
.card--football .card__cat { background: var(--c-football); }

.card--music   { border-color: var(--c-music); }
.card--movies  { border-color: var(--c-movies); }
.card--football { border-color: var(--c-football); }

.card__title { font-size: 1.3rem; margin-bottom: .35rem; }
.card__summary { margin: 0 0 .7rem; font-size: .98rem; color: var(--ink-soft); }
.card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
}

.feed__more {
  font-family: var(--font-mono);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.feed--empty { font-family: var(--font-mono); font-size: .9rem; }

/* --------------------------------------------------------------------------
   home — shelves (books + quote peek)
   -------------------------------------------------------------------------- */

.shelf-row {
  margin-top: 3.5rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .shelf-row { grid-template-columns: 3fr 2fr; }
}
.shelf__body { font-size: 1rem; }
.shelf__body :first-child { margin-top: 0; }
.shelf--quotes .shelf__body { font-family: var(--font-body); font-style: italic; font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   page heads + index lists (archive / category pages)
   -------------------------------------------------------------------------- */

.pagehead { margin-bottom: 2.4rem; }
.pagehead__title { font-size: clamp(2.2rem, 8vw, 3.6rem); text-transform: uppercase; }
.pagehead__blurb { font-size: 1.15rem; color: var(--ink-soft); max-width: var(--measure); font-style: italic; }

.index-list { list-style: none; margin: 0; padding: 0; }
.index-list__row { border-bottom: var(--rule); }
.index-list__row:first-child { border-top: var(--rule); }
.index-list__link {
  display: grid;
  gap: .2rem .9rem;
  padding: 1.1rem .2rem;
  text-decoration: none;
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) {
  .index-list__link { grid-template-columns: minmax(0,1fr) 12rem; align-items: baseline; }
  .index-list__summary { grid-column: 1; }
  .index-list__meta { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
}
.index-list__link:hover .index-list__title { text-decoration: underline; text-decoration-color: var(--red); }
.index-list__title { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; }
.index-list__summary { color: var(--ink-soft); font-size: 1rem; }
.index-list__meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1.5px solid currentColor;
  padding: .05rem .35rem;
  margin-right: .4rem;
  white-space: nowrap;
}
.tag--music { color: var(--c-music); }
.tag--movies { color: var(--c-movies); }
.tag--football { color: var(--c-football); }

.empty, .feed--empty p { font-family: var(--font-mono); font-size: .95rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   single post + prose (shared by posts, lists, pages)
   -------------------------------------------------------------------------- */

.post, .page-doc { max-width: var(--measure); }

.post__head { margin-bottom: 2rem; }
.post__kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  margin: 0 0 .6rem;
}
.post__kicker a { text-decoration: none; padding: .1rem .4rem; background: var(--ink); color: var(--paper); }
.post--music .post__kicker a { background: var(--c-music); }
.post--movies .post__kicker a { background: var(--c-movies); }
.post--football .post__kicker a { background: var(--c-football); }
.post__title { font-size: clamp(2rem, 7vw, 3.2rem); }
.post__meta, .post__tags {
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin: .3rem 0 0;
}
.post__tags .tag { color: var(--ink-soft); }

.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.3rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration-color: var(--red); }

.prose blockquote {
  border-left: 4px solid var(--red);
  padding: .2rem 0 .2rem 1.2rem;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose pre {
  background: var(--paper-deep);
  border: var(--rule);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.5;
}
.prose :not(pre) > code {
  background: var(--paper-deep);
  padding: .1rem .3rem;
  border: 1px solid var(--ink-soft);
}
.prose hr { border: none; border-top: var(--rule); margin: 2.5rem 0; }
.prose img { border: var(--rule); box-shadow: var(--shadow); }

.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1.5px solid var(--ink); padding: .5rem .6rem; text-align: left; }
.prose th { background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   list docs — books & quotes get their own flavour
   -------------------------------------------------------------------------- */

/* Books: a shelf grid of covers */
.books-intro { max-width: var(--measure); margin-bottom: 2.5rem; font-size: 1rem; }
.bookgroup { margin-bottom: 3rem; }

.books {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.book { display: flex; flex-direction: column; }
.book__coverwrap { margin-bottom: .6rem; }
.book__cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: var(--rule);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper-deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.book a:hover .book__cover,
.book__coverwrap:hover .book__cover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.book__cover--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .7rem;
  text-align: center;
}
.book__cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.12;
}
.book__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 0 0 .1rem;
}
.book__author { margin: 0 0 .4rem; font-size: .85rem; font-style: italic; color: var(--ink-soft); }
.book__tags { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.book__tags .tag { margin: 0; font-size: .6rem; padding: .05rem .3rem; }
.tag--rating { color: var(--green); }
.book__note { margin-top: .45rem; font-size: .82rem; color: var(--ink-soft); }
.book__note p { margin: 0; }
.book__confirm {
  display: inline-block;
  color: #fff;
  background: var(--red);
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: 0 .35rem;
  border-radius: 2px;
  vertical-align: middle;
}

/* Home: a little horizontal shelf */
.minishelf {
  list-style: none;
  margin: 0 0 1rem;
  padding: .3rem 0 1.1rem;
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
}
.minishelf__item { flex: 0 0 auto; width: 6.6rem; }
.minishelf a { text-decoration: none; }
.minishelf__cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--paper-deep);
}
.minishelf__cover--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  line-height: 1.08;
}
.minishelf__title {
  display: block;
  margin-top: .35rem;
  font-size: .72rem;
  line-height: 1.2;
  color: var(--ink-soft);
}

/* Quotes: big pull-quotes, alternating colour bars */
.doc-quotes .list-doc__body blockquote {
  border: none;
  border-left: 6px solid var(--red);
  background: var(--paper-deep);
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.6rem;
  font-size: 1.35rem;
}
.doc-quotes .list-doc__body blockquote:nth-of-type(3n+2) { border-left-color: var(--blue); }
.doc-quotes .list-doc__body blockquote:nth-of-type(3n) { border-left-color: var(--green); }
.doc-quotes .list-doc__body blockquote + p {   /* attribution line right after a quote */
  margin: -1.2rem 0 1.8rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pager
   -------------------------------------------------------------------------- */

.pager {
  max-width: var(--measure);
  margin: 3rem 0 0;
  padding-top: 1.2rem;
  border-top: var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.pager a { text-decoration: none; max-width: 45%; }
.pager a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.pager__next { text-align: right; margin-left: auto; }

/* --------------------------------------------------------------------------
   small screens
   -------------------------------------------------------------------------- */

@media (max-width: 34rem) {
  body { font-size: 1.06rem; }
  .wrap { padding-top: 1.8rem; }
  .card:nth-child(n) { transform: none; }
}

/* --------------------------------------------------------------------------
   transitions
   -------------------------------------------------------------------------- */

.pagehead__also {
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pagehead__also a { text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 1px; }

.trans { list-style: none; margin: 0; padding: 0; }

.trans__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .35rem 1rem;
  padding: 1.15rem .5rem;
  border-bottom: var(--rule);
  text-align: center;
}
.trans__row:first-child { border-top: var(--rule); }

.trans__side { flex: 0 1 auto; max-width: 22rem; }
.trans__song {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.trans__song:hover { text-decoration: underline; text-decoration-color: var(--red); }
.trans__artist {
  display: block;
  font-size: .85rem;
  font-style: italic;
  color: var(--ink-soft);
}
.trans__arrow { color: var(--red); font-size: 1.15rem; align-self: center; }

.trans__note {
  flex-basis: 100%;
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.trans__row--flag { background: color-mix(in srgb, var(--red) 7%, transparent); }

.trans__disclaimer {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

@media (max-width: 34rem) {
  .trans__row { justify-content: flex-start; text-align: left; }
  .trans__arrow { transform: rotate(90deg); }
}

/* --------------------------------------------------------------------------
   word library
   -------------------------------------------------------------------------- */

.wl__count {
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-top: .6rem;
}

.wl__rail {
  border: var(--rule);
  box-shadow: var(--shadow);
  background: var(--paper-deep);
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1.6rem;
}

.wl__search {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: .6rem .8rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  outline: none;
}
.wl__search::placeholder { color: var(--ink-soft); font-style: italic; }
.wl__search:focus { border-color: var(--red); }

.wl__filter { margin-top: 1rem; }
.filter-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .03em;
  padding: .28rem .6rem;
  border: 1.5px solid var(--ink-soft);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.chip:hover { border-color: var(--red); }
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.wl__drawer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .4rem;
  margin-bottom: 1.2rem;
  border-bottom: var(--rule);
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wl__tag { color: var(--ink); }
.wl__n { color: var(--ink-soft); }

.wl__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.wordcard {
  position: relative;
  background: var(--paper);
  border: var(--rule);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.wordcard__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  border-bottom: 1px dashed var(--ink-soft);
  padding-bottom: .5rem;
}
.wordcard__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.wordcard__pos {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-style: italic;
  color: var(--red);
  white-space: nowrap;
}
.wordcard__def { margin: 0; font-size: .98rem; line-height: 1.5; }
.wordcard__mood {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--paper);
  background: var(--ink);
  padding: .18rem .45rem;
}
.wordcard__eg {
  margin: 0;
  font-size: .88rem;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 2px solid var(--rule);
  padding-left: .7rem;
  line-height: 1.45;
}

.wl__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   quotes — a commonplace column
   -------------------------------------------------------------------------- */

.quotes {
  max-width: var(--measure);
  margin: 0 auto;
}

.quote {
  margin: 0 0 2.6rem;
  padding-left: 1.3rem;
  border-left: 4px solid var(--red);
}
.quote:nth-of-type(3n+2) { border-left-color: var(--blue); }
.quote:nth-of-type(3n)   { border-left-color: var(--green); }

.quote__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
  text-wrap: pretty;
}
/* long passages dial themselves back a touch */
.quote__text:not(:first-line) { }

.quote__by {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
}
.quote__who { color: var(--ink); }
.quote__who + .quote__work::before { content: " · "; color: var(--ink-soft); }
.quote__work { font-style: normal; }

/* the single quote teased on the home page */
.quote--peek { margin-bottom: 0; }
.quote--peek .quote__text { font-size: 1.4rem; }

@media (max-width: 34rem) {
  .quote__text { font-size: 1.15rem; }
}

/* --------------------------------------------------------------------------
   home — "from the archive" random showcase
   -------------------------------------------------------------------------- */

.sc {
  margin: 2.5rem 0 3rem;
  border: var(--rule);
  box-shadow: var(--shadow);
  background: var(--paper-deep);
  padding: 1rem 1.1rem 1.2rem;
}
.sc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.sc__head .strip-label { border: none; margin: 0; padding: 0; }

.sc__shuffle {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .7rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.sc__shuffle:hover { background: var(--ink); color: var(--paper); }

.sc__slot { margin-top: .9rem; }

.sc__card {
  display: block;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-left-width: 5px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 1.1rem 1.2rem 1.2rem;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sc__card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.sc__card--quote      { border-left-color: var(--red); }
.sc__card--word       { border-left-color: var(--blue); }
.sc__card--book       { border-left-color: var(--green); }
.sc__card--transition { border-left-color: var(--pink); }
.sc__card--thought    { border-left-color: var(--ink); }
.sc__card--show       { border-left-color: var(--purple); }
.sc__card--misc       { border-left-color: var(--yellow); }

.sc__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}

.sc__lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sc__lead--quote {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
}
.sc__pos {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-style: italic;
  color: var(--red);
}
.sc__arrow { color: var(--red); }

.sc__sub {
  margin: .5rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
.sc__meta {
  margin: .55rem 0 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   miscellany — the junk drawer
   -------------------------------------------------------------------------- */

.misc-collection { margin-bottom: 3.5rem; }
.misc-blurb {
  max-width: var(--measure);
  margin: -0.4rem 0 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
}

.misc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.1rem;
}
.misc-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: .6rem .9rem;
}
.misc-item:nth-child(4n+1) { transform: rotate(-1.4deg); }
.misc-item:nth-child(4n+2) { transform: rotate(1deg); }
.misc-item:nth-child(4n+3) { transform: rotate(-0.5deg); }
.misc-item:nth-child(4n)   { transform: rotate(1.6deg); }

@media (max-width: 34rem) {
  .misc-item { transform: none !important; font-size: 1.05rem; }
}

/* --------------------------------------------------------------------------
   marginalia — my own lines (reuses .quotes / .quote)
   -------------------------------------------------------------------------- */

.marg .quote__text { font-style: italic; }
.marg-list {
  margin: .3rem 0 0;
  padding-left: 1.2rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
}
.marg-list li { margin-bottom: .2rem; }

.sc__card--note { border-left-color: var(--green); }

/* Miscellany — plain-list collections (style: list) */
.misc-list--list { display: block; }
.misc-list--list .misc-item {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
  background: none;
  border: none;
  box-shadow: none;
  transform: none !important;
  padding: .18rem 0 .18rem 1.3rem;
  position: relative;
}
.misc-list--list .misc-item::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   letterboxd — recently watched diary
   -------------------------------------------------------------------------- */

.wl__count a { text-decoration-color: var(--red); }

.lblog { display: flex; flex-direction: column; gap: 2.2rem; }

.lbfilm { display: flex; gap: 1.3rem; }
.lbfilm__poster {
  flex: 0 0 110px;
  display: block;
  align-self: flex-start;
}
.lbfilm__poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper-deep);
}
.lbfilm__poster--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .5rem;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.1;
}

.lbfilm__body { flex: 1 1 0; min-width: 0; }
.lbfilm__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 .3rem;
  line-height: 1.1;
}
.lbfilm__title a { text-decoration: none; }
.lbfilm__title a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.lbfilm__year {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.lbfilm__meta {
  margin: 0 0 .6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .7rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.lbfilm__stars { color: var(--red); font-size: 1rem; letter-spacing: .05em; }
.lbfilm__heart { color: var(--red); font-size: 1rem; }
.lbfilm__tag { border: 1.5px solid var(--ink-soft); padding: 0 .35rem; }

.lbfilm__review { font-size: 1rem; }
.lbfilm__review p { margin: 0 0 .7rem; }
.lbfilm__review p:last-child { margin-bottom: 0; }

.sc__card--watched { border-left-color: var(--purple); }

@media (max-width: 34rem) {
  .lbfilm { gap: 1rem; }
  .lbfilm__poster { flex-basis: 80px; }
  .lbfilm__title { font-size: 1.15rem; }
}

/* showcase — a whole list-style collection in one card (e.g. the Subway order) */
.sc__card--misc-list { border-left-color: var(--yellow); }
.sc__list {
  list-style: none;
  margin: .1rem 0 0;
  padding: 0;
  max-height: 8.5rem;
  overflow-y: auto;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
}
.sc__list li {
  padding: .1rem 0 .1rem 1rem;
  position: relative;
}
.sc__list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   spotify — on rotation
   -------------------------------------------------------------------------- */

.sp-artists {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
}
.sp-artist a { display: block; text-decoration: none; }
.sp-artist img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper-deep);
}
.sp-artist__name {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
}
.sp-artist__genres {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin-top: .15rem;
}

.sp-tracks {
  margin: 0;
  padding-left: 1.6rem;
  max-width: var(--measure);
}
.sp-tracks li { margin-bottom: .45rem; }
.sp-tracks a { text-decoration: none; }
.sp-tracks a:hover .sp-track__name { text-decoration: underline; text-decoration-color: var(--red); }
.sp-track__name { font-weight: 600; }
.sp-track__artist { color: var(--ink-soft); font-size: .95rem; }
.sp-tracks--recent { max-height: 32rem; overflow-y: auto; }

.sp-playlists {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}
.sp-playlist a { display: block; text-decoration: none; }
.sp-playlist img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper-deep);
}
.sp-playlist__name {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.12;
}
.sp-playlist__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink-soft);
  margin-top: .2rem;
}

.sc__card--track { border-left-color: var(--pink); }

/* letterboxd — "5 off the watchlist" pick box */
.wl-pick-box { margin-bottom: 3rem; }
.wl-pick {
  list-style: none;
  margin: .9rem 0 0;
  padding: 0;
}
.wl-pick li {
  padding: .35rem 0;
  border-bottom: 1px dashed var(--ink-soft);
}
.wl-pick li:last-child { border-bottom: none; }
.wl-pick a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wl-pick a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.wl-pick__year {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}

/* spotify — playlist tiles that open a player */
.sp-pl-hint {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin: -0.4rem 0 .4rem;
}
.sp-pl-note {
  max-width: var(--measure);
  margin: 0 0 1.3rem;
  padding-left: .8rem;
  border-left: 3px solid var(--pink);
  font-style: italic;
  font-size: .95rem;
  color: var(--ink-soft);
}
.sp-pl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
}
.sp-pl { display: block; text-decoration: none; }
.sp-pl__cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper-deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.sp-pl:hover .sp-pl__cover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.sp-pl.is-open .sp-pl__cover {
  border-color: var(--pink);
  box-shadow: 4px 4px 0 var(--pink);
}
.sp-pl__cover--blank { border-style: dashed; }
.sp-pl__title {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.15;
  color: var(--ink);
}

.sp-pl-player { margin-top: 1.8rem; }
.sp-embed {
  display: block;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: 12px;
  background: var(--paper-deep);
}

/* --------------------------------------------------------------------------
   watchlist — the full Letterboxd watchlist, browsable
   -------------------------------------------------------------------------- */

.chip--pick { border-color: var(--red); color: var(--red); font-weight: 600; }
.chip--pick:hover { background: var(--red); color: #fff; border-color: var(--red); }

.wfilm-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}
.wfilm a {
  display: block;
  height: 100%;
  padding: .9rem 1rem 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-left-width: 5px;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.wfilm a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.wfilm__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wfilm__year {
  display: block;
  margin-top: .25rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-soft);
}
.wfilm.is-pick a {
  border-color: var(--red);
  border-left-color: var(--red);
  box-shadow: 6px 6px 0 var(--red);
  background: color-mix(in srgb, var(--red) 8%, var(--paper));
}

.sc__card--towatch { border-left-color: var(--purple); }

@media (max-width: 34rem) {
  .wfilm-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .wfilm a { padding: .7rem .75rem .8rem; }
  .wfilm__title { font-size: .95rem; }
}

/* --------------------------------------------------------------------------
   home — glimpses into the rest of the site
   -------------------------------------------------------------------------- */

/* On rotation — a little chart */
.hp-tracks {
  list-style: none;
  counter-reset: hp;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}
.hp-tracks li {
  counter-increment: hp;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .1rem .6rem;
  align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--ink-soft);
}
.hp-tracks li:last-child { border-bottom: none; }
.hp-tracks li::before {
  content: counter(hp);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--red);
}
.hp-track__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.hp-track__by { grid-column: 2; font-style: italic; color: var(--ink-soft); font-size: .95rem; }

/* Last thing I watched — a feature strip */
.hp-watch { display: flex; gap: 1.4rem; align-items: flex-start; }
.hp-watch__poster { flex: 0 0 120px; display: block; }
.hp-watch__poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--paper-deep);
}
.hp-watch__body { flex: 1 1 0; min-width: 0; max-width: var(--measure); }
.hp-watch__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 .3rem;
}
.hp-watch__title a { text-decoration: none; }
.hp-watch__title a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.hp-watch__year { font-family: var(--font-mono); font-size: .82rem; font-weight: 400; color: var(--ink-soft); }
.hp-watch__meta { margin: 0 0 .6rem; color: var(--red); font-size: 1.05rem; letter-spacing: .05em; }
.hp-watch__heart { color: var(--red); }
.hp-watch__excerpt { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }

/* Off the watchlist — a scatter of titles */
.hp-wl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem .8rem;
}
.hp-wl a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 2px solid var(--purple);
  padding-bottom: 1px;
}
.hp-wl a:hover { border-bottom-color: var(--red); }
.hp-wl__year { font-family: var(--font-mono); font-size: .72rem; font-weight: 400; color: var(--ink-soft); }

/* Two-up: a word / from the margins */
.hp-two {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 46rem) { .hp-two { grid-template-columns: 1fr 1fr; } }
.hp-two__box {
  display: block;
  background: var(--paper);
  border: var(--rule);
  border-left-width: 5px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1.3rem;
  text-decoration: none;
}
.hp-two__box:nth-child(1) { border-left-color: var(--blue); }
.hp-two__box:nth-child(2) { border-left-color: var(--green); }
.hp-two__box:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.hp-two__box { transition: transform .12s ease, box-shadow .12s ease; }
.hp-word__term {
  margin: .5rem 0 .3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.hp-word__def { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.hp-line__text {
  margin: .5rem 0 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
}

@media (max-width: 34rem) {
  .hp-watch { gap: 1rem; }
  .hp-watch__poster { flex-basis: 90px; }
  .hp-watch__title { font-size: 1.3rem; }
}
