@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF;
}
@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-cyrillic-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}

:root {
  color-scheme: dark;
  --canvas: #100c16;
  --surface: #191221;
  --line: #3a2c47;
  --ink: #f7f0fb;
  --muted: #baafc6;
  --violet: #ddb7ff;
  --violet-ink: #221233;
  --body: Manrope, system-ui, sans-serif;
  --display: "Arial Black", Manrope, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.6 var(--body);
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.14; font-weight: 800; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; }
::selection { color: var(--violet-ink); background: var(--violet); }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: 8px; left: 12px; padding: 8px 14px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header, .site-footer { border-block-end: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-inner { min-height: 72px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 9px; font: 900 18px/1 var(--display); letter-spacing: -.045em; }
.brand-accent { color: var(--violet); }
.site-nav, .site-footer nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 36px); }
.site-nav > a:not(.button), .site-footer nav a { color: var(--muted); font-size: 14px; }
.site-nav > a:hover, .site-footer nav a:hover { color: var(--ink); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
.button-small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.button-primary { background: var(--violet); color: var(--violet-ink); }
.button-primary:hover { background: #efd9ff; }
.button-outline { border-color: #6a557d; color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--violet); background: #261a34; }
.eyebrow { color: var(--violet); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* The art sits behind the typographic lockup on wide screens. */
.intro { position: relative; overflow: hidden; }
.intro-inner { position: relative; display: flex; min-height: clamp(440px, 42vw, 580px); align-items: center; }
.intro-copy { position: relative; z-index: 1; padding-block: 64px; }
.intro h1 {
  font: 900 clamp(4rem, 8.8vw, 8.65rem)/.99 var(--display);
  letter-spacing: -.095em;
  margin: 16px 0 21px -.05em;
}
.intro h1 span { color: var(--violet); }
.intro-lead { color: var(--muted); font-size: clamp(16px, 1.55vw, 19px); max-width: 34ch; margin-bottom: 26px; }
.intro-art, .auth-art {
  background-image: url("idkgang-optics.webp"), radial-gradient(ellipse at center, #3a2055, var(--canvas) 69%);
  background-position: center;
  background-size: cover;
}
.intro-art {
  position: absolute;
  inset: 0 -10% 0 31%;
  mask-image: linear-gradient(to right, transparent 1%, #000 36%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 77%, transparent);
  mask-composite: intersect;
}
.catalogue { padding-block: 32px clamp(65px, 8vw, 108px); border-top: 1px solid var(--line); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.055em; }
.catalogue-count { color: var(--muted); font-size: 14px; }
.catalogue-count b { color: var(--ink); margin-left: 5px; }
.release-list { display: grid; gap: 12px; }
.release-card {
  position: relative;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 12px 26px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .18s, background-color .18s;
}
.release-card:hover, .release-card:focus-within { border-color: #8762a2; background: #21172b; }
.release-art {
  display: grid;
  place-items: center;
  min-height: 114px;
  border: 1px solid #543a6b;
  border-radius: 9px;
  background: radial-gradient(ellipse at 50% 52%, #502d70 0%, #27163b 60%, #1c112b 100%);
}
.release-art img { object-fit: contain; }
.release-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--violet); font-size: 13px; }
.release-copy { padding-block: 9px; }
.release-copy h3 { margin-top: 4px; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.04em; }
.release-copy p { margin-top: 7px; color: var(--muted); overflow-wrap: anywhere; }
.release-link::after { position: absolute; inset: 0; content: ""; border-radius: 14px; }
.release-action { display: flex; align-items: center; gap: 10px; color: var(--violet); font-size: 14px; font-weight: 800; }
.release-action b { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #6a557d; border-radius: 50%; font-size: 19px; }
.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.site-footer { border-block-start: 1px solid var(--line); border-block-end: 0; }
.footer-inner { min-height: 96px; flex-wrap: wrap; }
.site-footer small { color: var(--muted); font-size: 13px; }
.footer-brand { font-size: 15px; }

.page { padding-block: clamp(38px, 6vw, 76px) clamp(62px, 8vw, 110px); }
.breadcrumb { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--violet); }
.product-hero { display: grid; grid-template-columns: minmax(235px, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); align-items: center; }
.product-cover { min-height: 280px; border-radius: 15px; }
.product-cover img { width: clamp(106px, 17vw, 180px); height: auto; }
.product-copy h1, .account-header h1, .error-page h1 { font-size: clamp(32px, 5.5vw, 64px); letter-spacing: -.06em; margin: 8px 0 14px; }
.product-copy p { color: var(--muted); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.product-details { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 24px; margin-top: 42px; }
.product-details section, .account-panel { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.product-details h2, .account-panel h2, .account-releases h2 { font-size: 23px; letter-spacing: -.035em; margin-bottom: 12px; }
.product-description { white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); }
.file-info dt, .license-details dt { color: var(--muted); font-size: 14px; }
.file-info dd + dt { margin-top: 10px; }
.file-info code { overflow-wrap: anywhere; font-size: 13px; }

.auth-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 5vw, 70px); padding-block: clamp(42px, 7vw, 92px); align-items: stretch; }
.auth-card { max-width: 460px; width: 100%; margin-inline: auto; padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.auth-symbol { margin-bottom: 16px; }
.auth-card h1 { margin: 0 0 22px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.05em; }
.auth-art { min-height: 360px; border-radius: 16px; background-color: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 800; }
.field input { min-width: 0; width: 100%; min-height: 46px; border: 1px solid #6a557d; border-radius: 7px; background: var(--canvas); color: var(--ink); padding: 9px 12px; }
.field input:focus { border-color: var(--violet); }
.field input::placeholder, .field small { color: var(--muted); }
.auth-card .button { width: 100%; margin-top: 4px; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--violet); text-decoration: underline; }
.form-error, .notifications p { border: 1px solid #8b638f; border-radius: 8px; padding: 10px 14px; background: #31203a; }
.form-error { margin-bottom: 14px; }
.notifications { padding-top: 15px; }
.notifications p + p { margin-top: 5px; }

.account-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.account-header h1 { margin-bottom: 8px; }
.member-id, .account-panel p, .download-card p { color: var(--muted); }
.account-panels { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.account-panel form, .license-key, .license-details { margin-top: 14px; }
.account-panel .field { margin-bottom: 0; }
.redeem-panel { border-color: #6f4796; }
.redeem-input { display: flex; flex-wrap: wrap; gap: 8px; }
.redeem-input input { flex: 1 1 175px; width: auto; }
.license-key { display: block; overflow-wrap: anywhere; color: var(--violet); }
.license-details { display: grid; grid-template-columns: auto 1fr; gap: 4px 15px; }
.license-details dd { overflow-wrap: anywhere; font-size: 14px; }
.account-releases { margin-top: 34px; }
.download-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.download-card + .download-card { margin-top: 8px; }
.download-card h3 a:hover { color: var(--violet); }
.download-card p { margin-top: 4px; font-size: 14px; }
.error-page { padding-block: clamp(60px, 10vw, 120px); }
.error-page .button { margin-top: 10px; }

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; }
  .intro-inner { min-height: auto; display: grid; }
  .intro-copy { padding-block: 46px 0; }
  .intro h1 { font-size: clamp(3.3rem, 13vw, 6rem); }
  .intro-art { position: relative; inset: auto; min-height: clamp(190px, 47vw, 330px); margin-inline: -18px; mask-image: linear-gradient(transparent, #000 15%, #000 76%, transparent); }
  .release-card { grid-template-columns: 90px minmax(0, 1fr) auto; padding: 8px 11px 8px 8px; gap: 12px; }
  .release-art { min-height: 90px; }
  .release-art img { max-width: 76%; }
  .release-action { font-size: 0; gap: 0; }
  .release-action b { font-size: 17px; width: 30px; height: 30px; }
  .release-copy p { font-size: 14px; }
  .product-hero, .product-details, .account-panels, .auth-page { grid-template-columns: minmax(0, 1fr); }
  .product-cover { min-height: 170px; }
  .auth-art { display: none; }
}
@media (max-width: 400px) {
  .brand { font-size: 16px; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .site-nav { gap: 9px; }
  .site-nav > a:not(.button) { font-size: 13px; }
  .release-card { grid-template-columns: 64px minmax(0, 1fr); }
  .release-art { min-height: 70px; align-self: stretch; }
  .product-cover { min-height: 165px; }
  .release-action { display: none; }
  .footer-inner { justify-content: flex-start; padding-block: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
