.team-log {
  --ink-blue: #31468a;
  --pencil: #78452f;
  position: relative;
  z-index: 9;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(32px,5vw,84px) clamp(20px,4.5vw,90px);
  overflow: clip;
  background: repeating-linear-gradient(90deg,#ffffff05 0 1px,transparent 1px 4px),#66342e;
  color: #30291f;
}
.team-book {
  width: min(100%,1460px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  perspective: 1600px;
  box-shadow: 0 2px #ada087,0 4px #ede1c7,0 6px #aa987d,0 9px #39261e,0 25px 48px #331c1b80;
}
.team-page {
  position: relative;
  min-width: 0;
  padding: clamp(22px,3.1vw,53px);
  background-color: #f9f1dc;
}
.team-crew {
  background-image: linear-gradient(90deg,transparent 90%,#aa895822 98%,#8f755846),
    linear-gradient(#667b9120 1px,transparent 1px),linear-gradient(90deg,#667b9120 1px,transparent 1px);
  background-size: auto,18px 18px,18px 18px;
}
.team-running {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(18px,2vw,32px);
  border-bottom: 1px solid #9a8d73;
  padding-bottom: 9px;
  color: #64543e;
  font: 500 13px/1.3 var(--mono);
}
.team-crew h2 {
  margin: 0;
  font: 540 clamp(48px,5.7vw,94px)/.97 Onest,Arial,sans-serif;
  letter-spacing: -.075em;
}
.team-crew h2 em {font: italic 1.02em Georgia,serif;color: var(--ink-blue)}
.team-pair {display:flex;align-items:flex-start;margin:clamp(30px,3.5vw,60px) 0 0}
.team-print {
  position: relative;
  margin: 0;
  padding: 7px 7px 12px;
  background: #fffdfa;
  box-shadow: 0 2px 3px #4435273a,2px 7px 12px -7px #54443791;
}
.team-print::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -8px;
  left: 32%;
  width: 38%;
  height: clamp(17px,1.8vw,28px);
  background: repeating-linear-gradient(92deg,#d3ac6440 0 2px,transparent 2px 5px),#ead096bb;
  transform: rotate(-6deg);
  clip-path: polygon(1% 4%,100% 0,98% 24%,100% 48%,98% 67%,100% 96%,0 100%,2% 73%,0 55%,2% 29%);
}
.team-print img {display:block;width:100%;height:auto;object-fit:contain;background:white}
.team-pair .team-print {width:49%}
.team-pair img {aspect-ratio: .74}
.team-print figcaption {display:grid;gap:4px;padding:5px 4px 0}
.team-print strong {font:italic 500 clamp(25px,2.5vw,41px)/1.05 Georgia,serif;color:var(--ink-blue)}
.team-print figcaption span {font: 500 clamp(12px,1.05vw,16px)/1.35 Onest,Arial,sans-serif}
.team-sergey {transform: rotate(-5deg)}
.team-lolita {margin:14% 0 0 -1%;transform:rotate(4deg)}
.team-lolita::before {transform:rotate(8deg)}
.team-pencil {font:italic clamp(19px,1.9vw,31px)/1.19 Georgia,serif;color:var(--ink-blue);margin:clamp(18px,2vw,34px) 0 0;transform:rotate(-2deg)}
.team-una {
  display: flex;
  flex-direction: column;
  transform-origin: left center;
  transform: rotateY(var(--diary-angle,0deg));
  background-color: #f6eaca;
  background-image: linear-gradient(90deg,#92795740,transparent 7%),
    repeating-linear-gradient(transparent 0 26px,#a398782e 26px 27px);
}
.team-una .team-running {justify-content:flex-end}
.team-dog {width:68%;align-self:center;margin:auto 0;transform:rotate(-4deg)}
.team-dog::before {left:8%;top:-3px;width:31%;transform:rotate(-25deg)}
.team-dog::after {content:"";position:absolute;right:-6px;bottom:16px;width:23%;height:19px;background:#d8bb8299;transform:rotate(-36deg)}
.team-ps {margin:22px 0 0 auto;align-self:flex-end;color:var(--pencil)}
.team-ps em {text-decoration:underline;text-underline-offset:4px;text-decoration-style:wavy;text-decoration-thickness:1px}
.team-paw {position:absolute;right:9%;top:19%;width:42px;height:40px;transform:rotate(18deg);color:#9a593d;opacity:.8}
.team-paw::after,.team-paw i {content:"";position:absolute;background:currentColor;border-radius:48%}
.team-paw::after {width:24px;height:19px;left:8px;bottom:1px;border-radius:60% 60% 40% 40%}
.team-paw i {width:8px;height:12px;left:0;top:13px;transform:rotate(-26deg)}
.team-paw i:nth-child(2){left:9px;top:2px}
.team-paw i:nth-child(3){left:21px;top:0;transform:rotate(8deg)}
.team-paw i:nth-child(4){left:32px;top:10px;transform:rotate(27deg)}
@media(max-width:700px){
  .team-log {padding:32px 15px}
  .team-book {grid-template-columns:1fr;max-width:510px}
  .team-page {padding:24px 20px}
  .team-una {transform-origin:center top;transform:rotateX(var(--diary-angle,0deg));border-top:1px dashed #b2a182}
  .team-crew h2 {font-size:clamp(42px,10vw,62px)}
  .team-pair .team-print {width:51%}
  .team-lolita {margin-left:-2%}
  .team-dog {max-width:280px;margin:12px auto}
  .team-running {font-size:12px}
}
@media(prefers-reduced-motion:reduce){.team-una {transform:none}}
@font-face {
  font-family: Caveat;
  src: url('team/caveat.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
.team-pencil,.team-print strong,.team-marker-note,.team-ear-note {
  font-family: Caveat,Georgia,cursive;
  font-style: normal;
  font-weight: 510;
}
.team-print strong {font-size: clamp(30px,3.2vw,46px)}
.team-pencil {font-size:clamp(23px,2.4vw,36px);line-height:.98}
.team-ps em {font-style:normal}
.team-pair {position:relative;margin-top:clamp(63px,6vw,92px)}
.team-marker-note,.team-ear-note {color:var(--ink-blue);font-size:clamp(21px,2vw,32px);line-height:1}
.team-marker-note {position:absolute;left:7%;top:0;transform:translateY(-155%) rotate(-7deg)}
.team-marker-note svg,.team-ear-note svg,.team-hearts,.team-stars {
  fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none
}
.team-marker-note svg {position:absolute;top:36%;left:94%;width:45px;height:28px}
.team-stars {position:absolute;width:clamp(30px,3.6vw,54px);right:-1%;top:-32px;color:#ad592c;transform:rotate(9deg)}
.team-ear-note {position:relative;align-self:center;transform:rotate(5deg);margin:4px 0 20px 13%}
.team-ear-note svg {position:absolute;left:90%;top:65%;width:41px;height:33px}
.team-paw {right:7%;top:30%}
.team-hearts {position:absolute;left:8%;bottom:20%;width:clamp(42px,4.5vw,70px);color:#aa483e;transform:rotate(-12deg)}
@media(max-width:700px){
  .team-ear-note {margin-top:0;margin-bottom:14px}
  .team-hearts {left:4%;bottom:23%}
  .team-paw {right:5%}
}

.route-log {
  position:relative;
  z-index:9;
  min-height:100svh;
  display:grid;
  align-items:center;
  padding:clamp(32px,5vw,84px) clamp(20px,4.5vw,90px);
  background:#35493f;
  color:#263e32;
}
.route-sheet {
  width:min(100%,1460px);
  margin:auto;
  display:grid;
  grid-template-columns:.84fr 1.16fr;
  align-items:center;
  isolation:isolate;
  position:relative;
  padding:clamp(24px,3.5vw,60px);
  gap:clamp(22px,3vw,54px);
  background:linear-gradient(90deg,transparent 32.9%,#93866918 33.25%,#fff9e71a 33.55%,transparent 34%,transparent 66.1%,#a1977a1e 66.6%,transparent 67.2%),#eee9d5;
  box-shadow:1px 3px #c3bba4,0 12px 26px #16291f66;
}
.route-copy {min-width:0}
.route-copy .route-kicker {font:500 13px/1.4 var(--mono);margin:0 0 clamp(22px,3.6vw,60px);color:#50624e}
.route-copy h2 {font:550 clamp(52px,5.8vw,99px)/.93 Onest,Arial,sans-serif;letter-spacing:-.075em;margin:0 0 .45em}
.route-copy h2 em {font:italic 1.04em/1.01 Georgia,serif;color:#904532}
.route-copy p {font:450 clamp(16px,1.29vw,21px)/1.49 Onest,Arial,sans-serif;margin:.8em 0;max-width:40ch}
.route-copy a {color:inherit;text-underline-offset:3px}
.route-copy .route-thanks {font:500 clamp(24px,2.15vw,37px)/1.05 Caveat,Georgia,cursive;color:#304887;max-width:29ch;transform:rotate(-2deg);margin:1.05em 0 .2em}
.route-map {display:block;width:100%;height:auto;overflow:hidden;border-block:1px solid #7b896d80}
.route-track {fill:none;stroke:#ac543a;stroke-width:3.5;stroke-linecap:round;stroke-dasharray:6 6}
.route-stops {fill:#8e432c;stroke:#f4edd8;stroke-width:2}
.route-names {font:540 33px Caveat,Georgia,cursive;fill:#293f68;paint-order:stroke;stroke:#eee9d5;stroke-width:4;stroke-linejoin:round}
.route-pins {fill:#e9dfbf;stroke:#90452e;stroke-width:3.5;stroke-linecap:round}
.route-dates {font:550 27px Caveat,Georgia,cursive;fill:#83432f;color:#83432f}
@media(max-width:740px){
  .route-log {min-height:auto;padding:32px 15px}
  .route-sheet {max-width:540px;grid-template-columns:1fr;padding:27px 19px 22px;gap:25px}
  .route-copy .route-kicker {font-size:12px}
  .route-copy h2 {font-size:clamp(48px,11vw,68px)}
  .route-map {width:calc(100% + 16px);margin-inline:-8px}
}

.field-path {position:relative;z-index:9}
.field-stop {height:0;pointer-events:none}
.field-path.is-travelling {height:var(--path-length);overflow-anchor:none;background:#66342e}
.field-path.is-travelling > .field-stop {position:absolute;inset-inline-start:0;top:var(--history-stop);width:1px;height:1px}
.is-travelling .field-window {position:sticky;top:0;height:var(--path-window);overflow:clip}
.is-travelling .field-pages {display:flex;align-items:flex-start;transform:translateX(var(--path-x,0px))}
.is-travelling .field-pages > section {flex:0 0 100%;min-width:0;min-height:var(--path-window)}
.is-travelling .team-log {transform:translateY(var(--crew-y,0px))}
.is-travelling .route-log {transform:translateY(var(--map-y,0px));background:linear-gradient(90deg,#66342e,#35493f 85%)}

.route-pinned {position:relative;min-width:0}
.route-pinned::before,.route-pinned::after {
  content:"";position:absolute;right:14px;top:6px;pointer-events:none;
}
.route-pinned::before {
  width:5px;height:12px;border-radius:3px;transform:rotate(30deg);
  background:linear-gradient(90deg,#534a43,#d2c7ab 56%,#62534a);
  box-shadow:2px 2px 2px #3a352e55;
}
.route-pinned::after {
  width:19px;height:17px;border-radius:50%;transform:translate(8px,-7px) rotate(-18deg);
  background:radial-gradient(ellipse at 34% 23%,#ffd49c 0%,#dd8359 20%,#b24c35 56%,#843a2e 90%);
  box-shadow:inset 0 -2px 1px #763429,1px 2px 0 #6e3d2d,3px 7px 5px #4c352b55;
}

.team-scratch,.team-una {grid-area:1/2}
.team-scratch {
  position:relative;
  overflow:hidden;
  background:linear-gradient(90deg,#9983673b,transparent 9%),
    repeating-linear-gradient(transparent 0 23px,#63829828 23px 24px),#f4ebd6;
  border-right:1px solid #c2b298;
}
.team-scratch svg {position:absolute;inset:0;width:100%;height:100%}
.scratch-writing {font:500 26px Caveat,Georgia,cursive;fill:#35477b}
.scratch-lines,.scratch-hearts {fill:none;stroke:#465887;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.scratch-hearts {stroke:#ad5148;stroke-width:2.2}
.team-una {z-index:1}
@media(max-width:700px){
  .team-scratch,.team-una {grid-area:2/1}
}

@media (min-width:741px) {
  .team-log,.route-log {padding-block:clamp(16px,3.8vh,42px);align-content:center}
  .team-book,.route-sheet {width:var(--spread-width,min(100%,1460px));zoom:var(--spread-scale,1);justify-self:center}
  .team-book {perspective:14000px}
  .route-sheet {margin:0}
}
