@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --paper: #150c0c;
  --panel: #1e1313;
  --txt: #f7e8ec;
  --dim: #c8a6b0;
  --line: rgba(255, 232, 238, 0.16);
  --line2: rgba(255, 232, 238, 0.34);
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(16px, 4vw, 44px);
  --bar: 116px;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.72;
  color: var(--txt);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.72;
  background:
    radial-gradient(42% 48% at 14% 16%, rgba(255, 0, 0, 0.62), transparent 64%),
    radial-gradient(46% 44% at 84% 10%, rgba(255, 20, 147, 0.5), transparent 62%),
    radial-gradient(54% 52% at 74% 84%, rgba(255, 0, 0, 0.32), transparent 68%),
    radial-gradient(44% 46% at 22% 92%, rgba(255, 20, 147, 0.34), transparent 70%);
  background-size: 200% 200%;
  filter: saturate(1.25) blur(18px);
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  from {
    background-position: 0% 0%;
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    background-position: 100% 100%;
    transform: scale(1.14) translate3d(-3%, 2%, 0);
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 232, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 232, 238, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 18%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 26%, #000 18%, transparent 76%);
}

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

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

a:hover {
  color: #fff;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

[id] {
  scroll-margin-top: 132px;
}

.skip {
  position: absolute;
  top: -80px;
  left: 10px;
  z-index: 99;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
}

.skip:focus-visible {
  top: 10px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(18, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.row-brand {
  display: flex;
  align-items: center;
  padding: 10px var(--pad) 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--txt);
}

.brand:hover {
  color: #fff;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
}

.brand-txt,
.foot-big {
  background: linear-gradient(92deg, var(--red), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.row-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--pad) 10px;
}

.contact,
.burger,
.overlay-close {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--txt);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.contact:hover,
.burger:hover,
.overlay-close:hover {
  border-color: var(--pink);
  color: #fff;
}

.burger-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.burger-lines i {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  background:
    radial-gradient(60% 60% at 18% 8%, rgba(255, 0, 0, 0.52), transparent 62%),
    radial-gradient(72% 72% at 92% 92%, rgba(255, 20, 147, 0.46), transparent 64%),
    rgba(14, 8, 8, 0.97);
}

body.menu-open .overlay {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.overlay-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.overlay-nav {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px 0;
  overflow-y: auto;
}

.overlay-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--txt);
  font-size: clamp(21px, 5vw, 32px);
  letter-spacing: -0.02em;
}

.overlay-nav em {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--pink);
}

.overlay-nav a:hover {
  color: var(--pink);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--bar));
  min-height: calc(100svh - var(--bar));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.15);
  transition: opacity 1.6s ease;
}

.hero-img.is-on {
  opacity: 0.58;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(21, 12, 12, 0.6) 0%,
    rgba(21, 12, 12, 0.22) 38%,
    rgba(21, 12, 12, 0.96) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
  padding: 48px var(--pad) calc(var(--pad) + 40px);
}

.badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  background: rgba(255, 0, 0, 0.24);
  font-size: 14px;
  letter-spacing: 0.18em;
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin: 0 0 0.4em;
  font-size: clamp(29px, 7.4vw, 62px);
  letter-spacing: -0.04em;
  word-break: break-word;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.6);
}

.lead {
  max-width: 46ch;
  margin: 0 0 26px;
  color: #e7cfd6;
  font-size: clamp(16px, 2.2vw, 18px);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: 4px;
  background: linear-gradient(96deg, var(--red), var(--pink));
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 40px rgba(255, 20, 147, 0.32);
}

.cta:hover {
  color: #fff;
  filter: brightness(1.1);
}

.frame {
  display: grid;
  grid-template-columns: minmax(0, 232px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--pad) clamp(40px, 6vw, 84px);
}

.rail {
  position: sticky;
  top: calc(var(--bar) + 18px);
  padding: 16px 16px 10px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--pink);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
}

.rail-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--dim);
}

.rail hr {
  width: 42px;
  height: 3px;
  margin: 10px 0 14px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.rail-nav {
  display: grid;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--txt);
  font-size: 15px;
}

.rail-nav a:last-child {
  border-bottom: 0;
}

.rail-nav a:hover {
  color: var(--pink);
}

.sheet {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(20, 12, 12, 0.52);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.body > article {
  padding: 4px 0 clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.body > article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.body h2 {
  font-size: clamp(22px, 3.4vw, 30px);
}

.body h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  vertical-align: 0.1em;
}

.body h3 {
  font-size: clamp(18px, 2.6vw, 21px);
  color: #ffeef3;
}

.body hr {
  width: 64px;
  height: 3px;
  margin: 14px 0 22px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.body p {
  margin: 0 0 1em;
}

.body ul,
.body ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.body li {
  margin: 0.35em 0;
}

.body li::marker {
  color: var(--pink);
}

.body a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 20, 147, 0.55);
  text-underline-offset: 3px;
}

.body strong {
  color: #fff;
}

.body img {
  margin: 1.1em 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.body blockquote {
  margin: 1.2em 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--pink);
  color: #e9d3da;
}

.body table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 16px;
}

.body th,
.body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.body code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 5vw, 56px) var(--pad) calc(var(--pad) + 8px);
  border-top: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(30, 19, 19, 0.55), rgba(21, 12, 12, 0.94));
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 200px;
}

.foot-logo {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
}

.foot-big {
  font-size: clamp(26px, 5.4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.foot-nav {
  flex: 1 1 300px;
}

.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 18px;
  margin: 0;
}

.foot-nav dt {
  width: 100%;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a,
.foot-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  color: var(--txt);
  font-size: 15px;
}

.foot-nav a:hover,
.foot-top a:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.foot-copy {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 820px) {
  .foot {
    flex-wrap: nowrap;
    align-items: center;
  }
}

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

  .rail {
    position: static;
  }

  .rail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .rail-nav a {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .foot {
    gap: 10px;
  }

  .foot-copy {
    flex: 1 1 100%;
  }

  .overlay-nav a {
    font-size: 20px;
  }
}

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

  body::before,
  .hero-img {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
