/* The public release page. Kept deliberately small: no fonts, no scripts, no cookies. */

:root {
  --top: #12203a;
  --foot: #070d18;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.82);
  --ink-faint: rgba(255, 255, 255, 0.6);
  --edge: rgba(255, 255, 255, 0.22);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* The ground colour also covers overscroll, so no band appears at the edges. */
html { min-height: 100%; background: var(--foot); }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--top) 0%, var(--foot) 100%) no-repeat;
  background-size: 100% 100%;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

/*
 * Blurred artwork backdrop. The image is already tiny and blurred by the
 * server, so this only smooths it and darkens it enough for white text.
 */
/*
 * The body's own gradient is opaque and would paint over a backdrop sitting at
 * a negative z-index, so it is dropped when there is artwork behind. The html
 * colour underneath still covers the moment before the image arrives.
 */
body.has-backdrop {
  background: none;
}

.backdrop {
  position: fixed;
  inset: -8%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.45) brightness(0.85);
}

/* Dark enough that white text stays readable over a pale cover. */
body.has-backdrop::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.38) 0%, rgba(8, 8, 12, 0.62) 55%, rgba(8, 8, 12, 0.82) 100%);
}

.release {
  max-width: 440px;
  margin-inline: auto;
  padding: 40px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.release-plain { padding-top: 22vh; }

/* The page at the bare address: a shelf of covers, two across on a phone. */
.index { max-width: 560px; padding-top: 12vh; }
.index h1 { margin-top: 0; }

.shelf {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px 18px;
}

.shelf a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.shelf img,
.shelf .cover-blank {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.18s ease;
}

.shelf .cover-blank span { font-size: 42px; }
.shelf a:hover img,
.shelf a:hover .cover-blank { transform: translateY(-3px); }

.shelf-name { font-size: 15px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.shelf-by { font-size: 13px; color: var(--ink-soft); }

.cover {
  width: min(260px, 72vw);
  aspect-ratio: 1;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 26px 54px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cover-blank {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.cover-blank span {
  font-size: 68px;
  font-weight: 700;
  color: var(--ink-faint);
}

.badge {
  margin: 24px 0 0;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(27px, 7vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.by {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

/* Both of these match the line above the title, so the three read as one
   family rather than three different ideas about what a caption looks like. */
.subline,
.pre-note {
  color: var(--ink-soft);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  max-width: 34ch;
}

.subline { margin: 12px 0 0; }
.pre-note { margin: 18px 0 0; }

/* Set like the lines around the title, so everything that is not the title
   or a button reads as one voice. */
.section {
  align-self: stretch;
  text-align: center;
  margin: 30px 0 14px;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* A heading brings its own space, so the list does not add more. */
.section + .services { margin-top: 0; }

.services {
  list-style: none;
  /* Clear of whatever is above, which may be a heading, a line under the
     title, or the artist name on its own. */
  margin: 26px 0 0;
  padding: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 12px;
  background: #ffffff;
  color: #111118;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.7);
}

.btn:active { transform: translateY(0); }

/* The service icon. A supplied file is shown as it is; the built-in shapes
   sit on a rounded tile in the service's colour. */
.btn .ico,
.btn-off .ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #ffffff;
}

.btn .ico img,
.btn-off .ico img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.btn-off .ico { opacity: 0.55; }

.btn .pname {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.btn .go {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #55555f;
}

.btn-off {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink-soft);
  cursor: default;
}

.btn-off .go { color: var(--ink-faint); }

.foot {
  margin: 32px 0 0;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  max-width: 32ch;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
