/* JUN MIZUHARA.COM */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #141414;
  color: #ECECEC;
  font-family: 'Instrument Sans', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #ECECEC; text-decoration: none; }
a:hover { color: #FFFFFF; text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 2px solid #ECECEC; outline-offset: 4px; }

img { display: block; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }

/* Header / footer */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 32px; padding-bottom: 32px;
}
.logo { font-size: 17px; font-weight: 600; letter-spacing: 0.06em; }
.nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; letter-spacing: 0.1em; }
.nav a { padding: 12px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.site-footer { padding-bottom: 64px; }
.site-footer .inner {
  border-top: 1px solid #333333; padding-top: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px;
}
.site-footer a, .site-footer span { padding: 12px 0; }
.muted { color: #A8A8A8; }

/* Works */
.page-title {
  margin: 0; padding-top: 72px; padding-bottom: 56px;
  font-size: clamp(56px, 9vw, 128px); line-height: 0.9; font-weight: 500; letter-spacing: -0.03em;
}
.works {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 72px 56px; border-top: 1px solid #333333; padding-top: 64px; padding-bottom: 140px;
}
.work { display: flex; flex-direction: column; gap: 24px; color: #ECECEC; }
.work:hover { text-decoration: none; }
.work .book-cover {
  position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; container-type: size;
  box-shadow: 0 24px 50px rgba(0,0,0,0.55);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
}
.work:hover .book-cover { transform: translateY(-8px); box-shadow: 0 36px 70px rgba(0,0,0,0.65); }
.work .book-cover::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3.5%; height: 100%;
  background: rgba(0,0,0,0.16); pointer-events: none;
}
.work-title { font-size: 22px; font-weight: 500; }
.work-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.04em; color: #A8A8A8; }

/* Cover designs (shared by Works and books) */
.cv-photo { background: #0A0A0A; }
.cv-photo img { position: absolute; left: 0; top: 0; width: 100%; height: 70%; object-fit: cover; }
.cv-photo .cv-text {
  position: absolute; left: 9%; right: 9%; bottom: 8%;
  display: flex; flex-direction: column; gap: 2.2cqh; color: #F4F4F4;
}
.cv-photo .cv-name { font-size: 8cqw; font-weight: 600; letter-spacing: 0.08em; line-height: 1; }
.cv-photo .cv-sub { font-size: 2.6cqw; letter-spacing: 0.32em; color: #BDBDBD; }

.cv-drawing { background: #FBFAF7; }
.cv-drawing img { position: absolute; left: 16%; top: 8%; width: 68%; height: 56%; object-fit: contain; }
.cv-drawing .cv-text {
  position: absolute; left: 10%; right: 10%; bottom: 9%;
  display: flex; flex-direction: column; align-items: center; gap: 2.4cqh; color: #141414; text-align: center;
}
.cv-drawing .cv-title { font-family: 'Noto Serif JP', serif; font-size: 11cqw; font-weight: 600; letter-spacing: 0.12em; line-height: 1; }
.cv-drawing .cv-name { font-size: 2.8cqw; font-weight: 600; letter-spacing: 0.2em; }
.cv-drawing .cv-sub { font-size: 2.2cqw; letter-spacing: 0.3em; color: #5E5E5E; }

/* About */
.about-hero { padding-top: 72px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 40px; }
.about-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
.about-name h1 { margin: 0; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; font-weight: 500; letter-spacing: -0.02em; }
.about-name span { font-size: 14px; color: #A8A8A8; letter-spacing: 0.16em; }
.statement {
  margin: 0; max-width: 980px; font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.75;
}
.profile { display: flex; flex-wrap: wrap; gap: 24px 64px; max-width: 980px; }
.profile p { margin: 0; flex: 1 1 360px; }
.profile .ja { font-family: 'Noto Sans JP', sans-serif; font-weight: 300; font-size: 16px; line-height: 2.1; color: #D0D0D0; }
.profile .en { font-size: 15px; line-height: 1.9; color: #A8A8A8; }
.insta { display: flex; flex-direction: column; gap: 8px; }
.insta a { align-self: flex-start; padding: 8px 0; font-size: clamp(24px, 2.8vw, 34px); font-weight: 500; }
.insta span { font-family: 'Noto Sans JP', sans-serif; font-weight: 300; font-size: 14px; color: #A8A8A8; }

.bio { padding-bottom: 120px; }
.bio .inner { border-top: 1px solid #333333; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 48px; }
.bio h2 { margin: 0; flex: 1 1 240px; font-size: 14px; font-weight: 500; letter-spacing: 0.12em; }
.bio dl { margin: 0; flex: 3 1 480px; }
.bio .row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px;
  padding: 18px 0; border-bottom: 1px solid #2A2A2A; font-size: 15px;
}
.bio dt { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #A8A8A8; }
.bio dd { margin: 0; }

/* Book */
.book-page-body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden; }
.book-page-body .site-header { max-width: 1440px; width: 100%; margin: 0 auto; padding: 24px 4%; }
.book-main {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 8px 4% 32px;
}
.book {
  position: relative;
  width: min(92vw, calc((100vh - 200px) * 1.5), 1500px);
  aspect-ratio: 3 / 2; perspective: 2800px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer;
}
.leaf {
  position: absolute; top: 0; width: 50%; height: 100%;
  transform-style: preserve-3d; z-index: 5;
}
.pg {
  position: absolute; top: 0; height: 100%; overflow: hidden; container-type: size;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.pg img { position: absolute; -webkit-user-drag: none; }
.pg .bleed { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.pg .span { top: 0; width: 200%; max-width: none; height: 100%; object-fit: cover; }
.pg .mat { left: 12%; top: 11%; width: 76%; height: 76%; object-fit: contain; }
.pg .wide { top: 16%; width: 176%; max-width: none; height: 66%; object-fit: contain; }
.pg .gutter { position: absolute; inset: 0; pointer-events: none; }
.pg .num { position: absolute; bottom: 4.5%; font-family: 'IBM Plex Mono', monospace; font-size: 2.2cqw; }
.pg .center-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.t-photo { gap: 2.5cqh; color: #141414; }
.t-photo .a { font-size: 6cqw; font-weight: 600; letter-spacing: 0.1em; }
.t-photo .b { font-size: 2.4cqw; letter-spacing: 0.32em; color: #5E5E5E; }
.t-draw { gap: 3cqh; color: #141414; }
.t-draw .a { font-family: 'Noto Serif JP', serif; font-size: 8cqw; font-weight: 600; letter-spacing: 0.14em; }
.t-draw .b { font-family: 'Noto Serif JP', serif; font-size: 2.8cqw; color: #4A4A4A; }
.t-draw .c { margin-top: 3cqh; font-size: 2.2cqw; letter-spacing: 0.3em; color: #6A6A6A; }
.t-draw .d { font-size: 2cqw; letter-spacing: 0.2em; color: #6A6A6A; }
.t-back { gap: 2cqh; }
.t-back .a { font-size: 3.4cqw; font-weight: 600; letter-spacing: 0.16em; color: #E6E6E6; }
.t-back .b { font-size: 2.2cqw; letter-spacing: 0.12em; color: #9A9A9A; }

.book-controls { display: flex; align-items: center; gap: 28px; }
.book-btn {
  background: none; border: 1px solid rgba(255,255,255,0.28); border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: #D6D6D6; cursor: pointer; padding: 0;
}
.book-btn:hover:not(:disabled) { color: #FFFFFF; border-color: rgba(255,255,255,0.6); }
.book-btn:disabled { opacity: .3; cursor: default; }
.book-counter {
  min-width: 96px; text-align: center; font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; letter-spacing: 0.08em; color: #B5B5B5;
}

@media (prefers-reduced-motion: reduce) {
  .work .book-cover { transition: none; }
}
