[hidden] {
  display: none !important;
}

:root {
  --bg: #070708;
  --bone: #e8e2d6;
  --bone-dim: #a39b90;
  --amber: #c4a574;
  --ink: #12110f;
  --line: rgba(232, 226, 214, 0.14);
  --paper: #e4dccb;
  color-scheme: dark;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--bone);
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.eyebrow,
.nav-brand,
.beat-index {
  font-family: Cinzel, "Times New Roman", serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--amber);
  font-size: 1rem;
}

.tape {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 1.15rem 0.45rem;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  clip-path: polygon(
    0% 16%, 3% 2%, 9% 10%, 16% 0%, 24% 8%, 33% 0%, 42% 9%, 51% 1%, 60% 8%, 69% 0%, 78% 10%, 87% 1%, 94% 9%, 100% 14%,
    100% 84%, 96% 98%, 90% 90%, 82% 100%, 74% 91%, 65% 100%, 56% 90%, 47% 100%, 38% 92%, 29% 100%, 20% 90%, 12% 100%, 5% 91%, 0% 86%
  );
}

h2 {
  margin: 0;
  font-weight: 700;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 6.5rem 0;
  scroll-margin-top: 5.5rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2.5rem;
}

.lede {
  max-width: 38rem;
  margin: -1rem 0 2rem;
  color: var(--bone);
  font-size: 1.2rem;
}

.prose p,
.pillar p {
  margin: 0;
  color: var(--bone-dim);
}

.prose p + p {
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid rgba(232, 226, 214, 0.45);
  background: transparent;
  color: var(--bone);
  font-family: "Noto Serif TC", serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn:disabled {
  background: transparent;
  border-color: rgba(232, 226, 214, 0.28);
  color: var(--bone-dim);
  cursor: not-allowed;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
  text-align: center;
}

.age-pending #gate,
.age-pending #site,
.age-ok #gate,
.age-ask #site {
  display: none;
}

.gate-lead {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.15rem;
}

.gate-ask-line {
  margin: 0 0 1.75rem;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.35;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(to bottom, rgba(7, 7, 8, 0.92), rgba(7, 7, 8, 0));
}

.nav.is-scrolled {
  background: rgba(7, 7, 8, 0.94);
  border-bottom: 1px solid rgba(196, 165, 116, 0.2);
}

.nav-brand {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
}

.nav-links a {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--amber);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(232, 226, 214, 0.35);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 7rem 1.25rem 4.5rem;
  text-align: center;
  background: #070708 url("img/combat-poster.jpg?v=3") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(7, 7, 8, 0.62), rgba(7, 7, 8, 0.28) 28%, rgba(7, 7, 8, 0.34) 62%, rgba(7, 7, 8, 0.84)),
    radial-gradient(ellipse at center, rgba(7, 7, 8, 0.12), rgba(7, 7, 8, 0.58) 80%);
}

.hero > :not(.hero-video):not(.hero-shade) {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0.25rem 0 1.25rem;
}

.hero-title img {
  width: min(630px, 92vw);
}

.hero-line {
  margin: 0 0 1.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

blockquote {
  margin: 0;
}

blockquote p {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.35;
}

.places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.25rem;
}

.place {
  margin: 0;
}

.place img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #000;
}

.place figcaption {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.85rem;
}

.place h3,
.place p {
  margin: 0;
}

.place p {
  color: var(--bone-dim);
}

.beat-index {
  margin: 0.15rem 0 0;
  color: var(--amber);
  font-size: 1rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pillar {
  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.pillar h3 {
  margin-top: 0.65rem;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.socials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.4);
}

.social[data-key="threads"] {
  background: linear-gradient(145deg, #9d174d 0%, #e11d48 46%, #fb923c 100%);
}

.social[data-key="discord"] {
  background: #5865f2;
}

.social[data-key="x"] {
  background: #1d9bf0;
}

.social svg {
  width: 1.8rem;
  height: 1.8rem;
}

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

.social:not([href]) {
  cursor: default;
}

.social:not([href]):hover {
  filter: none;
}

.demo-cta {
  margin: 0.5rem 0 0.75rem;
}

.fine {
  margin: 0;
  color: var(--bone-dim);
  font-size: 1rem;
}

.footer {
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  margin: 0.2rem 0;
  color: var(--bone-dim);
}

.footer .nav-brand {
  text-transform: none;
  letter-spacing: 0.18em;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.4rem 1.25rem 1.1rem;
    background: rgba(7, 7, 8, 0.98);
    border-bottom: 1px solid rgba(196, 165, 116, 0.22);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.55rem 0;
  }

  .story-grid,
  .pillars,
  .demo-layout,
  .places,
  .place figcaption {
    grid-template-columns: 1fr;
  }

  .socials {
    justify-content: flex-start;
    margin-top: 1.75rem;
  }

  .place figcaption {
    gap: 0.15rem;
  }

  .story-grid {
    gap: 1.5rem;
  }
}

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

  .hero-video {
    display: none;
  }
}
