/* Palette: acid yellow ground, ink, electric blue, hot pink, white. One deliberate look, so no dark variant. */
:root {
  --yellow: #ecff2b;
  --ink: #0a0a0a;
  --blue: #2f3cff;
  --pink: #ff4fa3;
  --white: #ffffff;
  --display: "Dela Gothic One", "Noto Sans JP", sans-serif;
  --body: "Work Sans", "Noto Sans JP", system-ui, sans-serif;
  --mono: "Space Mono", "Noto Sans JP", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
}
.page { overflow-x: clip; }
a { color: inherit; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.ja { font-family: var(--display); }
.en { font-family: var(--mono); }

/* top bar */
.topbar { background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.topbar .inner { max-width: 1120px; margin: 0 auto; padding: 12px max(var(--gutter), env(safe-area-inset-left, 0px)) 12px max(var(--gutter), env(safe-area-inset-right, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.topbar a { text-decoration: underline; }
.topbar a:focus-visible { outline-color: var(--yellow); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px max(var(--gutter), env(safe-area-inset-right, 0px)) 96px max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 88px;
}
main { display: flex; flex-direction: column; gap: 88px; }

/* hero */
.hero { position: relative; display: flex; flex-direction: column; gap: 32px; padding-top: 12px; }
.burst {
  position: absolute; inset: -40px -200px 0 -200px;
  background: repeating-conic-gradient(from 0deg at 38% 52%, var(--yellow) 0deg 3deg, var(--white) 3deg 6deg);
  -webkit-mask-image: radial-gradient(circle at 38% 52%, transparent 16%, #000 62%);
  mask-image: radial-gradient(circle at 38% 52%, transparent 16%, #000 62%);
}
.episode, .role {
  position: relative; align-self: flex-start; background: var(--ink); color: var(--yellow);
  font-family: var(--mono); font-weight: 700; transform: rotate(-1.5deg);
}
.episode { padding: 8px 18px; font-size: 17px; }
.episode .en { font-weight: 400; opacity: .9; }
.role { padding: 10px 18px; font-size: 20px; }
.namewrap { position: relative; padding-right: 100px; }
.name {
  font-family: var(--display); font-size: clamp(52px, 15vw, 170px); line-height: .86;
  letter-spacing: -.02em; text-transform: uppercase; text-shadow: 8px 8px 0 var(--pink);
  overflow-wrap: anywhere;
}
.vert {
  position: absolute; top: 0; right: 24px; writing-mode: vertical-rl; white-space: nowrap; font-size: 52px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: .02em;
}
.sfx {
  position: absolute; right: 150px; top: -58px; font-size: 64px; line-height: 1;
  color: var(--pink); -webkit-text-stroke: 3px var(--ink); text-shadow: 5px 5px 0 var(--ink); transform: rotate(-6deg);
}

/* search grid */
.search { position: relative; display: flex; flex-direction: column; margin-top: 36px; }
.bubble {
  position: absolute; top: -62px; right: 48px; z-index: 2; background: var(--white);
  border: 4px solid var(--ink); border-radius: 28px; padding: 8px 22px 10px;
  box-shadow: 6px 6px 0 var(--ink); transform: rotate(2deg);
}
.bubble .ja { font-size: 26px; line-height: 1.2; }
.bubble .en { font-size: 13px; }
.bubble::after {
  content: ""; position: absolute; left: 36px; bottom: -18px; width: 26px; height: 26px; background: var(--white);
  border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: rotate(45deg) skew(10deg, 10deg);
}
.board {
  margin: 0; background: var(--white); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  padding: 20px; transform: rotate(.8deg); display: flex; flex-direction: column; gap: 14px;
}
.grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; background: var(--ink); border: 3px solid var(--ink); }
.grid i {
  aspect-ratio: 1; background: var(--white); color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-style: normal; font-size: clamp(8px, 1.4vw, 15px);
}
.grid .w { background: var(--pink); }
.grid .s { background: var(--ink); }
.grid .f { background: var(--yellow); }
.board figcaption { font-family: var(--mono); font-size: 15px; line-height: 1.4; }
.board figcaption span { font-weight: 700; }

/* ticker */
.ticker {
  background: var(--ink); color: var(--yellow); margin: 0 -80px; padding: 14px 0; transform: rotate(-1.5deg);
  white-space: nowrap; overflow: hidden; font-family: var(--mono); font-weight: 700; font-size: 26px;
  letter-spacing: .08em; text-transform: uppercase;
}

/* about */
.about {
  position: relative; background: var(--white); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  padding: 52px clamp(20px, 4vw, 44px) 44px; transform: rotate(-.8deg);
}
.about p { font-size: clamp(20px, 2.6vw, 29px); line-height: 1.45; font-weight: 500; max-width: 30em; }
.tag {
  position: absolute; top: -24px; left: 28px; background: var(--pink); border: 4px solid var(--ink);
  padding: 4px 18px; font-family: var(--display); font-size: 26px; text-transform: uppercase; transform: rotate(-2deg);
}
.stamp {
  position: absolute; top: 18px; right: 22px; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
  background: var(--pink); border: 4px solid var(--ink); font-size: 54px; line-height: 1; transform: rotate(7deg); box-shadow: 4px 4px 0 var(--ink);
}

/* section headings */
.made, .beyond { display: flex; flex-direction: column; gap: 44px; }
.head {
  align-self: flex-start; font-family: var(--display); font-size: clamp(30px, 6vw, 64px); line-height: 1.05;
  text-transform: uppercase; padding: 10px 24px;
}
.head.black { background: var(--ink); color: var(--yellow); transform: rotate(1deg); }
.head.pink { background: var(--pink); border: 4px solid var(--ink); transform: rotate(-1deg); }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 44px; }
.card {
  position: relative; display: block; height: 100%; text-decoration: none; color: var(--ink);
  border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 36px 32px 32px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover, .card:focus-visible { transform: rotate(0deg) translate(-4px, -4px); box-shadow: 16px 16px 0 var(--ink); }
.card.blue { background: radial-gradient(rgba(255, 255, 255, .22) 2px, transparent 2.5px) 0 0 / 12px 12px, var(--blue); color: var(--white); transform: rotate(-1.5deg); }
.card.pink { background: radial-gradient(rgba(10, 10, 10, .2) 2px, transparent 2.5px) 0 0 / 12px 12px, var(--pink); transform: rotate(1.2deg); }
.card.white { background: var(--white); transform: rotate(1.6deg); }
.card.yellow { background: radial-gradient(rgba(10, 10, 10, .14) 2px, transparent 2.5px) 0 0 / 12px 12px, var(--yellow); transform: rotate(-1deg); }
.card .title { display: block; font-family: var(--display); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.05; margin-bottom: 14px; overflow-wrap: anywhere; }
.card .desc { display: block; font-size: 19px; line-height: 1.45; }
.kind {
  position: absolute; top: -20px; right: 20px; border: 4px solid var(--ink); padding: 2px 14px;
  font-family: var(--mono); font-weight: 700; font-size: 15px; text-transform: uppercase; color: var(--ink);
}
.kind.k-yellow { background: var(--yellow); transform: rotate(3deg); }
.kind.k-white { background: var(--white); transform: rotate(-3deg); }
.kind.k-pink { background: var(--pink); transform: rotate(2deg); }
.kind.k-blue { background: var(--blue); color: var(--white); transform: rotate(-2deg); }

/* beyond the day job */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
.box { border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 32px; font-size: 20px; }
.box.blue { background: radial-gradient(rgba(255, 255, 255, .2) 2px, transparent 2.5px) 0 0 / 12px 12px, var(--blue); color: var(--white); transform: rotate(.8deg); }
.box.white { background: var(--white); transform: rotate(-.9deg); }

/* footer */
footer { display: flex; flex-direction: column; align-items: center; gap: 36px; padding-top: 16px; }
.btn {
  display: inline-block; text-decoration: none; background: var(--ink); color: var(--yellow); padding: 18px 34px;
  border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--blue); font-family: var(--display); font-size: 30px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .btn:focus-visible { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--pink); }
.tbc { background: var(--ink); color: var(--yellow); padding: 12px 28px; transform: rotate(-1deg); text-align: center; }
.tbc .ja { font-size: 40px; line-height: 1.1; letter-spacing: .1em; }
.tbc .en { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 760px) {
  .cards, .pair { grid-template-columns: minmax(0, 1fr); }
  .namewrap { padding-right: 0; }
  .vert, .sfx { display: none; }
  .bubble { position: static; align-self: flex-start; margin-bottom: 14px; }
  .bubble::after { display: none; }
  .ticker { margin: 0 -40px; font-size: 20px; }
  .wrap, main { gap: 64px; }
  .stamp { width: 60px; height: 60px; font-size: 38px; top: 14px; right: 14px; }
  .tag { font-size: 20px; left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
}
