:root {
  --ink: #40556b;
  --paper: #fffafd;
  --paper-deep: #f7e9f1;
  --blue: #8ed7ee;
  --blue-deep: #55b8dc;
  --pink: #f4aecb;
  --pink-deep: #e77fad;
  --cream: #fff4ca;
  --line: rgba(75, 137, 166, .24);
  --shadow: 7px 7px 0 rgba(128, 198, 224, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 2px 2px, rgba(106,181,211,.18) 1.4px, transparent 1.5px),
    var(--paper);
  background-size: 22px 22px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
}

a { color: inherit; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 20px auto; }
.retro-strip { display: flex; justify-content: space-between; gap: 14px; margin: 0 8px 8px; color: #738ba0; font: 800 .68rem/1.4 monospace; letter-spacing: .05em; }
.retro-strip b { color: var(--pink-deep); }
.blink { animation: blink 1.5s steps(1) infinite; color: var(--blue-deep); }
@keyframes blink { 50% { opacity: .35; } }
.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 18px;
  background: var(--paper);
  border: 3px solid var(--blue);
  border-radius: 22px;
  box-shadow: 4px 5px 0 var(--pink);
  position: sticky;
  top: 10px;
  z-index: 10;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: var(--pink); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue); font: 900 21px/1 sans-serif; transform: rotate(-8deg); }
.logo strong { display: block; font-size: 1.5rem; letter-spacing: .05em; line-height: 1.2; font-family: "Yu Gothic", sans-serif; }
.logo strong i, .logo strong b { font-style: normal; }
.logo strong i { color: var(--blue-deep); }
.logo strong b { color: var(--pink-deep); }
.logo small { display: block; color: #7894aa; font: 700 .66rem/1.4 monospace; letter-spacing: .08em; }
.main-menu { display: flex; gap: 6px; }
.main-menu a { padding: 8px 10px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.main-menu a { border-radius: 999px; }
.main-menu a:hover { color: #fff; background: linear-gradient(90deg, var(--pink), var(--blue)); }
.menu-button { display: none; }

.panel { border: 3px solid var(--blue); border-radius: 28px; box-shadow: var(--shadow); background: rgba(255,250,253,.94); }
.hero { display: grid; grid-template-columns: 1.6fr .8fr; gap: 48px; padding: clamp(34px, 7vw, 86px); margin-top: 42px; position: relative; overflow: hidden; }
.hero::before {
  content: "255"; position: absolute; right: -20px; top: -80px;
  color: rgba(244,174,203,.12); font: 900 clamp(180px, 32vw, 380px)/1 monospace;
  pointer-events: none;
}
.hero-copy, .status-board { position: relative; z-index: 1; }
.hero-copy, .yuki-card { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 8px; color: var(--blue-deep); font: 800 .76rem/1.4 monospace; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(2.7rem, 7vw, 6.3rem); line-height: 1.03; letter-spacing: -.06em; }
h1 em { color: var(--pink-deep); font-style: normal; text-shadow: 3px 3px 0 #fff, 5px 5px 0 rgba(142,215,238,.45); }
.lead { max-width: 660px; font-size: 1.08rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-block; padding: 10px 20px; border: 2px solid var(--blue-deep); border-radius: 999px; font-weight: 800; text-decoration: none; box-shadow: 3px 4px 0 var(--pink); background: #fff; }
.button:hover { transform: translate(2px,2px); box-shadow: 1px 2px 0 var(--pink); }
.button.primary { background: var(--cream); }

.yuki-card { align-self: center; position: relative; min-height: 520px; text-align: center; background: #1d2737; border: 3px solid var(--pink); border-radius: 30px; box-shadow: 7px 8px 0 var(--blue); overflow: hidden; isolation: isolate; }
.character-art { display: block; width: 100%; height: 590px; object-fit: cover; object-position: 50% 18%; }
.character-caption { position: absolute; z-index: 2; right: 14px; bottom: 14px; left: 14px; padding: 16px 18px; color: #52677b; background: rgba(255,255,255,.9); border: 2px solid rgba(255,177,205,.9); border-radius: 20px; box-shadow: 0 8px 24px rgba(25,42,64,.22); backdrop-filter: blur(10px); }
.character-name small { display: block; color: var(--blue-deep); font: 800 .7rem/1 monospace; letter-spacing: .16em; }.character-name strong { display: block; color: var(--pink-deep); font-size: 1.8rem; }
.yuki-card p { margin-bottom: 10px; font-size: .82rem; font-weight: 600; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #fff; color: #668095; font-size: .76rem; font-weight: 800; }
.status-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-deep); box-shadow: 0 0 0 4px rgba(142,215,238,.25); }
.hero-sticker { position: absolute; z-index: 3; display: grid; place-items: center; font-weight: 900; text-align: center; filter: drop-shadow(3px 4px 0 rgba(85,184,220,.2)); }
.sticker-new { right: 21%; top: 28px; width: 68px; height: 68px; color: #fff; background: var(--pink-deep); border: 4px solid #fff; outline: 2px solid var(--pink); border-radius: 50%; transform: rotate(12deg); }
.sticker-star { left: 46%; bottom: 28px; color: #f5c742; font-size: 3.2rem; transform: rotate(-12deg); }
.sticker-idea { right: 8px; bottom: 12px; padding: 10px 15px; color: #6c7890; background: var(--cream); border: 2px dashed var(--pink); border-radius: 46% 54% 48% 52%; transform: rotate(-7deg); font-size: .78rem; line-height: 1.2; }

.ticker { display: flex; margin: 28px 0 70px; border: 2px solid var(--blue); border-radius: 14px; overflow: hidden; background: var(--paper); }
.ticker strong { flex: 0 0 auto; padding: 8px 14px; color: #fff; background: var(--pink); font: 800 .8rem/1.8 monospace; }
.ticker p { margin: 0; padding: 8px 16px; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-menu { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin: -48px auto 88px; width: min(880px,94%); }
.quick-menu a { padding: 12px 8px; text-align: center; color: #668095; background: #fff; border: 2px solid var(--blue); border-radius: 12px; box-shadow: 3px 4px 0 var(--pink); text-decoration: none; font-size: .8rem; font-weight: 800; }
.quick-menu a:nth-child(even) { border-color: var(--pink); box-shadow-color: var(--blue); }
.quick-menu a:hover { transform: translateY(-3px) rotate(-1deg); }
.quick-menu span { display: block; font-size: 1.45rem; }
.tech-dashboard { position: relative; padding: 30px; border: 2px solid #7698ae; border-radius: 18px; background-color: rgba(240,250,255,.88); background-image: linear-gradient(rgba(85,184,220,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(85,184,220,.09) 1px,transparent 1px); background-size: 20px 20px; box-shadow: 7px 8px 0 rgba(244,174,203,.28); }
.mini-illust { position: relative; width: 170px; aspect-ratio: 1; overflow: hidden; border: 4px solid #fff; border-radius: 28px; background: #d9dde1; box-shadow: 5px 7px 0 rgba(244,174,203,.42); }
.mini-illust img { position: absolute; top: 0; width: 300%; max-width: none; height: auto; }
.mini-code { position: absolute; z-index: 4; top: -82px; right: 165px; transform: rotate(3deg); }
.mini-code img { left: -100%; }
.logs-section { position: relative; }
.mini-idea { position: absolute; z-index: 2; top: -72px; right: 175px; width: 150px; transform: rotate(-4deg); }
.mini-idea img { left: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }.dash-head h2 { margin: 0; font-size: clamp(1.6rem,4vw,2.7rem); }.build-status { padding: 6px 12px; border: 2px solid #77aa9e; border-radius: 999px; color: #56867a; background: #effff7; font: 800 .67rem/1 monospace; white-space: nowrap; }.build-status span { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #68c39b; box-shadow: 0 0 8px #68c39b; }
.tech-grid { display: grid; grid-template-columns: 1.3fr .9fr .8fr; gap: 14px; }.code-panel,.stack-panel { border: 2px solid #607b91; border-radius: 12px; overflow: hidden; background: #172330; box-shadow: 4px 5px 0 rgba(96,123,145,.2); }.code-panel header { display: flex; align-items: center; gap: 6px; padding: 8px 11px; color: #c6d6e2; background: #263645; font: 700 .68rem/1 monospace; }.code-panel header b { margin-left: 6px; }.code-panel header em { margin-left: auto; opacity: .55; font-style: normal; }.dot { width: 9px; height: 9px; border-radius: 50%; }.dot.red { background: var(--pink); }.dot.yellow { background: #f2ce68; }.dot.blue { background: var(--blue); }.code-panel pre { margin: 0; padding: 22px; overflow-x: auto; color: #d8e4ec; font: .82rem/1.8 Consolas,"Courier New",monospace; }.code-panel code i { color: #7695a9; }.code-panel code strong { color: #f5b9d1; }.code-panel code span { color: #9ee2da; }.cursor { color: var(--pink); animation: blink 1s steps(1) infinite; }
.spec-sheet { position: relative; padding: 22px 20px 16px; color: #596f82; background: #fffef4; border: 1px solid #d9cfb1; box-shadow: 4px 5px 0 rgba(224,210,168,.35); transform: rotate(-.7deg); }.spec-sheet::before { content:""; position:absolute; inset:0; background: repeating-linear-gradient(transparent 0 27px,rgba(85,184,220,.12) 28px 29px); pointer-events:none; }.spec-sheet > * { position:relative; }.tape { position:absolute!important; width:70px; height:19px; left:50%; top:-10px; transform:translateX(-50%) rotate(2deg); background:rgba(244,174,203,.48); }.spec-sheet h3 { margin-bottom: 14px; font-size: 1rem; }.spec-sheet dl { margin:0; font-size:.73rem; }.spec-sheet dl div { display:grid; grid-template-columns:50px 1fr; gap:7px; padding:4px 0; }.spec-sheet dt { font-weight:800; }.spec-sheet dd { margin:0; }.spec-sheet mark { padding:2px 5px; background:var(--cream); }.hand-note { margin: 12px 0 0 35px; color: var(--pink-deep); font-family:"Yu Mincho","HGP行書体",cursive; font-size:.83rem; font-weight:800; line-height:1.5; transform:rotate(-4deg); }
.stack-panel { padding: 17px; color: #dbe9ef; background: #22313e; }.stack-panel h3 { display:flex; justify-content:space-between; margin-bottom:14px; font:800 .75rem/1 monospace; }.stack-panel h3 span { color:var(--pink); }.stack-list { display:flex; flex-wrap:wrap; gap:6px; }.stack-list span { padding:4px 7px; border:1px solid #7593a7; border-radius:4px; color:#aee4f2; background:#2b4050; font:700 .65rem/1 monospace; }.mini-log { margin-top:18px; padding-top:12px; border-top:1px dashed #607b91; color:#91a7b6; font:.62rem/1.8 monospace; }.mini-log b { color:#efabc7; }.mini-log i { color:#8ed7ee; }
.floating-memo { position:absolute; z-index:3; width:105px; padding:13px 10px 16px; text-align:center; font-family:"Yu Mincho","HGP行書体",cursive; font-size:.75rem; font-weight:800; line-height:1.45; box-shadow:3px 5px 0 rgba(64,85,107,.15); }.floating-memo::before { content:""; position:absolute; width:42px; height:13px; left:31px; top:-7px; background:rgba(255,255,255,.62); transform:rotate(-3deg); }.memo-pink { right:-25px; top:93px; color:#9a5072; background:#ffd6e6; transform:rotate(6deg); }.memo-pink span { display:block; margin-top:8px; text-align:right; font-size:.6rem; }.memo-blue { left:-20px; bottom:-32px; color:#437b91; background:#d8f4ff; transform:rotate(-5deg); }
.section-block { margin: 88px 0; scroll-margin-top: 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 3px dotted var(--blue); }
.section-heading h2, .about h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.25; }
.section-heading > a { font-weight: 800; }
.section-art { flex: 0 0 auto; display: inline-block; width: 68px; aspect-ratio: 1; overflow: hidden; border: 3px solid #fff; border-radius: 20px; background-color: #dde1e6; background-repeat: no-repeat; box-shadow: 3px 4px 0 rgba(142,215,238,.38); }
.icon-checklist { background-image: url("yuki-icons-system-v1.png"); background-size: 400% auto; background-position: 98% 1%; transform: rotate(3deg); }
.icon-treasure { background-image: url("yuki-icons-system-v1.png"); background-size: 400% auto; background-position: 97% 99%; transform: rotate(-3deg); }
.icon-companion { width: 54px; border-radius: 50%; background-image: url("yuki-icons-lab-v1.png"); background-size: 400% auto; background-position: 102% 6%; box-shadow: 3px 4px 0 rgba(244,174,203,.42); }
.card-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; }
.log-card { min-height: 280px; padding: 24px; border: 2px solid var(--blue); border-radius: 22px; background: var(--paper); box-shadow: 4px 5px 0 var(--paper-deep); display: flex; flex-direction: column; }
.log-card { position: relative; overflow: hidden; }
.log-card:nth-child(2) { border-color: var(--pink); }.log-card.featured { background: #fff5c9; box-shadow: 5px 6px 0 var(--pink); }
.card-meta { display: flex; justify-content: space-between; gap: 10px; color: #728ba0; font: 700 .72rem/1.4 monospace; }
.card-meta span { padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--blue-deep); }
.log-card h3 { margin: 28px 0 12px; font-size: 1.35rem; line-height: 1.45; }
.log-card p { font-size: .92rem; }
.log-card > a { margin-top: auto; font-weight: 800; }
.card-sticker { position:absolute; right:-13px; top:17px; padding:5px 18px; color:#fff; background:var(--pink-deep); font:800 .62rem/1 monospace; transform:rotate(9deg); box-shadow:2px 3px 0 rgba(85,184,220,.35); }.card-sticker.blue { background:var(--blue-deep); }

.projects { padding: 36px; background: linear-gradient(145deg,#edfaff,#fff1f7); color: var(--ink); box-shadow: 8px 8px 0 var(--pink); }
.projects .eyebrow { color: var(--pink-deep); }
.projects .section-heading { border-color: var(--pink); }
.project-list article { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 2px dotted rgba(85,184,220,.35); }
.project-list h3, .project-list p { margin-bottom: 0; }
.project-list p { opacity: .72; font-size: .9rem; }
.project-no { color: var(--blue-deep); font: 800 .8rem/1 monospace; }
.badge { padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--blue-deep); font-size: .72rem; font-weight: 800; }
.badge.active { background: var(--pink-deep); color: #fff; }

.lab-windows { display: grid; grid-template-columns: 1.15fr 1fr .8fr; gap: 16px; align-items: start; }
.pixel-window { border: 3px solid #6b8aa0; border-radius: 10px; background: #fff; box-shadow: 5px 6px 0 rgba(244,174,203,.45); overflow: hidden; }
.pixel-window:nth-child(2) { transform: rotate(1deg); }.pixel-window:nth-child(3) { transform: rotate(-1deg); }
.pixel-window header { display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: #fff; background: linear-gradient(90deg,var(--blue-deep),var(--pink)); font: 800 .75rem/1 monospace; letter-spacing: .08em; }
.pixel-window header i { margin-left: auto; width: 18px; height: 18px; display: grid; place-items: center; color: #668095; background: #fff; border-radius: 4px; font-style: normal; }
.window-body { padding: 18px; }
.window-body h3 { margin-bottom: 12px; font-size: 1.05rem; }
.window-body p { margin-bottom: 12px; font-size: .78rem; }
.window-body button { padding: 7px 14px; color: #fff; background: var(--pink-deep); border: 0; border-radius: 999px; box-shadow: 2px 3px 0 var(--blue); font-weight: 800; cursor: pointer; }
.quest-meter { height: 16px; margin: 10px 0; padding: 2px; border: 2px solid var(--blue-deep); border-radius: 999px; background: #fff; }
.quest-meter span { display: block; width: 35%; height: 100%; border-radius: 999px; background: repeating-linear-gradient(45deg,var(--pink),var(--pink) 6px,#ffd3e5 6px,#ffd3e5 12px); }
.memo-window ul { margin: 0; padding-left: 1.3em; font-size: .82rem; }.memo-window li { margin: 7px 0; }.scribble { color: var(--pink-deep); font-weight: 900; transform: rotate(-2deg); }
.gacha-window { text-align: center; }.idea-orb { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 10px; color: #fff; background: radial-gradient(circle at 35% 30%,#fff 0 5%,var(--blue) 8% 48%,var(--pink) 75%); border: 3px solid #fff; outline: 2px solid var(--blue-deep); border-radius: 50%; font: 900 2rem/1 monospace; }
.changelog-strip { position:relative; border:2px solid #6d899d; border-radius:10px; background:#fff; box-shadow:5px 6px 0 rgba(142,215,238,.25); overflow:hidden; }.changelog-strip header { display:flex; justify-content:space-between; padding:9px 13px; color:#d9e8ef; background:#344a5b; font:700 .7rem/1 monospace; }.changelog-strip header span { color:#a8dced; }.commit-list { padding:12px 18px; }.commit-list p { display:grid; grid-template-columns:55px 1fr auto; gap:12px; margin:0; padding:7px 0; border-bottom:1px dotted #c4d6df; font-size:.75rem; }.commit-list code { color:#52a784; font-weight:800; }.commit-list time { color:#9aaebd; font-family:monospace; }.review-stamp { position:absolute; right:18%; top:36px; padding:5px 12px; color:var(--pink-deep); border:3px double var(--pink-deep); font:900 1rem/1 monospace; transform:rotate(-8deg); opacity:.82; }.review-stamp small { display:block; margin-top:4px; font-size:.48rem; }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.archive-card { min-height: 190px; padding: 19px 20px; border: 2px solid var(--blue); border-radius: 18px; background: var(--paper); text-decoration: none; transition: transform .15s; }
.archive-card:nth-child(2) { border-color: var(--pink); }.archive-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 5px 7px 0 var(--pink); }
.archive-card > span { font: 800 .75rem/1 monospace; color: var(--pink-deep); }
.archive-card h3 { margin: 21px 0 8px; font-size: 1.08rem; }
.archive-card p { margin: 0 0 12px; font-size: .82rem; line-height: 1.65; }
.archive-card strong { font-size: .82rem; }
.archive-card strong { color: var(--blue-deep); }

.webmaster-corner { border: 3px ridge var(--pink); background: rgba(255,255,255,.75); box-shadow: 6px 7px 0 rgba(142,215,238,.3); }
.compact-corner { width: min(900px,100%); margin-left: auto; margin-right: auto; }
.corner-title { padding: 8px; text-align: center; color: #fff; background: repeating-linear-gradient(45deg,var(--pink),var(--pink) 10px,#f8c4d9 10px,#f8c4d9 20px); font-weight: 900; letter-spacing: .08em; }
.corner-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; padding: 22px; }
.mini-profile { display: flex; gap: 13px; align-items: center; }.mini-profile p,.site-note p { margin: 0; font-size: .76rem; line-height: 1.7; }.mini-face { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--blue),var(--pink)); border: 3px solid #fff; outline: 2px solid var(--pink); border-radius: 50%; font-size: 1.5rem; font-weight: 900; }
.link-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: center; }.mini-banner { display: grid; min-height: 31px; place-items: center; border: 2px outset #fff; color: #fff; text-align: center; font: 800 .58rem/1 monospace; }.mini-banner.pink { background: var(--pink-deep); }.mini-banner.blue { background: var(--blue-deep); }.mini-banner.yellow { background: #d5ae31; }.mini-banner.dark { background: #657588; }
.site-note { padding: 12px; border: 2px dashed var(--blue); background: #f0fbff; }.site-note strong { color: var(--pink-deep); }

.about { display: grid; grid-template-columns: 1fr 1fr 180px; align-items: center; gap: 40px; padding: clamp(30px, 6vw, 70px); }
.about > p { margin: 0; font-size: 1.02rem; font-weight: 600; }
.mini-world { width: 180px; background-image: url("yuki-mini-set-v1.png"); background-repeat: no-repeat; background-size: 300% auto; background-position: 100% 0; transform: rotate(3deg); }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 30px; padding: 40px 8px 18px; border-top: 3px dotted var(--pink); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.site-footer strong { font-size: 1.4rem; }
.site-footer p { margin: 0; font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; align-content: start; }
.site-footer nav a { font-weight: 800; }
.site-footer small { grid-column: 1 / -1; opacity: .6; font-family: monospace; }
.footer-note { grid-column: 1 / -1; margin: -20px 0 0; color: #89a0b2; font: .68rem/1.4 monospace; text-align: right; }

@media (max-width: 820px) {
  .page-shell { width: min(100% - 20px, 680px); margin-top: 10px; }
  .site-header { top: 6px; }
  .menu-button { display: block; border: 2px solid var(--blue-deep); border-radius: 999px; background: var(--cream); font: 800 .78rem/1 monospace; padding: 10px; }
  .main-menu { display: none; position: absolute; top: calc(100% + 2px); left: -2px; right: -2px; padding: 10px; border: 2px solid var(--blue); border-radius: 18px; background: var(--paper); box-shadow: 4px 4px 0 var(--pink); }
  .main-menu.open { display: grid; }
  .hero { grid-template-columns: 1fr; padding: 34px 24px; gap: 30px; }
  .yuki-card { min-height: 500px; }
  .character-art { height: 560px; object-position: 50% 16%; }
  .character-caption { right: 10px; bottom: 10px; left: 10px; padding: 13px 14px; }
  .card-grid, .archive-grid, .about, .corner-grid { grid-template-columns: 1fr; }
  .mini-code, .mini-idea { position: relative; top: auto; right: auto; float: right; width: 125px; margin: -18px 0 12px 16px; }
  .mini-world { justify-self: center; width: 160px; }
  .section-art { width: 58px; }
  .icon-companion { width: 48px; }
  .tech-grid { grid-template-columns: 1fr; }
  .floating-memo { display:none; }
  .dash-head { align-items:start; flex-direction:column; }
  .review-stamp { display:none; }
  .commit-list p { grid-template-columns:50px 1fr; }.commit-list time { grid-column:2; }
  .quick-menu { grid-template-columns: repeat(3,1fr); }
  .retro-strip span:nth-child(3) { display: none; }
  .sticker-new { right: 12px; top: 14px; width: 54px; height: 54px; font-size: .75rem; }
  .sticker-star { display: none; }
  .project-list article { grid-template-columns: 58px 1fr; }
  .project-list .badge { grid-column: 2; justify-self: start; }
  .projects { padding: 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer small { grid-column: auto; }
  .footer-note { grid-column: auto; text-align: left; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* blog article */
.article-shell main { padding-bottom:40px; }
.blog-article { margin-top:42px; }
.article-header { display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:center; gap:42px; padding:clamp(34px,6vw,68px); overflow:hidden; }
.article-meta { display:flex; gap:10px; align-items:center; margin:12px 0 18px; color:#8297a7; font:800 .72rem/1 monospace; }.article-meta span { padding:6px 10px; color:var(--pink-deep); background:#fff0f6; border:1px solid var(--pink); border-radius:999px; }
.article-header h1 { margin:0; font-size:clamp(2.25rem,5.5vw,4.8rem); line-height:1.12; }.article-header h1 em { display:inline-block; margin-top:.12em; color:var(--pink-deep); font-size:.55em; font-style:normal; }
.article-lead { margin:24px 0 0; font-size:1.08rem; font-weight:700; line-height:1.9; }
.article-hero-art { position:relative; height:390px; overflow:hidden; background:linear-gradient(145deg,#eafaff,#fff0f7); border:3px solid #fff; outline:2px solid var(--blue); border-radius:45% 55% 48% 52% / 55% 43% 57% 45%; box-shadow:8px 10px 0 rgba(244,174,203,.34); }.article-hero-art img { width:100%; height:100%; object-fit:cover; object-position:50% 13%; }.article-hero-art span { position:absolute; right:14px; bottom:18px; padding:8px 14px; color:var(--pink-deep); background:#fff; border:2px solid var(--pink); border-radius:50%; font-weight:900; transform:rotate(-6deg); }
.article-layout { display:grid; grid-template-columns:minmax(0,760px) 245px; justify-content:center; align-items:start; gap:38px; margin:52px auto; }
.article-body { padding:clamp(28px,5vw,56px); background:rgba(255,255,255,.9); border:2px solid var(--blue); border-radius:24px; box-shadow:6px 7px 0 rgba(142,215,238,.25); }.article-body > p { margin:0 0 1.35em; line-height:2; }.article-body h2 { margin:2.5em 0 .85em; padding-bottom:9px; color:#465f73; font-size:1.65rem; border-bottom:3px dotted var(--pink); }.article-body h2::before { content:"✿ "; color:var(--pink-deep); }.article-body > p:first-child { font-size:1.24rem; font-weight:900; color:var(--pink-deep); }
.article-memo { margin:34px 0; padding:22px 24px; background:#fff8d9; border:2px dashed #e7b850; box-shadow:4px 5px 0 rgba(244,174,203,.25); transform:rotate(-.6deg); }.article-memo strong { color:#a46d12; }.article-memo p { margin:8px 0 0; font-weight:700; line-height:1.8; }
.article-checklist { margin:24px 0 30px; padding:0; list-style:none; }.article-checklist li { position:relative; margin:10px 0; padding:11px 14px 11px 42px; background:#f4fcff; border:1px solid #c6e9f3; border-radius:12px; font-weight:700; }.article-checklist li::before { content:"✓"; position:absolute; left:15px; color:var(--pink-deep); font-weight:900; }
.article-closing { margin-top:52px; padding:28px; text-align:center; background:linear-gradient(145deg,#eefbff,#fff0f7); border-radius:20px; }.article-closing p { margin:5px 0; }.article-closing strong { color:#45657a; font-size:1.25rem; line-height:1.8; }.article-closing span { display:block; margin:14px 12% 0 0; text-align:right; color:var(--pink-deep); font-weight:900; transform:rotate(-4deg); }
.article-sidebar { position:sticky; top:24px; display:grid; gap:18px; }.sidebar-card { padding:20px; background:#fff; border:2px solid var(--blue); border-radius:18px; box-shadow:4px 5px 0 rgba(142,215,238,.24); }.sidebar-card p { margin:10px 0 0; font-size:.82rem; line-height:1.75; }.sidebar-label { display:block; margin-bottom:12px; color:var(--pink-deep); font:800 .66rem/1 monospace; letter-spacing:.12em; }.sidebar-card.handwritten { background:#fff8d9; border-color:#e7b850; transform:rotate(1.5deg); }.sidebar-card.handwritten p { font-weight:800; line-height:2; }
.article-nav { display:flex; justify-content:space-between; gap:24px; margin:42px 0 70px; padding:18px 22px; background:rgba(255,255,255,.72); border-top:2px dotted var(--blue); border-bottom:2px dotted var(--pink); font-weight:800; }.article-nav a { color:var(--blue-deep); }.article-nav span { color:#8a7c85; }
@media (max-width:820px) {
  .article-header,.article-layout { grid-template-columns:1fr; }
  .article-hero-art { width:min(100%,350px); justify-self:center; }
  .article-sidebar { position:static; grid-template-columns:1fr; }
  .article-nav { align-items:flex-start; flex-direction:column; }
}

/* history page */
.history-shell main { padding-bottom: 30px; }
.history-hero { display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 55px; margin-top: 42px; padding: clamp(40px,7vw,86px); overflow: hidden; }
.history-hero h1 { font-size: clamp(2.5rem,6vw,5.4rem); }
.history-hero h1 em { display: inline-block; font-size: .67em; }
.history-seal { width: 230px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; color: #fff; background: radial-gradient(circle,#5dbbdc 0 52%,#86d9ee 53% 60%,#f4aecb 61% 70%,#fff 71% 74%,#5dbbdc 75%); border-radius: 50%; box-shadow: 8px 10px 0 rgba(244,174,203,.45); transform: rotate(5deg); }
.history-seal span,.history-seal small { font: 800 .7rem/1.5 monospace; letter-spacing: .15em; }.history-seal strong { font: 900 3.7rem/1 sans-serif; }
.continuity-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 32px 0 90px; }
.continuity-strip blockquote { margin: 0; padding: 20px; color: #647b8e; background: #fffdf5; border: 2px solid var(--blue); border-radius: 18px; box-shadow: 4px 5px 0 var(--pink); font-weight: 800; transform: rotate(-1deg); }.continuity-strip blockquote:nth-child(2) { transform: rotate(1deg); border-color: var(--pink); }.continuity-strip cite { display: block; margin-top: 12px; color: var(--pink-deep); font: 700 .68rem/1.5 monospace; }
.history-section { margin: 100px 0; }.history-heading { max-width: 760px; margin-bottom: 42px; }.history-heading h2 { margin-bottom: 12px; font-size: clamp(2rem,5vw,3.7rem); }.history-heading > p:last-child { font-weight: 600; }
.timeline { position: relative; display: grid; gap: 28px; }.timeline::before { content:""; position:absolute; top:0; bottom:0; left:129px; width:4px; background:repeating-linear-gradient(to bottom,var(--blue-deep) 0 12px,transparent 12px 22px); }
.timeline-entry { display: grid; grid-template-columns: 105px 1fr; gap: 48px; position: relative; }.timeline-entry::before { content:"✿"; position:absolute; z-index:2; left:114px; top:29px; width:34px; height:34px; display:grid; place-items:center; color:#fff; background:var(--pink-deep); border:4px solid #fff; outline:2px solid var(--blue); border-radius:50%; }
.timeline-year { padding-top: 28px; text-align: right; }.timeline-year b { display:block; color:var(--pink-deep); font:900 1.45rem/1 monospace; }.timeline-year span { color:#849aab; font:800 .64rem/1.5 monospace; }
.timeline-card { padding: 28px 32px; border: 2px solid var(--blue); border-radius: 22px; background: rgba(255,255,255,.87); box-shadow: 5px 6px 0 rgba(142,215,238,.25); }.timeline-entry:nth-child(even) .timeline-card { border-color:var(--pink); box-shadow-color:rgba(244,174,203,.3); }.timeline-card h3 { margin:10px 0 12px; font-size:1.45rem; }.timeline-card p { margin-bottom:12px; }.timeline-card ul { padding-left:1.3em; font-size:.88rem; line-height:1.8; }.timeline-tag { color:var(--blue-deep); font:800 .67rem/1 monospace; letter-spacing:.13em; }.timeline-note { padding:10px 13px; color:#745f6c; background:#fff5c9; border-left:4px solid var(--pink); font-size:.84rem; font-weight:700; }.now-status { display:inline-flex; align-items:center; gap:8px; padding:7px 12px; border:2px solid #73a99d; border-radius:999px; color:#57867b; background:#effff7; font:800 .68rem/1 monospace; }.now-status span { width:8px; height:8px; background:#69c69e; border-radius:50%; box-shadow:0 0 8px #69c69e; }
.archive-photo { position:relative; width:min(100%,510px); margin:26px auto 30px; padding:13px 13px 38px; background:#fffdf9; border:1px solid #eadde3; box-shadow:0 10px 24px rgba(71,52,63,.18),5px 6px 0 rgba(244,174,203,.24); transform:rotate(-1.7deg); }.archive-photo--right { transform:rotate(1.5deg); }.archive-photo::before { content:""; position:absolute; z-index:2; top:-13px; left:50%; width:92px; height:27px; background:rgba(255,225,158,.72); box-shadow:0 1px 2px rgba(90,66,40,.12); transform:translateX(-50%) rotate(1deg); }.archive-photo--right::before { background:rgba(190,231,244,.72); transform:translateX(-50%) rotate(-2deg); }.archive-photo-crop { overflow:hidden; background:#111; }.archive-photo-crop img { display:block; width:100%; height:auto; }.archive-photo figcaption { margin-top:13px; color:#75636d; font:700 .82rem/1.55 "Yu Gothic",sans-serif; text-align:center; }.archive-photo figcaption b { margin-right:.5em; color:var(--pink-deep); font-family:monospace; letter-spacing:.08em; }
.archive-photo--compact { width:min(100%,430px); margin-top:22px; }
.archive-photo--current .archive-photo-crop { height:320px; background:linear-gradient(145deg,#eefbff,#fff2f8); }
.archive-photo--current .archive-photo-crop img { height:100%; object-fit:cover; object-position:50% 18%; }
.landmark-card { display:grid; grid-template-columns:125px 1fr; gap:20px; margin:22px 0; padding:22px; color:#e7f7ff; background:linear-gradient(145deg,#172330,#293d50); border:3px solid var(--pink); border-radius:18px; box-shadow:5px 6px 0 var(--blue); }
.landmark-date span { display:block; margin-bottom:8px; color:var(--pink); font:900 .68rem/1 monospace; letter-spacing:.16em; }.landmark-date strong { color:#fff; font:900 1rem/1.4 monospace; }.landmark-card h4 { margin:0 0 12px; color:#fff; font-size:1.16rem; }.landmark-card p { font-size:.84rem; }.landmark-card p strong { color:#ffd1e3; }.landmark-card a { color:#9fe6f5; font-weight:800; }
.identity-section { margin:110px 0; padding:clamp(32px,6vw,68px); }.identity-section > header { margin-bottom:32px; }.identity-section h2 { font-size:clamp(2rem,5vw,3.5rem); }.identity-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }.identity-grid article { padding:24px; border:2px dashed var(--blue); border-radius:20px; background:rgba(255,255,255,.68); }.identity-grid article:nth-child(2) { border-color:var(--pink); }.identity-grid b { color:var(--pink-deep); font:900 .8rem/1 monospace; }.identity-grid h3 { margin:12px 0 9px; }.identity-grid p { margin:0; font-size:.88rem; }
.source-section { margin:100px 0; }.source-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }.source-grid a { min-height:190px; padding:24px; border:2px solid var(--blue); border-radius:22px; color:inherit; background:#fff; text-decoration:none; box-shadow:4px 5px 0 var(--paper-deep); }.source-grid a:nth-child(2) { border-color:var(--pink); }.source-grid a:hover { transform:translateY(-4px) rotate(-.5deg); box-shadow:5px 7px 0 var(--pink); }.source-grid span { color:var(--pink-deep); font:800 .7rem/1 monospace; }.source-grid strong { display:block; margin:28px 0 9px; font-size:1.08rem; }.source-grid p { margin:0; font-size:.84rem; }
.history-cta { margin:90px 0 40px; padding:34px; display:flex; justify-content:space-between; align-items:center; gap:24px; }.history-cta p { margin:0; font-size:1.15rem; font-weight:800; }
@media (max-width:820px) {
  .history-hero { grid-template-columns:1fr; }.history-seal { width:180px; justify-self:center; }
  .continuity-strip,.identity-grid,.source-grid { grid-template-columns:1fr; }
  .timeline::before { left:18px; }.timeline-entry { grid-template-columns:1fr; gap:8px; padding-left:48px; }.timeline-entry::before { left:2px; top:57px; }.timeline-year { padding-top:0; text-align:left; }.timeline-year b,.timeline-year span { display:inline; margin-right:7px; }
  .timeline-card { padding:22px; }.history-cta { align-items:flex-start; flex-direction:column; }
  .landmark-card { grid-template-columns:1fr; }
}
