@font-face {
  font-family: Baldwin Display;
  src: url(display.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #090909;
  --panel: #101010;
  --edge: #2c2a2a;
  --white: #f6f4f2;
  --muted: #b9b4b2;
  --red: #e54743;
  --display: Baldwin Display, "Arial Narrow", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--background);
  color: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
.container { width: min(100% - 2.5rem, 78rem); margin-inline: auto; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 5; background: var(--white); color: var(--background); padding: .6rem 1rem; }
.skip:focus { top: .7rem; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  border-bottom: 1px solid var(--edge);
  background: #090909;
}
.nav-wrap, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-wrap { min-height: 4rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font: 700 1.34rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .055em;
  text-decoration: none;
}
.wordmark span { width: .4rem; height: .4rem; background: var(--red); }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
nav a, .site-footer a {
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}
nav a { padding-block: .7rem; }
nav a:hover, .site-footer a:hover, .profile:hover { color: var(--red); }

.hero {
  display: grid;
  min-height: clamp(15rem, 34vw, 32rem);
  place-items: center;
  text-align: center;
  background: linear-gradient(0deg, #090909 0%, #09090988 52%, #09090999 100%),
              url(masthead.webp) center 52% / cover no-repeat;
}
.hero-inner { padding-block: 3.2rem 3.6rem; }
.eyebrow {
  color: var(--red);
  font-weight: 750;
  font-size: .875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .eyebrow { margin-bottom: .6rem; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
h1 {
  font-size: clamp(3.1rem, 12vw, 10.7rem);
  letter-spacing: -.028em;
  text-shadow: 0 5px 30px #000;
}
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }

.shelf { padding-block: .5rem 3.3rem; }
.shelf-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.shelf-heading::after { content: ""; height: 1px; background: var(--edge); flex: 1; }
.shelf-grid, .formats { padding: 0; margin: 0; list-style: none; }
.shelf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.45rem .85rem; }
.shelf-link { display: block; text-decoration: none; }
.shelf-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: .55rem;
  background: linear-gradient(145deg, #191818, #101010);
  border: 1px solid var(--edge);
  transition: border-color .2s;
}
.shelf-cover img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px #0009);
  transition: transform .2s;
}
.shelf-link:hover .shelf-cover { border-color: var(--red); }
.shelf-link:hover img { transform: translateY(-.2rem); }
.shelf-label { display: grid; gap: .2rem; padding-top: .6rem; }
.shelf-label span { font-weight: 750; line-height: 1.25; }
.shelf-label small { font-size: .875rem; color: var(--muted); line-height: 1.3; }

.book {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--edge);
  padding-block: 2.6rem;
}
.book-art {
  background: radial-gradient(ellipse at 50% 40%, #242121, #111 82%);
  border: 1px solid var(--edge);
  display: grid;
  place-items: center;
  padding: 1.1rem;
}
.book-art img { max-height: 22rem; width: auto; object-fit: contain; filter: drop-shadow(0 10px 10px #0008); }
.book-copy { align-self: center; min-width: 0; }
.book h3 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  letter-spacing: -.02em;
  margin-block: .42rem .6rem;
}
.subtitle { color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.42rem); font-weight: 650; }
.tagline { font-weight: 750; color: var(--white); }
.description { color: var(--muted); max-width: 48ch; margin-block: .75rem 1.15rem; }
.formats { display: flex; flex-wrap: wrap; gap: .4rem .65rem; margin-bottom: 1.2rem; }
.formats li { border: 1px solid var(--edge); padding: .16rem .55rem; font-size: .875rem; color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; gap: .55rem; }
.button { display: inline-grid; min-height: 3rem; place-items: center; padding: .6rem .92rem; text-decoration: none; border: 1px solid #65605e; font-size: .9rem; font-weight: 720; text-align: center; }
.buy { background: #b92d2a; color: #fff; border-color: #b92d2a; }
.buy:hover { background: #9b2321; border-color: #9b2321; }
.listen:hover, .project:hover { border-color: var(--red); }

.about { border-block: 1px solid var(--edge); background: var(--panel); }
.about-inner { display: grid; gap: 1.5rem; padding-block: 2.7rem; }
.about-inner img { width: min(100%, 20rem); height: auto; }
.about h2 { margin-bottom: .8rem; }
.about p { max-width: 62ch; color: var(--muted); margin-bottom: .8rem; }
.profile { display: inline-block; padding-block: .4rem; text-underline-offset: .25em; }
.site-footer { background: var(--background); padding-block: 1.2rem; }
.footer-inner { align-items: flex-start; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }
.footer-inner nav { flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-inner nav a { padding: 0; }
.footer-inner nav span { font-weight: 450; }

@media (min-width: 38rem) {
  .container { width: min(100% - 4rem, 78rem); }
  .shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
  .book { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.8rem, 5vw, 5rem); padding-block: 3.4rem; }
  .book-art { min-height: 18rem; padding: 1.4rem; }
  .about-inner { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: 3.4rem; }
}
@media (min-width: 61rem) {
  .shelf-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shelf-cover { padding: .8rem; }
  .book { padding-block: 4.2rem; }
  .book-art { min-height: 24rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
