/*
 * Antinode — antinode-audio.com
 *
 * One page, no build step, no JavaScript. Surfaces follow the same rule as the
 * rest of this project's design work: a black scrim first, a small white sheen
 * second. A translucent white fill can only raise luminance, which fails over
 * anything bright.
 */
:root {
  --ink: #0b0b0d;
  --plate: #141419;
  --slate: #6e7076;
  --mist: #e8e6e3;
  --wave: #c8956d;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--mist);
  background:
    radial-gradient(120% 80% at 50% -10%, #191a1d 0%, #0b0b0d 55%, #070708 100%);
  position: relative;
}

/* 3% noise over the gradient. Smooth dark gradients band visibly on OLED and
   this is the standard fix; it costs one tiny tiled asset. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

@media (min-width: 640px) { .wrap { padding: 7rem 2rem 8rem; } }

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1;
}

.lede {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgb(232 230 227 / 0.85);
  max-width: 34rem;
}

.rule { margin: 0.65rem 0 0; font-size: 0.85rem; color: var(--slate); }

h2 {
  margin: 4rem 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
}

p { margin: 0 0 1rem; color: rgb(232 230 227 / 0.78); }
p.quiet { color: var(--slate); }
strong { font-weight: 500; color: var(--mist); }

/* A card: scrim, sheen, gradient rim along the top edge only — real glass
   catches light where it meets the light, not uniformly. */
.card {
  position: relative;
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: rgb(0 0 0 / 0.45);
  background-image: linear-gradient(rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.08));
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.12);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.card > :last-child { margin-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

/* Opaque, because a chip sitting on a material must not compound two
   translucent layers into flat grey. */
.chip {
  background: var(--plate);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
  color: var(--slate);
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--mist);
}

/* The one thing on the page worth clicking, so it gets to look like it. */
.cta {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.7rem;
  background: var(--mist);
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta:hover { opacity: 0.9; text-decoration: none; }

figure { margin: 2rem 0 0; }
figcaption { margin-top: 0.75rem; font-size: 0.8rem; color: var(--slate); }
svg { display: block; width: 100%; height: auto; }

a { color: var(--mist); text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--mist); }

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.06);
  font-size: 0.78rem;
  color: var(--slate);
}

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