/* Burnt Offerings. The skin-1 look (design-studies/skin-1), one mode.
   One hue for the ground: the chrome dark and most saturated, the cards the
   least, the well between. White ink and a quieter second ink. The teal is the
   one thing that asks (the megaphone, the door, the player). Site face is what
   the machine says; author face is what he wrote. Neither is the wordmark's. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/manrope.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/bitter.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/fonts/bitter-italic.woff2") format("woff2"); }

:root {
  --chrome: #3A425F;
  --controls: #2B3046;
  --card: #1C1D21;
  --well: #262936;
  --pic: #2A2C32;
  --ink: #FFFFFF;
  --mid: #ACB1C3;
  --ask: #24605C;
  --pending: #E7C2A4;
  --surround: #111111;
  --site: "Manrope", system-ui, sans-serif;
  --author: "Bitter", Georgia, serif;
  --col: 412px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top-h: 214px;
  --snav-h: calc(96px + env(safe-area-inset-bottom));
  color-scheme: dark;
}
body.no-pnav { --top-h: 160px; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--surround); scroll-padding-top: calc(var(--top-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto; max-width: var(--col); min-height: 100vh; min-height: 100dvh;
  background: var(--well); color: var(--ink);
  font-family: var(--site);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
[hidden], [data-hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- the top: a header that morphs, and the page nav under it ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; max-width: var(--col); margin: 0 auto; z-index: 4; }
.hx {
  position: relative;
  height: 160px; padding: 16px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--chrome); color: var(--ink);
  transition: height .26s var(--ease);
}
.hx .lines {
  flex: 1; min-width: 0; height: 128px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 12px;
  padding-top: 3px;
  transition: height .26s var(--ease), padding-top .26s var(--ease), gap .26s var(--ease);
}
.compact .hx { height: 96px; }
.compact .hx .lines { height: 64px; justify-content: center; gap: 6px; padding-top: 0; }

/* the photo square: his face, rotating; tap or swipe for the next */
.shot {
  position: relative; flex: none; width: 128px; height: 128px;
  background: var(--pic); overflow: hidden; cursor: pointer;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: width .26s var(--ease), height .26s var(--ease);
}
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; opacity: 0; transition: opacity 1.6s ease;
  pointer-events: none; -webkit-user-drag: none;
}
.shot img.on { opacity: 1; }
.compact .shot { width: 64px; height: 64px; }

.brand { margin: 0; line-height: 0; }
.brand img { display: block; height: 28px; width: auto; transition: height .26s var(--ease); }
.compact .brand img { height: 24px; }
.tag { margin: 0; font: 400 18px/1.3 var(--author); white-space: nowrap; transition: font-size .26s var(--ease); }
.tag i { margin-left: 8px; }
.compact .tag { font-size: 15px; }

/* site pages and entries: the brand is the eyebrow, the title is in his face */
.eyebrow { margin: 0; line-height: 0; }
.eyebrow img { height: 14px; width: auto; display: block; }
.title { margin: 0; font: 600 26px/1.1 var(--author); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: font-size .26s var(--ease); }
.hx.site .lines { justify-content: center; gap: 10px; }
.hx.entry .lines { gap: 8px; padding-top: 2px; }
.compact .hx .lines { gap: 6px; }
.compact .title { font-size: 19px; display: block; white-space: nowrap; text-overflow: ellipsis; }

/* the megaphone: the announcement hung under the name */
.mega {
  position: absolute; left: 160px; right: 16px; top: 104px; height: 40px; padding: 0 12px;
  display: flex; align-items: center; gap: 10px; overflow: hidden;
  border: 0; border-radius: 0; background: var(--ask); color: var(--pending);
  font: 600 15px/1 var(--site); letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer;
  transition: left .26s var(--ease), top .26s var(--ease), padding .26s var(--ease);
}
.mega svg { width: 22px; height: 22px; flex: none; }
.mega .say, .mega .hush { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .16s ease; }
.mega .hush { display: none; }
.mega .when { white-space: nowrap; font: 500 15px/1 var(--site); letter-spacing: .03em; text-transform: none; opacity: .8; transition: opacity .16s ease; }
.compact .mega { left: calc(100% - 56px); top: 28px; padding: 0 9px; }
.compact .mega .say, .compact .mega .hush, .compact .mega .when { opacity: 0; }
.mega.unseen .say, .mega.unseen .when, .mega.unseen svg { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.open .mega .say { display: none; }
.open .mega .hush { display: block; }

/* page nav: hugs its words */
.pnav {
  position: relative; height: 54px; padding: 16px;
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--controls); color: var(--ink);
  font: 400 17px/22px var(--site);
}
.open .pnav { visibility: hidden; }
.pair { display: flex; gap: 12px; }
.pair button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--mid);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.pair button[aria-checked="true"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.pnav .more { margin-left: auto; color: var(--mid); white-space: nowrap; }
.pnav.tabs { padding: 14px 16px 0; gap: 16px; align-items: stretch; }
.pnav.tabs a { flex: 1; text-align: center; color: var(--mid); border-bottom: 3px solid rgb(255 255 255 / .18); padding-bottom: 10px; }
.pnav.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

/* the rails cast a shadow onto the well */
.pnav::after, .snav::before { content: ""; position: absolute; left: 0; right: 0; height: 22px; pointer-events: none; z-index: 1; }
.pnav::after { top: 100%; background: linear-gradient(rgb(0 0 0 / .5), rgb(0 0 0 / 0)); }
.snav::before { bottom: 100%; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .5)); }
.no-pnav .hx::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none; background: linear-gradient(rgb(0 0 0 / .5), rgb(0 0 0 / 0)); }

/* ---------- the site nav, fixed at the foot ---------- */
.snav {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: var(--col); margin: 0 auto; z-index: 5;
  height: var(--snav-h);
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-around;
  background: var(--controls);
}
.snav a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; font: 400 17px/1.2 var(--site); color: var(--mid); }
.snav a[aria-current] { font-weight: 600; color: var(--ink); }
.snav svg { width: 26px; height: 26px; }
.snav .who { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { padding: calc(var(--top-h) + 8px) 0 calc(var(--snav-h) + 24px); }
/* a short page still fills the phone: the last card runs to the site nav */
body.no-pnav main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding-bottom: var(--snav-h); }
body[data-page="item"] main { padding-bottom: var(--snav-h); }
body.no-pnav main > .sect:last-child, body.no-pnav main > .sub-state { flex: 1 0 auto; margin-bottom: 0; }

/* ---------- the list: one card per entry ---------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.list[data-state="done"] > [data-state="wip"], .list[data-state="wip"] > [data-state="done"] { display: none; }
.item { position: relative; display: flex; flex-direction: column; background: var(--card); color: var(--ink); }
.sq { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 21 / 9; overflow: hidden; background: var(--pic); color: var(--mid); }
.sq svg { width: 40px; height: 40px; }
.sq img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.item > .right { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 16px; }
.item .upper { display: flex; gap: 16px; align-items: flex-start; }
.item .desc { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; font: 600 24px/1.2 var(--author); }
.themes { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.themes i { font: 400 18px/1.3 var(--author); font-style: normal; color: var(--mid); }
.themes i::before { content: "#"; opacity: .6; margin-right: 1px; }
.item .sort { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 4px; font: 500 17px/1 var(--site); letter-spacing: .02em; color: var(--mid); white-space: nowrap; }
.item .likes { display: inline-flex; align-items: center; gap: 4px; }
.item .likes svg { width: 18px; height: 18px; }
.item .likes b { font-weight: 500; }
.media { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.media i { display: inline-flex; align-items: center; gap: 6px; font: 500 17px/1 var(--site); font-style: normal; letter-spacing: .01em; color: var(--mid); white-space: nowrap; }
.media i svg { width: 24px; height: 24px; padding: 3px; border-radius: 50%; border: 1.5px solid var(--mid); flex: none; }

/* ---------- an entry: the cover, the actions, the reading ---------- */
.cover { position: relative; flex: none; display: grid; place-items: center; width: 128px; height: 128px; overflow: hidden; background: var(--pic); color: var(--mid); transition: width .26s var(--ease), height .26s var(--ease); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.cover svg { width: 44px; height: 44px; }
.compact .cover { width: 64px; height: 64px; }
.compact .cover svg { width: 28px; height: 28px; }
.cover .disc { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--ask); color: var(--pending); box-shadow: 0 4px 18px rgb(0 0 0 / .45); display: grid; place-items: center; transition: transform .26s var(--ease); }
.cover .disc::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent currentColor; margin-left: 5px; }
.compact .cover .disc { transform: scale(.6); }
.playing .cover .disc::after { border: 0; width: 20px; height: 24px; border-left: 7px solid currentColor; border-right: 7px solid currentColor; margin: 0; }

.acts { display: flex; gap: 8px; }
.acts > * {
  flex: 1; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 0; background: rgb(255 255 255 / .09); color: var(--ink);
  font: 600 15px/1 var(--site); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.acts svg { width: 22px; height: 22px; flex: none; }
.acts > [aria-pressed="true"] { background: rgb(255 255 255 / .2); }
.hx .acts { position: absolute; left: 160px; right: 16px; top: 104px; transition: opacity .16s ease; }
.hx .acts span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hx .acts .heart-count { font: 600 15px/1 var(--site); }
.compact .hx .acts { opacity: 0; pointer-events: none; }
.more-acts { position: absolute; right: 16px; top: 28px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: rgb(255 255 255 / .09); color: var(--ink); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .16s ease .1s; }
.more-acts svg { width: 20px; height: 20px; transition: transform .2s ease; }
.compact .more-acts { opacity: 1; pointer-events: auto; }
.more-acts[aria-expanded="true"] { background: rgb(255 255 255 / .18); }
.more-acts[aria-expanded="true"] svg { transform: rotate(180deg); }
.acts.row { padding: 12px 16px; background: var(--controls); }

.about { margin: 0; padding: 20px 20px 32px; background: var(--card); color: var(--ink); min-height: calc(100vh - var(--top-h) - var(--snav-h) - 8px); min-height: calc(100dvh - var(--top-h) - var(--snav-h) - 8px); }
.pull { margin: 0 0 10px; font: 600 21px/1.3 var(--author); }
.where { margin: 0 0 20px; font: 500 17px/1.4 var(--site); letter-spacing: .02em; color: var(--mid); }
.door { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 24px; padding: 16px; background: var(--ask); color: var(--pending); font: 600 17px/1.2 var(--site); letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.door svg { width: 24px; height: 24px; flex: none; }
.lead { margin: 0 -20px 24px; }
.lead img { display: block; width: 100%; height: auto; }
.the-thing { margin-top: 8px; }

/* the reading: his words at a size for a phone in a hand */
.prose { font: 400 18px/1.55 var(--author); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose pre { margin: 0 0 18px; }
.prose h2 { margin: 32px 0 10px; font: 600 24px/1.2 var(--author); }
.prose h3 { margin: 28px 0 8px; font: 600 15px/1.2 var(--site); letter-spacing: .1em; text-transform: uppercase; color: var(--mid); }
.prose h4 { margin: 24px 0 6px; font: 600 18px/1.3 var(--author); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--mid); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 0 0 6px; }
.prose blockquote { padding-left: 14px; border-left: 3px solid var(--mid); color: var(--ink); }
.prose hr { border: 0; height: 1px; margin: 28px 0; background: rgb(255 255 255 / .16); }
.prose figure { margin: 24px -20px; }
.prose figure img, .prose > p > img { display: block; width: 100%; height: auto; }
.prose figcaption { padding: 8px 20px 0; font: 400 15px/1.4 var(--site); color: var(--mid); }
.prose code { font: 400 15px/1.4 ui-monospace, monospace; }
.prose em, .prose i { font-style: italic; }
.prose strong { font-weight: 600; }

/* the player: rises over the site nav while it plays */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: var(--col); margin: 0 auto; z-index: 6;
  height: var(--snav-h); padding: 0 16px env(safe-area-inset-bottom);
  display: flex; align-items: center; gap: 16px;
  background: var(--ask); color: var(--ink);
  transform: translateY(100%); visibility: hidden;
  transition: transform .26s var(--ease), visibility 0s .26s;
}
.playing .player { transform: none; visibility: visible; transition: transform .26s var(--ease); }
.pp { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: var(--ask); display: grid; place-items: center; cursor: pointer; flex: none; }
.pp i { width: 14px; height: 16px; border-left: 5px solid currentColor; border-right: 5px solid currentColor; }
.np { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.np b { font: 600 18px/1.2 var(--author); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np .bar { display: block; height: 3px; background: rgb(255 255 255 / .25); }
.np .bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .25s linear; }
.time { font: 500 17px/1 var(--site); letter-spacing: .03em; opacity: .85; white-space: nowrap; }

/* ---------- the announcement: a sheet from under the header to the site nav ---------- */
.sheet {
  position: fixed; left: 0; right: 0; max-width: var(--col); margin: 0 auto; z-index: 3;
  top: var(--sheet-top, 160px); bottom: var(--snav-h);
  background: var(--chrome); overflow-y: auto; cursor: pointer;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .34s var(--ease), visibility 0s .34s;
}
.open .sheet { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .34s var(--ease); }
body.open { overflow: hidden; }
.ann { background: var(--card); }
.ann > img { display: block; width: 100%; height: auto; }
.inset { padding: 16px 20px 20px; }

/* ---------- the site pages: explore, my quest, support, subscribe ---------- */
.sect { margin: 0 0 20px; padding: 20px 20px 24px; background: var(--card); color: var(--ink); }
.sect:last-child { margin-bottom: 0; }
.sect h2 { margin: 0 0 12px; font: 600 24px/1.2 var(--author); }
.sect h3 { margin: 24px 0 8px; font: 600 15px/1.2 var(--site); letter-spacing: .1em; text-transform: uppercase; color: var(--mid); }
.sect > p { margin: 0 0 14px; font: 400 18px/1.5 var(--author); }
.sect > p.where { font: 500 17px/1.4 var(--site); }
.draft-mark { font-style: italic; }
.free { font-weight: 600; }

.explore-head { padding-bottom: 12px; }
.search input, .sect input[type="email"], .sect input[type="text"] {
  width: 100%; padding: 14px; border: 0; border-radius: 0; background: rgb(255 255 255 / .08); color: var(--ink);
  font: 400 18px/1.2 var(--author);
}
.search input::placeholder { color: var(--mid); }
.kinds { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kinds button {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px;
  border: 0; background: rgb(255 255 255 / .07); color: var(--mid); text-align: left; cursor: pointer;
}
.kinds button b { font: 600 20px/1.2 var(--author); color: var(--ink); }
.kinds button .count { font: 500 17px/1.2 var(--site); }
.kinds button[aria-pressed="true"] { background: rgb(255 255 255 / .2); }
.result-count { margin: 12px 0 0 !important; font: 500 17px/1.3 var(--site) !important; color: var(--mid); }
.empty { font: 400 18px/1.5 var(--author); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px;
  border: 0; border-radius: 0; background: var(--ask); color: var(--pending); cursor: pointer;
  font: 600 17px/1 var(--site); letter-spacing: .04em; text-transform: uppercase;
}
.btn:disabled { opacity: .6; }
.linkish { padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sub-form, .name-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.sub-form .where { margin: 6px 0 0; }
.ask { display: block; font: 600 20px/1.3 var(--author); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub-status { margin: 12px 0 0; font: 500 17px/1.4 var(--site); color: var(--pending); }
.sub-status:empty { display: none; }
.choices { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; background: rgb(255 255 255 / .07); cursor: pointer; }
.choice input { grid-row: span 2; width: 20px; height: 20px; margin: 0; accent-color: var(--ask); }
.choice-name { font: 600 18px/1.2 var(--site); }
.choice-why { font: 400 16px/1.35 var(--author); color: var(--mid); }
.name-form { margin-top: 20px; }

.tips { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; background: rgb(255 255 255 / .07); }
.tip-name { font: 600 18px/1.2 var(--site); min-width: 80px; }
.tip-handle { font: 400 17px/1.3 var(--author); }
.tip-handle a { text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; gap: 6px; width: 100%; }
.chips a { flex: 1; padding: 10px 0; text-align: center; background: var(--ask); color: var(--pending); font: 600 16px/1 var(--site); }
.copy-btn { padding: 6px 10px; border: 0; background: rgb(255 255 255 / .14); color: var(--ink); font: 600 14px/1 var(--site); cursor: pointer; }
.tip[data-state="placeholder"] { opacity: .45; pointer-events: none; }
.tip-note { font: 500 14px/1 var(--site); color: var(--mid); }
.ledger { width: 100%; border-collapse: collapse; font: 400 15px/1.35 var(--site); }
.ledger th { text-align: left; font-weight: 600; color: var(--mid); padding: 6px 6px 6px 0; border-bottom: 1px solid rgb(255 255 255 / .16); }
.ledger td { padding: 8px 6px 8px 0; vertical-align: top; border-bottom: 1px solid rgb(255 255 255 / .08); }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger .causes { color: var(--mid); }

@media (prefers-reduced-motion: reduce) {
  .shot img, .hx, .hx *, .mega, .sheet, .open .sheet, .player, .cover, .more-acts { transition: none !important; }
  .mega.unseen .say, .mega.unseen .when, .mega.unseen svg { animation: none; }
}
