@font-face { font-family: "Chewy"; src: url("fonts/chewy.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hachi Maru Pop"; src: url("fonts/hachimaru.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("fonts/zenmaru-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("fonts/zenmaru-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;

  --bg: #07060b;
  --bg-2: #0e0c16;

  --surface: rgba(14, 12, 22, 0.86);
  --surface-2: rgba(22, 18, 34, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #ece6f3;
  --muted: #a89fbb;
  --faint: #6f6584;
  --top-ink: #cfc6de;
  --top-ink-2: #b3aac7;

  --pink: #ff7ab8;
  --pink-deep: #ff4f9f;
  --pink-glow: rgba(255, 122, 184, 0.55);
  --lav: #c6a7ff;
  --lav-glow: rgba(198, 167, 255, 0.5);
  --peach: #ffd59e;
  --peach-glow: rgba(255, 213, 158, 0.45);
  --mint: #73f5df;
  --cream: #fff4f9;

  --font-head: "Chewy", "Hachi Maru Pop", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --gutter: 16px;
  --max: 1080px;
  --top-h: 60px;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
}

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

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

body {
  position: relative;
  margin: 0;

  background-color: var(--bg);
  background-image: linear-gradient(165deg,
    rgba(255, 122, 184, 0.11) 0%, rgba(255, 122, 184, 0.04) 28%,
    rgba(7, 6, 11, 0) 50%,
    rgba(198, 167, 255, 0.04) 72%, rgba(198, 167, 255, 0.11) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  min-height: 100vh;

}

#ink {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

body.inking, body.inking * { user-select: none; }

main, .top, .foot {
  position: relative;
  z-index: 1;
}

a {
  color: var(--lav);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--lav);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 10;
  padding: var(--sp-2) var(--sp-4);
  background: var(--pink);
  color: var(--bg);
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.skip:focus { top: var(--sp-2); }

.h2, .h3, .title, .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0;
}

.t-pink  { color: var(--pink);  text-shadow: 0 0 14px rgba(255, 122, 184, 0.32); }
.t-lav   { color: var(--lav);   text-shadow: 0 0 14px rgba(198, 167, 255, 0.30); }
.t-peach { color: var(--peach); text-shadow: 0 0 14px rgba(255, 213, 158, 0.28); }
.t-cream { color: var(--cream); text-shadow: 0 0 14px rgba(255, 122, 184, 0.28); }

.kicker {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: var(--sp-4); }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--gutter);
  background: rgba(7, 6, 11, 0.92);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--top-ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--cream); }
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink-glow), inset 0 0 0 3px var(--bg), inset 0 0 0 5px var(--lav);
}
.brand-name { font-size: 1.05rem; }

.nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}
.nav ul {
  display: flex;
  gap: var(--sp-1);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  color: var(--top-ink-2);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--cream); }
.nav .nav-ext { color: #a48fd6; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--top-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-16) var(--gutter) var(--sp-12);
}

.title {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.3em;
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.1em 0.4em;
}
.title-word { display: inline-flex; }
.ch {
  display: inline-block;
  transition: transform 0.25s ease;
}
.title-word .ch:nth-child(3n+1) { transform: rotate(-5deg) translateY(0.04em); }
.title-word .ch:nth-child(3n+2) { transform: rotate(3deg) translateY(-0.05em); }
.title-word .ch:nth-child(3n)   { transform: rotate(-2deg) translateY(0.03em); }
.title:hover .ch { transform: none; }

.hero-sub {
  margin: var(--sp-2) 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lav);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--pink);
  color: var(--bg);
  box-shadow: 0 0 10px rgba(255, 122, 184, 0.28);
}
.btn-primary:hover { background: var(--pink-deep); color: var(--bg); box-shadow: 0 0 14px rgba(255, 122, 184, 0.36); }

.chars { margin: 0 0 var(--sp-8); }
.char {
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(56, 22, 44, 0.42), rgba(56, 22, 44, 0.08) 55%, transparent);
}
.char-flip { background: linear-gradient(270deg, rgba(40, 24, 56, 0.42), rgba(40, 24, 56, 0.08) 55%, transparent); }
.char:last-child { border-bottom: 1px solid var(--line); }

.char-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: center;
  max-width: var(--max);
  min-height: clamp(260px, 42vh, 420px);
  margin: 0 auto;
  padding: var(--sp-6) var(--gutter);
}
@media (min-width: 640px) {
  .char-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
  .char-flip .char-body { order: 2; }
}
.char-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-3);
}
.char-name:last-child { margin-bottom: 0; }

.char-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  min-height: 14vh;
  padding: var(--sp-3);
  border-radius: var(--radius);
  background: radial-gradient(60% 55% at 50% 65%, rgba(255, 122, 184, 0.09), transparent 70%);
}
.char-flip .char-art { background: radial-gradient(60% 55% at 50% 65%, rgba(198, 167, 255, 0.09), transparent 70%); }

.panel {
  max-width: var(--max);
  margin: 0 auto var(--sp-8);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (max-width: 1120px) {
  .panel { margin-left: var(--gutter); margin-right: var(--gutter); }
}

.panel-neon {
  background: none;
  border-color: transparent;

  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--top-h));
  margin-bottom: 0;
}

#about, #links { scroll-margin-top: var(--top-h); }
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-6) var(--sp-4);
  margin: 0;
  padding: var(--sp-2) 0;
  list-style: none;
}
.link-card {
  --neon: var(--pink);
  --neon-glow: rgba(255, 122, 184, 0.42);
  --neon-glow-weak: rgba(255, 122, 184, 0.14);
  --tilt: -1.2deg;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-6);
  border: 2px solid var(--neon);
  border-radius: var(--radius-sm);
  background: rgba(10, 8, 16, 0.6);
  box-shadow: 0 0 6px var(--neon-glow), 0 0 20px var(--neon-glow), inset 0 0 14px var(--neon-glow-weak);
  transform: rotate(var(--tilt));
  opacity: clamp(0.35, calc(0.35 + var(--scroll, 1) * 1.1), 1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover, .link-card:focus-within {
  transform: rotate(var(--tilt)) translateY(-6px) scale(1.03);
  box-shadow: 0 0 10px var(--neon-glow), 0 0 32px var(--neon-glow), inset 0 0 18px var(--neon-glow-weak);
}
.link-grid > li:nth-child(2) .link-card { --neon: var(--lav);   --neon-glow: rgba(198, 167, 255, 0.42); --neon-glow-weak: rgba(198, 167, 255, 0.14); --tilt: 1deg; }
.link-grid > li:nth-child(3) .link-card { --neon: var(--peach); --neon-glow: rgba(255, 213, 158, 0.40); --neon-glow-weak: rgba(255, 213, 158, 0.13); --tilt: -0.6deg; }
.link-grid > li:nth-child(4) .link-card { --neon: var(--mint);  --neon-glow: rgba(115, 245, 223, 0.38); --neon-glow-weak: rgba(115, 245, 223, 0.12); --tilt: 1.4deg; }
.link-grid > li:nth-child(5) .link-card { --neon: var(--cream); --neon-glow: rgba(255, 244, 249, 0.36); --neon-glow-weak: rgba(255, 244, 249, 0.10); --tilt: -1deg; }

.link-card.is-off {
  border-color: color-mix(in srgb, var(--neon) 38%, transparent);
  box-shadow: none;
}
.link-card.is-off .link-name { color: color-mix(in srgb, var(--neon) 55%, #6f6584); text-shadow: none; }
.link-card.is-off:hover { transform: rotate(var(--tilt)); box-shadow: none; }
a.link-card { text-decoration: none; cursor: pointer; }
a.link-card .link-note { color: var(--text); }
.link-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon-glow);
}
.link-note { color: var(--muted); font-size: 0.92rem; }
.soft-gpu .link-card { opacity: 1; }

.page-blog main { padding-top: var(--sp-12); }
.blog-lead { margin: 0 0 var(--sp-6); color: var(--muted); }
.posts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
}
.post:last-child { border-bottom: 1px solid var(--line); }
.post time {
  color: var(--faint);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
a.post-title { color: var(--text); text-decoration: none; font-weight: 700; }
a.post-title:hover { color: var(--cream); text-decoration: underline; }
.post-sum { flex-basis: 100%; color: var(--muted); font-size: 0.9rem; }

.article { max-width: 760px; }
.article-meta { margin: 0 0 var(--sp-6); color: var(--faint); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; }
.article-body { line-height: 1.95; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body pre { margin: 0 0 1.3em; }
.article-body h2 { margin: 2.2em 0 0.6em; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.4; color: var(--cream); }
.article-body h3 { margin: 1.8em 0 0.5em; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.4; color: var(--cream); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: 0.3em; }
.article-body strong { color: var(--cream); }
.article-body img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.article-body blockquote { padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); border-left: 3px solid var(--lav); color: var(--muted); }
.article-body blockquote p { margin: 0; }
.article-body code { padding: 0.1em 0.35em; border-radius: 6px; background: rgba(255, 255, 255, 0.07); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; }
.article-body pre { padding: var(--sp-4); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); line-height: 1.6; }
.article-body pre code { padding: 0; background: none; }
.article-body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.article-back { margin: var(--sp-8) 0 0; font-size: 0.95rem; }
.post-tag {
  padding: 0 var(--sp-2);
  border-radius: var(--radius-pill);
  background: rgba(255, 213, 158, 0.14);
  color: var(--peach);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
}
.post-title { color: var(--muted); }

.foot {
  max-width: var(--max);
  margin: var(--sp-12) auto 0;
  padding: var(--sp-8) var(--gutter) var(--sp-12);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.foot p { margin: 0 0 var(--sp-2); }
.foot-main { font-family: var(--font-head); font-weight: 600; }
.foot-sep { margin: 0 var(--sp-2); }
.foot-note { color: var(--faint); font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ch, .btn, .link-card { transition: none; }
}
