:root {
  --black: #050505;
  --charcoal: #171717;
  --red: #e50914;
  --red-glow: rgba(229, 9, 20, 0.35);
  --white: #fff;
  --silver: #d0d0d0;
  --silver-dim: #9a9a9a;
  --paper: #f3f3f3;
  --line: #e2e2e2;
  --line-dark: rgba(255, 255, 255, 0.09);
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --red-gradient: linear-gradient(
    135deg,
    #ff2a35 0%,
    #e50914 50%,
    #b20710 100%
  );
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

#progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red-gradient);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 101;
}

/* nav */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 12px;
}

.logo img {
  height: 60px;
  width: auto;
  mix-blend-mode: lighten;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 12px;
  transition: color 0.2s;
}

.back svg {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
  transition: transform 0.3s var(--ease);
}

.back:hover {
  color: #fff;
}

.back:hover svg {
  transform: rotate(180deg) translateX(4px);
}

.soc {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  transition:
    transform 0.3s var(--ease),
    background 0.3s,
    border-color 0.3s;
}

.soc svg {
  width: 22px;
  height: 22px;
}

.soc-wa {
  color: #25d366;
}

.soc:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.soc-wa:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red-gradient);
  color: #fff;
  box-shadow: 0 10px 26px var(--red-glow);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* hero */

.hero {
  position: relative;
  background: var(--black);
  padding: 150px 0 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.28), transparent 65%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 0;
  bottom: 0;
  width: 240px;
  background: linear-gradient(
    115deg,
    transparent 0 40%,
    rgba(229, 9, 20, 0.85) 40% 42%,
    transparent 42% 50%,
    rgba(229, 9, 20, 0.4) 50% 51.5%,
    transparent 51.5%
  );
  z-index: -1;
  opacity: 0.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--red);
  transform: skewX(-20deg);
}

.hero h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 10.5vw, 92px);
  overflow-wrap: anywhere;
  line-height: 0.92;
  color: #fff;
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--red);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
}

.chip b {
  color: var(--red);
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  line-height: 1;
}

.enter {
  opacity: 0;
  transform: translateY(22px);
  animation: up 0.9s var(--ease) forwards;
}

@keyframes up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* layout */

.wrap {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  padding: 60px 0 100px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.toc h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 20px;
  color: var(--black);
  padding: 0 10px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.toc .list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
  position: relative;
  transition:
    background 0.25s,
    color 0.25s;
}

.toc a span {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--black);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s,
    color 0.25s;
}

.toc a:hover {
  background: var(--paper);
  color: var(--black);
}

.toc a.on {
  background: #fff3f3;
  color: var(--black);
}

.toc a.on span {
  background: var(--red);
  color: #fff;
}

.toc-pdf {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.toc-pdf a {
  color: var(--red);
  font-weight: 800;
}

.toc-pdf svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* articles */

.arts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.art {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 100px;
}

.art-h {
  background: var(--black);
  padding: 22px 30px;
  position: relative;
  overflow: hidden;
}

.art-h::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 0;
  bottom: 0;
  width: 140px;
  background: linear-gradient(
    115deg,
    transparent 0 45%,
    rgba(229, 9, 20, 0.75) 45% 47%,
    transparent 47% 55%,
    rgba(255, 255, 255, 0.06) 55% 70%,
    transparent 70%
  );
}

.art-h h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.05;
  color: #fff;
  position: relative;
  z-index: 1;
  padding-right: 70px;
}

.art-b {
  padding: 10px 30px 18px;
}

.cl {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
  scroll-margin-top: 110px;
}

.cl:last-child {
  border-bottom: none;
}

.cl-n {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--red);
  padding-top: 4px;
}

.cl-b p {
  font-size: 15.5px;
  color: var(--text);
}

.cl-b strong {
  color: var(--black);
  font-weight: 800;
}

.cl-b ul {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cl-b li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
}

.cl-b li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--red);
  transform: skewX(-14deg);
  border-radius: 2px;
}

.cl:target {
  background: linear-gradient(90deg, #fff3f3, transparent);
  border-radius: 10px;
}

.fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.fade.in {
  opacity: 1;
  transform: none;
}

.end {
  margin-top: 8px;
  background: var(--black);
  color: var(--silver);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.end p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 26px;
  color: #fff;
  line-height: 1.05;
}

.end p span {
  color: var(--red);
}

.end .btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* footer */

footer {
  background: #000;
  color: var(--silver-dim);
  padding: 36px 0;
  border-top: 1px solid var(--line-dark);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}

.foot img {
  height: 64px;
  mix-blend-mode: lighten;
}

.foot a:hover {
  color: #fff;
}

.totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px var(--red-glow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
  z-index: 90;
  border: none;
  cursor: pointer;
}

.totop.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.totop svg {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}

@media (max-width: 960px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 0;
  }
  .toc {
    position: sticky;
    top: 70px;
    z-index: 50;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 -24px 24px;
    padding: 10px 12px;
    background: rgba(243, 243, 243, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .toc h3,
  .toc-pdf {
    display: none;
  }
  .toc .list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  .toc .list::-webkit-scrollbar {
    display: none;
  }
  .toc a {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--line);
    padding: 7px 12px 7px 7px;
    border-radius: 100px;
    align-items: center;
  }
  .toc a.on {
    border-color: var(--red);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  .nav-inner {
    height: 70px;
  }
  .logo img {
    height: 48px;
  }
  .back span {
    display: none;
  }
  .nav-right .btn-primary {
    display: none;
  }
  .soc {
    width: 40px;
    height: 40px;
  }
  .hero {
    padding: 118px 0 64px;
  }
  .hero::after {
    right: -40px;
    opacity: 0.5;
  }
  .toc {
    top: 70px;
    margin: 0 -18px 20px;
  }
  .art-h {
    padding: 18px 20px;
  }
  .art-b {
    padding: 4px 20px 12px;
  }
  .cl {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 15px 0;
  }
  .cl-n {
    font-size: 19px;
  }
  .cl-b p,
  .cl-b li {
    font-size: 15px;
  }
  .end {
    padding: 24px 20px;
  }
  .end .btns,
  .end .btn {
    width: 100%;
  }
  .totop {
    right: 16px;
    bottom: 16px;
  }
  .foot {
    flex-direction: column;
    text-align: center;
  }
}

@media print {
  nav,
  .toc,
  .totop,
  .end,
  footer,
  #progress,
  .hero::after {
    display: none !important;
  }
  .hero {
    background: #fff;
    padding: 0 0 10px;
  }
  .hero h1 {
    color: #000;
  }
  .chip {
    display: none;
  }
  .wrap {
    display: block;
    padding: 0;
  }
  .art {
    box-shadow: none;
    break-inside: avoid-page;
  }
  .art-h {
    background: #fff;
    border-bottom: 2px solid #e50914;
  }
  .art-h h2 {
    color: #000;
  }
  .fade {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .fade,
  .enter {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
