/* ==========================================================================
   Base layer
   --------------------------------------------------------------------------
   Hand-written CSS. No framework, no build step: edit and refresh.

     output.css   reset, tokens, backdrop, typography, layout   (this file)
     custom.css   components (header, cards, drawer, footer, ...)

   The design is a solid neutral ground with a layered surface ladder. Depth
   comes from a one-step lift in surface value plus a hairline edge, never
   from a shadow or a coloured halo. The accent is spent on a handful of
   deliberate marks - the primary action, one word in a heading, a price, a
   live dot - and nowhere else.
   ========================================================================== */

:root {
  /* --- set from the template settings ----------------------------------- */
  --dm-accent: #beee11;
  --dm-on-accent: #16190a;
  --dm-base: #121212;
  --dm-tint: #1a1a1a;
  --dm-sale: #e11d2e;

  /* --- ground and surface ladder ---------------------------------------- */
  /* One deep ground, three lifts. Each step is a real colour, not a
     translucency, so panels never look muddy over the backdrop. */
  --dm-bg: color-mix(in srgb, #000 14%, var(--dm-base));
  --dm-surface-1: color-mix(in srgb, #fff 3.5%, var(--dm-bg));
  --dm-surface-2: color-mix(in srgb, #fff 6%, var(--dm-bg));
  --dm-surface-3: color-mix(in srgb, #fff 9.5%, var(--dm-bg));

  /* Kept for the parts of the sheet that still ask for glass. They now
     resolve to the ladder above, so the whole store reads as one system. */
  --dm-glass: var(--dm-surface-1);
  --dm-glass-strong: var(--dm-surface-2);
  --dm-glass-soft: color-mix(in srgb, #fff 2%, var(--dm-bg));
  --dm-glass-light: rgb(255 255 255 / 4%);
  --dm-glass-lighter: rgb(255 255 255 / 8%);

  /* --- edges ------------------------------------------------------------- */
  --dm-edge: rgb(255 255 255 / 7%);
  --dm-edge-2: rgb(255 255 255 / 14%);
  --dm-edge-3: rgb(255 255 255 / 22%);

  /* --- ink --------------------------------------------------------------- */
  --dm-ink: #fafafa;
  --dm-dim: #a8a8ae;
  --dm-faint: #75757d;

  /* --- accent, derived --------------------------------------------------- */
  --dm-accent-soft: color-mix(in srgb, var(--dm-accent) 12%, transparent);
  --dm-accent-edge: color-mix(in srgb, var(--dm-accent) 28%, transparent);

  --dm-blur: 18px;
  --dm-blur-lg: 28px;

  --dm-radius: 14px;
  --dm-radius-sm: 10px;
  --dm-radius-xs: 8px;
  --dm-shell: 1240px;
  --dm-gap: 20px;
  --dm-bar: 46px;
  --dm-header: 72px;

  --dm-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --dm-body: "Inter", "Segoe UI", sans-serif;
  --dm-mono: "JetBrains Mono", ui-monospace, monospace;

  --dm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- reset -------------------------------------------------------------- */

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  position: relative;
  background: var(--dm-bg);
  color: var(--dm-ink);
  font-family: var(--dm-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: var(--dm-bar);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

input:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--dm-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--dm-accent);
  color: var(--dm-on-accent);
}

::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 13%);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(255 255 255 / 24%);
  background-clip: content-box;
}

/* --- backdrop ----------------------------------------------------------- */
/* The ground stays neutral. There is no page-wide colour wash: a tinted
   backdrop is what makes a dark store look cheap, because every surface
   above it inherits the cast. Colour is placed deliberately instead, by
   .dm-bloom, and only where the page needs a focal point. */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(70% 50% at 50% -8%, rgb(255 255 255 / 5%), transparent 70%),
    radial-gradient(90% 60% at 50% 108%, rgb(255 255 255 / 3%), transparent 72%),
    var(--dm-bg);
  pointer-events: none;
}

/* A fine grid, barely there. It gives the flat ground a sense of scale and
   keeps large empty areas from reading as unfinished. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 78% at 50% 0%, #000 8%, transparent 66%);
  -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 8%, transparent 66%);
  pointer-events: none;
}

/* The one place colour is allowed to spread: a single soft bloom behind a
   focal section, clipped so it never reaches the surfaces around it. */
.dm-bloom {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.dm-bloom::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -340px;
  width: min(1180px, 145%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--dm-accent) 17%, transparent),
    color-mix(in srgb, var(--dm-accent) 5%, transparent) 46%,
    transparent 72%
  );
}

/* blurred package artwork behind a section, dimmed so text stays readable */
.dm-canvas-art {
  position: absolute;
  inset: -10% -5% auto;
  height: 130%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.dm-canvas-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(52px) saturate(105%);
  opacity: 0.26;
  transform: scale(1.15);
}

.dm-canvas-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 26%, var(--dm-bg));
}

/* --- typography --------------------------------------------------------- */

.dm-display {
  font-family: var(--dm-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.dm-display--1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.dm-display--2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  letter-spacing: -0.038em;
}

.dm-display--3 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.dm-heading {
  font-family: var(--dm-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.dm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--dm-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dm-faint);
}

.dm-lead {
  color: var(--dm-dim);
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.dm-data {
  font-family: var(--dm-mono);
  font-variant-numeric: tabular-nums;
}

.dm-accent { color: var(--dm-accent); }
.dm-dim { color: var(--dm-dim); }
.dm-faint { color: var(--dm-faint); }

.dm-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- layout primitives -------------------------------------------------- */

.dm-shell {
  width: 100%;
  max-width: var(--dm-shell);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 1024px) {
  .dm-shell {
    padding-inline: 32px;
  }
}

.dm-section {
  position: relative;
  padding-block: 64px;
}

@media (min-width: 1024px) {
  .dm-section {
    padding-block: 82px;
  }
}

.dm-section--tight {
  position: relative;
  padding-block: 36px;
}

/* A hairline rule between sections keeps the long home page legible without
   boxing every band in its own panel. */
.dm-section--ruled {
  border-top: 1px solid var(--dm-edge);
}

.dm-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dm-row--wrap {
  flex-wrap: wrap;
}

.dm-col {
  display: flex;
  flex-direction: column;
}

.dm-grid {
  display: grid;
  gap: var(--dm-gap);
}

.dm-grid--cards {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .dm-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .dm-grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dm-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .dm-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- section heading ---------------------------------------------------- */
/* Left aligned, with the index set as a small monospaced marker beside the
   heading. It reads as a running order rather than a decorated title. */

/* Section header.

   The old version set a boxed number beside the text. It read as a template
   ornament, and because the label sat in a column starting after the box, the
   eyebrow was indented against nothing while the heading below it was not.
   The number is gone; label and heading now share the same left edge, with a
   rule carrying the eye across to whatever count sits on the right. */

.dm-masthead {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 36px;
}

.dm-masthead__top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dm-masthead__top .dm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* A short accent tick instead of a boxed number: it marks the section
   without claiming a slot in the layout. */
.dm-masthead__top .dm-eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--dm-accent);
  flex: none;
}

.dm-masthead__rule {
  flex: 1;
  height: 1px;
  min-width: 20px;
  background: linear-gradient(90deg, var(--dm-edge), transparent 88%);
}

.dm-masthead__meta {
  flex: none;
  color: var(--dm-faint);
  white-space: nowrap;
}

/* The count is an eyebrow as well, so it has to out-specify the tick rule. */
.dm-masthead__top .dm-masthead__meta::before {
  content: none;
}

@media (max-width: 640px) {
  .dm-masthead {
    gap: 11px;
    margin-bottom: 26px;
  }

  .dm-masthead__meta {
    display: none;
  }
}

/* --- reduced motion ----------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* If the animation library is slow or blocked, content must still be visible:
   AOS otherwise leaves every [data-aos] element at opacity 0 forever. */
[data-aos]:not(.aos-init) {
  opacity: 1 !important;
  transform: none !important;
}
