/* not yet dead — deliberately plain. the page is one picture: sky, a horizon, the ground. */

:root {
  --bg: #1c1a17;
  --bg-2: #24211d;
  --ink: #d6cfc0;
  --dim: #8f887a;
  --accent: #c47a3a;
  --line: #3a3631;
  --paper: #e9e2d2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover, a:focus-visible { border-bottom-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::selection { background: var(--accent); color: var(--bg); }

/* layout */

.top, .sky section, main, footer {
  max-width: 38rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* the sky — cream fading to grey towards the horizon. header and hero sit on it in dark ink. */

.sky {
  --ink: #2a2622;
  --dim: #6b6356;
  --line: rgb(42 38 34 / .2);
  --paper: #f3ede0;
  --bg: #d9d2c2;
  --bg-2: #cfc8b8;
  color: var(--ink);
  background: linear-gradient(#e6dfcf, #d6cfc0 55%, #bdb5a6);
  color-scheme: light;
}
.sky ::selection { background: var(--accent); color: var(--paper); }
.sky .hero { padding-bottom: 0; }
.sky #about { padding-top: 1.5rem; padding-bottom: 0; border-top: 0; }

.horizon {
  display: block;
  width: 100%;
  height: clamp(7rem, 18vw, 13rem);
  margin-top: -1rem;
}

/* grain over the whole picture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.25rem .5rem;
  font-size: .9375rem;
}
.top .logo { color: var(--ink); }
.top nav { display: flex; gap: .9rem; align-items: center; color: var(--dim); }
.top nav a { color: var(--dim); border: 0; display: inline-flex; }
.top nav a:hover, .top nav a:focus-visible { color: var(--ink); }
.top nav svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

section { padding-block: 3rem 1rem; }
section + section { border-top: 1px solid var(--line); }
main > section:first-child { padding-top: 1.5rem; }

footer {
  padding-block: 3rem 2.5rem;
  color: var(--dim);
  font-size: .875rem;
}
footer p { margin: 0; }

/* type */

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
h1 { font-size: 2.25rem; margin-top: 2rem; }
h2 { font-size: 1.5rem; margin-top: .5rem; }
h3 { font-size: 1.25rem; }
h2 + h2, p + h2 { margin-top: 2.5rem; }

p { margin: 0 0 1.1rem; }
em { color: var(--paper); font-style: italic; }

.sky em { color: var(--ink); }
.dim { color: var(--dim); }
.cta { font-size: 1.125rem; }
.kind { color: var(--dim); font-size: .875em; }
.status { color: var(--dim); font-style: italic; margin-top: -.5rem; }
.links a + a { margin-left: .25rem; }

/* photos — meant to look like they've been in a drawer */

.photo {
  margin: 2rem 0 1.5rem;
  position: relative;
  max-width: 100%;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  filter: contrast(.82) saturate(.55) sepia(.18) brightness(.92);
  border: 6px solid var(--paper);
  border-bottom-width: 18px;
  box-shadow: 0 2px 8px rgb(0 0 0 / .4);
  background: var(--bg-2);
}
/* grain */
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.photo figcaption {
  font-size: .8125rem;
  color: var(--dim);
  margin-top: .5rem;
  font-style: italic;
}
.tilt-l { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(.9deg); }

/* songs — cassettes, stuck in between the text */

:root { --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive; }
.hand { font-family: var(--hand); }

.cassette {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0;
  padding: .7rem .8rem 1rem;
  background: #2b2723;
  border-radius: .55rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), inset 0 -1px 0 rgb(0 0 0 / .4), 0 4px 12px rgb(0 0 0 / .45);
  transform: rotate(-1.5deg);
  scroll-margin-top: 1.5rem;
}
/* the two screws */
.cassette::before, .cassette::after {
  content: "";
  position: absolute;
  bottom: .35rem;
  width: .3rem; height: .3rem;
  border-radius: 50%;
  background: #1a1816;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / .8), 0 1px 0 rgb(255 255 255 / .05);
}
.cassette::before { left: .45rem; }
.cassette::after { right: .45rem; }

.cassette .label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .65rem .5rem;
  background: var(--paper);
  color: #2a2622;
  border-radius: .2rem;
  border-top: .3rem solid var(--accent);
  box-shadow: 0 1px 2px rgb(0 0 0 / .4);
}
.cassette .text { min-width: 0; flex: 1; }
.cassette h3.hand {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: #2a2622;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.cassette .small {
  margin: .15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.15;
  color: #5c534a;
}
.cassette .sticker {
  position: absolute;
  top: -.75rem;
  right: .5rem;
  transform: rotate(3deg);
  padding: .1rem .45rem;
  font-size: .7rem;
  letter-spacing: .02em;
  background: var(--accent);
  color: var(--bg);
  border-radius: .15rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / .4);
}

/* the title cassette, up on the sky */
.cassette.mix { max-width: 26rem; margin-top: 2rem; padding: .9rem 1rem 1.2rem; transform: rotate(-1.6deg); }
.cassette.mix .label { padding: .7rem .8rem .6rem; gap: .8rem; }
.cassette.mix .play { width: 2.8rem; height: 2.8rem; }
.cassette.mix .play svg { width: 1.3rem; height: 1.3rem; }
.cassette.mix h1.hand {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: #2a2622;
  letter-spacing: 0;
}
.cassette.mix .small { font-size: 1.15rem; }
.cassette.mix .reel { width: 2.4rem; height: 2.4rem; border-width: .5rem; }

/* play button — on the label, and in the list at the bottom */
.play {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem; height: 2.3rem;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  color: #2a2622;
  cursor: pointer;
}
.play svg { width: 1.1rem; height: 1.1rem; fill: currentColor; margin-left: .1rem; }
.play:hover, .play:focus-visible { background: #2a2622; color: var(--paper); }
.play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.play:disabled { opacity: .35; cursor: default; }
.play:disabled:hover { background: transparent; color: #2a2622; }
.playing .play { background: #2a2622; color: var(--paper); }
.playing .play svg { margin-left: 0; }

/* the little window with the reels */
.cassette .window {
  width: 62%;
  margin: .65rem auto 0;
  padding: .3rem .7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #16140f;
  border: 2px solid #3a3531;
  border-radius: .35rem;
  box-shadow: inset 0 0 6px rgb(0 0 0 / .8);
}
.reel {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: .4rem dashed #b6ad9c;
  background: #16140f;
  box-sizing: border-box;
}
.playing .reel { animation: spin 3.2s linear infinite; }
.playing .reel:last-child { animation-duration: 2.4s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the feed — one post per song, cassette on one side, words on the other */

.feed { display: flex; flex-direction: column; gap: 3rem; margin-top: 1.5rem; }
.post .meta { font-size: .8125rem; margin: 0 0 .75rem; }
.post .row { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.post .side { flex: 1; min-width: 0; width: 100%; }
.post:nth-child(even) .cassette { transform: rotate(1.2deg); }

@media (min-width: 40rem) {
  .post .row { flex-direction: row; gap: 1.75rem; align-items: flex-start; }
  .post .cassette { flex: 0 0 17rem; }
  .post:nth-child(even) .row { flex-direction: row-reverse; }
}

/* lyrics on a scrap of paper */
.lyrics {
  position: relative;
  max-width: 24rem;
  padding: .9rem 1.1rem 1rem;
  background: var(--paper);
  color: #2a2622;
  font-size: 1.3rem;
  line-height: 1.25;
  box-shadow: 0 2px 6px rgb(0 0 0 / .4);
  transform: rotate(.6deg);
  clip-path: polygon(0 1%, 3% 0, 30% .6%, 60% 0, 100% 1.2%, 99.4% 40%, 100% 70%, 99.2% 100%, 70% 99.4%, 35% 100%, 0 99%, .6% 60%);
}
.post:nth-child(even) .lyrics { transform: rotate(-.5deg); }
.lyrics p { margin: 0; }
.lyrics p.gap { height: .8em; }
.lyrics .dim { color: #6b6257; }
.lyrics .words { overflow: hidden; }
.lyrics.folded .words { max-height: 12.5em; }
.lyrics.folded .words::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2.6rem;
  height: 3.5em;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.lyrics .more {
  margin-top: .4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}
.lyrics .more:hover { text-decoration: underline; }
.post .links { margin: .6rem 0 0; font-size: .9375rem; }

/* the player bar */

.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem .75rem;
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.player[hidden] { display: none; }
.player .progress {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--line);
  cursor: pointer;
  touch-action: none;
  transition: height .15s ease, top .15s ease;
}
/* invisible, taller hit area so it's easy to grab */
.player .progress::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -10px; bottom: -8px;
}
.player .progress:hover, .player .progress:active { height: 5px; top: -4px; }
.player .progress span { display: block; height: 100%; width: 0; background: var(--accent); pointer-events: none; }
.player button {
  display: inline-flex;
  flex: none;
  padding: .35rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 50%;
}
.player button svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.player button:hover, .player button:focus-visible { color: var(--accent); }
.player button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.player [data-toggle] svg { width: 1.4rem; height: 1.4rem; }
.player .now {
  flex: 1;
  min-width: 0;
  margin: 0 .5rem;
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player input[type="range"] {
  width: 5rem;
  flex: none;
  accent-color: var(--accent);
}
@media (max-width: 26rem) { .player input[type="range"] { width: 3.5rem; } }
body.has-player { padding-bottom: 4.5rem; }

/* mailing list form */

.list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}
.list input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  padding: .55rem .75rem;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.list input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.list button {
  font: inherit;
  padding: .55rem 1.1rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--dim);
  border-radius: 2px;
  cursor: pointer;
}
.list button:hover, .list button:focus-visible { border-color: var(--accent); color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* motion — quiet. only when js is on and motion is ok. */

html.js .fade { opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .7s ease; }
html.js .fade.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .fade { opacity: 1; transform: none; transition: none; }
  .tilt-l, .tilt-r, .cassette, .cassette.mix, .lyrics { transform: none; }
  .playing .reel { animation: none; }
}

@media (min-width: 40rem) {
  body { font-size: 1.125rem; }
  h1 { font-size: 2.75rem; }
  section { padding-block: 4rem 1.5rem; }
}
