/* About — paper objects on a collage table */

:root {
  --about-paper: #ede6d6;
  --about-paper-deep: #e2dac7;
  --about-paper-white: #f7f3ea;
  --about-navy: #26303f;
  --about-cobalt: #2854c8;
  --about-periwinkle: #8b85c9;
  --about-mustard: #f0b429;
  --about-muted: #6b6355;
}

.page-table,
.page-table > .page,
.page-table .site-content {
  background: var(--about-paper);
  color: var(--about-navy);
}

.page-table {
  overflow-x: hidden;
}

.page-table .grain {
  opacity: .2;
}

.page-table .site-nav__brand {
  color: var(--about-navy);
}

.page-table .site-nav__links a {
  color: rgba(38, 48, 63, .64);
}

.page-table .site-nav__links a:hover {
  color: var(--about-cobalt);
}

.page-table .site-nav__links a.is-active {
  color: var(--about-navy);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.table-defs {
  position: absolute;
  overflow: hidden;
}

.table {
  position: relative;
  height: clamp(700px, 100svh, 1000px);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--about-paper);
}

.table::before {
  position: absolute;
  z-index: -4;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .62;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(120, 104, 74, .075) 0 1px, transparent 1.2px),
    radial-gradient(circle at 70% 60%, rgba(120, 104, 74, .055) 0 1px, transparent 1.2px),
    repeating-linear-gradient(93deg, rgba(130, 112, 80, .028) 0 2px, transparent 2px 8px);
  background-size: 7px 7px, 11px 11px, auto;
}

.table::after {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 110px rgba(74, 58, 34, .11);
}

.table__torn {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  opacity: .92;
}

.table__torn::after {
  position: absolute;
  inset: 0;
  content: "";
  color: rgba(247, 243, 234, .34);
  background-image: radial-gradient(circle, currentColor 31%, transparent 34%);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}

.table__torn--cobalt {
  top: -85px;
  right: -90px;
  width: min(44vw, 650px);
  height: 305px;
  background: var(--about-cobalt);
  clip-path: polygon(6% 15%, 99% 0, 94% 78%, 72% 87%, 48% 71%, 25% 98%, 0 70%);
  filter: url(#torn-1);
  transform: rotate(2deg);
}

.table__torn--navy {
  bottom: -105px;
  left: -90px;
  width: min(50vw, 720px);
  height: 310px;
  background: var(--about-navy);
  clip-path: polygon(0 12%, 26% 23%, 49% 7%, 68% 31%, 100% 11%, 90% 100%, 0 100%);
  filter: url(#torn-3);
  transform: rotate(-1deg);
}

.table__torn--mustard {
  right: -55px;
  bottom: 105px;
  width: 235px;
  height: 330px;
  background: var(--about-mustard);
  clip-path: polygon(18% 0, 100% 12%, 89% 100%, 0 88%, 12% 51%);
  filter: url(#torn-4);
  transform: rotate(5deg);
}

.table__heading {
  position: relative;
  z-index: 4;
  width: min(530px, calc(100% - 48px));
  padding: 112px 0 0 clamp(24px, 6vw, 92px);
}

.table__kicker,
.viewer__kicker,
.mag__section {
  margin: 0 0 12px;
  color: var(--about-cobalt);
  font-family: var(--font-archivo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.table__heading h1 {
  max-width: 520px;
  margin: 0;
  color: var(--about-navy);
  font-family: var(--font-archivo);
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.052em;
}

.table__heading h1 em {
  color: var(--about-cobalt);
  font-family: var(--font-fraunces);
  font-weight: 400;
}

.table__lede {
  max-width: 440px;
  margin: 20px 0 0;
  color: rgba(38, 48, 63, .76);
  font: 500 16px/1.55 var(--font-archivo);
}

.table__surface {
  position: absolute;
  inset: 0;
}

.obj {
  --lift: 0px;
  position: absolute;
  z-index: 2;
  width: var(--w);
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 22px)) rotate(var(--tilt));
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1), filter .45s ease;
  filter: drop-shadow(0 7px 8px rgba(60, 52, 36, .2));
  -webkit-tap-highlight-color: transparent;
}

.obj.is-in {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(var(--tilt));
}

.obj:hover,
.obj:focus-visible {
  z-index: 8;
  transform: translate(-50%, calc(-50% - 10px)) rotate(0deg);
  filter: drop-shadow(0 22px 25px rgba(60, 52, 36, .29));
}

.obj:focus-visible {
  outline: 2px solid var(--about-cobalt);
  outline-offset: 5px;
}

.obj.is-picked {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 40px)) rotate(0deg) scale(1.1);
}

.obj__visual {
  position: relative;
  display: block;
  width: 100%;
}

.obj__image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.obj__pin {
  position: absolute;
  z-index: 5;
  top: 9%;
  left: 24%;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(38, 48, 63, .2);
  border-radius: 50%;
  background: var(--about-mustard);
  box-shadow: inset -2px -2px 2px rgba(77, 55, 17, .22), 1px 4px 6px rgba(38, 48, 63, .24);
}

.obj__pin::after {
  position: absolute;
  top: 14px;
  left: 7px;
  width: 1px;
  height: 16px;
  content: "";
  background: rgba(38, 48, 63, .48);
  transform: rotate(-7deg);
  transform-origin: top;
}

.obj__pin--navy {
  top: 22%;
  left: 18%;
  background: var(--about-navy);
}

.obj__note {
  position: absolute;
  inset: 16% 10% 14% 9%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  color: #304052;
  font-family: "Caveat", cursive;
  font-size: clamp(11px, .95vw, 15px);
  font-weight: 500;
  line-height: 1.13;
  text-align: left;
  transform: rotate(-.5deg);
}

.obj__note-left,
.obj__note-right {
  display: flex;
  flex-direction: column;
  gap: .48em;
}

.obj__note strong {
  color: var(--about-cobalt);
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1;
}

.obj__note i {
  align-self: flex-end;
  color: var(--about-cobalt);
  font-style: normal;
}

.obj__badge-copy {
  position: absolute;
  right: 22%;
  bottom: 12.5%;
  left: 22%;
  display: grid;
  color: var(--about-navy);
  font-family: var(--font-archivo);
  line-height: 1;
  text-align: center;
  transform: rotate(4deg);
}

.obj__badge-copy b {
  color: var(--about-cobalt);
  font-size: clamp(21px, 2.5vw, 34px);
  letter-spacing: -.06em;
}

.obj__badge-copy span {
  margin-top: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.obj__badge-copy em {
  margin-top: 5px;
  color: var(--about-periwinkle);
  font: 600 italic 13px/1 var(--font-fraunces);
}

.obj__ticket-copy {
  position: absolute;
  right: 24%;
  bottom: 30%;
  display: grid;
  width: 45%;
  color: var(--about-navy);
  font-family: var(--font-archivo);
  line-height: 1;
  text-align: center;
  transform: rotate(4deg);
}

.obj__ticket-copy b {
  font-size: clamp(18px, 2vw, 30px);
  letter-spacing: .08em;
}

.obj__ticket-copy span {
  margin-top: 6px;
  font: 600 italic clamp(8px, .8vw, 11px)/1.1 var(--font-fraunces);
}

.obj__odds-copy {
  position: absolute;
  top: 24%;
  right: 23%;
  left: 23%;
  display: grid;
  color: var(--about-navy);
  font-family: "Caveat", cursive;
  line-height: .82;
  text-align: center;
  transform: rotate(2deg);
}

.obj__odds-copy b {
  color: var(--about-cobalt);
  font-size: clamp(25px, 2.6vw, 38px);
  font-weight: 600;
}

.obj__odds-copy span {
  margin-top: 5px;
  font-size: clamp(15px, 1.5vw, 22px);
}

.obj__label {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  display: grid;
  width: max-content;
  max-width: 250px;
  padding: 9px 12px 10px;
  color: var(--about-navy);
  text-align: left;
  background: rgba(247, 243, 234, .94);
  box-shadow: 0 7px 16px rgba(60, 52, 36, .14);
  transform: translate(-50%, 0) rotate(-1deg);
  transition: opacity .24s ease, transform .3s ease;
  pointer-events: none;
}

.obj__label::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 7px;
  content: "";
  background: inherit;
  clip-path: polygon(0 48%, 7% 0, 14% 64%, 22% 17%, 31% 71%, 42% 8%, 54% 58%, 66% 14%, 77% 66%, 89% 3%, 100% 51%, 100% 100%, 0 100%);
}

.obj__label strong {
  font: 700 14px/1.2 var(--font-archivo);
}

.obj__label span {
  margin-top: 3px;
  color: var(--about-muted);
  font: italic 12px/1.25 var(--font-fraunces);
}

.obj:hover .obj__label,
.obj:focus-visible .obj__label {
  transform: translate(-50%, 0) rotate(0deg);
}

/* Desktop layout: everything fits on the first screen, scattered loosely
   with varied heights and tilts so it reads as a table, not a grid.
   Sizes follow the shorter of width and height so short laptops fit too. */
.obj--zine {
  --w: clamp(330px, min(34vw, 56vh), 520px);
  --tilt: -6deg;
  top: 39%;
  left: 61%;
  z-index: 4;
}

.obj--badge {
  --w: clamp(140px, min(13vw, 23vh), 205px);
  --tilt: 10deg;
  top: 29%;
  left: 88%;
}

.obj--sketchbook {
  --w: clamp(150px, min(15vw, 25vh), 225px);
  --tilt: -9deg;
  top: 70%;
  left: 10%;
}

.obj--bowl {
  --w: clamp(170px, min(17vw, 27vh), 250px);
  --tilt: 5deg;
  top: 85%;
  left: 31%;
}

.obj--tickets {
  --w: clamp(230px, min(24vw, 37vh), 350px);
  --tilt: -13deg;
  top: 77%;
  left: 53%;
  z-index: 3;
}

.obj--cat {
  --w: clamp(170px, min(18vw, 29vh), 260px);
  --tilt: 7deg;
  top: 73%;
  left: 81%;
}

/* Story viewer */

.is-viewer-open {
  overflow: hidden;
}

.viewer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .32s ease, visibility 0s linear .32s;
}

.viewer.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.viewer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(38, 48, 63, .66);
  cursor: zoom-out;
  backdrop-filter: blur(10px);
}

.viewer__dialog {
  position: relative;
  width: min(1060px, 100%);
  max-height: min(88vh, 850px);
  overflow: hidden auto;
  color: var(--about-navy);
  background-color: var(--about-paper-white);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(120, 104, 74, .06) 0 1px, transparent 1.2px),
    repeating-linear-gradient(93deg, rgba(130, 112, 80, .02) 0 2px, transparent 2px 8px);
  background-size: 8px 8px, auto;
  box-shadow: 0 30px 90px rgba(21, 26, 34, .38);
  transform: scale(.9) translateY(18px);
  transform-origin: var(--origin-x, 50%) var(--origin-y, 50%);
  transition: transform .48s cubic-bezier(.19, 1, .28, 1);
}

.viewer.is-open .viewer__dialog {
  transform: none;
}

.viewer__close {
  position: sticky;
  z-index: 6;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 -48px auto;
  padding: 15px 18px;
  border: 0;
  color: var(--about-navy);
  background: var(--about-mustard);
  font: 700 12px/1 var(--font-archivo);
  cursor: pointer;
}

.viewer__close i {
  font-size: 20px;
  font-style: normal;
}

.viewer__panel {
  display: none;
}

.viewer__panel.is-active {
  display: block;
}

.mag {
  padding: 58px 54px 0;
}

.mag__spread {
  display: none;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  border: 1px solid rgba(38, 48, 63, .18);
  background: var(--about-paper);
  box-shadow: 0 14px 28px rgba(60, 52, 36, .13);
}

.mag__spread.is-active {
  display: grid;
}

.mag__page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
  border-right: 1px solid rgba(38, 48, 63, .14);
}

.mag__page:last-child {
  border-right: 0;
}

.mag__folio {
  position: absolute;
  top: 18px;
  right: 20px;
  margin: 0;
  color: rgba(38, 48, 63, .45);
  font: 700 10px/1 var(--font-archivo);
  letter-spacing: .15em;
}

.mag h2,
.story h2 {
  margin: 0;
  color: var(--about-navy);
  font-family: var(--font-archivo);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.mag__standfirst,
.mag__page > p:not([class]),
.story__copy > p:not([class]) {
  margin: 22px 0 0;
  color: rgba(38, 48, 63, .83);
  font: 500 16px/1.65 var(--font-archivo);
}

.mag__pullquote,
.mag blockquote {
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 2px solid var(--about-navy);
  color: var(--about-navy);
  font: italic 500 clamp(20px, 2.3vw, 29px)/1.3 var(--font-fraunces);
}

.mag__page--policy {
  background: rgba(139, 133, 201, .14);
}

.mag__page--academia {
  background: rgba(40, 84, 200, .08);
}

.mag__page--conclusion {
  background: var(--about-mustard);
}

.mag__page--contact-sheet {
  padding: 30px;
}

.mag figure,
.story figure {
  margin: 0;
}

.mag figure img,
.story figure img {
  display: block;
  width: 100%;
  height: auto;
  padding: 7px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(60, 52, 36, .16);
}

.mag figcaption,
.story figcaption {
  margin-top: 9px;
  color: var(--about-muted);
  font: italic 13px/1.35 var(--font-fraunces);
}

.mag__controls {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 0 22px;
  background: var(--about-paper-white);
  font: 700 12px/1 var(--font-archivo);
}

.mag__controls button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--about-navy);
  color: var(--about-navy);
  background: transparent;
  cursor: pointer;
}

.mag__controls .mag__next {
  width: auto;
  padding: 0 16px;
  color: var(--about-navy);
  background: var(--about-mustard);
  border-color: var(--about-mustard);
  font: 700 13px/1 var(--font-archivo);
}

.mag__controls button:disabled {
  opacity: .28;
  cursor: default;
}

.story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, .75fr) 1.6fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  min-height: 560px;
  padding: clamp(60px, 7vw, 92px);
  overflow: hidden;
}

.story__copy ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: rgba(38, 48, 63, .83);
  font: 500 15px/1.7 var(--font-archivo);
}

.story__plates {
  display: grid;
  gap: 18px;
}

.story__plates--three {
  grid-template-columns: repeat(3, 1fr);
}

.story__plates--two {
  grid-template-columns: repeat(2, 1fr);
}

.story__plates figure:nth-child(odd) {
  transform: rotate(-1.4deg);
}

.story__plates figure:nth-child(even) {
  transform: rotate(1.3deg);
}

.story__cat {
  transform: rotate(-1.4deg);
}

.story__margin-note {
  display: inline-block;
  max-width: 28ch;
  margin: 28px 0 0;
  padding: 11px 14px 10px;
  color: var(--about-navy);
  background: var(--about-mustard);
  font: 600 19px/1.1 "Caveat", cursive;
  transform: rotate(-1.2deg);
}

.story--conference {
  background:
    linear-gradient(90deg, transparent 0 67%, rgba(40, 84, 200, .08) 67%),
    var(--about-paper-white);
}

.story--conference::before {
  position: absolute;
  top: 0;
  left: 7%;
  width: 120px;
  height: 17px;
  content: "";
  background: var(--about-cobalt);
  clip-path: polygon(0 12%, 100% 0, 96% 100%, 4% 88%);
}

.story--portraits {
  background-color: var(--about-paper);
  background-image: radial-gradient(circle, rgba(38, 48, 63, .34) 0 3px, transparent 3.5px);
  background-repeat: repeat-y;
  background-position: 26px 20px;
  background-size: 12px 34px;
}

.story--portraits .story__copy {
  align-self: center;
}

.story--portraits .story__plates {
  padding: 22px;
  background: rgba(247, 243, 234, .72);
  transform: rotate(.6deg);
}

.story--music {
  color: var(--about-paper-white);
  background: var(--about-navy);
}

.story--music::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 230px;
  height: 170px;
  content: "";
  opacity: .48;
  background-color: var(--about-cobalt);
  background-image: radial-gradient(circle, var(--about-paper-white) 26%, transparent 29%);
  background-size: 7px 7px;
  clip-path: polygon(18% 0, 100% 15%, 100% 100%, 0 100%);
}

.story--music h2,
.story--music .story__copy > p:not([class]) {
  color: var(--about-paper-white);
}

.story--music .viewer__kicker,
.story--music figcaption {
  color: var(--about-mustard);
}

.story--music .story__plates {
  position: relative;
  z-index: 1;
}

.story--making {
  background:
    linear-gradient(128deg, transparent 0 68%, rgba(240, 180, 41, .42) 68% 100%),
    var(--about-paper-white);
}

.story--making .story__plates figure:first-child {
  margin-top: 52px;
}

.story--cats {
  grid-template-columns: minmax(270px, .8fr) minmax(360px, 1.2fr);
  background:
    radial-gradient(circle at 88% 16%, rgba(240, 180, 41, .58) 0 70px, transparent 71px),
    linear-gradient(90deg, rgba(139, 133, 201, .2) 0 38%, transparent 38%),
    var(--about-paper-white);
}

.story--cats .story__cat {
  order: 2;
  padding: 13px 13px 28px;
  background: var(--about-paper);
  box-shadow: 0 18px 32px rgba(60, 52, 36, .18);
  transform: rotate(1.5deg);
}

.story--cats .story__cat img {
  padding: 0;
  box-shadow: none;
}

.story--odds {
  grid-template-columns: minmax(250px, .72fr) minmax(420px, 1.28fr);
  grid-template-areas:
    "copy facts"
    "sign facts";
  align-items: start;
  background:
    radial-gradient(circle at 12% 88%, rgba(139, 133, 201, .35) 0 92px, transparent 93px),
    var(--about-paper);
}

.story--odds .story__copy {
  grid-area: copy;
}

.story__facts {
  grid-area: facts;
  display: grid;
  gap: 15px;
}

.story__facts p {
  position: relative;
  margin: 0;
  padding: 17px 22px 17px 58px;
  color: var(--about-navy);
  background: var(--about-paper-white);
  box-shadow: 0 8px 14px rgba(60, 52, 36, .12);
  font: 600 16px/1.42 var(--font-archivo);
  transform: rotate(var(--fact-tilt, -.6deg));
}

.story__facts p:nth-child(even) {
  --fact-tilt: .7deg;
  margin-left: 18px;
  background: rgba(240, 180, 41, .36);
}

.story__facts p::before {
  position: absolute;
  top: -4px;
  right: 0;
  left: 0;
  height: 7px;
  content: "";
  background: inherit;
  clip-path: polygon(0 45%, 9% 0, 18% 62%, 29% 11%, 41% 70%, 53% 6%, 67% 59%, 78% 15%, 90% 66%, 100% 20%, 100% 100%, 0 100%);
}

.story__facts span {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--about-cobalt);
  font: 700 10px/1 var(--font-archivo);
  letter-spacing: .12em;
}

.story__odds-signoff {
  grid-area: sign;
  max-width: 21ch;
  margin: 30px 0 0;
  color: var(--about-cobalt);
  font: 600 clamp(23px, 2.5vw, 34px)/1 "Caveat", cursive;
  transform: rotate(-2deg);
}

.story__plates--lead {
  grid-template-columns: 1fr 1fr;
}

.story__plates--lead figure:first-child {
  grid-column: 1 / -1;
}

.story__plates--gallery {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.story__plates--gallery figure:last-child {
  grid-column: 1 / -1;
}

.story__plates a {
  display: block;
  cursor: zoom-in;
}

.viewer__dialog:has([data-panel="odds"].is-active) {
  width: min(760px, 100%);
}

.story--odds {
  min-height: 0;
  grid-template-columns: 1fr;
  grid-template-areas: none;
  gap: 28px;
  padding: 64px clamp(28px, 6vw, 64px) 56px;
}

.story--odds .story__copy,
.story__facts {
  grid-area: auto;
}

/* Table objects carry no visible labels; each button keeps its aria-label */
.obj__label {
  display: none !important;
}

/* Turn-the-page curl on the notebook's right-hand pages */
.mag__curl {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background:
    linear-gradient(to top left, var(--about-paper-white) 0 49%, transparent 50%),
    linear-gradient(to top left, #c9bc9f 50%, #efe6d2 72%, #ddd2ba 100%);
  filter: drop-shadow(-3px -3px 4px rgba(60, 52, 36, .18));
  transition: width .25s ease, height .25s ease;
  animation: curl-nudge 2.6s ease-in-out 1.2s 2;
}

.mag__curl:hover,
.mag__curl:focus-visible {
  width: 92px;
  height: 92px;
}

.mag__curl:focus-visible {
  outline: 2px solid var(--about-cobalt);
  outline-offset: 3px;
}

@keyframes curl-nudge {
  0%, 100% { width: 64px; height: 64px; }
  45% { width: 84px; height: 84px; }
}

/* Portraits as an open drawing book */
.sketchbook {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 56px 40px 40px;
  background: #fbf8f0;
  box-shadow: 0 16px 34px rgba(60, 52, 36, .2);
}

.sketchbook::before {
  position: absolute;
  z-index: 2;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 22px;
  content: "";
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, transparent 0 4px, #3a3f4a 4.5px 6px, transparent 6.5px) 0 0 / 22px 26px repeat-y;
}

.sketchbook__page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 40px 44px 46px;
  background:
    linear-gradient(90deg, rgba(60, 52, 36, .07), transparent 9%),
    #fbf8f0;
}

.sketchbook__page:first-child {
  background:
    linear-gradient(270deg, rgba(60, 52, 36, .08), transparent 9%),
    #fbf8f0;
}

.sketchbook__title {
  align-self: flex-start;
  margin: 0;
  color: var(--about-navy);
  font: 600 34px/1 "Caveat", cursive;
}

.sketchbook figure {
  position: relative;
  width: 100%;
  margin: 0;
}

.sketchbook__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  width: 100%;
}

.sketchbook__wide {
  width: 82% !important;
}

.sketchbook__square {
  width: 74% !important;
}

.sketchbook figure::before {
  position: absolute;
  z-index: 1;
  top: -9px;
  left: 50%;
  width: 70px;
  height: 20px;
  content: "";
  background: rgba(240, 180, 41, .55);
  transform: translateX(-50%) rotate(-3deg);
}

.sketchbook figure.tilt-r::before {
  background: rgba(139, 133, 201, .5);
  transform: translateX(-50%) rotate(4deg);
}

.sketchbook img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 10px rgba(60, 52, 36, .16);
}

.sketchbook a {
  display: block;
  cursor: zoom-in;
}

.sketchbook .tilt-l { transform: rotate(-1.2deg); }
.sketchbook .tilt-r { transform: rotate(1.1deg); }

@media (max-width: 760px) {
  .sketchbook {
    grid-template-columns: 1fr;
    margin: 56px 12px 16px;
  }

  .sketchbook::before {
    display: none;
  }

  .sketchbook__page {
    gap: 20px;
    padding: 28px 22px 30px;
  }

  .sketchbook__page + .sketchbook__page {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mag__curl {
    animation: none;
  }
}

/* Cat mom: four photos pinned in a loose grid */
.story__cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.story__cats figure {
  margin: 0;
  padding: 9px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(60, 52, 36, .18);
  transform: rotate(-1.5deg);
}

.story__cats figure:nth-child(2) { transform: rotate(1.8deg); }
.story__cats figure:nth-child(3) { transform: rotate(1deg); }
.story__cats figure:nth-child(4) { transform: rotate(-1.2deg); }

.story__cats img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 760px) {
  .table__drag-hint {
    display: none;
  }
}

/* Draggable objects (desktop only; the phone layout is a scrolling grid) */
@media (min-width: 761px) {
  .obj {
    cursor: grab;
    touch-action: none;
  }

  .obj.is-dragging {
    cursor: grabbing;
    transition: opacity .45s ease, filter .2s ease;
    transform: translate(-50%, -50%) rotate(0deg) scale(1.04);
    filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .35));
  }
}

/* Text printed on the objects scales with the object itself (container
   units), so it stays on the paper whatever size the object is drawn at.
   Browsers without container units keep the fixed sizes above. */
.obj__visual {
  container-type: inline-size;
}

/* Notebook: each page's paper runs ~10–51% and ~51–90% of the image;
   the tape covers the top-left corner. */
.obj__note {
  inset: 25% 14% 18% 14%;
  column-gap: 14%;
  font-size: 2.5cqw;
}

/* Badge: the card sits right of centre, ~43–85% across, 50–92% down. */
.obj__badge-copy {
  right: 20%;
  bottom: 17%;
  left: 45%;
}

.obj__badge-copy b {
  font-size: 12cqw;
}

.obj__badge-copy span {
  font-size: 2.9cqw;
}

.obj__badge-copy em {
  font-size: 5cqw;
}

/* Ticket: centred in the blue ticket's cream window. */
.obj__ticket-copy {
  bottom: 27%;
}

.obj__ticket-copy b {
  font-size: 7cqw;
}

.obj__ticket-copy span {
  font-size: 2.6cqw;
}

/* Shared chrome on this page: paper nav scrim, hidden behind open stories, readable footer */
.page-table .site-nav {
  --nav-scrim-rgb: 237, 230, 214;
}

/* On wider screens the links sit over the cobalt shape; a paper backing keeps them readable */
@media (min-width: 768px) {
  .page-table .site-nav__links {
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(247, 243, 234, .94);
    box-shadow: 0 4px 14px rgba(38, 48, 63, .14);
  }
}

.page-table .site-nav__links a {
  color: var(--about-navy);
}

.is-viewer-open .site-nav {
  visibility: hidden;
}

.page-about.page-table .site-footer a {
  color: var(--about-navy);
}

.page-about.page-table .site-footer__meta {
  color: var(--about-muted);
}

@media (max-width: 1120px) {
  .obj--zine { top: 42%; left: 67%; }
  .obj--badge { top: 27%; left: 88%; }
}

@media (max-width: 760px) {
  .table {
    height: auto;
    min-height: 0;
    padding: 108px 20px 84px;
  }

  .table__heading {
    width: 100%;
    padding: 0;
  }

  .table__heading h1 {
    font-size: clamp(40px, 13vw, 64px);
  }

  .table__surface {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
    align-items: start;
    margin-top: 40px;
  }

  .obj,
  .obj.is-in,
  .obj:hover,
  .obj:focus-visible,
  .obj.is-picked {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    opacity: 1;
    transform: rotate(calc(var(--tilt) * .3));
  }

  .obj--zine {
    grid-column: 1 / -1;
  }

  .obj__label {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin-top: -5px;
    opacity: 1;
    transform: none;
  }

  .obj:hover .obj__label,
  .obj:focus-visible .obj__label {
    transform: none;
  }

  .viewer {
    padding: 12px;
  }

  .viewer__dialog {
    max-height: 94vh;
  }

  .mag {
    padding: 58px 18px 24px;
  }

  .mag__spread,
  .mag__spread.is-active {
    grid-template-columns: 1fr;
  }

  .mag__spread {
    min-height: 0;
  }

  .mag__page {
    min-height: 0;
    padding: 40px 24px 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(38, 48, 63, .14);
  }

  .story {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 70px 24px 38px;
  }

  .story--cats,
  .story--odds {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .story--odds .story__copy,
  .story__facts,
  .story__odds-signoff {
    grid-area: auto;
  }

  .story--cats .story__cat {
    order: initial;
  }

  .story__plates--three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .table {
    padding-bottom: 56px;
  }

  .obj--badge .obj__visual,
  .obj--odds .obj__visual {
    width: 72%;
    margin: 0 auto;
  }

  .obj__label strong {
    font-size: 13px;
  }

  .obj__label span {
    font-size: 11px;
  }

  .story__plates--three,
  .story__plates--two {
    grid-template-columns: 1fr;
  }

  .viewer__close span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .obj,
  .obj.is-in,
  .obj:hover,
  .obj:focus-visible,
  .viewer,
  .viewer__dialog {
    transition: none !important;
  }

  .obj__label {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
  .obj {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--tilt));
  }
}
