:root {
  --bg: #0b1020;
  --bg-2: #131a32;
  --bg-3: #1c1e54;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(185, 185, 249, 0.32);
  --line-strong: rgba(185, 185, 249, 0.56);
  --text: #f5f7ff;
  --muted: #c8d0e7;
  --heading: #ffffff;
  --brand: #533afd;
  --brand-hover: #4434d4;
  --ruby: #ea2261;
  --magenta: #f96bee;
  --shadow:
    rgba(50, 50, 93, 0.4) 0px 30px 45px -30px,
    rgba(0, 0, 0, 0.35) 0px 18px 36px -18px;
  --max-width: 1080px;
}

:root[data-theme="stripe-light"] {
  --bg: #f7f9ff;
  --bg-2: #ffffff;
  --bg-3: #eef2ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 1);
  --line: rgba(83, 58, 253, 0.2);
  --line-strong: rgba(83, 58, 253, 0.45);
  --text: #273951;
  --muted: #64748d;
  --heading: #061b31;
  --brand: #533afd;
  --brand-hover: #4434d4;
  --ruby: #ea2261;
  --magenta: #f96bee;
  --shadow:
    rgba(50, 50, 93, 0.25) 0px 30px 45px -30px,
    rgba(0, 0, 0, 0.1) 0px 18px 36px -18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -8%, rgba(249, 107, 238, 0.24), transparent 34%),
    radial-gradient(circle at 88% 2%, rgba(83, 58, 253, 0.42), transparent 38%),
    radial-gradient(circle at 22% 82%, rgba(83, 58, 253, 0.2), transparent 30%),
    radial-gradient(circle at 72% 72%, rgba(234, 34, 97, 0.2), transparent 34%),
    radial-gradient(circle at 52% 100%, rgba(234, 34, 97, 0.16), transparent 44%),
    linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 55%, #070b16 100%);
  font-family: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.45;
  font-weight: 300;
  font-feature-settings: "ss01" 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
}

.page-shell {
  position: relative;
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.site-footer,
.panel,
.hero,
.post-card,
.contact-panel,
.hero-note {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 18px;
  position: sticky;
  top: 12px;
  z-index: 12;
}

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

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--ruby), var(--magenta));
  box-shadow: 0 0 16px rgba(249, 107, 238, 0.55);
}

.brand-text {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-weight: 500;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(83, 58, 253, 0.2);
  color: #ffffff;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
  transition: 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(83, 58, 253, 0.32);
  border-color: var(--line-strong);
}

.site-nav a,
.icp-link {
  color: #d8def0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.icp-link:hover,
.icp-link:focus-visible {
  color: #fff;
  text-shadow: 0 0 14px rgba(83, 58, 253, 0.55);
}

main {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.95fr);
  gap: 18px;
  padding: 30px;
}

.eyebrow,
.section-tag,
.post-meta,
.note-label {
  margin: 0 0 8px;
  color: #d8ceff;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-text,
.panel p,
.contact-panel p,
.post-card p,
.note-text,
.status-list span,
.site-footer p {
  color: var(--muted);
}

.hero-text {
  margin: 14px 0 0;
  font-size: 1.02rem;
}

.hero-note {
  align-self: end;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hero-note::after {
  content: "";
  position: absolute;
  inset: auto -26% -58% auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 58, 253, 0.45), transparent 68%);
}

.note-title,
.panel h2,
.section-heading h2,
.post-card h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 300;
}

.note-title {
  font-size: 1.3rem;
  line-height: 1.2;
}

.note-text {
  margin: 10px 0 0;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.panel,
.contact-panel {
  padding: 22px;
}

.panel h2,
.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.panel p + p,
.contact-panel p + p {
  margin-top: 10px;
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(214, 217, 252, 0.3);
}

.status-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-list strong {
  color: #fff;
  font-weight: 400;
  text-align: right;
}

.posts,
.contact {
  display: grid;
  gap: 16px;
}

.section-heading {
  padding: 0 2px;
}

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

.post-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 6px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(83, 58, 253, 0.1), rgba(249, 107, 238, 0.08));
  opacity: 0;
  transition: opacity 180ms ease;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow:
    rgba(50, 50, 93, 0.55) 0px 38px 56px -32px,
    rgba(0, 0, 0, 0.44) 0px 22px 44px -20px;
}

.post-card:hover::before,
.post-card:focus-within::before {
  opacity: 1;
}

.post-card h3 {
  font-size: 1.24rem;
  line-height: 1.22;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.contact-lines span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid #b9b9f9;
  color: #fff;
  background: rgba(83, 58, 253, 0.18);
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.88rem;
  font-weight: 500;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 18px;
}

.site-footer p {
  margin: 0;
}

.icp-link {
  font-weight: 500;
}

html[data-theme="stripe-light"] body {
  background:
    radial-gradient(circle at 8% -8%, rgba(249, 107, 238, 0.13), transparent 36%),
    radial-gradient(circle at 86% 0%, rgba(83, 58, 253, 0.18), transparent 40%),
    radial-gradient(circle at 70% 75%, rgba(234, 34, 97, 0.12), transparent 36%),
    linear-gradient(160deg, #ffffff 0%, #f6f9ff 56%, #f3f6ff 100%);
}

html[data-theme="stripe-light"] body::before {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(83, 58, 253, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.055) 1px, transparent 1px);
}

html[data-theme="stripe-light"] .site-nav a,
html[data-theme="stripe-light"] .icp-link {
  color: #3f4d66;
}

html[data-theme="stripe-light"] .site-nav a:hover,
html[data-theme="stripe-light"] .site-nav a:focus-visible,
html[data-theme="stripe-light"] .icp-link:hover,
html[data-theme="stripe-light"] .icp-link:focus-visible {
  color: #061b31;
  text-shadow: 0 0 12px rgba(83, 58, 253, 0.25);
}

html[data-theme="stripe-light"] .theme-toggle {
  color: #ffffff;
  background: var(--brand);
  border-color: transparent;
}

html[data-theme="stripe-light"] .theme-toggle:hover,
html[data-theme="stripe-light"] .theme-toggle:focus-visible {
  background: var(--brand-hover);
}

html[data-theme="stripe-light"] .status-list strong {
  color: var(--heading);
}

html[data-theme="stripe-light"] .contact-lines span {
  color: #273951;
  background: rgba(83, 58, 253, 0.1);
  border-color: rgba(83, 58, 253, 0.3);
}

@media (max-width: 920px) {
  .hero,
  .info-grid,
  .post-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--max-width));
    padding: 14px 0 24px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .site-header,
  .site-nav,
  .header-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-controls {
    width: 100%;
    gap: 10px;
  }

  .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .panel,
  .post-card,
  .contact-panel,
  .hero-note {
    padding: 16px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }
}

