/* =========================================================
   yui2024 — official site
   Palette: pastel pink × cyan × mint × yellow
   ========================================================= */

:root {
  --bg: #FFF9F5;
  --bg-alt: #FFF3EA;
  --ink: #2D3047;
  --ink-soft: #55597A;
  --line: #E8DFD5;

  --pink: #FF6B9D;
  --cyan: #4ECDC4;
  --mint: #A8E6CF;
  --yellow: #FFE66D;
  --purple: #7B2CBF;

  --code-bg: #1F1B2E;
  --code-ink: #F4EEE0;
  --code-green: #A8E6CF;
  --code-pink: #FF6B9D;
  --code-yellow: #FFE66D;
  --code-cyan: #4ECDC4;

  --shadow: 6px 6px 0 var(--ink);
  --shadow-soft: 3px 3px 0 var(--ink);
  --radius: 14px;

  --font-code: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, monospace;
  --font-body: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,107,157,.10) 0, transparent 42%),
    radial-gradient(circle at 88% 20%, rgba(78,205,196,.10) 0, transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(255,230,109,.10) 0, transparent 44%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* -------- container -------- */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* -------- header / nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 245, .88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-code);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand .brand-cursor { color: var(--pink); }
.brand .brand-underscore {
  display: inline-block;
  width: 10px;
  height: 3px;
  background: var(--ink);
  margin-left: 2px;
  animation: blink 1.1s steps(2) infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav a {
  font-family: var(--font-code);
  font-size: .95rem;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  border: 2px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.nav a:hover {
  background: var(--yellow);
  border-color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav a.is-active {
  background: var(--pink);
  color: #fff;
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  font-family: var(--font-code);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: 100%;
    right: 4%;
    background: var(--bg);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
}

/* -------- hero -------- */
.hero {
  padding: 72px 0 56px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-code);
  font-size: .85rem;
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  box-shadow: var(--shadow-soft);
}

.hero-title {
  font-family: var(--font-code);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  margin: 22px 0 14px;
  letter-spacing: -.01em;
}
.hero-title .prompt { color: var(--pink); margin-right: 8px; }
.hero-title .accent-cyan { color: var(--cyan); }
.hero-title .accent-purple { color: var(--purple); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 26px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-pink   { background: var(--pink);   color: #fff; }
.btn-cyan   { background: var(--cyan);   color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-ghost  { background: #fff;          color: var(--ink); }

/* hero visual — terminal window */
.terminal {
  background: var(--code-bg);
  color: var(--code-ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-code);
  font-size: .92rem;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #2A2540;
  border-bottom: 1px solid #3B355A;
}
.terminal-bar .dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.25);
}
.dot.red    { background: #FF6B6B; }
.dot.yellow { background: #FFE66D; }
.dot.green  { background: #A8E6CF; }
.terminal-bar .title {
  margin-left: 10px;
  font-size: .8rem;
  color: #B9B3D0;
}
.terminal-body {
  padding: 16px 18px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.tk-prompt  { color: var(--code-pink); }
.tk-key     { color: var(--code-cyan); }
.tk-str     { color: var(--code-yellow); }
.tk-com     { color: #8B839E; }
.tk-fn      { color: var(--code-green); }

/* -------- floating shapes -------- */
.shape {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  z-index: 0;
  pointer-events: none;
}
.shape.s1 { top: 40px;  left: -30px; width: 90px;  height: 90px;  background: var(--yellow); }
.shape.s2 { top: 160px; right: -20px; width: 60px; height: 60px; background: var(--pink); border-radius: 12px; transform: rotate(12deg); }
.shape.s3 { bottom: -20px; left: 40%; width: 44px; height: 44px; background: var(--cyan); }

/* -------- section -------- */
.section {
  padding: 72px 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

.section-title {
  font-family: var(--font-code);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 8px;
}
.section-title .prompt { color: var(--pink); margin-right: 6px; }
.section-lead {
  color: var(--ink-soft);
  margin: 0 0 32px;
}

/* -------- cards -------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.card h3 {
  font-family: var(--font-code);
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.card p { margin: 0; color: var(--ink-soft); }
.card .tag {
  display: inline-block;
  font-family: var(--font-code);
  font-size: .78rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  margin-right: 4px;
  margin-bottom: 4px;
  background: var(--bg);
}

.card.pink   { background: #FFE1EC; }
.card.cyan   { background: #DCF7F4; }
.card.yellow { background: #FFF6CC; }
.card.mint   { background: #E4F7EE; }

/* -------- profile -------- */
.profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .profile { grid-template-columns: 1fr; }
}
.profile-avatar {
  width: 240px; height: 240px;
  border-radius: 24px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--yellow);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-code); font-weight: 800; font-size: 3rem; color: var(--ink);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
  font-family: var(--font-code);
  font-size: .95rem;
}
.kv dt { color: var(--pink); }
.kv dd { margin: 0; color: var(--ink); }

/* -------- news / timeline -------- */
.timeline {
  border-left: 3px solid var(--ink);
  margin-left: 12px;
  padding-left: 24px;
}
.timeline-item {
  position: relative;
  padding: 14px 0 18px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--ink);
}
.timeline-date {
  font-family: var(--font-code);
  font-size: .85rem;
  color: var(--purple);
}
.timeline-title {
  font-family: var(--font-code);
  font-size: 1.1rem;
  margin: 4px 0 6px;
}
.timeline-body { color: var(--ink-soft); margin: 0; }

/* -------- event box -------- */
.event-box {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-code);
  box-shadow: var(--shadow-soft);
}
.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: .95rem;
  flex-wrap: wrap;
}
.event-row + .event-row { border-top: 1.5px dashed rgba(45,48,71,.25); }
.event-day {
  background: var(--pink);
  color: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: .85rem;
}
.event-time {
  margin-left: auto;
  color: var(--purple);
  font-weight: 700;
}
@media (max-width: 520px) {
  .event-time { margin-left: 0; }
}

/* -------- hot tag (upcoming) -------- */
.tag-hot {
  background: var(--pink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* -------- socials -------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-code);
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease;
}
.social:hover { transform: translate(-1px, -1px); text-decoration: none; }
.social .icon { width: 18px; height: 18px; }

/* -------- footer -------- */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 28px 0;
  background: var(--bg-alt);
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .copyright {
  font-family: var(--font-code);
  font-size: .85rem;
  color: var(--ink-soft);
}

/* -------- utility -------- */
.tag-row { margin-top: 10px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-center { text-align: center; }

/* -------- page header (for sub pages) -------- */
.page-hero {
  padding: 56px 0 32px;
  border-bottom: 2px dashed var(--line);
}
.page-hero .eyebrow {
  font-family: var(--font-code);
  color: var(--pink);
  font-size: .95rem;
}
.page-hero h1 {
  font-family: var(--font-code);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 6px 0 8px;
}
.page-hero p { color: var(--ink-soft); margin: 0; }

/* fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
