@font-face {
  font-family: "Patrick Hand";
  src: url("./assets/patrick-hand.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root { color-scheme: light; --paper: #f7f3e9; --ink: #34372f; --pencil: #77776c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100svh; background: var(--paper); color: var(--ink);
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent;
}
body::before {
  content: ""; position: fixed; inset: 0; background-image: url("./assets/paper.svg");
  opacity: .33; pointer-events: none; z-index: 30;
}
button, a { font: inherit; color: inherit; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px dashed #34372f; outline-offset: 6px; }
.signature { padding: 26px 42px 0; font-size: 24px; letter-spacing: -.6px; transform: rotate(-2deg); transform-origin: left; width: max-content; }
.signature-dot { color: #ed7757; font-size: 34px; }
main {
  flex: 1; width: min(1320px, 100%); margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 780px) minmax(280px, 370px); gap: 8px;
  align-items: center; justify-content: center; padding: 0 38px 10px;
}
.toy-wrap { position: relative; width: 100%; }
.toy { position: relative; width: 100%; cursor: pointer; }
canvas { display: block; width: 100%; aspect-ratio: 480 / 520; }
.thought-links { position: absolute; inset: 0; pointer-events: none; }
.thought-link {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%; text-decoration: none; text-align: center; line-height: 1.03;
  color: #293027; pointer-events: auto; cursor: pointer; isolation: isolate;
}
.thought-link::after {
  content: ""; position: absolute; inset: 4px; border: 1.5px dashed currentColor;
  border-radius: 48% 51% 49% 52%; opacity: 0; transition: opacity .15s;
}
.thought-link:hover::after, .thought-link:focus-visible::after { opacity: .65; }
.thought-link:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.spark { position: absolute; width: 32px; fill: none; stroke: #bf9c46; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.spark-one { top: 17%; left: 8%; transform: rotate(-12deg); }
.spark-two { bottom: 16%; right: 6%; width: 22px; stroke: #93a580; transform: rotate(18deg); }
.hero-copy { padding: 0 0 52px; }
h1 { margin: 0; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.12; font-weight: 400; letter-spacing: -.6px; transform: rotate(-1.3deg); }
.underlined { position: relative; display: inline-block; white-space: nowrap; }
.underlined svg { position: absolute; left: -2%; width: 104%; height: 11px; bottom: -8px; fill: none; stroke: #e09c69; stroke-width: 2.5; stroke-linecap: round; }
.hint { font-size: 18px; line-height: 1.55; margin: 30px 0 0; color: var(--pencil); }
.hint span { font-size: 16px; }
.shuffle { display: inline-flex; align-items: center; gap: 9px; background: none; border: none; border-bottom: 1px solid #b2ad9c; padding: 4px 2px; margin-top: 20px; font-size: 17px; cursor: pointer; transform: rotate(-2deg); }
.shuffle span { font-size: 26px; line-height: 1; }
.shuffle:hover { color: #ad6445; }
footer { display: flex; align-items: center; justify-content: flex-end; padding: 0 42px 22px; color: var(--pencil); font-size: 16px; }
.motion { display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 8px 0 8px 8px; cursor: pointer; }
.motion:hover { color: var(--ink); }
.motion svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.motion .play-icon, .motion[aria-pressed="true"] .pause-icon { display: none; }
.motion[aria-pressed="true"] .play-icon { display: block; }
.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; }
.no-script { text-align: center; max-width: 300px; }

/* The page grows out of the selected ball; the content is a normal, scrollable document. */
.page-shell { position: fixed; inset: 0; z-index: 20; overflow: auto; overscroll-behavior: contain; background: var(--page-colour, var(--paper)); }
.page-content { min-height: 100%; padding: 30px 42px 80px; opacity: 0; transform: scale(.96) translateY(16px); transition: opacity .28s ease, transform .45s ease; }
.page-shell.revealed .page-content { opacity: 1; transform: none; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 20px; }
.back-link span { font-size: 32px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.page-signature { font-size: 22px; transform: rotate(-2deg); }
.thought-page { max-width: 980px; margin: 90px auto 0; }
.page-eyebrow, .feature-eyebrow { font-size: 18px; margin: 0 0 14px; letter-spacing: .3px; }
.thought-page h1 { font-weight: 400; font-size: clamp(56px, 7vw, 96px); line-height: 1.05; margin: 0 0 28px; letter-spacing: -2px; transform: rotate(-1deg); transform-origin: left; }
.thought-page h1:focus { outline: none; }
.page-intro { font-size: 30px; line-height: 1.35; max-width: 650px; margin: 0 0 32px; }
.page-prose { font-size: 23px; line-height: 1.5; margin: 0 0 20px; }
.page-note { max-width: 510px; border-top: 1.5px solid #34372f66; padding-top: 22px; }
.page-note h3, .work-placeholder h3 { font-weight: 400; font-size: 27px; margin: 0 0 8px; }
.page-note p, .work-placeholder p { font-size: 21px; line-height: 1.4; margin: 0; }
.about-layout { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 90px; }
.about-doodle { width: 100%; max-width: 270px; transform: rotate(4deg); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ink-link { display: inline-block; font-size: 23px; margin-top: 12px; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.ink-link span { margin-left: 10px; }
.writing-feature { display: flex; justify-content: space-between; align-items: center; gap: 30px; max-width: 780px; border: 2px solid var(--ink); border-radius: 2px 8px 3px 7px; padding: 34px 38px; margin-top: 50px; text-decoration: none; background: #f7f3e930; transform: rotate(-.6deg); box-shadow: 5px 5px 0 #34372f20; }
.writing-feature:hover { background: #f7f3e957; }
.writing-feature h3 { font-size: 48px; font-weight: 400; margin: 9px 0 8px; }
.writing-feature p { font-size: 21px; margin: 0; }
.feature-arrow { font-size: 60px; }
.bookshelf { display: flex; align-items: flex-end; height: 168px; max-width: 480px; border-bottom: 3px solid var(--ink); margin: 50px 0 36px; padding: 0 20px; transform: rotate(-1deg); }
.book { display: block; width: 65px; height: 135px; border: 2px solid var(--ink); border-radius: 4px 6px 1px 2px; background: #ed8067; position: relative; }
.book::before, .book::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; border-top: 1px solid var(--ink); }
.book::after { top: auto; bottom: 12px; }
.book-two { height: 155px; width: 49px; background: #94addb; transform: rotate(2deg); }
.book-three { height: 124px; width: 74px; background: #a6b994; }
.book-four { height: 146px; width: 55px; background: #b5a0d0; transform: rotate(-3deg); }
.book-five { height: 144px; width: 58px; background: #f7f3e9; transform: rotate(-17deg); margin-left: 22px; transform-origin: bottom; }
.work-placeholder { margin-top: 45px; padding: 30px 0; display: flex; align-items: center; gap: 35px; border-top: 1.5px solid #34372f66; max-width: 650px; }
.work-placeholder svg { flex-shrink: 0; width: 110px; height: 125px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-7deg); }
.philosophy-doodle { max-width: 450px; margin: 20px 0 30px; }
.philosophy-doodle svg { width: 100%; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  main { grid-template-columns: minmax(0, 1fr); padding: 0 0 28px; gap: 0; overflow: clip; }
  .toy-wrap { width: min(720px, 125vw); justify-self: center; margin-top: -10px; }
  .hero-copy { text-align: center; padding: 0 24px; margin: -20px 0 10px; }
  h1 { font-size: clamp(34px, 6vw, 46px); }
  .hint { margin-top: 24px; }
  .shuffle { margin-top: 14px; }
  .spark-one { left: 15%; }
  .spark-two { right: 15%; }
}
@media (max-width: 640px) {
  .signature { padding: 20px 23px 0; font-size: 22px; }
  .toy-wrap { width: 125vw; }
  .hero-copy { margin-top: -8px; }
  h1 { font-size: clamp(32px, 8.6vw, 44px); }
  footer { padding: 12px 23px 18px; font-size: 14px; }
  .motion { gap: 5px; }
  .page-content { padding: 20px 24px 60px; }
  .page-signature { font-size: 18px; }
  .back-link { font-size: 17px; }
  .thought-page { margin-top: 60px; }
  .thought-page h1 { font-size: 58px; letter-spacing: -1px; }
  .page-intro { font-size: 25px; }
  .page-prose { font-size: 22px; }
  .about-layout { grid-template-columns: 1fr; gap: 30px; }
  .about-doodle { width: 150px; justify-self: center; }
  .writing-feature { margin-top: 34px; padding: 26px 22px; gap: 12px; }
  .writing-feature h3 { font-size: 38px; }
  .writing-feature p { font-size: 19px; }
  .feature-arrow { font-size: 40px; }
  .bookshelf { padding-left: 3px; }
  .book { width: 48px; }
  .book-five { margin-left: 13px; }
  .work-placeholder { gap: 20px; }
  .work-placeholder svg { width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-content, .thought-link::after { transition: none; }
}

@media (max-width: 360px) {
  .page-signature { display: none; }
}

/* Content keeps the same ink-and-paper feel as the toy. */
.reading-shelf { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 50px 0 20px; padding: 0; }
.book-number { display: block; font-size: 17px; margin: 0 0 12px 4px; opacity: .7; }
.book-cover { min-height: 300px; padding: 28px 22px 20px; border: 2px solid var(--ink); border-radius: 3px 8px 5px 2px; box-shadow: 5px 5px 0 #34372f44; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.book-cover::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 1px solid #34372f44; }
.book-cover h2 { font-size: 27px; font-weight: 400; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.book-cover em { font-style: normal; font-size: 1.18em; }
.cover-mark { align-self: center; font-size: 64px; line-height: 1; margin-top: 24px; }
.cover-coral { background: #ed8067; transform: rotate(-2deg); }
.cover-blue { background: #94addb; transform: rotate(1.5deg); }
.cover-green { background: #a6b994; transform: rotate(-1deg); }
.cover-lilac { background: #b5a0d0; transform: rotate(2deg); }
.content-section { margin-top: 60px; padding-top: 26px; border-top: 1px solid #34372f66; }
.content-section > h2 { font-size: 38px; font-weight: 400; margin: 0 0 24px; }
.strengths-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.strengths-grid h3 { font-size: 25px; font-weight: 400; margin: 0 0 10px; }
.strengths-grid p { font-size: 21px; line-height: 1.4; margin: 0; }
.contact-links { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 40px; font-size: 22px; }
.contact-links a { text-underline-offset: 6px; text-decoration-thickness: 1px; }
.writing-intro, .philosophy-intro { max-width: 700px; }
.hot-takes { margin: 42px 0 52px; }
.hot-takes > h2 { margin: 0 0 8px; font-size: 38px; font-weight: 400; transform: rotate(-1deg); }
.hot-takes-intro { margin: 0 0 22px; font-size: 20px; }
.hot-takes ol { list-style: none; counter-reset: hot-take; margin: 0; padding: 0; max-width: 850px; }
.hot-takes li { counter-increment: hot-take; position: relative; padding: 22px 24px 22px 58px; margin-bottom: 14px; border: 1.5px solid #34372f80; border-radius: 4px 9px 3px 7px; background: #f7f3e925; }
.hot-takes li::before { content: counter(hot-take, decimal-leading-zero); position: absolute; left: 21px; top: 26px; font-size: 17px; opacity: .65; }
.hot-takes h3 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 400; }
.work-stories { margin: 48px 0 22px; }
.selected-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 54px; margin: 48px 0 28px; }
.project-entry { padding: 25px 0 34px; border-top: 1.5px solid #34372f66; }
.project-entry .project-label { font-size: 17px; margin: 0 0 14px; opacity: .75; }
.project-entry h2 { font-size: 38px; font-weight: 400; line-height: 1.1; margin: 0 0 18px; }
.project-entry p { font-size: 22px; line-height: 1.4; margin: 0 0 18px; }
.project-link { display: inline-block; font-size: 22px; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.project-entry .project-context { margin: 26px 0 0; font-size: 18px; opacity: .75; }
.project-fun-fact { margin-top: 28px; padding: 20px 0 0; border-top: 1px dashed #34372f66; }
.project-fun-fact h3 { font-size: 25px; font-weight: 400; margin: 0 0 12px; }
.project-fun-fact p { font-size: 20px; }
.work-together-contact { padding: 30px 0; border-top: 1.5px solid #34372f66; }
.work-together-contact h2 { font-size: 38px; font-weight: 400; margin: 0 0 12px; }
.work-together-contact p { font-size: 23px; margin: 0; }
.project-photo-placeholder { margin: 22px 0 0; padding: 20px; border: 1.5px dashed #34372f80; border-radius: 4px 8px 3px 6px; background: #f7f3e925; text-align: center; }
.project-photo-placeholder svg { width: 150px; max-width: 100%; height: 92px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-2deg); }
.project-photo-placeholder figcaption { font-size: 19px; margin-top: 4px; }
.career-context { margin: 4px 0 28px; border-top: 1px solid #34372f66; border-bottom: 1px solid #34372f66; }
.career-context > summary { padding: 20px 0; cursor: pointer; font-size: 25px; }
.career-context > summary:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; }
.career-context .work-stories { margin-top: 8px; }
.work-story { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px; padding: 36px 0 40px; border-top: 1.5px solid #34372f66; }
.work-meta { display: flex; flex-direction: column; gap: 5px; padding-top: 6px; font-size: 22px; }
.work-meta span + span { font-size: 17px; opacity: .8; }
.work-story h2 { font-size: 36px; font-weight: 400; line-height: 1.15; margin: 0 0 18px; }
.work-story-body > p { font-size: 22px; line-height: 1.45; margin: 0 0 16px; }
.work-story-body .work-result { font-size: 34px; line-height: 1.2; margin-bottom: 22px; }
.work-result span { display: block; font-size: 18px; margin-top: 6px; }
.principles { list-style: none; counter-reset: principle; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 60px; margin: 48px 0 0; padding: 0; }
.principles li { counter-increment: principle; padding: 28px 0 30px 38px; border-top: 1px solid #34372f66; position: relative; }
.principles li::before { content: counter(principle, decimal-leading-zero); position: absolute; left: 0; top: 34px; font-size: 17px; opacity: .65; }
.principles h2 { font-size: 28px; font-weight: 400; line-height: 1.2; margin: 0 0 12px; }
.principles p { font-size: 21px; line-height: 1.4; margin: 0; }
.philosophy-closing { border-top: 1px solid #34372f66; margin-top: 20px; padding-top: 30px; }
.philosophy-closing > p { font-size: 36px; line-height: 1.15; transform: rotate(-1deg); }
@media (max-width: 800px) {
  .selected-work { grid-template-columns: 1fr; }
  .reading-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; max-width: 570px; }
  .book-cover { min-height: 285px; }
  .strengths-grid { grid-template-columns: 1fr; gap: 28px; }
  .work-story { grid-template-columns: 1fr; gap: 18px; }
  .work-meta { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .reading-shelf { gap: 26px 16px; }
  .book-cover { min-height: 245px; padding: 22px 13px 18px; }
  .book-cover h2 { font-size: 23px; }
  .book-cover em { font-size: 1.08em; }
  .cover-mark { font-size: 50px; }
}
