:root {
  --background: #fff9f9;
  --text-primary: #214bff;
  --surface-blend: 0.75;
  color-scheme: light dark;
  color: var(--text-primary);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --background: #214bff;
    --text-primary: #fff9f9;
    --surface-blend: 0.9;
  }
}

:root[data-theme="light"] {
  --background: #fff9f9;
  --text-primary: #214bff;
  --surface-blend: 0.75;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --background: #214bff;
  --text-primary: #fff9f9;
  --surface-blend: 0.9;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.background canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 64px 32px 32px;
  text-align: center;
}

.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.wordmark {
  display: block;
  width: min(96px, 45vw);
  height: min(22px, 10.5vw);
  margin: 0 auto;
  background-color: currentColor;
  -webkit-mask: url("/ballad.svg") center / contain no-repeat;
  mask: url("/ballad.svg") center / contain no-repeat;
}

.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.intro {
  display: grid;
  flex: 1;
  place-content: center;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 0;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-family: "Tourney", sans-serif;
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 6vw, 60px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.98;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.intro p {
  max-width: 360px;
  margin: 30px auto 0;
  font-size: 1rem;
  line-height: 1.5;
}

.emphasis { display: inline-block; }

.emphasis--strong { font-weight: 700; }

.emphasis--flash {
  font-style: italic;
  padding: 0 0.08em;
  background: linear-gradient(110deg, transparent 36%, color-mix(in srgb, currentColor 14%, transparent) 50%, transparent 64%);
  background-position: 150% 0;
  background-repeat: no-repeat;
  background-size: 240% 100%;
  animation: flash 8s ease-in-out infinite;
}

@keyframes flash {
  0%, 65%, 100% { background-position: 150% 0; }
  80% { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .emphasis--flash { animation: none; }
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 720px);
  margin: 0 auto;
}

.product {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  text-align: left;
}

.product h2 {
  margin: 1px 0 7px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.product-icon {
  display: block;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  -webkit-clip-path: inset(0 round 5px);
  clip-path: inset(0 round 5px);
  background-color: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.product-icon--nesm {
  -webkit-mask-image: url("/nesm.svg");
  mask-image: url("/nesm.svg");
}

.product-icon--isohawk {
  -webkit-mask-image: url("/isohawk.svg");
  mask-image: url("/isohawk.svg");
}

.footer {
  margin-top: 36px;
  color: var(--text-primary);
  font-size: 0.75rem;
}

@media (max-width: 540px) {
  .page { padding: 62px 22px 22px; }
  .intro { padding: 48px 0; }
  .products { grid-template-columns: 1fr; }
}
