/* Stillwork Audio store — shares the stillwork.com dark theme.
   Wordmark font is a subset of Assiduous covering "stillwork audio". */
@font-face {
  font-family: "Assiduous";
  src: url("/assets/assiduous-audio.woff2") format("woff2");
  font-display: swap;
}

:root {
  --chrome: #0a0a0a;
  --bg: #181818;
  --bg-soft: #212121;
  --card: #1e1e1e;
  --text: #cccccc;
  --muted: #8f8f8f;
  --headings: #ffffff;
  --link: #e0e0e0;
  --link-hover: #ffffff;
  --border: #2a2a2a;
  --border-soft: #343434;
  --container: 1100px;
  --narrow: 750px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4 { color: var(--headings); line-height: 1.3; margin: 1.6em 0 0.6em; }
p { margin: 0 0 1.3em; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* Flex children must be allowed to shrink below their content's intrinsic
   width, or a wide product image forces the whole page past the viewport. */
.site-header, main, .site-footer { min-width: 0; }
.narrow { max-width: var(--narrow); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.site-header { background: var(--chrome); border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  min-height: 70px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-title {
  font-family: "Assiduous", system-ui, sans-serif;
  font-weight: 400;
  font-size: 30px;
  text-transform: lowercase;
  color: var(--headings);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-nav a { text-decoration: none; font-size: 15px; }

main { flex: 1; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section + .section { border-top: 1px solid var(--border); }

/* Store landing intro */
.intro { padding-top: 72px; padding-bottom: 40px; }
.intro h1 { margin-top: 0; font-size: clamp(30px, 5vw, 44px); }
.intro p { max-width: 40em; }
.intro .tagline { color: var(--headings); font-size: 19px; margin-bottom: 8px; }

/* Product grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.product-card:hover { border-color: #4a4a4a; }
.product-card .shot { background: #000; border-bottom: 1px solid var(--border); }
.product-card .shot img, .product-hero .shot img { width: 100%; height: auto; }
.product-card .body { padding: 18px 20px 22px; }
.product-card h3 { margin: 0 0 4px; font-size: 20px; }
.product-card .kind { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.product-card .price { color: var(--headings); font-size: 15px; margin: 0; }

/* Product page hero */
.product-hero { padding-top: 56px; padding-bottom: 40px; }
.product-hero .shot {
  background: #000;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
}
.product-hero h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 46px); }
.product-hero .kind { color: var(--muted); font-size: 17px; margin: 0 0 24px; }

.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin: 8px 0 4px;
}
.buy .amount { font-size: 26px; color: var(--headings); font-weight: 500; }
.buy-button {
  display: inline-block;
  min-height: 44px;
  padding: 10px 28px;
  font-weight: 500;
  font-size: 16px;
  color: #0a0a0a;
  background: var(--link);
  border: none;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}
.buy-button:hover { background: var(--link-hover); color: #0a0a0a; }
.buy-note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

/* Spec / detail lists */
.specs { list-style: none; padding: 0; margin: 0; }
.specs li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.specs li:last-child { border-bottom: 0; }
.specs .label { color: var(--muted); flex: 0 0 140px; }

/* Signal path chain */
.chain { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.3em; }
.chain span {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-soft);
}

/* Feature blocks */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; }
.features h3 { margin-top: 0; font-size: 18px; }
.features p { margin-bottom: 0; }

/* Legal / prose documents */
.doc { padding-top: 56px; padding-bottom: 72px; }
.doc h1 { margin-top: 0; }
.doc h2 { font-size: 21px; }
.doc ul, .doc ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.doc li { margin: 0.3em 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 1.3em; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 12px; border: 1px solid var(--border-soft); vertical-align: top; }
.doc code { background: var(--bg-soft); padding: 1px 5px; border-radius: 3px; font-size: 0.9em; }

.draft-banner {
  background: #211a0a;
  border: 1px solid #4a3a12;
  border-radius: 5px;
  color: #e8d9b0;
  padding: 14px 18px;
  margin: 0 0 32px;
  font-size: 14px;
}
.draft-banner strong { color: #fff; }

.backlink { display: inline-block; margin-bottom: 8px; font-size: 14px; }

/* Footer */
.site-footer {
  background: var(--chrome);
  border-top: 1px solid var(--border);
  font-size: 14px;
  padding: 32px 0;
  margin-top: 40px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; }
.site-footer p { margin: 0; color: var(--muted); }
