:root {
  --night: #06100e;
  --night-soft: #0d1c19;
  --ink: #15201d;
  --emerald: #58b68e;
  --emerald-deep: #1d6f56;
  --lotus: #d7a2ad;
  --gold: #c9ad68;
  --text: #f1eadc;
  --muted: #b8aa96;
  --line: rgba(226, 205, 156, 0.2);
  --glass: rgba(8, 20, 17, 0.72);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

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

.cursor-dot {
  position: fixed;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 26px rgba(88, 182, 142, 0.8);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 28%, rgba(88, 182, 142, 0.18), transparent 25%),
    radial-gradient(circle at 82% 8%, rgba(215, 162, 173, 0.14), transparent 24%),
    linear-gradient(180deg, #030807 0%, #07120f 50%, #100f12 100%);
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.78) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(201,173,104,.75) 0 1px, transparent 1.5px);
  background-position: 0 0, 40px 60px;
  background-size: 130px 150px, 190px 210px;
  animation: twinkle 7s ease-in-out infinite alternate;
  opacity: 0.32;
}

.stars::after {
  animation-duration: 11s;
  filter: blur(0.6px);
  transform: scale(1.1);
}

.site-header {
  position: fixed;
  top: 16px;
  left: clamp(16px, 4vw, 54px);
  right: clamp(16px, 4vw, 54px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(88, 182, 142, 0.5);
  border-radius: 50%;
  color: var(--emerald);
  background: rgba(88, 182, 142, 0.08);
}

.brand strong,
.brand em {
  display: block;
  line-height: 1.1;
}

.brand em,
.eyebrow {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 13px;
  transition: color .2s ease, background .2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-pill {
  color: var(--night);
  background: linear-gradient(135deg, var(--emerald), #c7d7b8);
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: transparent;
}

.section-full {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding: 120px clamp(22px, 7vw, 96px) 80px;
}

.hero-content {
  max-width: 840px;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: 0.95;
}

.hero-line {
  margin: 0;
  color: var(--lotus);
  font-size: clamp(1.5rem, 3vw, 2.45rem);
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-orbit {
  position: absolute;
  right: clamp(-120px, 4vw, 110px);
  bottom: 8vh;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 173, 104, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(88, 182, 142, 0.14), 0 0 80px rgba(215, 162, 173, 0.09);
  animation: slowSpin 28s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(88, 182, 142, 0.24);
  border-radius: 50%;
}

.hero-orbit::after {
  inset: 34%;
  background: radial-gradient(circle, rgba(201,173,104,.24), transparent 60%);
}

.button,
.filter,
.visitor-note button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 10px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover,
.filter:hover,
.visitor-note button:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 182, 142, 0.55);
}

.primary {
  border-color: transparent;
  color: #07100e;
  background: linear-gradient(135deg, var(--emerald), #d6c180);
}

.ghost {
  color: var(--text);
  background: rgba(88, 182, 142, 0.09);
}

.quiet {
  color: var(--gold);
  background: transparent;
}

.full {
  width: 100%;
}

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.content-section {
  padding: 108px clamp(22px, 7vw, 96px);
}

.band {
  background: linear-gradient(180deg, rgba(8, 19, 17, 0.6), rgba(22, 18, 20, 0.78));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading h2,
.about-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.1;
}

.section-heading p,
.about-copy p,
.curator-card p,
.community-aside p,
.product-card p,
.post-card p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.art-card,
.course-card,
.product-card,
.curator-card,
.post-card,
.community-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 24, 21, 0.68);
  box-shadow: var(--shadow);
}

.art-card {
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.art-card button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.art-card img,
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.art-card-body,
.course-card,
.product-card-body,
.post-card,
.community-aside,
.curator-card {
  padding: 22px;
}

.art-card h3,
.course-card h3,
.product-card h3,
.post-card h3,
.community-aside h3 {
  margin: 4px 0 8px;
}

.filter.active {
  border-color: rgba(88, 182, 142, 0.7);
  color: #07100e;
  background: var(--emerald);
}

.course-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  min-height: 270px;
}

.course-meta,
.post-meta,
.price {
  color: var(--gold);
}

.product-card {
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-cloud span,
.post-tag {
  border: 1px solid rgba(215, 162, 173, 0.25);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--lotus);
  background: rgba(215, 162, 173, 0.08);
}

.curator-card img {
  width: 100%;
  margin-bottom: 18px;
  border-radius: 6px;
}

.visitor-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(88, 182, 142, 0.35);
  border-radius: 8px;
  padding: 16px;
  background: rgba(88, 182, 142, 0.08);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-art {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 6px;
}

.post-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.post-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
}

.community-aside {
  position: sticky;
  top: 110px;
  display: grid;
  align-self: start;
  gap: 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 34px clamp(22px, 7vw, 96px);
  color: var(--muted);
  background: #030807;
}

dialog {
  width: min(860px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #081411;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.art-modal[open] {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(240px, 1fr);
  gap: 24px;
}

.art-modal img {
  width: 100%;
  border-radius: 6px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font-size: 1.8rem;
}

.access-form {
  display: grid;
  gap: 14px;
}

.access-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.access-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes twinkle {
  from { opacity: 0.18; transform: translateY(0); }
  to { opacity: 0.48; transform: translateY(-18px); }
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  body:hover .cursor-dot {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .gallery-grid,
  .course-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
    border-radius: 18px;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    min-height: 38px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    background: rgba(8, 20, 17, 0.96);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 138px;
  }

  .hero-orbit {
    width: 78vw;
    opacity: 0.45;
  }

  .content-section {
    padding: 74px 18px;
  }

  .gallery-grid,
  .course-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .visitor-note,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .art-modal[open] {
    grid-template-columns: 1fr;
  }
}
