/* ════════════════════════════════════════════════════════════════
   Wikipetan · $Wikipetan
   anime mascot + wiki-clean + earnest charity
   ════════════════════════════════════════════════════════════════ */

:root {
  /* wiki-clean base */
  --paper:        #FFFFFF;
  --cream:        #F8F4E8;     /* wikipedia article body */
  --cream-2:      #FBF7EB;
  --cream-3:      #EFE8D2;
  --ink:          #202122;     /* wikipedia body text */
  --ink-soft:     #54595D;
  --ink-faint:    #72777D;
  --rule:         rgba(32,33,34,0.10);
  --rule-strong:  rgba(32,33,34,0.22);

  /* sakura accents */
  --sakura:       #FFB7C5;
  --sakura-deep:  #D45D7B;
  --sakura-soft:  #FFE4EC;

  /* wikipe-tan blue */
  --hair:         #87CEEB;
  --hair-deep:    #5B8FB9;
  --apron:        #1B2A50;     /* her dark blue dress */

  /* wikipedia link blue */
  --link:         #3366CC;
  --link-hover:   #002BB8;
  --link-vis:     #6B4BA1;

  /* live tracker (donation positive) */
  --donate:       #36A64F;
  --donate-deep:  #1F7A33;
  --donate-glow:  rgba(54,166,79,0.35);

  /* easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', "Helvetica Neue", system-ui, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 8% 0%, rgba(255,183,197,0.18), transparent 60%),
    radial-gradient(800px 500px at 100% 30%, rgba(135,206,235,0.14), transparent 60%),
    var(--cream);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
a:visited { color: var(--link-vis); }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--sakura); color: var(--apron); }

/* ═══ FALLING SAKURA PETALS (subtle, decorative) ═══ */
.petals {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 5% 12%, rgba(255,183,197,0.4) 0, rgba(255,183,197,0) 4px),
    radial-gradient(circle at 22% 80%, rgba(255,183,197,0.32) 0, rgba(255,183,197,0) 3px),
    radial-gradient(circle at 71% 30%, rgba(255,183,197,0.4) 0, rgba(255,183,197,0) 5px),
    radial-gradient(circle at 88% 65%, rgba(135,206,235,0.32) 0, rgba(135,206,235,0) 3px);
  background-size: 100% 100%;
  animation: petals-drift 32s linear infinite;
  opacity: 0.6;
}
@keyframes petals-drift {
  0%   { transform: translateY(-3vh); }
  100% { transform: translateY(3vh); }
}

/* ═══ TOPBAR ═══ */
.topbar {
  position: sticky; top: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--apron);
  text-decoration: none;
}
.brand:hover { color: var(--apron); text-decoration: none; }
.brand-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--sakura);
  background: var(--cream);
  object-fit: cover;
}
.brand-stack { display: flex; flex-direction: column; line-height: 1; }
.brand-jp {
  font-family: 'Klee One', 'Noto Sans JP', "Yu Gothic", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--apron);
  letter-spacing: 0.02em;
}
.brand-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--sakura-deep);
  margin-top: 2px;
  letter-spacing: 0.06em;
}
.nav {
  display: flex; align-items: center; gap: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s var(--ease-soft);
}
.nav a:hover { color: var(--apron); }
.nav .nav-cta {
  background: var(--sakura-deep);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--sakura-deep);
  transition: background 0.15s var(--ease-soft), transform 0.15s var(--ease-soft), box-shadow 0.15s var(--ease-soft);
}
.nav .nav-cta:hover {
  background: var(--apron);
  border-color: var(--apron);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(27,42,80,0.4);
}
@media (max-width: 760px) {
  .nav { gap: 12px; font-size: 12px; }
  .nav a:not(.nav-cta):nth-of-type(n+3) { display: none; }
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  z-index: 2;
  padding: 70px 28px 90px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,228,236,0.42) 100%);
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-copy { min-width: 0; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sakura-deep);
  margin: 0 0 18px;
}
.wordmark {
  margin: 0 0 26px;
  display: flex; flex-direction: column; gap: 8px;
  line-height: 1;
}
.wm-jp {
  font-family: 'Klee One', 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: clamp(56px, 9vw, 110px);
  color: var(--apron);
  letter-spacing: 0.01em;
  text-shadow: 3px 3px 0 var(--sakura);
}
.wm-en {
  font-family: 'Klee One', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--sakura-deep);
  letter-spacing: 0.005em;
}
.hero-mission {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 520px;
}
.hero-mission strong { font-weight: 700; color: var(--apron); }
.hero-mission a { font-weight: 600; }
.hero-sub {
  font-family: 'Klee One', 'Inter', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 480px;
}
.hero-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-mascot-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.hero-mascot-wrap::before {
  content: "";
  position: absolute; inset: 10% 14%;
  background: radial-gradient(closest-side, rgba(255,183,197,0.45), transparent 70%);
  z-index: -1;
  filter: blur(10px);
}
.hero-mascot {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(27,42,80,0.18));
  animation: mascot-float 7s ease-in-out infinite;
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50%      { transform: translateY(-10px) rotate(0.4deg); }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-mission, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .hero-mascot-wrap { order: -1; padding: 0; }
  .hero-mascot { max-width: 280px; }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.18s var(--ease-soft);
}
.btn-primary {
  background: var(--sakura-deep);
  color: var(--paper);
  border-color: var(--sakura-deep);
  box-shadow: 0 6px 16px -6px rgba(212,93,123,0.5);
}
.btn-primary:hover {
  background: var(--apron);
  border-color: var(--apron);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(27,42,80,0.5);
  text-decoration: none;
}
.btn-ghost {
  background: var(--paper);
  color: var(--apron);
  border-color: var(--apron);
}
.btn-ghost:hover {
  background: var(--apron);
  color: var(--paper);
  text-decoration: none;
}

/* ═══ LIVE DONATION TRACKER ═══ */
.tracker {
  position: relative;
  z-index: 2;
  padding: 88px 28px;
  background:
    radial-gradient(900px 500px at 50% 50%, rgba(54,166,79,0.10), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.tracker-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.tracker-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--donate);
  margin-bottom: 22px;
  padding: 6px 16px;
  border: 1px solid var(--donate);
  border-radius: 999px;
  background: rgba(54,166,79,0.06);
}
.pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--donate);
  box-shadow: 0 0 0 0 var(--donate-glow);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(54,166,79,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(54,166,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(54,166,79,0); }
}
.tracker-amount-row {
  display: inline-flex; align-items: baseline; justify-content: center;
  gap: 4px;
  margin: 6px 0 14px;
}
.t-currency {
  font-family: 'Klee One', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 70px);
  color: var(--donate-deep);
  line-height: 1;
}
.t-amount {
  font-family: 'Klee One', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(80px, 14vw, 168px);
  line-height: 0.9;
  color: var(--donate-deep);
  font-variant-numeric: tabular-nums;
  text-shadow: 4px 4px 0 rgba(54,166,79,0.18);
  letter-spacing: -0.01em;
}
.tracker-recipient {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink);
  margin: 0 auto 10px;
  max-width: 580px;
}
.tracker-recipient strong {
  background: var(--cream-3);
  color: var(--apron);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.tracker-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  margin: 0;
  letter-spacing: 0.04em;
}
.tracker-mascot {
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: clamp(120px, 16vw, 200px);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 8px 16px rgba(27,42,80,0.18));
  pointer-events: none;
}
@media (max-width: 760px) {
  .tracker-mascot { display: none; }
}

/* ═══ SHARED SECTION TYPE ═══ */
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sakura-deep);
  margin: 0 0 14px;
}
.section-h {
  font-family: 'Klee One', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 26px;
  color: var(--apron);
  letter-spacing: -0.005em;
}

/* ═══ MISSION ═══ */
.mission {
  position: relative;
  z-index: 2;
  padding: 96px 28px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--rule);
}
.mission-inner {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.75;
  color: var(--ink);
}
.mission-inner .lead {
  font-family: 'Klee One', 'Inter', sans-serif;
  font-size: clamp(18px, 1.9vw, 21px);
  font-style: italic;
  color: var(--apron);
  margin: 0 0 24px;
  line-height: 1.55;
}
.mission-inner p {
  margin: 0 0 18px;
}
.mission-inner strong {
  color: var(--apron);
  font-weight: 700;
}
.mission-inner a { font-weight: 600; }

/* ═══ ABOUT ═══ */
.about {
  position: relative;
  z-index: 2;
  padding: 96px 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.about-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 48px;
  align-items: center;
}
.about-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(27,42,80,0.15));
}
.about-copy {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--ink);
}
.about-copy p { margin: 0 0 16px; }
.about-copy strong { color: var(--apron); font-weight: 700; }
@media (max-width: 800px) {
  .about-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .about-copy { text-align: left; }
}

/* ═══ FAQ ═══ */
.faq {
  position: relative;
  z-index: 2;
  padding: 96px 28px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--rule);
}
.faq-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.18s var(--ease-soft), border-color 0.18s var(--ease-soft);
}
.faq-item[open] {
  border-color: var(--sakura-deep);
  box-shadow: 0 6px 18px -8px rgba(212,93,123,0.32);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q {
  font-family: 'Klee One', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--apron);
  line-height: 1.4;
}
.faq-item .t {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sakura-soft);
  color: var(--sakura-deep);
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.faq-item[open] .t {
  background: var(--sakura-deep);
  color: var(--paper);
  transform: rotate(45deg);
}
.faq-item .a {
  padding: 0 22px 22px;
  border-top: 1px dashed var(--rule);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.faq-item .a p { margin: 14px 0 0; }
.faq-item .a strong { color: var(--apron); }
.faq-item .a code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--apron);
  color: var(--cream);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  word-break: break-all;
  display: inline-block;
}

/* ═══ BUY ═══ */
.buy {
  position: relative;
  z-index: 2;
  padding: 96px 28px;
  background:
    radial-gradient(900px 500px at 50% 100%, rgba(255,183,197,0.18), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.buy-inner { max-width: 760px; margin: 0 auto; }
.buy-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-soft);
  margin: 0 auto 36px;
  max-width: 540px;
  line-height: 1.6;
}
.ca-card {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--paper);
  border: 2px solid var(--apron);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 32px;
  box-shadow: 0 6px 18px -10px rgba(27,42,80,0.32);
}
.ca-label {
  font-family: 'Klee One', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--sakura-deep);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ca-input {
  flex: 1; min-width: 220px;
  background: var(--cream);
  color: var(--apron);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.ca-copy {
  background: var(--apron);
  color: var(--paper);
  border: 2px solid var(--apron);
  border-radius: 6px;
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s var(--ease-soft);
}
.ca-copy:hover { background: var(--sakura-deep); border-color: var(--sakura-deep); }
.ca-copy.copied { background: var(--donate); border-color: var(--donate); }

.buy-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.buy-direct {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 8px 0 0;
}
.buy-direct a { font-weight: 600; }

/* ═══ FOOTER ═══ */
.footer {
  background: var(--apron);
  color: var(--cream);
  padding: 56px 28px 56px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.foot-inner { max-width: 760px; margin: 0 auto; }
.foot-mark {
  font-family: 'Klee One', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--sakura);
  margin: 0 0 18px;
}
.foot-jp {
  font-family: 'Klee One', 'Noto Sans JP', sans-serif;
  color: var(--paper);
}
.foot-credit {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(248,244,232,0.78);
  margin: 0 0 18px;
}
.foot-credit a, .foot-disclaimer a { color: var(--sakura); font-weight: 600; }
.foot-credit a:hover, .foot-disclaimer a:hover { color: var(--paper); }
.foot-disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(248,244,232,0.62);
  margin: 0 auto 14px;
  max-width: 720px;
  text-align: left;
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,183,197,0.18);
}
.foot-ca {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--sakura);
  word-break: break-all;
  margin: 8px 0;
  letter-spacing: 0.02em;
}
.foot-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(248,244,232,0.46);
  margin: 8px 0 0;
}

/* ═══ REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
  .reveal { opacity: 1; transform: none; }
}
