:root {
  --paper: #f3f0e8;
  --ink: #18221b;
  --muted: #667068;
  --acid: #c8ff42;
  --blue: #4f67ff;
  --line: rgba(24, 34, 27, 0.18);
  --display: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}

::selection { color: var(--paper); background: var(--blue); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}

.wordmark { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.wordmark-dot { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: rotate(-20deg); }
.site-header nav { display: flex; gap: clamp(20px, 3vw, 48px); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.site-header nav a { position: relative; padding: 8px 0; }
.site-header nav a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--ink); transition: width .25s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { width: 100%; }
.menu-button { display: none; border: 0; background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.vault-nav { padding: 8px 12px; color: var(--paper); background: var(--ink); border: 0; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.vault-nav span { color: var(--acid); font-size: 8px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(380px, .93fr);
  min-height: calc(100svh - 84px);
  border-bottom: 1px solid var(--line);
}

.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 8vh 5vw 9vh 7vw; }
.eyebrow, .section-index { margin: 0 0 4vh; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.eyebrow span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 12px; color: var(--ink); border: 1px solid var(--ink); border-radius: 50%; letter-spacing: 0; }
h1 { margin: 0; max-width: 850px; font-family: var(--display); font-size: clamp(70px, 8.8vw, 148px); font-weight: 400; line-height: .82; letter-spacing: -.065em; }
h1 em { position: relative; color: var(--blue); font-weight: 400; }
h1 em::after { content: ""; position: absolute; right: -.08em; bottom: .04em; width: .18em; height: .18em; background: var(--acid); border: 2px solid var(--ink); border-radius: 50%; }
.intro { max-width: 500px; margin: 7vh 0 0; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.75; }
.intro strong { font-weight: 750; }
.hero-actions { display: flex; align-items: center; gap: 36px; margin-top: 5vh; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 220px; padding: 17px 20px; font-size: 13px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.button-primary { color: white; background: var(--ink); box-shadow: 6px 6px 0 var(--acid); }
.button-primary:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--acid); }
.text-link { font-size: 12px; font-weight: 700; letter-spacing: .08em; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.text-link span { margin-left: 10px; }

.stage { position: relative; min-height: 610px; overflow: hidden; background: var(--blue); border-left: 1px solid var(--ink); isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.32); }
.stage::after { content: "+"; position: absolute; top: 11%; right: 11%; color: var(--acid); font-size: 36px; font-weight: 200; }
.stage-label, .coordinate { position: absolute; z-index: 2; color: rgba(255,255,255,.82); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.stage-label { top: 12%; left: 12%; margin: 0; }
.coordinate-x { right: 12%; bottom: 7%; }
.coordinate-y { left: 5%; bottom: 21%; transform: rotate(-90deg); transform-origin: left; }
.orbit { position: absolute; border: 1px solid rgba(200,255,66,.5); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit::after { content: ""; position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--acid); }
.orbit-one { width: 74%; aspect-ratio: 1; top: 16%; left: 13%; }
.orbit-two { width: 48%; aspect-ratio: 1; top: 29%; left: 26%; animation-direction: reverse; animation-duration: 11s; }
.interaction-note { position: absolute; z-index: 12; right: 8%; top: 48%; padding: 13px 15px; color: var(--ink); background: var(--acid); border: 1px solid var(--ink); font-size: 11px; font-weight: 700; line-height: 1.55; box-shadow: 4px 4px 0 var(--ink); transform: rotate(2deg); }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--blue); animation: pulse 1.7s ease infinite; }

#live2d-widget { z-index: 10 !important; }
#live2dcanvas { filter: drop-shadow(0 20px 18px rgba(19, 29, 58, .28)); }

.manifesto { padding: 12vh 7vw 10vh; border-bottom: 1px solid var(--line); }
.manifesto-copy { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 8vw; }
.manifesto h2, .now h2 { margin: 0; font-family: var(--display); font-size: clamp(44px, 6vw, 92px); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.manifesto-copy > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10vh; border-top: 1px solid var(--ink); }
.principles article { min-height: 230px; padding: 24px 28px; border-right: 1px solid var(--line); }
.principles article:last-child { border-right: 0; }
.principles span { color: var(--blue); font-size: 11px; font-weight: 800; }
.principles h3 { margin: 45px 0 12px; font-family: var(--display); font-size: 38px; font-weight: 400; }
.principles p { max-width: 240px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.content-section { padding: 12vh 7vw; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 8vw; margin-bottom: 8vh; }
.section-head .section-index { margin-bottom: 3vh; }
.section-head h2 { margin: 0; font-family: var(--display); font-size: clamp(48px, 6vw, 88px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.section-head > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.featured-post { position: relative; display: grid; grid-template-columns: 120px 1fr 180px; min-height: 470px; border: 1px solid var(--ink); overflow: hidden; }
.post-number { padding: 26px; border-right: 1px solid var(--line); color: var(--blue); font-size: 12px; font-weight: 800; }
.post-main { padding: clamp(32px, 5vw, 72px); }
.post-meta { display: flex; gap: 28px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.post-main h3 { max-width: 760px; margin: 45px 0 22px; font-family: var(--display); font-size: clamp(38px, 5vw, 70px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.post-main > p { max-width: 590px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.arrow-button { margin-top: 35px; padding: 0 0 6px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.arrow-button span { margin-left: 40px; }
.post-mark { display: grid; place-items: center; background: var(--acid); border-left: 1px solid var(--ink); }
.post-mark span { display: grid; place-items: center; width: 105px; height: 105px; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--display); font-size: 24px; animation: spin 12s linear infinite; }
.coming-line { display: grid; grid-template-columns: 130px auto 1fr; align-items: center; gap: 28px; padding-top: 30px; font-size: 11px; }
.coming-line span { color: var(--blue); font-weight: 800; letter-spacing: .1em; }
.coming-line p { margin: 0; color: var(--muted); }
.coming-line i { height: 1px; background: var(--line); }

.tools { color: var(--paper); background: var(--ink); }
.light-head .section-index { color: var(--acid); }
.light-head > p { color: rgba(243,240,232,.62); }
.tool-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.tool-card { display: flex; flex-direction: column; min-height: 590px; padding: 28px; border: 1px solid rgba(243,240,232,.35); transition: transform .25s ease, border-color .25s ease; }
a.tool-card:hover { transform: translateY(-5px); border-color: var(--acid); }
.tool-featured { color: var(--ink); background: var(--paper); }
.tool-top, .tool-footer { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.tool-status { padding: 6px 9px; background: var(--acid); border: 1px solid var(--ink); }
.muted-status { color: var(--paper); background: transparent; border-color: rgba(243,240,232,.45); }
.tool-glyph { position: relative; display: grid; place-items: center; align-self: center; width: 190px; height: 190px; margin: 60px 0 45px; color: var(--paper); background: var(--blue); border-radius: 50%; font-family: var(--display); font-size: 92px; box-shadow: 13px 13px 0 var(--acid); }
.tool-glyph span { position: absolute; right: -18px; bottom: 18px; padding: 6px 8px; color: var(--ink); background: var(--acid); border: 1px solid var(--ink); font-family: var(--sans); font-size: 10px; font-weight: 800; }
.tool-copy { margin-top: auto; }
.tool-copy > p:first-child { margin-bottom: 10px; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.tool-copy h3 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(38px, 4vw, 58px); font-weight: 400; }
.tool-copy > p:last-child { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tool-footer { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.placeholder-cross { margin: auto; color: rgba(243,240,232,.18); font-family: var(--display); font-size: 160px; font-weight: 200; }
.tool-placeholder .tool-copy > p:last-child { color: rgba(243,240,232,.5); }

.privacy-legend { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 11px; font-weight: 700; }
.privacy-legend button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.privacy-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; }
.public-dot { background: var(--blue); }
.private-dot { background: var(--ink); }
.collection-tabs { display: flex; gap: 0; margin-bottom: 42px; border-bottom: 1px solid var(--ink); overflow-x: auto; }
.collection-tabs button { flex: 1; min-width: 145px; padding: 16px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 12px; text-align: left; }
.collection-tabs button span { float: right; color: var(--muted); font-size: 9px; }
.collection-tabs button.active { color: var(--paper); background: var(--ink); }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.collection-card { min-width: 0; }
.collection-visual { position: relative; display: flex; align-items: flex-end; justify-content: space-between; aspect-ratio: 1/.88; padding: 22px; overflow: hidden; border: 1px solid var(--ink); }
.collection-visual::before, .collection-visual::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; }
.collection-visual::before { width: 58%; aspect-ratio: 1; top: 10%; left: 21%; }
.collection-visual::after { width: 32%; aspect-ratio: 1; top: 23%; left: 34%; }
.collection-visual span, .collection-visual strong { position: relative; z-index: 1; font-size: 9px; letter-spacing: .15em; }
.collection-visual strong { font-family: var(--display); font-size: 42px; font-weight: 400; }
.visual-figure { color: var(--paper); background: var(--blue); }
.visual-book { background: var(--acid); }
.visual-other { color: var(--paper); background: var(--ink); }
.collection-card > div:last-child { padding: 22px 2px; }
.collection-card p { margin: 0 0 12px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.collection-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 25px; font-weight: 400; }
.collection-card > div:last-child > span { color: var(--muted); font-size: 12px; }
.collection-note { max-width: 650px; margin: 38px 0 0 auto; color: var(--muted); font-size: 12px; line-height: 1.8; }

dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--ink); box-shadow: 16px 16px 0 rgba(24,34,27,.35); }
dialog::backdrop { background: rgba(24,34,27,.72); backdrop-filter: blur(7px); }
.close-button { position: sticky; z-index: 2; top: 20px; float: right; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 28px; line-height: 1; }
.reader { width: min(820px, calc(100% - 32px)); max-height: 88vh; padding: clamp(34px, 7vw, 90px); }
.reader article { max-width: 610px; margin: auto; }
.reader h2, .vault h2 { margin: 25px 0 40px; font-family: var(--display); font-size: clamp(42px, 6vw, 72px); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; }
.reader article > p { font-size: 15px; line-height: 2; }
.reader .article-lead { color: var(--blue); font-family: var(--display); font-size: 22px; line-height: 1.6; }
.reader blockquote { margin: 45px 0; padding: 25px 30px; background: var(--acid); border-left: 4px solid var(--ink); font-family: var(--display); font-size: 24px; }
.vault { width: min(940px, calc(100% - 32px)); max-height: 90vh; padding: clamp(32px, 6vw, 76px); }
.vault-intro { max-width: 620px; margin: auto; }
.vault-intro > p:not(.section-index) { color: var(--muted); line-height: 1.8; }
.vault-lock { display: grid; place-items: center; width: 70px; height: 70px; margin-top: 20px; color: var(--acid); background: var(--ink); border-radius: 50%; font-size: 40px; }
.vault form label { display: flex; flex-direction: column; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.password-row { display: grid; grid-template-columns: 1fr auto; margin-top: 10px; }
input, select, textarea { width: 100%; padding: 15px; color: var(--ink); background: white; border: 1px solid var(--ink); border-radius: 0; outline: none; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px var(--acid); }
.password-row .button { min-width: 120px; box-shadow: none; border: 0; }
.form-hint { color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-hint.error { color: #b12626; }
.vault-content-head { display: flex; justify-content: space-between; align-items: flex-start; }
.vault-content-head h2 { margin-bottom: 30px; }
.vault-actions { display: flex; gap: 8px; }
.vault-actions button, .vault-actions label { padding: 10px 14px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.item-form { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; padding: 28px; background: rgba(79,103,255,.08); border: 1px solid var(--blue); }
.wide-label { grid-column: 1 / -1; }
.item-form .button { justify-self: start; border: 0; }
.backup-hint { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.private-list { margin-top: 30px; border-top: 1px solid var(--ink); }
.private-item { display: flex; justify-content: space-between; gap: 30px; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.private-item span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.private-item h3 { margin: 8px 0; font-family: var(--display); font-size: 27px; font-weight: 400; }
.private-item p { margin: 0; color: var(--muted); font-size: 12px; }
.private-item button { align-self: center; padding: 8px 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 10px; }
.private-empty { padding: 60px; text-align: center; color: var(--muted); }
.private-empty span { color: var(--blue); font-size: 45px; }
.private-empty p { line-height: 1.7; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; padding: 13px 18px; color: var(--paper); background: var(--ink); border: 1px solid var(--acid); opacity: 0; transform: translate(-50%, 18px); transition: .25s ease; pointer-events: none; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.now { padding: 10vh 0 11vh; background: var(--ink); color: var(--paper); overflow: hidden; }
.now-heading, .now-note { padding-left: 7vw; padding-right: 7vw; }
.now .section-index { color: var(--acid); }
.ticker { margin: 8vh 0 5vh; padding: 20px 0; color: var(--ink); background: var(--acid); border-block: 1px solid var(--paper); transform: rotate(-1.2deg) scale(1.02); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 34px; font-family: var(--display); font-size: clamp(28px, 4vw, 58px); animation: marquee 22s linear infinite; }
.ticker-track i { color: var(--blue); font-family: var(--sans); font-style: normal; }
.now-note { max-width: 620px; margin: 8vh 0 0 auto; color: rgba(243,240,232,.66); font-size: 15px; line-height: 1.8; }

footer { display: flex; justify-content: space-between; align-items: center; padding: 36px 4vw; background: var(--ink); color: rgba(243,240,232,.7); border-top: 1px solid rgba(243,240,232,.2); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
footer p { margin: 0; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--acid); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(79,103,255,.18); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .site-header { min-height: 68px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 73svh; padding: 10vh 7vw 7vh; }
  h1 { font-size: clamp(62px, 18vw, 104px); }
  .stage { min-height: 540px; border-left: 0; border-top: 1px solid var(--ink); }
  .manifesto-copy { grid-template-columns: 1fr; align-items: start; }
  .manifesto-copy > p { margin-top: 5vh; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .principles h3 { margin-top: 20px; }
  .interaction-note { top: 38%; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head > p { margin-top: -3vh; }
  .featured-post { grid-template-columns: 70px 1fr; }
  .post-mark { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 520px; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .menu-button { display: block; }
  .site-header nav { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 7vw; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .site-header nav.open { display: flex; }
  .site-header nav a:not(:last-child) { display: block; }
  .site-header nav a, .vault-nav { padding: 14px 0; text-align: left; }
  .vault-nav { color: var(--ink); background: transparent; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 25px; }
  .intro { margin-top: 5vh; }
  .stage { min-height: 470px; }
  .interaction-note { top: 23%; right: 5%; }
  footer { align-items: flex-start; flex-direction: column; gap: 18px; }
  .content-section { padding: 10vh 6vw; }
  .featured-post { display: block; min-height: 0; }
  .post-number { border-right: 0; border-bottom: 1px solid var(--line); }
  .post-main { padding: 30px 24px 45px; }
  .post-meta { flex-wrap: wrap; gap: 12px 20px; }
  .coming-line { grid-template-columns: auto 1fr; }
  .coming-line i { display: none; }
  .collection-grid { grid-template-columns: 1fr; }
  .privacy-legend { margin-top: -3vh; }
  .password-row { grid-template-columns: 1fr; }
  .item-form { grid-template-columns: 1fr; padding: 20px; }
  .wide-label { grid-column: auto; }
  .vault-content-head { flex-direction: column; }
  .vault-actions { margin: -15px 0 25px; }
}

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