@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Comic+Neue:wght@300;400;700&display=swap');

:root {
  --plum: #56228b;
  --brown: #8b4513;
  --ink: #1f1726;
  --deep: #150f1c;
  --paper: #f7f0e6;
  --paper-2: #ece0d0;
  --cream: #f7f0e6;
  --muted: #bda8d0;
  --line-soft: rgba(247, 240, 230, 0.13);
  --shadow-nat: 0 14px 30px rgba(10, 6, 14, 0.34);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Baloo 2', 'Comic Neue', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--cream);
  background-color: var(--deep);
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(247, 240, 230, 0.026) 0 2px,
      rgba(247, 240, 230, 0) 2px 9px
    ),
    radial-gradient(120% 70% at 88% 4%, rgba(86, 34, 139, 0.42), rgba(21, 15, 28, 0) 62%),
    radial-gradient(90% 60% at 6% 96%, rgba(139, 69, 19, 0.32), rgba(21, 15, 28, 0) 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.28;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  text-decoration: none;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--cream);
  background: linear-gradient(150deg, var(--plum), var(--brown));
  border-radius: 48% 52% 62% 38% / 55% 45% 55% 45%;
  box-shadow: var(--shadow-nat);
  overflow: hidden;
}

.brandmark {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 70;
}

.burger {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 58px;
  min-height: 48px;
  padding: 6px 4px;
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  color: var(--cream);
  background: rgba(21, 15, 28, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.burger-label {
  letter-spacing: 2px;
}

body.menu-open .burger-bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.menu-open .burger-bar:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 26px 40px;
  overflow-y: auto;
  background: linear-gradient(158deg, #1a1224 0%, #291740 56%, #3a1d16 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
}

.menu::before {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: min(62vw, 420px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, rgba(139, 69, 19, 0.42), rgba(86, 34, 139, 0.24));
  border-radius: 42% 58% 63% 37% / 47% 41% 59% 53%;
  pointer-events: none;
}

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

.menu-nav {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 6px 4px;
  font-size: clamp(19px, 5vw, 25px);
  font-weight: 600;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-nav a:hover,
.menu-nav a:focus-visible {
  color: #e2c6ff;
  padding-left: 12px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(300px, 45vh, 470px);
  padding: 104px 22px 62px;
  overflow: hidden;
  background: linear-gradient(152deg, #1b1226 0%, #2a1533 54%, #3a1d16 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -78px;
  right: -64px;
  width: min(60vw, 430px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 34% 34%, rgba(139, 69, 19, 0.55), rgba(86, 34, 139, 0.3));
  border-radius: 44% 56% 63% 37% / 47% 41% 59% 53%;
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -22px;
  height: 54px;
  background: linear-gradient(90deg, var(--plum), #7b3aa8 42%, var(--brown));
  transform: skewY(-3.5deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(28px, 6.4vw, 46px);
  letter-spacing: 0.4px;
  color: var(--cream);
  max-width: 22ch;
  text-shadow: 0 3px 18px rgba(10, 6, 14, 0.55);
}

.hero-lead {
  margin-top: 14px;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.68;
  color: #ddcbea;
}

.stage {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-areas:
    'rail collage'
    'rail reader';
  gap: 26px 32px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 48px;
}

.collage {
  grid-area: collage;
  position: relative;
  margin: 0;
  height: clamp(180px, 24vw, 236px);
}

.collage-slot {
  position: absolute;
  display: block;
  overflow: hidden;
  background: linear-gradient(142deg, rgba(86, 34, 139, 0.62), rgba(139, 69, 19, 0.6));
  box-shadow: var(--shadow-nat);
}

.collage-slot.a {
  left: 0;
  top: 0;
  width: 58%;
  height: 84%;
  z-index: 2;
  border-radius: 46% 54% 40% 60% / 58% 42% 58% 42%;
  transform: rotate(-2.4deg);
}

.collage-slot.b {
  right: 0;
  bottom: 0;
  width: 53%;
  height: 74%;
  border-radius: 58% 42% 55% 45% / 44% 56% 44% 56%;
  transform: rotate(3deg);
}

.collage-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.rail {
  grid-area: rail;
  position: sticky;
  top: 84px;
  padding: 18px 16px 22px;
  border-top: 5px solid var(--plum);
  background: rgba(247, 240, 230, 0.055);
  box-shadow: var(--shadow-nat);
}

.rail h2 {
  font-size: 20px;
  color: var(--cream);
  letter-spacing: 0.4px;
}

.rail .subtitle {
  margin: 8px 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 16px;
  text-decoration: none;
  color: #e6d9f0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s ease;
}

.rail a:hover,
.rail a:focus-visible {
  color: #e2c6ff;
}

.reader {
  grid-area: reader;
  min-width: 0;
  counter-reset: sec;
  color: #241a2e;
}

.reader > div {
  position: relative;
  counter-increment: sec;
  margin-bottom: 26px;
  padding: 26px 22px 34px;
  background: var(--paper);
  box-shadow: var(--shadow-nat);
  scroll-margin-top: 92px;
}

.reader > div::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'Comic Neue', 'Baloo 2', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(86, 34, 139, 0.4);
}

.reader > div::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--plum), var(--brown));
}

.reader > div:nth-child(even) {
  background: var(--paper-2);
}

.reader h2 {
  margin: 0 0 10px;
  padding-right: 46px;
  font-size: clamp(20px, 2.7vw, 26px);
  color: var(--plum);
}

.reader h2 + p {
  margin-top: 0;
}

.reader h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  color: var(--brown);
}

.reader p {
  margin: 0 0 14px;
  line-height: 1.82;
}

.reader p:last-child {
  margin-bottom: 0;
}

.reader ul,
.reader ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.reader li {
  margin-bottom: 8px;
  line-height: 1.78;
}

.reader a {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.reader a:hover {
  color: var(--plum);
}

.reader strong {
  color: var(--plum);
}

.reader blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: rgba(86, 34, 139, 0.08);
  border-left: 5px solid var(--plum);
}

.reader time {
  font-family: 'Comic Neue', 'Baloo 2', system-ui, sans-serif;
  font-size: 16px;
  color: var(--brown);
}

.reader figure {
  margin: 0 0 16px;
}

.reader img {
  display: block;
  width: 100%;
  height: auto;
}

.reader table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 16px;
}

.reader th,
.reader td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(31, 23, 38, 0.18);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 34px 22px 44px;
  background: #120d18;
  border-top: 1px solid var(--line-soft);
  color: #cdbfd8;
}

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

.foot-mark {
  width: 44px;
  height: 44px;
  font-size: 19px;
}

.foot-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
}

.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 16px;
  text-decoration: none;
  color: #e6d9f0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.foot-nav a:hover,
.foot-nav a:focus-visible {
  color: #e2c6ff;
  border-bottom-color: var(--brown);
}

.foot-end {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.subscribe {
  display: flex;
  gap: 8px;
}

.subscribe-field {
  width: 156px;
  min-height: 44px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--cream);
  background: rgba(247, 240, 230, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 0;
}

.subscribe-field::placeholder {
  color: #9c8aac;
}

.subscribe-btn {
  min-height: 44px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  background: linear-gradient(140deg, var(--plum), var(--brown));
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.subscribe-btn:hover {
  filter: brightness(1.12);
}

.copyright {
  font-size: 16px;
  color: #9c8aac;
}

:focus-visible {
  outline: 2px dashed #d9b8ff;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px 24px;
  }
}

@media (max-width: 820px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'rail'
      'collage'
      'reader';
    padding: 44px 16px 40px;
  }

  .rail {
    position: static;
  }

  .rail ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .collage {
    height: 200px;
  }

  .reader > div {
    padding: 22px 16px 30px;
  }

  .foot {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .foot-end {
    gap: 8px;
  }

  .copyright {
    order: 2;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 96px 16px 64px;
  }

  .stage {
    padding: 38px 14px 36px;
  }

  .rail ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .reader > div {
    padding: 20px 14px 28px;
  }

  .subscribe-field {
    width: 100%;
    min-width: 0;
  }

  .subscribe {
    width: 100%;
  }
}

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

  .menu,
  .burger-bar,
  .menu-nav a,
  .rail a,
  .foot-nav a {
    transition-duration: 0.01ms;
  }
}

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