/* My Ghost Vapes
   The wall is a photograph. Everything else stays out of its way:
   one typeface (Archivo, run condensed and heavy for headings, regular for
   reading), tar, kraft, and one accent color pulled from the paint. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-standard-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --tar: #1b1612;
  --white: #f6f1e7;
  --kraft: #cdb992;
  --mud: #4b3a2a;
  --pink: #ff5fa2;        /* the paint */
  --pink-deep: #a3155a;   /* the same pink, dark enough to read on kraft */

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 44px);
  --page: 1180px;
  --measure: 40rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--tar);
  color: var(--tar);
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 1.1875rem; } }

img, svg, iframe, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  background: var(--white); color: var(--tar);
  padding: .5rem .9rem; font-weight: 700; text-decoration: none;
}
.skip:focus { top: .5rem; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }

/* heavy condensed setting used for every heading */
.brand, .h, .title, .hero__line, .hero__since, .bill__title, .sections__name,
.pager strong, .empty strong, .prose h2, .prose h3 {
  font-stretch: 70%;
  font-weight: 900;
  letter-spacing: -.005em;
}

/* ---------- top strip ---------- */

.strip { background: var(--tar); color: var(--white); }
.strip__in {
  display: flex; align-items: center; gap: .6rem 2rem; flex-wrap: wrap;
  padding-block: .7rem;
}
.brand {
  font-size: 1.5rem; line-height: 1; letter-spacing: .01em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.brand__my { color: var(--pink); }
.nav { margin-left: auto; min-width: 0; }
.nav ul {
  display: flex; gap: .25rem 1.35rem; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  display: inline-block; padding: .3rem 0;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--white); }
.nav a[aria-current="page"] { border-bottom-color: var(--pink); }
@media (max-width: 719px) {
  .nav { margin-left: 0; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { flex-wrap: nowrap; white-space: nowrap; }
}

/* ---------- home: the wall ---------- */

.hero { background: #120d0a; color: var(--white); }
.hero picture { display: block; }
.hero__img {
  display: block; width: 100%; height: auto;
  max-height: 82vh; object-fit: cover; object-position: 50% 60%;
}
@media (max-width: 700px) {
  .hero__img { max-height: none; }
}
.hero__band { background: var(--tar); border-top: 6px solid var(--pink); }
.hero__in {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .3rem 2.5rem; padding-block: 1.1rem 1.25rem;
}
.hero__line { margin: 0; max-width: 26em; font-size: clamp(1.35rem, 2.9vw, 2.1rem); line-height: 1.12; text-wrap: balance; }
.hero__since { margin: 0; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.12; color: var(--pink); white-space: nowrap; }

/* ---------- inner pages: bare wall behind the title ---------- */

.wall {
  position: relative;
  color: var(--white);
  background: #3b1f17 url("/assets/img/wall-bare.jpg") 50% 34% / cover no-repeat;
  padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(2.4rem, 5.5vw, 4rem);
}
.wall::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 12, 9, .78), rgba(18, 12, 9, .62) 55%, rgba(18, 12, 9, .8));
}
.wall > * { position: relative; }
.wall--tall { padding-block: clamp(4rem, 12vw, 9rem); }

.title {
  margin: 0;
  font-size: clamp(2.5rem, 7.4vw, 5.2rem);
  line-height: .96;
  text-wrap: balance;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}
.title--sign { font-size: clamp(3.6rem, 14vw, 10rem); line-height: .86; text-transform: uppercase; }
.dek {
  margin: 1rem 0 0;
  max-width: 32em;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.38;
  text-wrap: pretty;
}
.meta { margin: 1.2rem 0 0; font-size: .95rem; font-weight: 600; }

.stickers { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.sticker {
  display: inline-block;
  background: var(--tar); color: var(--white);
  font-size: .8rem; font-weight: 700; line-height: 1;
  padding: .5em .7em .46em;
  border-radius: 3px;
  text-decoration: none; white-space: nowrap;
  transform: rotate(-1.4deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}
li:nth-child(even) > .sticker { transform: rotate(1.1deg); }
a.sticker:hover { background: var(--pink); color: var(--tar); }
.sticker--draft { background: var(--pink); color: var(--tar); }
.wall .sticker { background: var(--white); color: var(--tar); }
.wall a.sticker:hover { background: var(--pink); }
.wall .sticker--draft { background: var(--pink); }

/* ---------- the kraft ground ---------- */

.kraft {
  position: relative;
  background: var(--kraft) url("/assets/kraft.svg") 0 0 / 360px 360px;
  padding-block: clamp(2.4rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem);
}

.h { margin: 0 0 .8rem; font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1; }

.home { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 940px) {
  .home { grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); align-items: start; }
}

/* the bill: posts listed the way a show poster lists the night */
.bill { list-style: none; margin: 0; padding: 0; border-top: 8px solid var(--tar); }
.bill__row {
  display: grid; gap: .5rem 1.4rem;
  grid-template-columns: minmax(0, 1fr);
  padding: 1.2rem 0 1.3rem;
  border-bottom: 3px solid var(--tar);
}
.bill__where { display: flex; flex-wrap: wrap; gap: .45rem; align-content: start; padding-top: .25rem; }
.bill__title { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1; text-wrap: balance; }
.bill__title a { text-decoration: none; }
.bill__title a:hover { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .1em; text-decoration-color: var(--pink-deep); }
.bill__dek { margin: .5rem 0 0; max-width: 36em; line-height: 1.45; color: #2b231c; }
.bill__when { font-size: .88rem; font-weight: 700; color: var(--mud); white-space: nowrap; }
@media (min-width: 640px) {
  .bill__row { grid-template-columns: 7.5rem minmax(0, 1fr) auto; }
  .bill__where { flex-direction: column; align-items: flex-start; }
  .bill__when { padding-top: .45rem; }
}
.bill--first .bill__row:first-child .bill__title { font-size: clamp(2.1rem, 4.8vw, 3.3rem); }

.empty { border-top: 8px solid var(--tar); border-bottom: 3px solid var(--tar); padding: 1.5rem 0 1.7rem; }
.empty p { margin: 0; max-width: 30em; }
.empty p + p { margin-top: .6rem; }
.empty strong { font-size: 1.9em; line-height: 1; display: block; }
.empty a { text-decoration-thickness: 3px; text-underline-offset: .2em; text-decoration-color: var(--pink-deep); }

.sections { list-style: none; margin: 0; padding: 0; border-top: 8px solid var(--tar); }
.sections li { padding: .8rem 0 .9rem; border-bottom: 3px solid var(--tar); }
.sections__name { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.5rem; line-height: 1.05; }
.sections__name a { text-decoration: none; }
.sections__name a:hover { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .1em; text-decoration-color: var(--pink-deep); }
.sections__count { font-stretch: 100%; font-size: .82rem; font-weight: 700; letter-spacing: 0; color: var(--mud); white-space: nowrap; }
.sections p { margin: .3rem 0 0; font-size: .95rem; line-height: 1.45; color: #2b231c; }

.more { margin: 1.6rem 0 0; font-weight: 700; }

/* ---------- post body ---------- */

.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.2em; }
.prose p { text-wrap: pretty; }
.prose > p:first-of-type { font-size: 1.14em; line-height: 1.55; font-weight: 500; }
.prose h2 { margin-top: 1.9em; font-size: 2em; line-height: 1; text-wrap: balance; }
.prose h3 { margin-top: 1.7em; font-size: 1.45em; line-height: 1.1; font-weight: 800; }
.prose h4 { margin-top: 1.6em; font-size: 1em; font-weight: 800; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .55em; }
.prose a { text-decoration-line: underline; text-decoration-thickness: 3px; text-underline-offset: .2em; text-decoration-color: var(--pink-deep); overflow-wrap: anywhere; }
.prose a:hover { background: rgba(255, 95, 162, .35); }
.prose strong { font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { font-weight: 800; }
.prose blockquote { margin-inline: 0; padding: .1em 0 .1em 1.1em; border-left: 8px solid var(--tar); font-style: italic; font-weight: 500; }
.prose blockquote > * + * { margin-top: .8em; }
.prose hr { border: 0; height: 8px; width: 5rem; background: var(--tar); margin: 2.4em 0; }
.prose figure { margin-inline: 0; }
.prose img { display: block; width: 100%; border: 3px solid var(--tar); }
.prose figcaption { margin-top: .55em; font-size: .88em; font-weight: 600; color: var(--mud); line-height: 1.45; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; background: rgba(27, 22, 18, .1); padding: .1em .32em; border-radius: 3px; }
.prose pre { overflow-x: auto; background: var(--tar); color: var(--white); padding: 1em 1.1em; border-radius: 3px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose iframe { display: block; width: 100%; border: 3px solid var(--tar); }
.prose h2.sources-h { margin-top: 2.4em; padding-top: .9em; border-top: 3px solid var(--tar); font-size: 1.45em; }
.prose ul.sources { list-style: square; font-size: .92em; line-height: 1.5; color: #2b231c; }

.pager { display: grid; gap: 0; margin-top: clamp(2.6rem, 6vw, 4rem); border-top: 8px solid var(--tar); }
.pager a { display: block; padding: .95rem 0 1.05rem; border-bottom: 3px solid var(--tar); text-decoration: none; }
.pager span { display: block; font-size: .85rem; font-weight: 700; color: var(--mud); }
.pager strong { display: block; font-size: 1.6rem; line-height: 1.05; }
.pager a:hover strong { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .1em; text-decoration-color: var(--pink-deep); }

/* ---------- backlog preview only ---------- */

.previewbar { background: var(--pink); color: var(--tar); font-size: .9rem; font-weight: 700; padding: .5rem 0; line-height: 1.4; }
.notes { background: var(--tar); color: var(--white); padding: 1.1rem 1.25rem 1.25rem; border-radius: 3px; font-size: .9em; line-height: 1.5; }
.notes h2 { margin: 0 0 .5rem; font-size: 1.05em; font-stretch: 100%; font-weight: 800; letter-spacing: 0; line-height: 1.3; color: var(--pink); }
.notes p { margin: 0; white-space: pre-wrap; }
mark.todo { background: var(--pink); color: var(--tar); padding: .08em .3em; border-radius: 3px; font-weight: 700; font-style: normal; }

/* ---------- foot ---------- */

.foot { background: var(--tar); color: var(--white); padding-block: 2.4rem 3rem; font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; align-items: baseline; justify-content: space-between; }
.foot ul { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; list-style: none; margin: 0; padding: 0; }
.foot a { text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: var(--pink); }
.foot a:hover { color: var(--pink); }
.foot p { margin: 0; opacity: .85; }

@media print {
  .strip, .foot, .hero, .pager, .previewbar, .notes { display: none; }
  .wall, .kraft { background: none; color: #000; padding-block: 1rem; }
  .wall::before { display: none; }
  .title { text-shadow: none; }
}
