/* Bombest Audio: the bom.best home page and the plugin store share this sheet.
   Brand: ink, paper and one orange accent; Archivo for type, IBM Plex Mono for
   labels; sections styled as rack units with screw holes. */

:root {
  --ink: #141414;
  --ink-2: #1b1b1a;
  --ink-3: #242422;
  --line: #33322f;
  --paper: #f4f1ea;
  --paper-dim: #b9b4a9;
  --accent: #f08c46;
  --display: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
}

body {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--paper);
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.mono,
.kicker,
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker {
  color: var(--paper-dim);
  margin: 0;
}

.eyebrow {
  color: var(--accent);
  margin: 0;
}

/* Header */

.top {
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.lockup {
  width: 188px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
}

.nav a:hover {
  color: var(--paper);
}

.nav .store {
  color: var(--ink);
  background: var(--paper);
  padding: 9px 16px;
  border-radius: 3px;
}

.nav .store:hover {
  background: var(--accent);
  color: var(--ink);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 3px;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
}

.btn-ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 104px;
}

.h1 {
  font-weight: 850;
  font-size: clamp(32px, 3.9vw, 56px);
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 22px 0 0;
  text-transform: uppercase;
}

.h1 span {
  display: block;
}

.h1 .dim {
  color: var(--paper-dim);
}

.lede {
  margin: 30px 0 0;
  max-width: 34em;
  font-size: 19px;
  color: var(--paper-dim);
}

.lede b {
  color: var(--paper);
  font-weight: 600;
}

.hero .actions {
  margin-top: 38px;
}

.mark-wrap {
  justify-self: end;
  width: min(100%, 380px);
}

.mark-wrap img {
  width: 100%;
}

.rule {
  height: 3px;
  width: 72px;
  background: var(--accent);
}

/* Rack units */

.section {
  padding: 0 0 28px;
}

.section.last {
  padding-bottom: 72px;
}

.unit {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.unit::before,
.unit::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.unit::before {
  left: 18px;
}

.unit::after {
  right: 18px;
}

.unit-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 14px 48px;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-weight: 400;
}

.unit-label .num {
  color: var(--accent);
}

.unit-label .grow {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.unit-body {
  padding: 44px 48px 48px;
}

.h2 {
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
}

.card-title {
  margin-top: 10px;
}

.stack.tight {
  gap: 14px;
}

.tag.flush {
  margin: 0;
}

.copy {
  color: var(--paper-dim);
  margin: 0;
}

/* Product card (home pages) */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  color: inherit;
  text-decoration: none;
}

.product + .product {
  border-top: 1px solid var(--line);
}

.product .shot {
  border-right: 1px solid var(--line);
  padding: 40px;
  display: flex;
  align-items: center;
  background: var(--ink-3);
  margin: 0;
}

.product .shot img,
.panel img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.product .info {
  padding: 44px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tag {
  font-size: 21px;
  font-weight: 600;
  color: var(--accent);
  margin: 6px 0 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin: 0;
}

.specs-grid div {
  background: var(--ink-2);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.specs-grid dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.specs-grid dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
}

.price {
  font-stretch: 112%;
  font-weight: 850;
  font-size: 40px;
  line-height: 1;
}

.price small {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
  margin-left: 8px;
}

.badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 2px;
}

.fine {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  margin: 0;
}

.soon {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  color: var(--paper-dim);
  background: var(--ink-3);
}

/* Mixing steps (bom.best home) */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  padding: 48px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.steps-list,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  counter-reset: step;
}

.steps-list li,
.steps li {
  background: var(--ink-2);
  padding: 18px 20px 18px 78px;
  position: relative;
  counter-increment: step;
  color: var(--paper-dim);
  font-size: 15px;
}

.steps-list li::before,
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 21px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.steps-list strong,
.steps strong {
  display: block;
  color: var(--paper);
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 2px;
}

/* Contact */

.contact {
  padding: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.email {
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Product page */

.product-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.panel {
  margin: 0;
}

.product-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-head h1 {
  font-stretch: 112%;
  font-weight: 850;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}

.prose {
  max-width: 760px;
}

.prose p {
  color: var(--paper-dim);
  margin: 0 0 1em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section-lede {
  color: var(--paper-dim);
  margin: 0 0 28px;
  max-width: 640px;
}

/* Cell rules come from each cell's own 1px shadow, so a short last row leaves
   no gray block behind. */
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: 3px;
  overflow: hidden;
  margin: 0;
}

.control {
  background: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line);
  padding: 18px 20px;
}

.control dt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.control .name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.control .range {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-align: right;
}

.control dd {
  margin: 0;
  color: var(--paper-dim);
  font-size: 15px;
}

.presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 28px;
}

.presets h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.presets ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.presets li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.specs {
  width: 100%;
  border-collapse: collapse;
}

.specs th,
.specs td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  width: 34%;
  padding-right: 16px;
}

.buy-again {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 404 */

.lost {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.lost h1 {
  font-weight: 850;
  font-size: clamp(36px, 5vw, 56px);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.lost p {
  color: var(--paper-dim);
  margin: 0;
}

.lost .steps {
  width: 100%;
}

/* Footer */

.foot {
  border-top: 1px solid var(--line);
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 34px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
}

.foot a {
  color: var(--paper-dim);
}

.foot a:hover {
  color: var(--paper);
}

.foot .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .rise.d1 {
    animation-delay: 0.08s;
  }
  .rise.d2 {
    animation-delay: 0.16s;
  }
  .rise.d3 {
    animation-delay: 0.24s;
  }
  .spin-in {
    animation: spin-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.1s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes spin-in {
    from {
      opacity: 0;
      transform: rotate(-24deg) scale(0.94);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Narrow screens */

@media (max-width: 900px) {
  .hero .wrap,
  .product,
  .split,
  .product-hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero .wrap {
    padding-top: 56px;
    padding-bottom: 64px;
    gap: 40px;
  }
  .product-hero .wrap {
    padding-top: 40px;
    padding-bottom: 48px;
    gap: 32px;
  }
  .h1 {
    font-size: clamp(30px, 8.4vw, 56px);
  }
  .mark-wrap {
    justify-self: start;
    width: min(64%, 300px);
    order: -1;
  }
  .product .shot {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }
  .product .info,
  .split,
  .contact,
  .unit-body {
    padding: 28px 24px 32px;
  }
  .unit-label {
    padding: 14px 40px;
  }
  .nav {
    gap: 16px;
  }
  .nav .hide-sm {
    display: none;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }
  .lockup {
    width: 150px;
  }
  .specs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lost {
    padding: 80px 16px;
  }
}
