:root {
  --paper: #f3f0e8;
  --surface: #fbfaf6;
  --ink: #181714;
  --muted: #706e66;
  --muted-light: #9b988f;
  --line: rgba(24, 23, 20, .15);
  --line-strong: rgba(24, 23, 20, .3);
  --butter: #f0d05a;
  --butter-deep: #b88a2b;
  --red: #b75b3f;
  --radius: 17px;
  --max: 1060px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink); background: var(--butter); }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 23, 20, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 23, 20, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 48%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  width: min(100% - 32px, var(--max));
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, .9);
  backdrop-filter: blur(16px);
}
.identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.identity img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 44%;
  box-shadow: 0 0 0 1px rgba(24, 23, 20, .12);
}
.identity > span { display: grid; min-width: 0; gap: 2px; }
.identity strong { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.identity small { overflow: hidden; color: var(--muted); font-family: "SFMono-Regular", "SF Mono", Consolas, monospace; font-size: 8px; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.shop-nav { display: flex; align-items: center; justify-content: center; gap: 25px; color: var(--muted); font-size: 10px; }
.shop-nav a:hover { color: var(--ink); }
.top-cta {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}
.top-cta:hover { color: var(--paper); background: var(--ink); }

.hub {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 0 0 74px;
}
.eyebrow, .section-index, .link-state,
.footer-disclosure-lead strong {
  font-family: "SFMono-Regular", "SF Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 8px;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(183, 91, 63, .1); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
  padding: 54px 0 58px;
}
.hero h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(50px, 6.2vw, 78px);
  font-weight: 650;
  line-height: .99;
  letter-spacing: -.072em;
}
.hero h1 em, .section h2 em {
  color: var(--muted);
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
.hero-lede { max-width: 600px; margin-bottom: 27px; color: #4e4c45; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.button-primary:hover { border-color: var(--butter); color: var(--ink); background: var(--butter); }
.button-ghost { background: rgba(251, 250, 246, .58); }
.button-ghost:hover { background: var(--surface); }
.hero-points { display: flex; flex-wrap: wrap; gap: 7px 17px; margin: 21px 0 0; padding: 0; color: var(--muted); font-size: 9px; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-light); content: ""; }

.profile-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  border-radius: 21px;
  color: #f3f1ea;
  background: #191914;
  box-shadow: 0 25px 58px rgba(24, 23, 20, .17);
}
.profile-card::before {
  position: absolute;
  top: -95px;
  right: -92px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(240, 208, 90, .16);
  filter: blur(9px);
  content: "";
}
.profile-card::after {
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 185px;
  height: 185px;
  border: 1px solid rgba(240, 208, 90, .22);
  border-radius: 50%;
  content: "";
}
.profile-card > * { position: relative; z-index: 1; }
.profile-head { display: flex; justify-content: space-between; color: #7c7d72; font-family: "SFMono-Regular", "SF Mono", monospace; font-size: 7px; letter-spacing: .1em; }
.profile-avatar-wrap { display: flex; align-items: flex-end; gap: 11px; margin-top: 25px; }
.profile-avatar { width: 92px; height: 92px; flex: 0 0 auto; border: 1px solid rgba(240, 208, 90, .46); border-radius: 20px; object-fit: cover; object-position: center 44%; box-shadow: 0 12px 26px rgba(0, 0, 0, .22); }
.profile-avatar-wrap > span { padding-bottom: 3px; color: #7f8175; font-family: "SFMono-Regular", "SF Mono", monospace; font-size: 6px; letter-spacing: .12em; }
.profile-copy { margin: 17px 0 19px; }
.profile-copy p { margin-bottom: 6px; color: #8e9084; font-size: 9px; }
.profile-copy h2 { margin-bottom: 0; color: #f4f1e9; font-size: clamp(27px, 2.8vw, 36px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: auto 0 18px; border: 1px solid #35362f; background: #35362f; }
.profile-facts > div { min-width: 0; padding: 10px 9px; background: #191914; }
.profile-facts dt { margin-bottom: 4px; color: #74766b; font-size: 7px; }
.profile-facts dd { margin: 0; color: #d5d3ca; font-size: 10px; }
.profile-link { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid #35362f; color: var(--butter); font-size: 10px; }

.section { padding: 66px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); gap: 50px; align-items: end; margin-bottom: 30px; }
.section-index { margin-bottom: 16px; color: var(--muted); font-size: 8px; }
.section h2 { margin-bottom: 0; font-size: clamp(36px, 4.2vw, 58px); font-weight: 620; line-height: 1.04; letter-spacing: -.055em; }
.section-head > p { margin-bottom: 5px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.links {
  display: grid;
  grid-template-columns: 1.28fr repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}
.link-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 205px;
  grid-template-rows: auto 1fr;
  gap: 20px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.link-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(24, 23, 20, .1); }
.link-card::after {
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 135px;
  height: 135px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .09;
}
.link-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.link-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.link-icon::before {
  width: 22px;
  height: 22px;
  background: currentColor;
  content: "";
  -webkit-mask: var(--link-logo) center / contain no-repeat;
  mask: var(--link-logo) center / contain no-repeat;
}
.link-logo-discord { --link-logo: url("assets/icons/discord.svg"); }
.link-logo-xiaohongshu { --link-logo: url("assets/icons/xiaohongshu.svg"); }
.link-logo-x { --link-logo: url("assets/icons/x.svg"); }
.link-logo-reddit { --link-logo: url("assets/icons/reddit.svg"); }
.link-logo-substack { --link-logo: url("assets/icons/substack.svg"); }
.link-logo-xiaohongshu::before { width: 24px; height: 24px; }
.link-logo-x::before { width: 18px; height: 18px; }
.link-logo-reddit::before { width: 24px; height: 24px; }
.link-state { padding-top: 3px; color: currentColor; font-size: 7px; opacity: .45; text-align: right; }
.link-state.is-configured { color: var(--butter); opacity: 1; }
.link-copy { align-self: end; min-width: 0; padding-right: 18px; }
.link-copy strong { display: block; margin-bottom: 5px; font-size: 20px; font-weight: 620; letter-spacing: -.035em; }
.link-copy small { display: block; font-size: 9px; line-height: 1.5; opacity: .64; }
.link-arrow { position: absolute; right: 15px; bottom: 14px; font-size: 16px; font-weight: 300; }
.link-discord { color: #f4f1e9; background: #22221c; border-color: #22221c; }
.link-discord .link-icon { color: var(--butter); }
.link-red { color: #2a1712; background: #f7c8bb; border-color: #f7c8bb; }
.link-red .link-icon { color: #d9412a; }
.link-red .link-state.is-configured { color: #862b1a; }
.link-x { color: #f3f1ea; background: #11110f; border-color: #11110f; }
.link-reddit { color: #2a1712; background: #ff8b61; border-color: #ff8b61; }
.link-reddit .link-icon { color: #fff8ee; }
.link-substack { color: #f2eee7; background: #4d59d5; border-color: #4d59d5; }
.link-substack .link-icon { color: #ffb348; }
.link-substack .link-state.is-configured { color: #ffe19e; }

.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.about-grid article { min-width: 0; padding: 21px 24px 23px 0; border-right: 1px solid var(--line); }
.about-grid article + article { padding-left: 24px; }
.about-grid article:last-child { border-right: 0; }
.about-grid article > span { display: block; margin-bottom: 25px; color: var(--muted-light); font-family: "SFMono-Regular", "SF Mono", monospace; font-size: 8px; }
.about-grid h3 { margin-bottom: 9px; font-size: 16px; font-weight: 650; }
.about-grid p { max-width: 300px; margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.72; }

.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 32px 0 30px;
  border-top: 1px solid var(--line-strong);
}
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; object-position: center 44%; }
.footer-brand > div { display: grid; gap: 2px; }
.footer-brand strong { font-size: 9px; letter-spacing: .1em; }
.footer-brand small { color: var(--muted); font-family: "Iowan Old Style", Baskerville, serif; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 19px; color: var(--muted); font-size: 9px; }
.footer-links a:hover { color: var(--ink); }
.footer-disclosure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-disclosure-lead { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 15px 0; }
.footer-disclosure-lead strong { color: var(--ink); font-size: 7px; }
.footer-disclosure-lead span { color: var(--muted); font-size: 9px; text-align: right; }
.disclosure { border-top: 1px solid var(--line); }
.disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; color: var(--muted); cursor: pointer; font-size: 9px; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; color: var(--ink); font-size: 15px; }
.disclosure[open] summary::after { content: "−"; }
.disclosure summary span { color: var(--muted-light); font-size: 8px; text-align: right; }
.disclosure-intro { padding: 13px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.disclosure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 11px 0 16px; }
.disclosure-grid section { padding: 15px 0; border-top: 1px solid var(--line); }
.disclosure-grid h3 { margin-bottom: 7px; font-size: 11px; font-weight: 650; }
.disclosure-grid p { margin-bottom: 8px; color: var(--muted); font-size: 9px; line-height: 1.75; }
.disclosure-grid p:last-child { margin-bottom: 0; }
.footer-meta { display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; color: var(--muted-light); font-family: "SFMono-Regular", "SF Mono", monospace; font-size: 7px; letter-spacing: .04em; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100% - 36px));
  padding: 11px 14px;
  border: 1px solid #393a34;
  border-radius: 9px;
  color: #f3f1e9;
  background: #1c1c18;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
  font-size: 11px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-discord { grid-column: 1 / -1; min-height: 148px; }
  .link-card { min-height: 166px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 760px; }
  .profile-card { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head > p { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid article, .about-grid article + article { padding: 19px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-grid article:last-child { border-bottom: 0; }
  .about-grid article > span { margin-bottom: 15px; }
}

@media (max-width: 620px) {
  .topbar, .hub, .site-footer { width: min(100% - 24px, var(--max)); }
  .topbar { min-height: 64px; grid-template-columns: 1fr auto; }
  .shop-nav { display: none; }
  .identity img { width: 38px; height: 38px; border-radius: 9px; }
  .identity strong { max-width: 205px; font-size: 11px; }
  .identity small { max-width: 205px; font-size: 7px; }
  .top-cta { padding: 8px 9px; font-size: 9px; }
  .hub { padding: 0 0 58px; }
  .hero { padding: 36px 0 48px; gap: 32px; }
  .hero h1 { font-size: clamp(43px, 12vw, 56px); }
  .hero-lede { font-size: 13px; line-height: 1.72; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .section { padding: 56px 0; }
  .section h2 { font-size: clamp(35px, 10.5vw, 50px); }
  .links { margin-top: 0; gap: 8px; }
  .link-card { min-height: 160px; padding: 13px; border-radius: 14px; }
  .link-discord { min-height: 132px; }
  .link-card-top { gap: 6px; }
  .link-icon { width: 38px; height: 38px; }
  .link-icon::before { width: 20px; height: 20px; }
  .link-logo-xiaohongshu::before, .link-logo-reddit::before { width: 22px; height: 22px; }
  .link-copy strong { font-size: 18px; }
  .link-copy small { font-size: 8px; }
  .link-state { font-size: 6px; }
  .footer-top, .footer-disclosure-lead { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .footer-disclosure-lead span { text-align: left; }
  .disclosure summary span { display: none; }
  .disclosure-grid { grid-template-columns: 1fr; }
  .footer-meta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .identity strong { max-width: 160px; }
  .identity small { display: none; }
  .link-card { min-height: 152px; }
  .link-copy small { line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
