:root {
  --ink: #27201a;
  --paper: #f5e9cd;
  --paper-bright: #fff9e9;
  --desk: #5b3b2d;
  --red: #b74434;
  --blue: #568aa5;
  --yellow: #efbc3e;
  --green: #63865e;
  --pink: #e98d91;
  --line: rgba(73, 100, 121, 0.18);
  --font: "Nanum Pen Script", "Comic Sans MS", cursive;
  --serif: "Besley", Rockwell, serif;
  --hand: var(--font);
  --sans: var(--font);
  --shadow: 0 24px 70px rgba(39, 20, 13, 0.32), 0 3px 7px rgba(39, 20, 13, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 55%, rgba(0, 0, 0, 0.08) 0 1px, transparent 2px),
    linear-gradient(96deg, rgba(255, 255, 255, 0.03), transparent 50%, rgba(0, 0, 0, 0.08)),
    var(--desk);
  background-size: 45px 45px, 28px 28px, auto;
  font-family: var(--sans);
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px dashed var(--yellow);
  outline-offset: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 50%;
  display: flex;
  width: min(var(--book-display-width, 1220px), calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  transform: translateX(-50%);
  color: #fff9e9;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header::before,
.site-header::after {
  content: none;
}

.wordmark {
  color: inherit;
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: inherit;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header nav a {
  position: relative;
  color: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 5px;
  content: "";
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left;
  background: var(--yellow);
  clip-path: polygon(0 38%, 13% 14%, 28% 35%, 46% 7%, 63% 31%, 82% 8%, 100% 25%, 96% 74%, 72% 62%, 51% 88%, 27% 59%, 8% 82%);
  transition: transform 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1) rotate(-1deg);
}

.nav-contact {
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  box-shadow: none;
  transform: none;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
}

.desk {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 120px 5vw 90px;
}

.desk::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.01) 5px 6px);
  mix-blend-mode: screen;
}

.notebook {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1220px, 90vw);
  min-height: 730px;
  grid-template-columns: 1fr 1fr;
  filter: drop-shadow(0 25px 40px rgba(23, 11, 7, 0.36));
}

.page {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 48px, rgba(189, 69, 55, 0.18) 49px, rgba(189, 69, 55, 0.18) 51px, transparent 52px),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 32px, transparent 33px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 40%);
  border: 1px solid rgba(66, 42, 28, 0.36);
}

.page-left {
  border-radius: 14px 3px 3px 14px;
  box-shadow: inset -22px 0 30px rgba(58, 38, 24, 0.13), inset 2px 0 0 rgba(255, 255, 255, 0.7);
}

.page-right {
  border-radius: 3px 14px 14px 3px;
  box-shadow: inset 22px 0 30px rgba(58, 38, 24, 0.13), inset -2px 0 0 rgba(255, 255, 255, 0.7);
}

.page::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 14% 17%, rgba(72, 44, 29, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 79% 67%, rgba(72, 44, 29, 0.08) 0 1px, transparent 2px),
    linear-gradient(92deg, transparent 0 62%, rgba(255, 255, 255, 0.12));
  background-size: 53px 51px, 67px 69px, auto;
  mix-blend-mode: multiply;
  opacity: 0.7;
}

.binding {
  position: absolute;
  z-index: 20;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(28, 17, 11, 0.55) 0 23%, transparent 26%) center top / 14px 30px repeat-y,
    linear-gradient(90deg, transparent, rgba(37, 21, 14, 0.18), transparent);
  filter: drop-shadow(2px 0 2px rgba(20, 10, 6, 0.35));
  pointer-events: none;
}

.binding::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 6px;
  width: 16px;
  content: "";
  background: repeating-linear-gradient(0deg, #b8a479 0 4px, #6f5a36 5px 7px, #ded0a7 8px 12px, transparent 13px 30px);
  border-radius: 8px;
}

.page-number {
  position: absolute;
  top: 24px;
  right: 28px;
  margin: 0;
  font-family: var(--hand);
  font-size: 1.25rem;
}

.section-tab {
  position: absolute;
  z-index: 4;
  top: 32px;
  left: -10px;
  padding: 9px 22px 8px 26px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(39, 32, 26, 0.85);
  transform: rotate(-1deg);
}

.tab-blue { background: #a7cbd9; }
.tab-yellow { background: #f4c955; }
.tab-pink { background: #eda4aa; }
.tab-green { background: #aac19d; }

.tape {
  position: absolute;
  z-index: 15;
  width: 125px;
  height: 34px;
  background: rgba(232, 202, 135, 0.72);
  border: 1px solid rgba(120, 90, 40, 0.12);
  clip-path: polygon(4% 8%, 13% 0, 25% 8%, 38% 2%, 50% 9%, 62% 2%, 76% 7%, 91% 0, 98% 10%, 94% 90%, 82% 100%, 69% 91%, 55% 100%, 42% 91%, 25% 100%, 9% 91%);
  box-shadow: 0 2px 3px rgba(41, 25, 17, 0.13);
  backdrop-filter: blur(1px);
}

.hero-book {
  min-height: min(780px, calc(100svh - 150px));
}

.hero-copy {
  z-index: 2;
  padding: clamp(105px, 11vh, 135px) clamp(52px, 6vw, 88px) 70px 80px;
}

.hero-copy .eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 8px 12px 5px;
  background: var(--yellow);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.hero-copy h1 {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.9vw, 5.1rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.marker-stroke {
  width: 76%;
  height: 23px;
  margin: -23px 0 34px 4px;
  background: rgba(232, 139, 145, 0.78);
  clip-path: polygon(0 31%, 12% 12%, 27% 30%, 43% 8%, 56% 26%, 73% 4%, 100% 23%, 96% 76%, 72% 65%, 56% 90%, 35% 68%, 17% 89%, 2% 72%);
  transform: rotate(-2deg);
}

.hero-side-note {
  margin: 24px 0 32px auto;
  width: 185px;
  font-family: var(--hand);
  font-size: 1.7rem;
  line-height: 0.95;
  transform: rotate(3deg);
}

.scribble-link {
  position: absolute;
  bottom: 57px;
  left: 82px;
  z-index: 4;
  padding: 10px 14px 8px;
  background: var(--red);
  color: var(--paper-bright);
  font-family: var(--hand);
  font-size: 1.3rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.5deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.scribble-link:hover {
  transform: translate(3px, 3px) rotate(0deg);
  box-shadow: 1px 1px 0 var(--ink);
}

.page-link-phone { display: none; }
@media (max-width: 660px) {
  .page-link-default { display: none; }
.page-link-phone { display: inline; }
  .scribble-link { max-width: 100%; }
}

.hero-arrow {
  position: absolute;
  bottom: 63px;
  left: 270px;
  width: 100px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}

.paper-clip {
  position: absolute;
  top: 32px;
  left: 44px;
  width: 26px;
  height: 94px;
  border: 4px solid #726b60;
  border-radius: 17px;
  transform: rotate(4deg);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 8px #726b60;
}

.hero-portrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 24px 16px;
  padding: 42px 34px 28px;
  background-color: #b8d6df;
  background-image:
    radial-gradient(circle at 83% 20%, rgba(255, 249, 227, 0.65) 0 4px, transparent 5px),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(37, 32, 26, 0.08) 55px 56px),
    repeating-linear-gradient(0deg, transparent 0 54px, rgba(37, 32, 26, 0.08) 55px 56px);
}

.portrait-art {
  grid-area: 2 / 1 / 3 / -1;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  container-type: size;
}

/* The photo and its rings share one square, even when the page changes shape. */
.portrait-frame {
  position: relative;
  width: min(100cqw, 100cqh);
  aspect-ratio: 1;
  overflow: hidden;
  isolation: isolate;
}

.portrait-halo {
  position: absolute;
  z-index: 1;
  inset: 8%;
  border: 7px solid var(--red);
  border-radius: 44% 56% 47% 53% / 52% 43% 57% 48%;
  transform: rotate(-5deg);
  opacity: 0.92;
}

.portrait-halo::before,
.portrait-halo::after {
  position: absolute;
  content: "";
  border: 3px solid var(--ink);
  border-radius: inherit;
}

.portrait-halo::before { inset: -17px 8px 13px -12px; transform: rotate(7deg); }
.portrait-halo::after { inset: 8px -17px -14px 13px; transform: rotate(-3deg); }

.cutout {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  max-width: none;
  /* Center the visible person; the source has unequal transparent margins. */
  transform: translateX(-55%);
  filter: drop-shadow(4px 4px 0 var(--paper-bright)) drop-shadow(1px 1px 0 var(--ink));
}

.portrait-label {
  position: relative;
  z-index: 10;
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  color: var(--red);
  font-family: var(--hand);
  font-size: 3.5rem;
  line-height: 1;
  text-shadow: 2px 2px 0 var(--paper-bright);
}

.portrait-label span {
  display: block;
  color: var(--ink);
  font-size: 0.43em;
}

.tape-top {
  top: 10px;
  height: 22px;
  left: 43%;
  transform: rotate(7deg);
}

.date-stamp {
  position: relative;
  z-index: 6;
  grid-area: 1 / 2;
  align-self: center;
  padding: 9px 13px 7px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-align: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.date-stamp strong { font-size: 1.05em; }

.margin-note {
  position: relative;
  z-index: 8;
  grid-area: 3 / 1 / 4 / -1;
  margin: 0;
  font-family: var(--hand);
  font-size: 1.3rem;
  line-height: 1.2;
  text-align: right;
}

.sun-doodle {
  position: absolute;
  z-index: 3;
  top: 22%;
  left: 8%;
  width: 70px;
  height: 70px;
  background: repeating-conic-gradient(from 2deg, var(--yellow) 0deg 8deg, transparent 9deg 23deg);
  border-radius: 50%;
}

.sun-doodle span {
  position: absolute;
  inset: 20px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.flower-doodle {
  position: absolute;
  z-index: 3;
  top: 8%;
  left: 10%;
  color: var(--green);
  font-size: 4rem;
  transform: rotate(-13deg);
}

.desk-note {
  position: absolute;
  right: 5vw;
  bottom: 35px;
  margin: 0;
  color: rgba(255, 249, 233, 0.82);
  font-family: var(--hand);
  font-size: 1.55rem;
  transform: rotate(-2deg);
}

.about-book { min-height: 760px; }

.about-page {
  padding: 100px 74px 70px 86px;
}

.about-page h2,
.work-intro h2,
.writing-page h2,
.roots-page h2 {
  position: relative;
  z-index: 2;
  margin: 14px 0 26px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.35rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.about-page h2 em {
  position: relative;
  display: inline-block;
  color: var(--red);
  font-family: var(--hand);
  font-size: 1.15em;
  font-style: normal;
  transform: rotate(-2deg);
}

.about-body {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 0 18px;
  font-size: 1.03rem;
  line-height: 1.72;
}

blockquote {
  position: relative;
  z-index: 2;
  width: 86%;
  margin: 35px 0 0 18px;
  padding: 20px 24px 15px;
  background: #f3cf54;
  font-family: var(--hand);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 5px 7px 0 rgba(39, 32, 26, 0.14);
  transform: rotate(-1deg);
}

blockquote cite {
  display: block;
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
}

.under-scribble {
  width: 88%;
  margin-top: 18px;
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
}

.memory-page {
  background-color: #e4b96c;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 2px, transparent 2px);
  background-size: 46px 46px;
}

.hand-title {
  position: absolute;
  z-index: 5;
  top: 27px;
  left: 60px;
  margin: 0;
  font-family: var(--hand);
  font-size: 2rem;
  transform: rotate(-2deg);
}

.polaroid {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 13px 13px 36px;
  background: #fffaf0;
  border: 1px solid rgba(38, 31, 24, 0.25);
  box-shadow: 6px 9px 16px rgba(51, 29, 15, 0.26);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}

.polaroid figcaption {
  position: absolute;
  right: 8px;
  bottom: 4px;
  left: 8px;
  font-family: var(--hand);
  font-size: 1.35rem;
  text-align: center;
}

.childhood-photo {
  top: 95px;
  left: 54px;
  width: 49%;
  height: 390px;
  transform: rotate(-5deg);
}

.stanford-photo {
  top: 190px;
  right: 33px;
  width: 42%;
  height: 430px;
  transform: rotate(6deg);
}

.postcard {
  position: absolute;
  z-index: 7;
  right: 100px;
  bottom: 47px;
  width: 330px;
  padding: 18px 22px;
  background: #f9ecd0;
  font-family: var(--hand);
  font-size: 1.25rem;
  line-height: 1.06;
  border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  transform: rotate(-3deg);
}

.postcard span {
  font-family: var(--sans);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.star-cluster {
  position: absolute;
  z-index: 6;
  top: 112px;
  right: 27px;
  color: var(--red);
  font-size: 1.8rem;
  transform: rotate(12deg);
}

.work-book { min-height: 930px; }

.work-intro {
  padding: 92px 60px 55px 80px;
}

.work-intro h2 { margin-top: 20px; }

.work-intro h2 span {
  display: inline;
  padding: 0 6px;
  background: linear-gradient(transparent 52%, rgba(239, 188, 62, 0.9) 53% 91%, transparent 92%);
}

.pencil-note {
  margin: -8px 0 28px;
  font-family: var(--hand);
  font-size: 1.4rem;
  text-align: right;
  transform: rotate(-2deg);
}

.projects-page {
  display: grid;
  align-content: center;
  gap: 30px;
  padding: 58px 44px 58px 52px;
}

.project-card {
  position: relative;
  z-index: 4;
  border: 3px solid var(--ink);
  box-shadow: 7px 8px 0 rgba(39, 32, 26, 0.95);
  transition: transform 220ms ease, box-shadow 220ms ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  box-shadow: 12px 13px 0 rgba(39, 32, 26, 0.95);
}

.nomi-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 450px;
  align-items: stretch;
  margin-top: 22px;
  background: #1e2321;
  color: #fff7e5;
  transform: rotate(-1deg);
}

.nomi-card .project-photo {
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-right: 3px solid var(--ink);
}

.nomi-card .project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.14);
}

.project-demo {
  display: block;
  width: 100%;
  height: 100%;
  background: #111518;
  object-fit: cover;
  object-position: center;
}

.nomi-card .project-demo {
  background: #f3efe6;
}

.bookout-card .project-demo {
  background: #111518;
  object-fit: contain;
}

.nomi-card > div {
  padding: 52px 35px 38px;
}

.project-index {
  margin: 0 0 22px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.project-card h3 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 600;
  line-height: 0.95;
}

.project-card p:not(.project-index) {
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-sticker {
  position: absolute;
  right: 20px;
  bottom: -21px;
  padding: 8px 17px;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.bookout-card {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: stretch;
  min-height: 300px;
  background: #cab99a;
  transform: rotate(1deg);
}

.bookout-card > div {
  min-width: 0;
  min-height: 0;
  padding: 37px 28px;
}

.bookout-card .project-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
  margin: 0;
  overflow: hidden;
  background: #111518;
  border-left: 3px solid var(--ink);
}

.bookout-card .project-demo {
  position: absolute;
  inset: 0;
}

.bookout-card .project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.2) contrast(1.05);
}

.book-tabs {
  position: absolute;
  top: -14px;
  right: 17%;
  display: flex;
  gap: 4px;
}

.book-tabs i {
  width: 28px;
  height: 40px;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.book-tabs i:nth-child(2) { background: var(--pink); transform: translateY(-5px); }
.book-tabs i:nth-child(3) { background: #99c5d5; }

.research-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  min-height: 390px;
  background: #193129;
  color: #fff7e5;
  transform: rotate(-0.7deg);
}

.research-copy { padding: 38px 14px 32px 32px; }

.research-card h3 { font-size: clamp(1.8rem, 2.5vw, 2.7rem); }

.research-card a {
  display: inline-block;
  margin-top: 8px;
  color: #fff1b8;
  font-size: 0.8rem;
  font-weight: 800;
  text-underline-offset: 5px;
}

.research-scrap {
  position: relative;
  align-self: center;
  margin: 27px 25px 27px 10px;
  padding: 8px 8px 30px;
  background: #fff9eb;
  color: var(--ink);
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.28);
  transform: rotate(3deg);
}

.research-scrap img {
  height: 245px;
  width: 100%;
  object-fit: cover;
  object-position: top left;
  border: 1px solid rgba(39, 32, 26, 0.3);
}

.research-scrap figcaption {
  position: absolute;
  right: 9px;
  bottom: 2px;
  font-family: var(--hand);
  font-size: 1.35rem;
}

.tape-small { top: -20px; left: 26%; transform: rotate(-4deg); }

.writing-book { min-height: 860px; }

.writing-page {
  padding: 96px 64px 62px 80px;
  background-color: #bd493a;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 244, 218, 0.14) 32px, transparent 33px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 38%);
  color: #fff9e9;
}

.writing-page h2 { margin-bottom: 16px; }

.writing-page h2 span {
  position: relative;
  font-family: var(--hand);
  font-size: 1.3em;
  color: var(--yellow);
}

.writing-lede {
  position: relative;
  z-index: 3;
  max-width: 510px;
  margin: 0 0 34px;
  font-size: 1rem;
  line-height: 1.65;
}

.essay-stack {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
}

.essay-note {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 26px;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 6px 7px 0 rgba(33, 23, 19, 0.62);
  transition: transform 180ms ease;
}

.essay-note:hover { transform: translateY(-5px) rotate(0deg); }
.note-red { background: #f6d0bc; transform: rotate(0.8deg); }
.note-blue { background: #acd0da; transform: rotate(-0.9deg); }

.essay-date {
  margin-bottom: 8px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.essay-note strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.08;
}

.essay-note small {
  margin-top: 8px;
  font-family: var(--hand);
  font-size: 1.12rem;
}

.button-link {
  position: relative;
  z-index: 3;
  display: inline-block;
  margin-top: 32px;
  padding: 9px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid currentColor;
  border-radius: 30px;
}

.archive-page {
  padding: 58px 49px 50px 56px;
  background-color: #c9d4ae;
}

.art-scrap {
  position: absolute;
  z-index: 4;
  top: 55px;
  right: 38px;
  width: 31%;
  margin: 0;
  padding: 9px 9px 30px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  box-shadow: 5px 7px 0 var(--ink);
  transform: rotate(6deg);
}

.art-scrap img { width: 100%; height: 205px; object-fit: cover; }
.art-scrap figcaption { font-family: var(--hand); font-size: 1.1rem; line-height: 0.8; text-align: center; }

.clipping {
  position: relative;
  z-index: 3;
  margin: 165px 22px 0 0;
  padding: 28px 32px 34px;
  background: #f4eedf;
  color: #1f1d1a;
  box-shadow: 8px 10px 0 rgba(39, 32, 26, 0.78);
  border-top: 4px double #222;
  transform: rotate(-1deg);
}

.clipping::before,
.clipping::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
  background: #f4eedf;
  clip-path: polygon(0 50%, 5% 14%, 11% 57%, 17% 15%, 24% 63%, 31% 21%, 38% 65%, 44% 20%, 51% 60%, 59% 19%, 66% 66%, 74% 15%, 82% 58%, 90% 20%, 100% 54%, 100% 100%, 0 100%);
}

.clipping::before { top: -9px; transform: rotate(180deg); }
.clipping::after { bottom: -9px; }

.clipping-kicker {
  margin: 0 0 10px;
  padding-bottom: 8px;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  border-bottom: 2px solid #222;
}

.clipping h3 {
  margin: 0 0 16px;
  font-family: var(--font);
  font-size: 2rem;
}

.clipping ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.28);
}

.clipping li { border-bottom: 1px solid rgba(0, 0, 0, 0.28); }

.clipping li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0 9px;
  font-family: var(--font);
  font-size: 0.89rem;
  line-height: 1.15;
  text-decoration: none;
}

.clipping li a:hover { color: var(--red); }

.clipping li span {
  font-family: var(--sans);
  font-size: 0.57rem;
  font-weight: 800;
}

.archive-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.69rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.vertical-note {
  position: absolute;
  top: 68px;
  left: 67px;
  margin: 0;
  font-family: var(--hand);
  font-size: 1.55rem;
  transform: rotate(-5deg);
}

.story-book { min-height: 820px; }

.roots-page {
  padding: 93px 57px 50px 78px;
  background-color: #b7d1c7;
}

.roots-page h2 { margin-bottom: 24px; }

.roots-photo {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 9px 9px 34px;
  background: #fff9e9;
  border: 2px solid var(--ink);
  box-shadow: 6px 8px 0 rgba(39, 32, 26, 0.9);
}

.roots-photo img { width: 100%; height: 100%; object-fit: cover; }
.roots-photo figcaption { margin-top: 4px; font-family: var(--hand); font-size: 1.2rem; line-height: 0.8; text-align: center; }

.friends-photo {
  top: 245px;
  left: 63px;
  z-index: 4;
  width: 51%;
  height: 360px;
  transform: rotate(-4deg);
}

.flag-photo {
  top: 350px;
  right: 30px;
  width: 43%;
  height: 245px;
  transform: rotate(6deg);
}

.flag-photo figcaption {
  padding-right: 8px;
  text-align: right;
}

.roots-note {
  position: absolute;
  z-index: 5;
  right: 40px;
  bottom: 92px;
  width: 64%;
  margin: 0;
  padding: 17px 22px;
  background: var(--yellow);
  font-family: var(--hand);
  font-size: 1.38rem;
  line-height: 0.98;
  border: 2px solid var(--ink);
  transform: rotate(-2deg);
}

.roots-link {
  position: absolute;
  z-index: 6;
  right: 41px;
  bottom: 38px;
  font-size: 0.69rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.novel-page {
  padding: 74px 64px 55px 68px;
  background-color: #201f1a;
  background-image:
    radial-gradient(circle at 72% 20%, rgba(222, 191, 65, 0.18), transparent 25%),
    linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.02));
  color: #fff5da;
}

.novel-page h2 {
  position: relative;
  z-index: 5;
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  font-weight: 600;
  line-height: 0.94;
}

.novel-kicker,
.novel-meta {
  position: relative;
  z-index: 5;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.novel-meta { max-width: 290px; color: #e9c754; line-height: 1.5; }

.author-photo {
  position: absolute;
  z-index: 4;
  top: 175px;
  right: 18px;
  width: 40%;
  margin: 0;
  padding: 9px;
  background: #fff4d8;
  border: 2px solid var(--ink);
  box-shadow: 8px 9px 0 #b74635;
  transform: rotate(5deg);
}

.author-photo img { aspect-ratio: 1 / 1.1; object-fit: cover; object-position: 64% center; filter: saturate(0.82) contrast(1.05); }
.tape-book { top: -20px; left: 20%; transform: rotate(-8deg); }

.novel-copy {
  position: relative;
  z-index: 5;
  width: 50%;
  margin: 64px 0 20px;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
}

.hand-quote {
  position: relative;
  z-index: 5;
  width: 82%;
  margin: 26px 0 22px 13%;
  padding: 17px 21px;
  background: #b74635;
  color: #fff5da;
  font-family: var(--hand);
  font-size: 1.55rem;
  line-height: 0.92;
  border: 2px solid #fff5da;
  transform: rotate(-1.5deg);
}

.novel-links {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}

.novel-links a {
  color: #f1d464;
  font-size: 0.72rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.novel-star {
  position: absolute;
  right: 56px;
  bottom: 54px;
  color: #e9c754;
  font-size: 4rem;
  transform: rotate(15deg);
}

.contact-desk {
  align-content: center;
  min-height: 100svh;
  gap: 35px;
  padding-bottom: 35px;
}

.contact-book {
  min-height: 800px;
}

.contact-page {
  position: relative;
  min-height: 800px;
  padding: 92px 62px 64px;
  overflow: hidden;
  border: 0;
  box-shadow: none;
}

.contact-copy {
  background:
    linear-gradient(90deg, transparent 68px, rgba(189, 69, 55, 0.22) 69px, rgba(189, 69, 55, 0.22) 71px, transparent 72px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(73, 100, 121, 0.16) 32px, transparent 33px),
    var(--paper-bright);
}

.contact-links {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    repeating-linear-gradient(90deg, transparent 0 43px, rgba(39, 32, 26, 0.08) 44px, transparent 45px),
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(39, 32, 26, 0.08) 44px, transparent 45px),
    #e5c568;
}

.contact-copy::after,
.contact-links::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 18px;
  content: "";
  background: var(--paper-bright);
  clip-path: polygon(0 18%, 5% 59%, 10% 25%, 15% 62%, 21% 22%, 28% 63%, 34% 27%, 41% 60%, 48% 22%, 55% 64%, 61% 21%, 68% 61%, 75% 25%, 83% 63%, 91% 21%, 100% 59%, 100% 100%, 0 100%);
}

.contact-tape {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 180px;
  height: 55px;
  background: rgba(164, 196, 210, 0.82);
  transform: translateX(-50%) rotate(2deg);
  clip-path: polygon(3% 9%, 12% 0, 25% 8%, 39% 1%, 52% 8%, 66% 0, 80% 8%, 96% 0, 100% 94%, 87% 86%, 72% 100%, 58% 90%, 43% 100%, 26% 88%, 10% 100%, 0 88%);
}

.contact-kicker {
  margin: 0 0 26px;
  color: var(--red);
  font-family: var(--hand);
  font-size: 2rem;
}

.contact-page h2 {
  max-width: 510px;
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 5.2vw, 5.5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.contact-page h2 span {
  position: relative;
  color: var(--red);
}

.contact-page h2 span::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 8px;
  content: "";
  background: var(--yellow);
  clip-path: polygon(0 30%, 12% 3%, 26% 36%, 39% 8%, 52% 32%, 67% 6%, 82% 35%, 100% 4%, 97% 80%, 80% 61%, 66% 91%, 48% 63%, 31% 91%, 15% 65%, 2% 92%);
}

.contact-margin-note {
  width: 260px;
  margin: 68px 0 0 auto;
  color: var(--blue);
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1;
  transform: rotate(-3deg);
}

.contact-invitation {
  margin: 0 0 8px;
  font-family: var(--hand);
  font-size: 3.5rem;
  line-height: 1;
}

.email-link {
  position: relative;
  z-index: 3;
  display: inline-block;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  text-underline-offset: 6px;
}

.social-links {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.social-links a {
  padding: 9px 15px;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 40px;
  background: var(--paper-bright);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 150ms ease;
}

.social-links a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.contact-flower {
  position: absolute;
  right: 50px;
  bottom: 10px;
  width: 160px;
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(6deg);
}

.contact-star {
  position: absolute;
  top: 72px;
  right: 58px;
  color: var(--blue);
  font-size: 5rem;
  transform: rotate(8deg);
}

.contact-postscript {
  width: 310px;
  margin: 68px 0 0 46px;
  padding: 18px 20px;
  background: var(--paper-bright);
  font-family: var(--hand);
  font-size: 1.42rem;
  line-height: 1;
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(2deg);
}

footer {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(880px, 92vw);
  justify-content: space-between;
  color: rgba(255, 249, 233, 0.76);
  font-family: var(--hand);
  font-size: 1.12rem;
}

@keyframes settle-in {
  from { opacity: 0; transform: translateY(36px) rotate(2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* Interactive book reader */
body.book-mode {
  height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
}

.book-mode .site-header {
  z-index: 300;
}

.book-reader {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  perspective: 2200px;
  isolation: isolate;
}

.book-reader:not(.is-physically-turning) > .spread-active .notebook {
  cursor: grab;
}

.book-reader.is-physically-turning {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.book-reader img,
.book-reader a {
  -webkit-user-drag: none;
}

.book-reader > .book-spread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  padding: 78px 2vw 76px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: pan-y;
  transform: translate3d(7%, 0, -100px) rotateY(-3deg) scale(0.985);
  transform-origin: left center;
  transition: none;
}

.book-reader > .book-spread.spread-before {
  transform: translate3d(-7%, 0, -100px) rotateY(3deg) scale(0.985);
  transform-origin: right center;
}

.book-reader > .book-spread.spread-active {
  z-index: 4;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateY(0) scale(1);
}

.book-reader.is-initializing > .book-spread {
  transition: none;
}

.book-mode .desk-note {
  right: 20px;
  bottom: 78px;
  width: 175px;
  font-size: 1rem;
  line-height: 1.05;
}

.site-header nav a.is-current {
  color: inherit;
}

.site-header nav a.is-current::after {
  transform: scaleX(1) rotate(-1deg);
}

.site-header nav .nav-contact.is-current {
  color: inherit;
  box-shadow: none;
  transform: none;
}

.gesture-hint {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 26px;
  margin: 0;
  color: rgba(255, 249, 233, 0.9);
  font-family: var(--hand);
  font-size: 1.08rem;
  transform: rotate(-2deg);
  pointer-events: none;
}

.contact-desk.spread-active ~ .gesture-hint {
  display: none;
}

.page-turn {
  position: fixed;
  z-index: 210;
  inset: 0;
  overflow: visible;
  visibility: hidden;
  perspective: 1500px;
  perspective-origin: 50% 48%;
  pointer-events: none;
}

.page-turn.is-active {
  visibility: visible;
}

.turn-leaf {
  position: absolute;
  overflow: visible;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.page-turn[data-direction="forward"] .turn-leaf {
  filter: drop-shadow(-14px 8px 24px rgba(25, 12, 7, 0.28));
}

.page-turn[data-direction="backward"] .turn-leaf {
  filter: drop-shadow(14px 8px 24px rgba(25, 12, 7, 0.28));
}

.turn-mesh {
  position: absolute;
  inset: 0;
  overflow: visible;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.page-strip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
}

.strip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper-bright);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.page-turn[data-direction="forward"] .strip-back,
.page-turn[data-direction="backward"] .strip-front {
  transform: rotateY(180deg);
}

.strip-face::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  content: "";
  background: rgba(32, 17, 10, var(--strip-shade, 0));
  pointer-events: none;
}

.strip-back::after {
  background: rgba(67, 44, 23, var(--strip-shade, 0));
}

.turn-surface {
  position: absolute !important;
  top: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  transform-origin: left top !important;
  pointer-events: none !important;
}

.texture-stage {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: -10000px;
  width: 610px;
  height: 800px;
  overflow: hidden;
  pointer-events: none;
}

.texture-stage .texture-page {
  position: relative !important;
  width: 610px !important;
  height: 800px !important;
  min-height: 800px !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

.texture-stage .texture-page::after {
  display: none !important;
}

.leaf-edge {
  position: absolute;
  z-index: 30;
  top: 0;
  right: -1px;
  width: 4px;
  height: 100%;
  background: repeating-linear-gradient(0deg, #f8efd8 0 3px, #c9b892 4px 5px);
  box-shadow: 0 0 5px rgba(25, 14, 8, 0.55);
  transform: translateZ(1.5px);
}

.book-reader.is-physically-turning > .book-spread.turn-source,
.book-reader.is-physically-turning > .book-spread.turn-destination {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}

.book-reader.is-physically-turning > .book-spread.turn-source {
  z-index: 4;
}

.book-reader.is-physically-turning > .book-spread.turn-destination {
  z-index: 5;
}

.book-reader[data-turn-direction="forward"] > .book-spread.turn-destination {
  clip-path: inset(0 0 0 50%);
}

.book-reader[data-turn-direction="backward"] > .book-spread.turn-destination {
  clip-path: inset(0 50% 0 0);
}

@media (min-width: 961px) {
  .book-mode .book-spread {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: start;
  }

  .book-mode .contact-desk { align-content: normal; }

  .book-mode .hero-copy {
    padding: 92px 58px 70px 80px;
  }

  .book-mode .hero-copy h1 {
    font-size: 4rem;
    line-height: 0.95;
  }

  .book-mode .marker-stroke { margin-bottom: 18px; }
  .book-mode .hero-side-note { margin: 12px 0 0 auto; font-size: 1.5rem; }
  .book-mode .under-scribble { display: none; }

  .book-mode .book-spread .notebook {
    width: 1220px;
    height: 800px;
    min-height: 800px;
    max-width: none;
    transform: scale(var(--book-scale, 0.69));
    transform-origin: center top;
  }

  .book-mode .book-spread .notebook > .page {
    height: 800px;
    min-height: 800px;
  }

  .book-mode .work-intro { padding-top: 76px; padding-bottom: 38px; }
  .book-mode .nomi-card { min-height: 380px; }
  .book-mode .nomi-card > div { padding: 38px 28px 28px; }
  .book-mode .nomi-card .project-index { margin-bottom: 14px; }
  .book-mode .nomi-card h3 { margin-bottom: 14px; font-size: 2.8rem; }
  .book-mode .nomi-card p:not(.project-index) { margin: 0; font-size: 1.15rem; line-height: 1.35; }
  .book-mode .projects-page { gap: 19px; padding-top: 38px; padding-bottom: 38px; }
  .book-mode .bookout-card { min-height: 245px; }
  .book-mode .research-card { min-height: 330px; }
  .book-mode .research-scrap img { height: 200px; }
  .book-mode .research-copy { padding: 24px 12px 18px 28px; }
  .book-mode .research-card .project-index { margin-bottom: 10px; }
  .book-mode .research-card h3 { margin-bottom: 10px; font-size: 2rem; }
  .book-mode .research-card p:not(.project-index) { margin: 0; font-size: 1.05rem; line-height: 1.25; }
  .book-mode .research-card a { margin-top: 10px; font-size: 1rem; }

  .book-mode .contact-desk footer {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    width: min(var(--book-display-width, 1220px), calc(100% - 48px));
    padding: 0 4px;
    margin: auto;
  }
}

@media (max-width: 960px) {
  .desk { min-height: auto; padding: 105px 18px 70px; }
  .notebook { width: min(680px, 96vw); grid-template-columns: 1fr; }
  .binding { display: none; }
  .page { min-height: 700px; border-radius: 10px; box-shadow: var(--shadow); }
  .page + .page { margin-top: 26px; }
  .hero-book { min-height: auto; }
  .hero-copy { min-height: 720px; }
  .work-book { min-height: auto; }
  .projects-page { min-height: 850px; }
  .writing-book { min-height: auto; }
  .story-book { min-height: auto; }
  .author-photo { width: 40%; }
}

@media (min-width: 661px) and (max-width: 960px) {
  .bookout-card {
    grid-template-columns: 1fr;
  }

  .bookout-card .project-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-top: 3px solid var(--ink);
    border-left: 0;
  }

  .bookout-card .project-demo {
    object-fit: cover;
  }
}

@media (min-width: 961px) and (max-width: 1250px) {
  .book-mode .desk-note { display: none; }
}

@media (max-width: 660px) {
  .site-header { width: calc(100% - 20px); padding: 12px 16px; }
  .menu-button { position: relative; z-index: 4; display: grid; width: 38px; height: 38px; place-content: center; gap: 6px; }
  .menu-button span:not(.sr-only) { display: block; width: 24px; height: 3px; background: #fff9e9; transition: transform 180ms ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
  .site-header nav {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    display: none;
    width: 210px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: rgba(74, 43, 32, 0.96);
    border: 0;
    box-shadow: 6px 7px 0 rgba(39, 20, 13, 0.55);
  }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 13px 8px; }
  .nav-contact { margin-top: 6px; text-align: center; }
  .desk { padding-right: 10px; padding-left: 10px; }
  .notebook { width: 100%; }
  .page { min-height: 660px; background-image: repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 32px, transparent 33px), radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 40%); }
  .hero-copy { min-height: 700px; padding: 105px 29px 60px 34px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 10vw, 3.55rem); }
  .hero-copy .eyebrow { width: auto; font-size: 0.55rem; line-height: 1.45; }
  .hero-side-note { margin-top: 42px; }
  .scribble-link { left: 33px; bottom: 55px; }
  .hero-arrow { display: none; }
  .paper-clip { left: 14px; }
  .sun-doodle { left: 5%; }
  .about-page { min-height: 720px; padding: 99px 30px 45px 40px; }
  .about-page h2, .work-intro h2, .writing-page h2, .roots-page h2 { font-size: clamp(2.35rem, 10vw, 3.2rem); }
  .about-body { font-size: 0.94rem; line-height: 1.6; }
  blockquote { width: 95%; margin-left: 0; font-size: 1.7rem; }
  .memory-page { min-height: 760px; }
  .hand-title { left: 30px; }
  .childhood-photo { top: 105px; left: 30px; width: 58%; height: 365px; }
  .stanford-photo { top: 250px; right: 18px; width: 48%; height: 390px; }
  .postcard { right: 25px; bottom: 45px; width: 280px; }
  .work-intro { min-height: 850px; padding: 95px 27px 45px 36px; }
  .nomi-card { grid-template-columns: 1fr; min-height: 550px; }
  .nomi-card .project-photo { height: 235px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .nomi-card > div { padding: 34px 26px; }
  .projects-page { min-height: 950px; padding: 34px 24px 34px 31px; }
  .bookout-card { grid-template-columns: 1fr; }
  .bookout-card .project-photo { height: 135px; border-left: 0; border-top: 3px solid var(--ink); }
  .bookout-card .project-demo { object-fit: cover; }
  .research-card { grid-template-columns: 1fr; }
  .research-scrap { margin-left: 28px; }
  .writing-page { min-height: 840px; padding: 96px 29px 50px 37px; }
  .archive-page { min-height: 760px; padding: 40px 22px 36px 30px; }
  .art-scrap { top: 55px; right: 20px; width: 42%; }
  .vertical-note { left: 32px; }
  .clipping { margin-top: 190px; margin-right: 5px; padding: 26px 22px; }
  .clipping li a { font-size: 0.8rem; }
  .roots-page { min-height: 820px; padding: 96px 26px 45px 36px; }
  .friends-photo { left: 24px; width: 61%; }
  .flag-photo { right: 15px; width: 49%; padding-bottom: 10px; }
  .flag-photo figcaption { display: none; }
  .roots-note { right: 20px; width: 76%; }
  .novel-page { min-height: 900px; padding: 75px 29px 45px 36px; }
  .novel-page h2 { font-size: 2.7rem; }
  .author-photo { top: 220px; right: 20px; width: 63%; }
  .novel-copy { width: 100%; margin-top: 390px; }
  .hand-quote { width: 100%; margin-left: 0; }
  .contact-page { min-height: 610px; padding: 73px 32px 60px 44px; }
  .contact-page h2 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .contact-flower { right: 8px; bottom: 0; width: 120px; opacity: 0.7; }
  .contact-star { top: 42px; right: 20px; font-size: 3rem; }
  .social-links { flex-wrap: wrap; }
  .contact-postscript { width: 260px; margin-left: 0; }
  footer { flex-direction: column; gap: 6px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Navigation stays outside the page artwork and the drag surface. */
.book-controls {
  position: fixed;
  z-index: 250;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  width: max-content;
  max-width: calc(100% - 24px);
  align-items: center;
  gap: 18px;
  margin: auto;
  padding: 5px 12px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(39, 20, 13, 0.4);
}

.book-controls[hidden] { display: none; }
.book-controls button {
  min-width: 92px;
  min-height: 44px;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 1.3rem var(--hand);
  cursor: pointer;
}
.book-controls button:hover:not(:disabled) { background: #f3dfab; }
.book-controls button:disabled { opacity: 0.4; cursor: default; }
.book-status { min-width: 165px; margin: 0; font-size: 1.15rem; text-align: center; }
.book-mode .contact-desk footer { bottom: 76px; }
.book-spread:focus, .book-reader:focus { outline: none; }
.page :focus-visible { outline-color: currentColor; }
.book-mode .project-index { font-size: 0.95rem; }
.book-mode .bookout-card h3 { font-size: 2.45rem; }
.book-mode .bookout-card p:not(.project-index) { font-size: 1.15rem; line-height: 1.3; }
.book-mode .about-body, .book-mode .writing-lede { font-size: 1.3rem; line-height: 1.4; }
.book-mode .novel-copy { font-size: 1.25rem; line-height: 1.35; }
.book-mode .button-link, .book-mode .archive-link, .book-mode .novel-links a,
.book-mode .roots-link, .book-mode .social-links a { font-size: 1rem; }
.book-mode .clipping li a { font-size: 1.15rem; }
.book-mode .essay-date, .book-mode .clipping-kicker,
.book-mode .novel-kicker, .book-mode .novel-meta { font-size: 0.85rem; }

@media (max-width: 1250px) {
  .gesture-hint { display: none; }
  .site-header nav { gap: 20px; }
}

/* Normal document flow is also the fallback if JavaScript is unavailable. */
body.reading-mode { height: auto; overflow-y: auto; }
.reading-mode .site-header {
  width: min(680px, calc(100% - 20px));
  padding: 14px 16px;
  background: #5b3b2d;
}
.reading-mode .book-reader {
  position: relative;
  height: auto;
  min-height: 0;
  padding-top: 78px;
  overflow: visible;
  perspective: none;
}
.reading-mode .book-reader > .book-spread {
  position: relative;
  inset: auto;
  display: grid;
  height: auto;
  min-height: 0;
  padding: 12px 18px 28px;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  scroll-margin-top: 78px;
}
.reading-mode .notebook {
  display: grid;
  width: min(680px, 100%);
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  transform: none;
  cursor: auto !important;
}
.reading-mode .binding, .reading-mode .gesture-hint, .reading-mode .desk-note,
.reading-mode .page-turn { display: none; }
.reading-mode .page {
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.reading-mode .page + .page { margin-top: 26px; }
.reading-mode .hero-copy { min-height: 0; padding: 110px 34px 44px; }
.reading-mode .hero-copy h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
.reading-mode .hero-copy .eyebrow { width: fit-content; font-size: 0.85rem; line-height: 1.4; }
.reading-mode .hero-side-note { margin-top: 36px; }
.reading-mode .scribble-link { position: relative; bottom: auto; left: auto; display: inline-block; margin-top: 16px; }
.reading-mode .hero-arrow { display: none; }
.reading-mode .hero-portrait { min-height: 0; height: clamp(480px, 110vw, 760px); }
.reading-mode .about-page, .reading-mode .work-intro,
.reading-mode .writing-page { min-height: 0; padding: 96px 32px 48px; }
.reading-mode .about-body, .reading-mode .writing-lede,
.reading-mode .project-card p:not(.project-index), .reading-mode .novel-copy {
  font-size: 1.35rem;
  line-height: 1.4;
}
.reading-mode .about-page h2, .reading-mode .work-intro h2,
.reading-mode .writing-page h2, .reading-mode .roots-page h2 {
  font-size: clamp(2.35rem, 6vw, 3.5rem);
}
.reading-mode .project-index { font-size: 1rem; }
.reading-mode .projects-page { min-height: 0; padding: 38px 26px 44px; }
.reading-mode .project-card h3 { font-size: 2.5rem; line-height: 1.05; }
.reading-mode .research-card h3 { font-size: 2.1rem; }
.reading-mode .research-card a, .reading-mode .button-link,
.reading-mode .archive-link, .reading-mode .novel-links a { font-size: 1.15rem; }
.reading-mode .research-scrap img { height: auto; object-fit: contain; }
.reading-mode .essay-date, .reading-mode .clipping-kicker,
.reading-mode .novel-kicker, .reading-mode .novel-meta { font-size: 0.95rem; }
.reading-mode .essay-note strong { font-size: 1.3rem; line-height: 1.2; }
.reading-mode .essay-note small { font-size: 1.25rem; }
.reading-mode .archive-page { min-height: 760px; padding: 44px 28px; }
.reading-mode .art-scrap { width: 38%; }
.reading-mode .art-scrap img { height: 145px; }
.reading-mode .clipping { margin: 220px 0 0; padding: 26px 22px; }
.reading-mode .clipping li a { font-size: 1.25rem; line-height: 1.3; }
.reading-mode .clipping li span { font-size: 0.95rem; }
.reading-mode .roots-page {
  display: grid;
  min-height: 0;
  grid-template-columns: 1fr 1fr;
  padding: 96px 28px 40px;
}
.reading-mode .roots-page h2 { grid-column: 1 / -1; }
.reading-mode .roots-photo { position: relative; inset: auto; width: 100%; height: 280px; }
.reading-mode .flag-photo { height: 180px; margin-top: 100px; }
.reading-mode .roots-note, .reading-mode .roots-link {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  width: auto;
  margin-top: 32px;
}
.reading-mode .roots-note { font-size: 1.4rem; line-height: 1.2; }
.reading-mode .roots-link { font-size: 1.15rem; }
.reading-mode .novel-page { min-height: 0; padding: 64px 30px 44px; }
.reading-mode .novel-page h2 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; }
.reading-mode .author-photo { position: relative; inset: auto; width: min(280px, 80%); margin: 38px auto; }
.reading-mode .novel-copy { width: 100%; margin: 30px 0; }
.reading-mode .hand-quote { width: 100%; margin: 24px 0; line-height: 1.15; }
.reading-mode .novel-star { display: none; }
.reading-mode .contact-page { min-height: 560px; padding: 70px 32px; }
.reading-mode .contact-page h2 { font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1.05; }
.reading-mode .contact-margin-note { width: min(260px, 100%); }
.reading-mode .contact-postscript { width: min(310px, 100%); margin-left: 0; }
.reading-mode .social-links { flex-wrap: wrap; }
.reading-mode .social-links a { font-size: 1rem; }
.reading-mode .email-link { max-width: 100%; font-size: 1.3rem; overflow-wrap: anywhere; }
.reading-mode footer { width: min(680px, 100%); }

@media (max-width: 660px) {
  .menu-button { width: 44px; height: 44px; }
  .reading-mode .book-reader > .book-spread { padding-right: 10px; padding-left: 10px; }
  .reading-mode .nomi-card .project-photo { height: 320px; }
  .reading-mode .nomi-card .project-demo { object-fit: contain; }
  .reading-mode .bookout-card .project-photo { height: auto; aspect-ratio: 16 / 9; }
  .reading-mode .bookout-card .project-demo { object-fit: contain; }
  .reading-mode .research-copy { padding: 28px 24px 18px; }
  .reading-mode .research-scrap { margin: 18px 24px 30px; }
  .reading-mode .postcard { right: 20px; max-width: calc(100% - 40px); }
  .reading-mode .polaroid figcaption { font-size: 1.1rem; line-height: 1; }
  .reading-mode .art-scrap { top: 70px; }
  .reading-mode .vertical-note { top: 30px; }
  .reading-mode .clipping { margin-top: 265px; }
}

.reading-mode:not(.is-enhanced) .site-header {
  position: relative;
  left: auto;
  flex-wrap: wrap;
  gap: 20px;
  margin: auto;
  transform: none;
}
.reading-mode:not(.is-enhanced) .menu-button { display: none; }
.reading-mode:not(.is-enhanced) .site-header nav {
  position: static;
  display: flex;
  width: auto;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.reading-mode:not(.is-enhanced) .book-reader { padding-top: 0; }

/* Give each piece of content its own space in the scrapbook. */
:is(.book-mode, .reading-mode) .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.book-mode .hero-copy { padding: 82px 54px 36px 64px; }
:is(.book-mode, .reading-mode) .hero-copy h1 { line-height: 1.06; }
.book-mode .hero-copy h1 { font-size: 3.6rem; }
.book-mode .about-page h2,
.book-mode .work-intro h2,
.book-mode .writing-page h2 { font-size: 3.3rem; line-height: 1.08; }
.book-mode .contact-page h2 { font-size: 4rem; line-height: 1.05; }
:is(.book-mode, .reading-mode) .paper-clip { top: 20px; left: 24px; height: 48px; }
:is(.book-mode, .reading-mode) .marker-stroke { height: 12px; flex-shrink: 0; margin: 16px 0 0; }
:is(.book-mode, .reading-mode) .hero-side-note { margin: 24px 0 24px auto; }
:is(.book-mode, .reading-mode) .scribble-link { position: relative; inset: auto; margin-top: auto; }
:is(.book-mode, .reading-mode) .hero-arrow { display: none; }

.hero-portrait .sun-doodle, .hero-portrait .flower-doodle { display: none; }

:is(.book-mode, .reading-mode) .memory-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 28px;
  padding: 48px 40px;
}
:is(.book-mode, .reading-mode) .hand-title {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.2;
  transform: none;
}
:is(.book-mode, .reading-mode) .polaroid {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 10px;
  transform: none;
}
:is(.book-mode, .reading-mode) .polaroid img { height: 280px; }
:is(.book-mode, .reading-mode) .polaroid figcaption {
  position: static;
  min-height: 2.4em;
  font-size: 1.25rem;
  line-height: 1.2;
}
:is(.book-mode, .reading-mode) .postcard {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
  transform: none;
}
.star-cluster { display: none; }

:is(.book-mode, .reading-mode) .archive-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 28px;
  padding: 38px 40px;
}
:is(.book-mode, .reading-mode) .vertical-note {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  line-height: 1.25;
  transform: none;
}
:is(.book-mode, .reading-mode) .art-scrap {
  position: relative;
  inset: auto;
  grid-area: 1 / 2;
  width: 100%;
  margin: 0;
  padding: 9px;
  transform: none;
}
:is(.book-mode, .reading-mode) .art-scrap img { height: 120px; }
:is(.book-mode, .reading-mode) .art-scrap figcaption { margin-top: 10px; font-size: 1.1rem; line-height: 1.2; }
:is(.book-mode, .reading-mode) .clipping {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 26px;
  transform: none;
}
:is(.book-mode, .reading-mode) .clipping li a { padding: 9px 0; }

:is(.book-mode, .reading-mode) .roots-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 22px;
  padding: 88px 40px 32px;
}
:is(.book-mode, .reading-mode) .roots-page h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.08;
}
:is(.book-mode, .reading-mode) .roots-photo {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 9px;
  transform: none;
}
:is(.book-mode, .reading-mode) .roots-photo img { height: 225px; }
:is(.book-mode, .reading-mode) .roots-photo figcaption {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
}
:is(.book-mode, .reading-mode) .roots-note,
:is(.book-mode, .reading-mode) .roots-link {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  transform: none;
}
:is(.book-mode, .reading-mode) .roots-note { padding: 14px 18px; font-size: 1.3rem; line-height: 1.25; }
:is(.book-mode, .reading-mode) .roots-link { font-size: 1.1rem; line-height: 1.3; }

:is(.book-mode, .reading-mode) .novel-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 14px 26px;
  padding: 48px 44px 30px;
}
:is(.book-mode, .reading-mode) .novel-kicker { grid-area: 1 / 1 / 2 / -1; margin: 0; }
:is(.book-mode, .reading-mode) .novel-page h2 {
  grid-area: 2 / 1 / 3 / -1;
  margin: 0;
  font-size: 3rem;
  line-height: 1.08;
}
:is(.book-mode, .reading-mode) .novel-meta {
  grid-area: 3 / 1 / 4 / -1;
  max-width: none;
  margin: 0;
}
:is(.book-mode, .reading-mode) .author-photo {
  position: relative;
  inset: auto;
  grid-area: 4 / 2;
  align-self: start;
  width: 100%;
  margin: 12px 0 0;
  transform: none;
}
:is(.book-mode, .reading-mode) .author-photo img { width: 100%; height: 230px; aspect-ratio: auto; }
:is(.book-mode, .reading-mode) .novel-copy {
  grid-area: 4 / 1;
  align-self: center;
  width: 100%;
  margin: 12px 0 0;
  font-size: 1.25rem;
  line-height: 1.35;
}
:is(.book-mode, .reading-mode) .hand-quote {
  grid-area: 5 / 1 / 6 / -1;
  width: 100%;
  margin: 8px 0;
  padding: 14px 18px;
  font-size: 1.45rem;
  line-height: 1.2;
  transform: none;
}
:is(.book-mode, .reading-mode) .novel-links { grid-area: 6 / 1 / 7 / -1; gap: 12px 18px; }
.novel-star { display: none; }

:is(.book-mode, .reading-mode) .contact-flower {
  position: relative;
  inset: auto;
  align-self: flex-end;
  flex-shrink: 0;
  width: 85px;
  height: 100px;
  margin: 24px 0 0;
  transform: none;
}
.contact-star { display: none; }
:is(.book-mode, .reading-mode) .contact-postscript { transform: none; }

@media (max-width: 520px) {
  .reading-mode .hero-portrait { padding: 38px 22px 24px; gap: 18px 12px; }
  .reading-mode .portrait-label { font-size: 2.8rem; }
  .reading-mode .date-stamp { padding: 8px; font-size: 0.65rem; }
  .reading-mode .memory-page { grid-template-columns: 1fr; gap: 32px; padding: 38px 30px; }
  .reading-mode .polaroid img { height: 300px; }
  .reading-mode .polaroid figcaption { min-height: 0; }
  .reading-mode .archive-page { grid-template-columns: 1fr; gap: 28px; padding: 38px 26px; }
  .reading-mode .vertical-note { grid-area: 1 / 1; }
  .reading-mode .art-scrap { grid-area: 2 / 1; width: min(260px, 100%); justify-self: center; }
  .reading-mode .art-scrap img { height: 180px; }
  .reading-mode .clipping { grid-area: 3 / 1; padding: 22px; }
  .reading-mode .roots-page { grid-template-columns: 1fr; padding: 88px 28px 32px; }
  .reading-mode .roots-page h2 { font-size: 2.35rem; }
  .reading-mode .roots-photo img { height: 280px; }
  .reading-mode .novel-page { grid-template-columns: 1fr; gap: 22px; padding: 46px 28px 34px; }
  .reading-mode .novel-page h2 { font-size: 2.25rem; }
  .reading-mode .author-photo { grid-area: 4 / 1; width: min(280px, 100%); justify-self: center; }
  .reading-mode .author-photo img { height: 280px; }
  .reading-mode .novel-copy { grid-area: 5 / 1; margin: 0; }
  .reading-mode .hand-quote { grid-area: 6 / 1; }
  .reading-mode .novel-links { grid-area: 7 / 1; }
}

/* Phone scrolling changes the page inside a fixed frame. */
.phone-scroll-track { display: none; }
html.phone-mode { scroll-behavior: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
html.phone-mode::-webkit-scrollbar { display: none; }
body.phone-mode { min-height: 100svh; overscroll-behavior-y: none; }
.phone-mode .phone-scroll-track { display: block; width: 1px; pointer-events: none; }
.phone-scroll-step { height: var(--phone-step-height); scroll-snap-align: start; scroll-snap-stop: always; }
.reading-mode.phone-mode .book-reader {
  position: fixed;
  inset: 0;
  z-index: 1;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.reading-mode.phone-mode .book-reader > .book-spread {
  position: absolute;
  inset: 0;
  height: 100%;
  padding: var(--phone-frame-top) 10px 52px;
  place-items: start center;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.reading-mode.phone-mode .book-reader > .spread-active { visibility: visible; pointer-events: auto; }
.reading-mode.phone-mode .notebook {
  position: relative;
  display: block;
  width: var(--phone-frame-width);
  height: var(--phone-frame-height);
  max-width: none;
}
.reading-mode.phone-mode .notebook > .page {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--phone-page-width);
  height: var(--phone-page-height);
  min-height: 0;
  max-width: none;
  margin: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(var(--phone-page-scale, 1));
  transform-origin: top left;
}
.reading-mode.phone-mode .notebook > .phone-page-active { visibility: visible; pointer-events: auto; }
.phone-mode .site-header { z-index: 300; }
.reading-mode.phone-mode .notebook > .page { touch-action: pan-y pinch-zoom; }
.reading-mode.phone-mode .book-reader > .phone-turn-spread { visibility: visible; }
.reading-mode.phone-mode .notebook > .phone-turn-destination { visibility: visible; pointer-events: none; }
.reading-mode.phone-mode .notebook > .phone-turn-source { visibility: hidden; }
.phone-turn {
  position: fixed;
  z-index: 210;
  top: var(--phone-frame-top);
  left: 10px;
  width: var(--phone-frame-width);
  height: var(--phone-frame-height);
  perspective: 1400px;
  pointer-events: none;
}
.phone-turn-sheet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: left center;
  box-shadow: 8px 8px 24px rgba(39, 20, 13, 0.25);
  will-change: transform;
}
.phone-turn[data-direction="backward"] .phone-turn-sheet { transform-origin: right center; }
.phone-turn-sheet::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(39, 20, 13, var(--phone-fold-shade, 0)));
}
.phone-turn .turn-surface { visibility: visible; }
.book-reader.is-phone-turning { user-select: none; -webkit-user-select: none; }
.reading-mode.phone-mode .projects-page { gap: 20px; padding: 26px 24px; }
.reading-mode.phone-mode .bookout-card .project-photo { height: 150px; aspect-ratio: auto; }
.reading-mode.phone-mode .research-scrap { margin: 12px 24px 20px; }
.reading-mode.phone-mode .research-scrap img { height: 120px; }
.reading-mode.phone-mode footer { display: none; }
.reading-mode.phone-mode .phone-last-page footer {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  display: flex;
  width: auto;
  margin: 0;
  font-size: 0.9rem;
}
