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

:root {
  --ink: #1f1726;
  --ink-2: #271c30;
  --plum: #56228b;
  --clay: #8b4513;
  --paper: #f4eee5;
  --mute: #c0b2c6;
  --line: rgba(244, 238, 229, 0.16);
  --soft: rgba(244, 238, 229, 0.055);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: 'IBM Plex Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(760px 520px at 88% -8%, rgba(86, 34, 139, 0.55), transparent 70%),
    radial-gradient(820px 620px at -10% 26%, rgba(139, 69, 19, 0.34), transparent 72%),
    radial-gradient(circle at 50% 50%, rgba(244, 238, 229, 0.07) 1px, transparent 1.4px);
  background-size: auto, auto, 20px 20px;
  background-repeat: no-repeat, no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

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

.topstack {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(31, 23, 38, 0.96), rgba(31, 23, 38, 0.74));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px) 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--paper);
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 58% 42% 48% 52% / 46% 56% 44% 54%;
  object-fit: cover;
  flex: none;
}

.mark-blob {
  display: inline-block;
  background: conic-gradient(from 40deg, var(--plum), var(--clay), var(--plum));
  box-shadow: inset 0 0 0 1px rgba(244, 238, 229, 0.35);
}

.anchorbar { padding: 0 clamp(16px, 4vw, 40px) 12px; }

.menu-shell { display: block; }

.menu-shell > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.menu-shell > summary::-webkit-details-marker { display: none; }

.menu-shell > summary::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: radial-gradient(circle, var(--paper) 1.3px, transparent 1.5px) 0 0 / 7px 7px;
}

.menu-shell > summary:hover { background: rgba(86, 34, 139, 0.5); border-color: transparent; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 2px;
  padding: 0;
  list-style: none;
}

.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pills a:hover,
.pills a.on {
  background: var(--plum);
  border-color: transparent;
  transform: translateY(-2px);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.stage { padding: clamp(18px, 3.6vw, 40px) 0 6px; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: 'art copy';
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  min-height: 45vh;
}

.hero-copy {
  grid-area: copy;
  text-align: right;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  font-weight: 600;
}

.lede {
  margin: 0 0 0 auto;
  max-width: 34ch;
  color: var(--mute);
  font-size: 17px;
}

.hero-art {
  grid-area: art;
  position: relative;
  min-height: 250px;
}

.hero-art .shot {
  display: block;
  height: auto;
  box-shadow: 0 26px 48px -28px #000;
}

.hero-art .shot-1 {
  width: 80%;
  border-radius: 26px 14px 24px 16px;
  transform: rotate(-3.2deg);
}

.hero-art .shot-2 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  border: 3px solid var(--ink);
  border-radius: 16px 26px 14px 24px;
  transform: rotate(3.6deg);
}

.hero-art .shot:only-child { width: 92%; transform: rotate(-1.6deg); }

.hero-art.is-empty::before,
.hero-art.is-empty::after {
  content: '';
  position: absolute;
  border-radius: 58% 42% 46% 54% / 44% 56% 44% 56%;
}

.hero-art.is-empty::before {
  width: 58%;
  aspect-ratio: 1 / 1;
  top: 0;
  left: 8%;
  background: linear-gradient(140deg, var(--plum), var(--clay));
  box-shadow: 0 24px 46px -28px #000;
}

.hero-art.is-empty::after {
  width: 42%;
  aspect-ratio: 1 / 1;
  right: 6%;
  bottom: 0;
  border: 2px solid var(--line);
  background: radial-gradient(circle, rgba(244, 238, 229, 0.28) 1.2px, transparent 1.5px) 0 0 / 12px 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
  padding: clamp(22px, 4vw, 44px) 0 10px;
}

.content { min-width: 0; }

.content > article {
  padding: 34px 0 40px;
  border-bottom: 1px dashed var(--line);
}

.content > article:first-child { padding-top: 4px; }
.content > article:last-child { border-bottom: 0; padding-bottom: 8px; }

.content :is(h2, h3) {
  margin: 0 0 14px;
  line-height: 1.32;
  letter-spacing: -0.008em;
  font-weight: 600;
}

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

.content h3 { font-size: clamp(19px, 2.4vw, 23px); }

.content :is(h2, h3) > span {
  display: inline-block;
  padding-bottom: 3px;
  background: linear-gradient(transparent 72%, rgba(139, 69, 19, 0.55) 72%);
}

.content p { margin: 0 0 16px; }

.content ul,
.content ol { padding-left: 1.25em; }

.content li { margin-bottom: 8px; }

.content a {
  color: #dcc6f2;
  text-decoration: underline;
  text-decoration-color: rgba(220, 198, 242, 0.45);
  text-underline-offset: 3px;
}

.content a:hover { color: #fff; text-decoration-color: #fff; }

.content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--clay);
  border-radius: 0 16px 16px 0;
  background: var(--soft);
  color: var(--mute);
}

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

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

.rail {
  position: sticky;
  top: 176px;
  display: grid;
  gap: 16px;
}

.rail-block {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--clay);
  border-radius: 22px 16px 22px 16px;
  background: var(--soft);
}

.rail h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.rail h2 > span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--plum);
}

.rail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }

.rail li { margin: 0; }

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: var(--mute);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(244, 238, 229, 0.1);
}

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

.rail-top { border-bottom-color: var(--plum); }

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.totop:hover { transform: translateY(-2px); background: #a0521a; }

.foot {
  margin-top: 34px;
  padding: clamp(26px, 4vw, 44px) clamp(16px, 4vw, 40px) 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31, 23, 38, 0.25), rgba(139, 69, 19, 0.24));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
}

.foot-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--plum);
  border-radius: 28px 18px 28px 18px;
  background: rgba(86, 34, 139, 0.32);
}

.foot-cta h2 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.foot-cta h2 > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--clay);
}

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

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--mute);
  font-size: 16px;
  text-decoration: none;
}

.foot-nav a:hover { color: var(--paper); }

.foot-copy { color: var(--mute); font-size: 16px; }

.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: 'copy' 'art';
    min-height: 0;
    padding-top: 6px;
  }

  .hero-art { min-height: 210px; margin-top: 6px; }

  .split { grid-template-columns: 1fr; }

  .rail { position: static; }

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

  .pills {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pills a { justify-content: flex-start; padding-left: 20px; }

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

  .foot { grid-template-columns: 1fr; align-items: start; }

  .foot-copy { justify-self: start; }
}

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

  .hero h1 { font-size: 30px; }

  .lede { font-size: 16px; }
}

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

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