/* A page to look at, play with, and then read. Interaction is optional. */
.design-lab-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.design-lab-controls > p { font-size: 11px; line-height: 1.8; }
.design-modes { display: flex; gap: 5px; }
.design-modes button { min-height: 44px; min-width: 54px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; transition: background .25s,color .25s,transform .3s; }
.design-modes button[aria-pressed=true] { background: var(--blue); color: var(--paper); border-color: var(--blue); transform: rotate(-9deg); }
.design-modes button:hover { border-color: var(--blue); }
.design-canvas { transition: background .55s; }
.design-sheet { transition: transform .65s cubic-bezier(.22,1,.36,1),background .45s,color .45s,border-radius .45s; }
.sheet-content { position: relative; }
.sheet-title { transition: color .4s,transform .5s; }
.design-piece { transition: transform .65s cubic-bezier(.22,1,.36,1),color .4s; }
.design-canvas[data-design-view=space] .design-sheet { transform: rotate(-3deg); }
.design-canvas[data-design-view=bold] { background: var(--blue); }
.design-canvas[data-design-view=bold] .canvas-kicker, .design-canvas[data-design-view=bold] .canvas-foot { color: var(--paper); }
.design-canvas[data-design-view=bold] .design-sheet { background: var(--yellow); transform: rotate(6deg) scale(.94); }
.design-canvas[data-design-view=bold] .sheet-title { font-family: var(--font); font-weight: 900; line-height: 1.05; letter-spacing: -.07em; }
.design-canvas[data-design-view=bold] .design-piece { color: var(--paper); transform: rotate(-24deg) scale(.9); }
.design-canvas[data-design-view=play] { background: #e8e4d8; }
.design-canvas[data-design-view=play] .design-sheet { transform: rotate(-9deg) translateY(-2%); border-radius: 0 64px 0 0; }
.design-canvas[data-design-view=play] .sheet-title { color: var(--blue); transform: rotate(7deg); }
.design-canvas[data-design-view=play] .design-piece { color: var(--green); transform: rotate(42deg) scale(1.1); }
.design-canvas[data-design-view=play] .sheet-rule { background: var(--blue); height: 3px; }

.lesson-lab-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.lesson-lab-controls .lesson-switch { position: static; margin: 0; }
.lesson-size-control { flex: 1 1 160px; min-width: 0; max-width: 270px; }
.lesson-size-label { display: flex; justify-content: space-between; gap: 14px; font-size: 10px; line-height: 1.7; }
.lesson-size-label output { font: 10px/1.7 var(--mono); }
.lesson-size-control input { width: 100%; margin: 5px 0 0; min-height: 30px; accent-color: var(--blue); cursor: ew-resize; }
.lesson-size-control input:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.lesson-paper { top: 11%; height: 78%; display: flex; flex-direction: column; }
.lesson-preview { transform: scale(var(--lesson-scale,1)); transform-origin: left center; transition: color .25s,transform .1s; margin-top: 15px; }
.lesson-code { margin-top: auto; }

/* The magazine has a real, openable cover with front and back faces. */
.media-canvas.has-book { perspective: 1400px; overflow: visible; }
.media-canvas.has-book::before { display: none; }
.journal-book { position: absolute; left: 65%; top: 9%; width: 27%; height: 82%; transform: rotate(-7deg); transform-style: preserve-3d; }
.media-canvas.has-book .journal-cover { inset: 0; width: 100%; height: 100%; padding: 0; border: 0; text-align: left; background: transparent; transform: rotateY(0); transform-origin: left center; transform-style: preserve-3d; box-shadow: none; transition: transform 1s cubic-bezier(.2,.75,.2,1); z-index: 3; }
.media-canvas.has-book .journal-cover:disabled { cursor: default; }
.cover-front, .cover-back { position: absolute; display: block; inset: 0; padding: 23px 26px; background: #faf9f5; color: var(--green); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 8px 13px 24px rgb(10 28 21 / .18); }
.cover-back { transform: rotateY(180deg); display: grid; align-content: center; padding: 25px; background: #eceee4; border-right: 1px solid #b7c1ac; }
.cover-back > span:first-child { font: italic 48px/1 Georgia,serif; }
.cover-back > span:last-child { margin-top: 18px; font-size: clamp(10px,1.1vw,15px); line-height: 2; }
.journal-pages { position: absolute; inset: 0; padding: 26px; background: var(--paper); color: var(--green); box-shadow: 6px 8px 0 #a7b5a0; border-left: 1px solid #aebba3; }
.pages-kicker { font: 7px/1.5 var(--mono); letter-spacing: .08em; }
.pages-title { font-size: clamp(15px,1.8vw,24px); font-weight: 700; line-height: 1.8; margin-top: 22px; }
.journal-pages ul { list-style: none; padding: 0; margin: 24px 0 0; font-size: 11px; line-height: 1.8; }
.journal-pages li { padding-block: 9px; border-top: 1px solid #d2d9ca; }
.media-canvas.has-book.is-book-open .journal-cover { transform: rotateY(-155deg); }
.media-wordmark { transition: opacity .8s,transform 1s cubic-bezier(.22,1,.36,1); }
.is-book-open .media-wordmark { opacity: .16; transform: translateX(-20px); }
.book-open-control { position: absolute; display: flex; align-items: center; gap: 20px; right: 0; bottom: -4px; font-size: 11px; min-height: 44px; border-bottom: 1px solid var(--line); }
.book-open-control > span:last-child { font-size: 20px; }
.book-open-control:disabled { display: none; }
.motion-enabled .reveal-enter .has-book .journal-cover { animation: none; }
.motion-enabled .reveal-enter .journal-book { animation: yk-journal-in 1.1s cubic-bezier(.2,.8,.25,1) .1s backwards; }
.motion-off .media-canvas.has-book .journal-cover { transform: rotateY(0); }
.motion-off .media-canvas.has-book.is-book-open .journal-cover { transform: rotateY(-155deg); }

.footer-person { position: relative; background: var(--yellow); padding: 38px; transform: perspective(900px) rotateX(var(--card-y,0deg)) rotateY(var(--card-x,0deg)) rotate(-4deg); box-shadow: 10px 16px 0 #e8e7dd; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.footer-person::before { content: 'HELLO, I’M YUKI.'; display: block; font: 10px/1.5 var(--mono); letter-spacing: .08em; border-bottom: 1px solid rgb(34 39 34 / .3); padding-bottom: 19px; margin-bottom: 23px; }
.footer-person > p { color: var(--ink); }
.footer-person strong { font-size: clamp(26px,3vw,38px); }
.footer-person .text-link { width: 100%; min-width: 0; margin-top: 25px; }

@media (min-width: 761px) {
  /* Type and independent sculptures share one broad, diagonal composition. */
  .hero { padding-top: 25px; padding-bottom: 126px; }
  .hero-stage { position: relative; display: block; aspect-ratio: 1200 / 760; margin-top: 38px; isolation: isolate; }
  .hero-copy { position: static; padding: 0; }
  .hero-title { position: absolute; inset: 0; font-size: clamp(90px,calc((100vw - var(--gutter) * 2) * .135),173px); line-height: 1.1; pointer-events: none; z-index: 3; }
  .hero-line { position: absolute; left: 0; top: 3%; }
  .hero-line:nth-child(2) { left: 30%; top: 28%; padding: 0; }
  .hero-line:nth-child(3) { left: 50%; top: 53%; }
  .hero-line a { pointer-events: auto; }
  .hero-description { position: absolute; bottom: 7%; left: 0; width: 25%; max-width: 300px; margin: 0; z-index: 4; font-size: 13px; }
  .hero-description > span { font-size: 9px; }
  .hero-art { position: static; margin: 0; width: auto; }
  .hero-scene.atelier-stage { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; z-index: 2; }
  .atelier-ground { opacity: .65; }
  .atelier-ground ellipse { display: none; }
  .atelier-kicker { top: 4%; left: 61%; font-size: 8px; }
  .atelier-kicker::before { display: none; }
  .sculpture[data-sculpture=create] { left: 78.333333%; top: 22.321429%; width: 21%; }
  .sculpture[data-sculpture=learn] { left: 14.166667%; top: 46.428571%; width: 20%; }
  .sculpture[data-sculpture=media] { left: 36.666667%; top: 76.785714%; width: 21%; }
  .atelier-stage .hero-stamp { top: 3%; right: 0; width: 84px; }
  .atelier-caption { position: absolute; bottom: 1%; right: 0; width: 43%; margin: 0; z-index: 5; font-size: 9px; }
  .atelier-caption > span:first-child { flex-basis: 100%; }
  .atelier-caption-controls { width: 100%; justify-content: space-between; }
  .activity-navigation { margin-top: 34px; border-top: 0; }
  .activity-navigation > a { min-height: 95px; font-size: 17px; }
  .activity-navigation .nav-number { font-size: 12px; }
  .activity-navigation > a + a { border-left: 0; }
  .activity-navigation svg { width: 30px; height: 30px; }

  .section-intro--morph { margin-bottom: 178px; }
  .section-intro--morph h2 { font-size: clamp(76px,10vw,140px); }
  .section-intro--morph .intro-copy { grid-column: 2 / 8; font-size: 17px; }
  .section-intro--morph .morph-study { margin-top: -44px; }

  /* Numbers are landmarks; the visual and the explanation have unequal scale. */
  .activity-index > span:first-child { font: italic 96px/.8 Georgia,serif; letter-spacing: -.08em; }
  .activity-index > span:first-child::after { display: none; }
  .activity-index { align-items: end; gap: 22px; }
  .activity-index > span:last-child { padding-bottom: 5px; }
  .activity--create .activity-index { grid-column: 1 / 5; grid-row: 1; margin: 0 0 30px; }
  .activity--create .activity-copy { grid-column: 1 / 5; grid-row: 2; }
  .activity--create .activity-art { grid-column: 6 / 13; grid-row: 1 / 3; margin-top: 100px; }
  .activity--create h3 { font-size: clamp(31px,3.3vw,46px); line-height: 1.5; }
  .activity--create .activity-name { margin-top: 14px; }
  .design-canvas { aspect-ratio: 1.18; border-radius: 0 100px 0 0; }
  .design-sheet { height: 68%; }
  .sheet-title { font-size: clamp(48px,5.3vw,72px); }
  .activity--create + .activity { margin-top: 224px; }

  .activity--learn .activity-index { grid-column: 2 / 6; margin-bottom: 34px; }
  .activity--learn .activity-heading { grid-column: 2 / 12; }
  .activity--learn .activity-heading h3 { font-size: clamp(40px,5.1vw,72px); line-height: 1.4; }
  .activity--learn .activity-copy { grid-column: 2 / 6; }
  .activity--learn .activity-art { grid-column: 7 / 13; margin-top: -100px; }
  .lesson-canvas { aspect-ratio: 1.05; border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
  .lesson-preview { font-size: clamp(43px,4.9vw,68px); }
  .activity--learn + .activity { margin-top: 230px; }

  .activity--media { padding-block: 116px 110px; }
  .activity--media .activity-index { margin-bottom: 46px; }
  .activity--media .activity-heading h3 { font-size: clamp(38px,5.4vw,76px); }
  .activity--media .activity-art { margin-top: 62px; }
  .media-canvas { aspect-ratio: 2.35; }
  .media-wordmark { font-size: clamp(100px,15vw,210px); top: 16%; }
  .activity-art--media figcaption { margin-top: 36px; }
  .activity--media .activity-copy { margin-top: 55px; }
  .site-footer { padding-top: 140px; }
  .footer-statement { font-size: clamp(52px,7.8vw,104px); line-height: 1.35; }
  .footer-statement br { display: initial; }
  .footer-invitation { row-gap: 18px; margin-bottom: 116px; }
  .footer-person { grid-column: 9 / 13; margin-top: -86px; padding: 32px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero-description { font-size: 11px; line-height: 1.9; }
  .hero-description > span { font-size: 8px; margin-top: 10px; }
  .atelier-stage .hero-stamp { width: 66px; }
  .atelier-kicker { font-size: 6px; }
  .atelier-caption { font-size: 8px; gap: 5px; }
  .activity-index > span:first-child { font-size: 76px; }
  .activity-index { gap: 16px; }
  .activity-index > span:last-child { font-size: 8px; }
  .activity--create h3 { font-size: 28px; }
  .activity--create .activity-art { margin-top: 80px; }
  .design-canvas { aspect-ratio: 1; border-top-right-radius: 70px; }
  .sheet-title { font-size: 43px; }
  .design-lab-controls { align-items: start; flex-direction: column; gap: 9px; }
  .activity--create + .activity { margin-top: 172px; }
  .activity--learn .activity-heading h3 { font-size: 45px; }
  .activity--learn .activity-art { margin-top: -60px; }
  .lesson-canvas { aspect-ratio: .94; }
  .lesson-preview { font-size: 43px; }
  .activity--learn + .activity { margin-top: 174px; }
  .activity--media { padding-block: 86px; }
  .journal-book { left: 65%; width: 29%; }
  .cover-front, .cover-back { padding: 16px 18px; }
  .journal-pages { padding: 16px; }
  .pages-title { font-size: 16px; margin-top: 12px; }
  .journal-pages ul { font-size: 9px; margin-top: 16px; }
  .journal-pages li { padding-block: 7px; }
  .footer-person { grid-column: 8 / 13; margin-top: -40px; padding: 28px; }
  .site-footer { padding-top: 100px; }
}

@media (max-width: 760px) {
  .hero-title { font-size: clamp(74px,18vw,122px); }
  .hero-line--indent { padding-left: .9em; }
  .hero-stage { gap: 40px; }
  .activity-navigation > a { font-size: 11px; }
  .section-intro--morph h2 { font-size: clamp(48px,13vw,82px); }
  .activity-index > span:first-child { font: italic 62px/.9 Georgia,serif; letter-spacing: -.06em; }
  .activity-index > span:first-child::after { display: none; }
  .activity-index { align-items: end; gap: 18px; }
  .activity-index > span:last-child { padding-bottom: 4px; }
  .activity--create .activity-art { width: 100%; }
  .design-canvas { border-top-right-radius: 64px; aspect-ratio: 1; }
  .design-lab-controls { flex-wrap: wrap; gap: 10px; }
  .design-modes button { min-width: 50px; padding-inline: 10px; }
  .activity--learn .activity-art { width: min(92%,520px); margin-right: 0; }
  .lesson-canvas { aspect-ratio: .94; border-radius: 50% 50% 0 0 / 20% 20% 0 0; }
  .lesson-paper { left: 12%; width: 76%; padding: 22px; }
  .lesson-preview { font-size: clamp(39px,10vw,65px); margin-top: 14px; }
  .lesson-code { padding-top: 10px; font-size: 9px; }
  .lesson-switch { min-height: 44px; }
  .activity--media { padding-block: 76px; }
  .media-canvas { aspect-ratio: .98; }
  .journal-book { left: 45%; top: 13%; width: 48%; height: 74%; transform: rotate(-4deg); }
  .cover-front { padding: 16px; }
  .cover-title { font-size: clamp(30px,7.5vw,54px); margin-top: 18px; }
  .cover-top { font-size: 5px; padding-bottom: 8px; }
  .cover-copy { left: 16px; bottom: 46px; font-size: 8px; }
  .cover-mark { right: 10px; bottom: 40px; width: 28%; }
  .cover-bottom { left: 16px; right: 12px; font-size: 3.5px; bottom: 16px; }
  .cover-back { padding: 18px; }
  .cover-back > span:first-child { font-size: 38px; }
  .cover-back > span:last-child { font-size: 10px; }
  .journal-pages { padding: 16px 13px; }
  .pages-title { font-size: 14px; margin-top: 15px; }
  .pages-kicker { font-size: 5px; }
  .journal-pages ul { font-size: 9px; margin-top: 20px; }
  .journal-pages li { padding-block: 8px; }
  .book-open-control { font-size: 10px; bottom: -4px; }
  .activity-art--media figcaption { margin-top: 28px; }
  .footer-statement { font-size: clamp(38px,8.8vw,60px); }
  .footer-person { width: min(88%,360px); justify-self: end; margin: 12px 8px 15px 0; padding: 30px; }
  .footer-invitation { margin-bottom: 88px; gap: 35px; }
}
@media (max-width: 380px) {
  .hero-title { font-size: clamp(56px,17.5vw,67px); }
  .hero-line--indent { padding-left: .75em; }
  .lesson-paper { padding: 18px; }
  .lesson-preview { font-size: 38px; }
  .lesson-code { font-size: 8px; }
  .cover-title { font-size: 29px; }
  .cover-copy { font-size: 7px; }
  .pages-title { font-size: 12px; }
  .journal-pages ul { font-size: 8px; margin-top: 12px; }
  .journal-pages li { padding-block: 6px; }
  .cover-back > span:last-child { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-person { transform: rotate(-4deg); }
}
