/* music-crate landing page. One file, no build step, no requests to other sites.
   Palette and type follow the app (apps/desktop/src/styles.css): the dark "room", the amber
   "needle", Archivo at a condensed width for headlines. Light and dark follow the system. */
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
}

:root {
  --room: #f3efe6;
  --panel: #fffdf8;
  --raise: #ebe5d8;
  --line: #d9d1c0;
  --ink: #1d1b16;
  --ink-2: #4f4a3f;
  --ink-3: #6e675a;
  --needle: #ffb547;       /* fills: buttons, the label of the record */
  --needle-ink: #8a4b00;   /* amber as text on the light room (contrast 5.6:1) */
  --on-needle: #231a08;
  --code: #ebe5d8;
  --font: "Archivo Variable", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --gutter: 1rem;
  --wide: 70rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --room: #1a1c23;
    --panel: #22252e;
    --raise: #2b2f3a;
    --line: #363b48;
    --ink: #eef0f5;
    --ink-2: #aab0bf;
    --ink-3: #8b93a5;
    --needle-ink: #ffb547;
    --code: #14161c;
  }
}
@media (min-width: 40rem) { :root { --gutter: 1.75rem; } }
@media (min-width: 64rem) { :root { --gutter: 2.5rem; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--room);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  font-stretch: 100%;
  overflow-wrap: break-word;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--needle); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- the bar */
.bar { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none;
  font-stretch: 72%; font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; }
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; }
.bar nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: .9375rem; font-weight: 600; }
.bar nav a { text-decoration: none; color: var(--ink-2); padding-block: .35rem; }
.bar nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 28rem) { .bar nav a:nth-child(n+3) { display: none; } }

/* --------------------------------------------------------------- the hero */
.hero { display: grid; gap: 1.5rem; padding-block: 1.5rem 3.5rem; align-items: center; }
.eyebrow { margin: 0 0 .75rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--needle-ink); }
h1, h2, h3 { margin: 0; font-stretch: 72%; font-weight: 800; line-height: .98; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 10.5vw, 4.5rem); text-wrap: balance; }
.lead { margin: 1.25rem 0 0; font-size: 1.1875rem; color: var(--ink-2); max-width: 34rem; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .6rem 1.25rem;
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--line); color: var(--ink); background: transparent; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--needle); border-color: var(--needle); color: var(--on-needle); }
.btn.primary:hover { filter: brightness(1.06); border-color: var(--needle); }
.version { margin: 1rem 0 0; font-size: .9375rem; color: var(--ink-3); }

/* The mark, large: a record half out of its sleeve (the app's own icon). */
.crate { justify-self: center; width: min(80vw, 22rem); margin-top: .5rem; }
.crate svg { display: block; width: 100%; height: auto; overflow: hidden; }
.disc { fill: var(--ink); }
.label-ring { fill: none; stroke: var(--on-needle); stroke-opacity: .5; stroke-width: .8; }
.phone { fill: var(--room); stroke: var(--ink); stroke-width: 2; }
.tile { fill: var(--ink); fill-opacity: .16; }
.tile.hot { fill: var(--needle); fill-opacity: 1; }
.sheen2 { stroke: var(--ink); stroke-opacity: .25; stroke-width: 2; stroke-linecap: round; }
.bar { stroke: var(--needle); stroke-width: 2; stroke-linecap: round; }
.play { fill: var(--needle); }
.tri { fill: var(--on-needle); }
.groove { fill: none; stroke: var(--room); stroke-opacity: .28; stroke-width: .9; }
.sheen { fill: none; stroke: var(--room); stroke-opacity: .5; stroke-width: 2; stroke-linecap: round; }
.label, .sleeve { fill: var(--needle); }
.sleeve-edge { stroke: var(--room); stroke-width: 1.2; }
.sleeve-ink { fill: none; stroke: var(--on-needle); stroke-opacity: .55; stroke-width: .9; stroke-linecap: round; }
.sleeve-ink.dot { fill: var(--on-needle); fill-opacity: .55; stroke: none; }
@media (min-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; padding-block: 2.5rem 5rem; }
  .crate { width: min(100%, 30rem); justify-self: end; }
}
@media (prefers-reduced-motion: no-preference) {
  .spin2 { transform-origin: 46px 50px; animation: spin 40s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

/* ------------------------------------------------------------- the sections */
section { padding-block: 3.25rem; border-top: 1px solid var(--line); }
.kicker { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); }
h2 { font-size: clamp(2rem, 7vw, 3.25rem); margin-bottom: 1.5rem; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.05; }
p { margin: 0 0 1rem; text-wrap: pretty; }
code, .mono { font-family: var(--mono); font-size: .875em; }
code { background: var(--code); padding: .1em .35em; border-radius: 5px; }

/* What it does: liner notes, a ruled list with numbered sides. */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: side; }
.notes li { counter-increment: side; display: grid; grid-template-columns: 2.25rem 1fr; gap: .25rem .75rem;
  padding-block: 1.1rem; border-top: 1px solid var(--line); }
.notes li:first-child { border-top: 0; padding-top: 0; }
.notes li::before { content: counter(side, decimal-leading-zero); font: 700 .8125rem/1.9 var(--mono); color: var(--needle-ink); }
.notes b { display: block; font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.notes span { color: var(--ink-2); display: block; }
@media (min-width: 52rem) {
  .notes { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .notes li:nth-child(2) { border-top: 0; padding-top: 0; }
}

.shots { display: grid; gap: 1.25rem; margin: 2.5rem 0 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgb(0 0 0 / .18); background: #1a1c23; }
.shots figcaption { margin-top: .6rem; font-size: .9375rem; color: var(--ink-3); }
@media (min-width: 52rem) { .shots { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }

/* Downloads */
.dl { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .dl { grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: start; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem var(--gutter) 1.75rem; }
@media (min-width: 40rem) { .panel { padding-inline: 1.75rem; } }
.panel h3 { margin-bottom: .35rem; }
.panel .sub { margin: 0 0 1.25rem; color: var(--ink-3); font-size: .9375rem; }
.files { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .75rem; }
.file { display: grid; gap: .6rem; }
.file .btn { justify-content: space-between; width: 100%; }
.file .btn small { font-weight: 600; opacity: .75; font-size: .875rem; white-space: nowrap; }
.file p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.cmd { display: block; margin: 0 0 .5rem; padding: .7rem .85rem; background: var(--code); border-radius: 10px;
  font: .8125rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.fdroid h4 { margin: 0 0 .6rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.repo { display: grid; gap: 1rem; }
.repo .qr { width: 9.5rem; padding: .5rem; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.repo .qr img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.field { margin: 0 0 .9rem; }
.field > span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .25rem; }
.field code { display: block; padding: .55rem .7rem; background: var(--code); border-radius: 8px;
  font-size: .8125rem; line-height: 1.5; user-select: all; overflow-wrap: anywhere; }
.fpr { word-spacing: .5em; }
@media (min-width: 30rem) { .repo { grid-template-columns: auto 1fr; align-items: start; } }

/* Verify */
.sums { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; gap: 1rem; }
.sums li { display: grid; gap: .2rem; }
.sums strong { font-weight: 700; word-break: break-all; }
.sums code { display: block; background: none; padding: 0; color: var(--ink-2); overflow-wrap: anywhere; font-size: .8125rem; }
@media (min-width: 52rem) {
  .sums { gap: 0; margin-bottom: 2.5rem; }
  .sums li { grid-template-columns: 24rem 1fr; gap: 1.5rem; align-items: baseline; padding-block: .8rem; border-top: 1px solid var(--line); }
  .sums li:last-child { border-bottom: 1px solid var(--line); }
}
.two { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .two { grid-template-columns: 1fr 1fr; gap: 3rem; } }

dl.req { margin: 0; display: grid; gap: .2rem 1.5rem; }
dl.req dt { font-weight: 700; margin-top: .9rem; }
dl.req dt:first-child { margin-top: 0; }
dl.req dd { margin: 0; color: var(--ink-2); }

footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--ink-3); font-size: .9375rem; }
footer p { margin: 0 0 .5rem; }
footer a { color: var(--ink-2); }

/* grid children may shrink below their content (long code lines scroll inside their box) */
.dl > *, .two > *, .repo > *, .hero > *, .files, .file, .panel { min-width: 0; }
.cmd { max-width: 100%; }
p:not(.field) > code { white-space: nowrap; }

/* The icon sprite: defined once, never shown. */
.sprite { position: absolute; }
