/* Dillan Stephenson Audio
   Palette and shapes come straight off the WOMPANATOR 3000 badge and the
   plug-in editor, so the site and the product look like the same thing. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0a0b;
  --panel-top: #17181b;
  --panel-bottom: #101113;
  --edge: #2b2d31;
  --edge-soft: #1e2024;
  --text: #edeae3;
  --body: #c3c1bc;
  --dim: #8a8d93;
  --faint: #565a61;
  --yellow: #f2ce1b;
  --yellow-hot: #f7dc4c;
  --yellow-deep: #d9b40d;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --cut: 14px;

  --hatch: repeating-linear-gradient(
    115deg,
    rgba(237, 234, 227, 0.016) 0 1px,
    transparent 1px 7px
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  background-image: var(--hatch);
  color: var(--body);
  font-family: 'Archivo', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--yellow);
  text-decoration: none;
}

a:hover {
  color: var(--yellow-hot);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-style: italic;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
}

h3 {
  font-size: 1.16rem;
  font-stretch: 88%;
  font-weight: 700;
}

p {
  margin: 0 0 1.1em;
}

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

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.narrow {
  max-width: 62ch;
  margin-inline: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: #101113;
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 50;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Slanted dash row, the decal from the badge */
.decal {
  height: 8px;
  background-image: repeating-linear-gradient(
    108deg,
    var(--yellow) 0 10px,
    transparent 10px 20px
  );
  opacity: 0.75;
}

.decal.faint {
  background-image: repeating-linear-gradient(
    108deg,
    var(--edge) 0 10px,
    transparent 10px 20px
  );
  opacity: 1;
}

.eyebrow {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: 0.02em;
  margin: 0 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  background: var(--yellow);
  flex: none;
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge-soft);
}

.site-head .bar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: 68px;
}

.mark {
  color: var(--text);
  font-style: italic;
  font-weight: 800;
  font-stretch: 76%;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mark span {
  color: var(--yellow);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--dim);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

.site-nav .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.05rem;
}

/* Buttons */
.btn {
  --btn-cut: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: 0.01em;
  color: #0d0e10;
  background: linear-gradient(180deg, var(--yellow-hot), var(--yellow-deep));
  border: 0;
  cursor: pointer;
  clip-path: polygon(
    var(--btn-cut) 0,
    100% 0,
    100% calc(100% - var(--btn-cut)),
    calc(100% - var(--btn-cut)) 100%,
    0 100%,
    0 var(--btn-cut)
  );
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  color: #0d0e10;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

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

.btn .price {
  color: rgba(13, 14, 16, 0.62);
  font-weight: 700;
}

.btn-ghost {
  color: var(--text);
  background: linear-gradient(180deg, #24262b, #191b1f);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.btn-ghost:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px #40444b;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Panels */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border: 1px solid var(--edge);
  padding: clamp(1.3rem, 3vw, 2rem);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

section.tight {
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
}

.section-head {
  margin-bottom: 2.2rem;
  max-width: 60ch;
}

.section-head p {
  color: var(--dim);
}

/* Hero */
.hero {
  padding-top: clamp(2.6rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.6rem, 6vw, 4rem);
  border-bottom: 1px solid var(--edge-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--body);
  max-width: 46ch;
}

.hero-meta {
  margin-top: 1.5rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.hero-badge img {
  width: 100%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
}

.product-hero {
  text-align: center;
}

.product-hero .badge {
  max-width: 760px;
  margin: 0 auto 1.8rem;
}

.product-hero h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 24ch;
  margin-inline: auto;
}

.product-hero .btn-row {
  justify-content: center;
}

.product-hero .hero-lede {
  margin-inline: auto;
  text-align: center;
}

/* Lineup card */
.lineup {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  gap: 1.4rem;
}

.card-product {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.card-product .shot {
  border: 1px solid var(--edge);
  background: #0c0d0f;
}

.card-soon {
  color: var(--dim);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  color: var(--faint);
  font-size: 0.86rem;
  margin-bottom: 0.9rem;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-meta span::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--yellow);
  flex: none;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.2rem;
}

.feature h3 {
  color: var(--text);
  margin-bottom: 0.45rem;
}

.feature p {
  color: var(--dim);
  font-size: 0.96rem;
  margin: 0;
}

.feature-rule {
  width: 34px;
  height: 3px;
  background: var(--yellow);
  margin-bottom: 0.95rem;
}

/* Screenshot */
.shot-frame {
  border: 1px solid var(--edge);
  background: #0c0d0f;
  padding: 10px;
}

.shot-frame img {
  width: 100%;
}

.shot-caption {
  color: var(--faint);
  font-size: 0.86rem;
  margin-top: 0.8rem;
}

/* Player */
.player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.player .copy {
  flex: 1 1 260px;
}

.player h3 {
  margin-bottom: 0.3rem;
}

.player p {
  color: var(--dim);
  font-size: 0.95rem;
  margin: 0;
}

.player audio {
  flex: 1 1 320px;
  width: 100%;
  min-width: 240px;
  height: 42px;
  color-scheme: dark;
}

/* Lists */
.prefabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.55rem 1.6rem;
}

.prefabs li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--body);
  font-size: 0.97rem;
  border-bottom: 1px solid var(--edge-soft);
  padding-bottom: 0.45rem;
}

.prefabs .n {
  color: var(--faint);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  min-width: 1.5rem;
}

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

.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--dim);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 3px;
  background: var(--yellow);
}

/* Specs table */
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.specs th {
  color: var(--faint);
  font-weight: 600;
  width: 40%;
  padding-right: 1rem;
}

.specs td {
  color: var(--body);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

/* Buy strip */
.buy {
  text-align: center;
}

.buy h2 {
  margin-bottom: 0.5rem;
}

.buy p {
  color: var(--dim);
  max-width: 48ch;
  margin-inline: auto;
}

.buy .btn-row {
  justify-content: center;
  margin-top: 1.6rem;
}

.buy-note {
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: 1.1rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--edge-soft);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  font-stretch: 88%;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: '';
  width: 10px;
  height: 3px;
  background: var(--yellow);
  flex: none;
  transition: transform 0.18s ease;
}

.faq details[open] summary::before {
  transform: scaleX(1.9);
}

.faq p {
  color: var(--dim);
  margin: 0.7rem 0 0 1.8rem;
  font-size: 0.96rem;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--edge-soft);
  padding: 2.6rem 0 3rem;
  color: var(--faint);
  font-size: 0.88rem;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.6rem;
  align-items: baseline;
}

.foot-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-left: auto;
}

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

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

.legal {
  margin-top: 1.6rem;
  max-width: 70ch;
  line-height: 1.6;
}

/* Support page bits */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.1rem;
  color: var(--body);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #0d0e10;
  font-size: 0.85rem;
  font-weight: 800;
  font-style: italic;
}

code {
  font-family: 'Consolas', 'SF Mono', monospace;
  font-size: 0.88em;
  background: #101113;
  border: 1px solid var(--edge);
  padding: 0.1em 0.4em;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* 404 */
.oops {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.nav-short {
  display: none;
}

@media (max-width: 860px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    order: -1;
    max-width: 520px;
  }

  .lineup {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav .hide-sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* The header bar runs out of room before anything else does */
@media (max-width: 720px) {
  .mark {
    font-size: 0.95rem;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .site-nav .btn {
    padding: 0.45rem 0.9rem;
  }

  .site-nav .btn .price {
    display: none;
  }

  .nav-full {
    display: none;
  }

  .nav-short {
    display: inline;
  }
}

@media (max-width: 430px) {
  .nav-product {
    display: none;
  }
}
