:root{
  --ink:#111;
  --paper:#fff7ef;
  --cream:#fff1d6;
  --pink:#ff8fe9;
  --yellow:#ffd200;
  --mint:#49f2c2;
  --blue:#77a8ff;
  --shadow: 6px 6px 0 var(--ink);
  --radius: 22px;
  --border: 3px solid var(--ink);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.45;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(1120px, calc(100% - 40px));
  margin-inline:auto;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255, 247, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:0.2px;
}
.brand__mark{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border: var(--border);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: var(--shadow);
}
.brand__name{
  font-size:18px;
}

.nav{
  display:flex;
  gap:18px;
  align-items:center;
  font-weight:600;
}
.nav a{
  padding:8px 10px;
  border-radius: 12px;
}
.nav a:hover{
  background: #fff;
  text-decoration:none;
  outline: 2px solid var(--ink);
}

.topbar__actions{
  display:flex;
  gap:10px;
}
.pill{
  padding:10px 12px;
  border: var(--border);
  border-radius: 999px;
  background:#fff;
  box-shadow: var(--shadow);
  font-weight:700;
  white-space:nowrap;
}
.pill--dark{
  background: var(--ink);
  color: #fff;
}
.pill:hover{
  text-decoration:none;
  transform: translate(-1px, -1px);
}

/* Hero */
.hero{
  border-bottom: var(--border);
  background: linear-gradient(90deg, #ffb3f1 0 55%, #ffd200 55% 100%);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:24px;
  padding: 56px 0;
  align-items:center;
}
.hero__left{ padding: 10px 0; }

.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}
.tag{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border: var(--border);
  border-radius: 999px;
  background:#fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight:700;
  font-size:14px;
}
.tag--mint{ background: var(--mint); }
.tag--yellow{ background: var(--yellow); }
.tag--pink{ background: var(--pink); }
.tag--blue{ background: var(--blue); }

.hero__title{
  margin:0 0 14px;
  font-size: clamp(42px, 4vw, 66px);
  line-height:1.02;
  letter-spacing:-0.6px;
}
.hero__title-accent{
  display:inline-block;
  background:#fff;
  border: var(--border);
  border-radius: 16px;
  padding: 6px 10px;
  box-shadow: var(--shadow);
}

.hero__lead{
  margin:0 0 18px;
  font-size: 18px;
  max-width: 52ch;
}

.hero__cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin: 18px 0 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-weight:800;
  background:#fff;
}
.btn:hover{
  text-decoration:none;
  transform: translate(-1px, -1px);
}
.btn--dark{
  background: var(--ink);
  color:#fff;
}
.btn--light{
  background:#fff;
}

.mini{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.mini__card{
  border: var(--border);
  border-radius: 18px;
  background:#fff;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 12px;
}
.mini__k{ font-size:12px; opacity:0.8; font-weight:700; }
.mini__v{ font-size:14px; font-weight:800; display:flex; align-items:center; gap:8px; }
.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:2px solid var(--ink);
  display:inline-block;
}
.dot--green{ background:#45f08a; }

/* Hero art */
.hero-art{
  position:relative;
  border: var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 420px;
  overflow:hidden;
}
.hero-art__blob{
  position:absolute;
  inset:auto;
  width: 320px;
  height: 320px;
  right:-60px;
  top: 40px;
  background: #ffb3f1;
  border: var(--border);
  border-radius: 60% 40% 60% 40% / 55% 45% 55% 45%;
  transform: rotate(12deg);
}
.hero-art__portrait{
  position:relative;
  z-index:2;
  margin-top: 30px;
  margin-left: 6px;
  width: 78%;
  border: var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
  overflow:hidden;
}
.portrait__placeholder{
  height: 240px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, var(--mint), #fff);
  padding: 14px;
}
.portrait__emoji{
  font-size: 54px;
  margin-bottom: 10px;
}
.portrait__text{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
}
.portrait__text span{ font-size:12px; opacity:0.75; font-weight:700; }

.sticker{
  position:absolute;
  z-index:3;
  border: var(--border);
  border-radius: 999px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight:800;
  font-size: 13px;
  white-space:nowrap;
}
.sticker--a{ left: 18px; top: 16px; background: var(--yellow); }
.sticker--b{ right: 16px; top: 14px; background: var(--mint); }
.sticker--c{ left: 18px; bottom: 16px; background: var(--blue); }

/* Sections */
.section{
  padding: 66px 0;
  border-bottom: var(--border);
  background: var(--paper);
}
.section--cream{ background: var(--cream); }
.section--pink{ background: #ffd8f7; }

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom: 20px;
}
.section__head h2{
  margin:0;
  font-size: clamp(28px, 3vw, 40px);
  line-height:1.1;
}
.section__head p{
  margin:0;
  max-width: 52ch;
  font-weight:600;
  opacity:0.9;
}

/* Now notes */
.now-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.note{
  border: var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  padding: 18px;
}
.note h3{ margin:0 0 8px; font-size:18px; }
.note p{ margin:0 0 12px; font-weight:600; }
.note__meta{
  font-size:12px;
  font-weight:800;
  opacity:0.75;
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.card{
  border: var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  padding: 18px;
}
.card__icon{
  width: 46px;
  height: 46px;
  display:grid;
  place-items:center;
  border: var(--border);
  border-radius: 16px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 12px;
  font-size:22px;
}
.card h3{ margin:0 0 8px; font-size:18px; }
.card p{ margin:0 0 12px; font-weight:600; }
.list{
  margin:0;
  padding-left: 18px;
  font-weight:700;
}
.list li{ margin: 6px 0; }

/* Projects */
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}
.project{
  border: var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  padding: 18px;
}
.project__top{
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom: 10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight:900;
  font-size: 12px;
  background: #fff;
}
.badge--wip{ background: var(--yellow); }
.project h3{ margin:0 0 8px; font-size:20px; }
.project p{ margin:0 0 12px; font-weight:650; }
.project__links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.link{
  font-weight:900;
  text-decoration:underline;
}
.link:hover{ text-decoration:none; }

/* About + Contact */
.about{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:16px;
  align-items:start;
}
.about__box{
  border: var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  padding: 18px;
}
.about__lead{
  font-size: 18px;
  font-weight:800;
}
.contact{
  border: var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
  padding: 18px;
}
.contact h3{ margin:0 0 8px; }
.contact p{ margin:0 0 12px; font-weight:650; }
.contact__row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.tiny{
  font-size: 12px;
  font-weight:800;
  opacity:0.85;
}
code{
  border:2px solid var(--ink);
  border-radius: 10px;
  padding: 2px 6px;
  background:#fff;
  font-weight:900;
}

/* Footer */
.footer{
  background: var(--paper);
  padding: 26px 0;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.footer__small{
  opacity:0.8;
  font-weight:700;
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero{ background: linear-gradient(180deg, #ffb3f1 0 55%, #ffd200 55% 100%); }
  .hero-art{ min-height: 380px; }
  .mini{ grid-template-columns: 1fr; }
  .now-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .nav{ display:none; } /* keep it clean on small screens */
}
