:root {
  --frame-width: 1512;
  --page-width: min(100vw, 1512px);
  --scale: calc(var(--page-width) / var(--frame-width));
  --sky: #bee6ff;
  --ink: #262626;
}

* {
  box-sizing: border-box;
}

html {
  background: #1f1f1f;
  scroll-behavior: smooth;
}

html.is-route-loading {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sky);
  font-family: "Apfel Grotezk", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

body > main,
body > header {
  transition:
    opacity 180ms ease-in,
    transform 180ms cubic-bezier(0.4, 0, 1, 1);
}

.is-route-swapping body > main,
.is-route-swapping body > header {
  animation: none;
  opacity: 0;
  transform: translateY(calc(8 * var(--scale)));
  transition: none;
}

.is-route-exiting body > main,
.is-route-exiting body > header {
  opacity: 0;
  transform: translateY(calc(-6 * var(--scale)));
}

.is-route-entering body > main,
.is-route-entering body > header {
  animation: route-content-in 260ms cubic-bezier(0.17, 0.84, 0.28, 1) both;
}

@keyframes route-content-in {
  from {
    opacity: 0;
    transform: translateY(calc(8 * var(--scale)));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.figma-page {
  background: var(--sky);
  min-height: calc(4700 * var(--scale));
  margin: 0 auto;
  overflow: visible;
  position: relative;
  width: var(--page-width);
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: calc(150 * var(--scale));
  position: absolute;
  top: calc(60 * var(--scale));
  width: calc(1227 * var(--scale));
  z-index: 5;
}

.logo,
.logo img {
  height: calc(64 * var(--scale));
  width: calc(64 * var(--scale));
}

.nav-links {
  align-items: center;
  display: flex;
  gap: calc(100 * var(--scale));
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(24 * var(--scale));
  font-weight: 700;
  letter-spacing: calc(-0.24 * var(--scale));
  line-height: 1.1;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
}

.scribble-ring {
  bottom: calc(-17 * var(--scale));
  fill: none;
  height: calc(54 * var(--scale));
  left: 50%;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  stroke: currentColor;
  stroke-dasharray: 430;
  stroke-dashoffset: 430;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: calc(3 * var(--scale));
  transform: translateX(-50%) rotate(-3deg);
  transition:
    opacity 80ms linear,
    stroke-dashoffset 520ms cubic-bezier(0.17, 0.84, 0.28, 1);
  width: calc(122% + 34 * var(--scale));
  z-index: -1;
}

.nav-links a:hover .scribble-ring {
  opacity: 1;
  stroke-dashoffset: 0;
}

.ring-two {
  bottom: calc(-15 * var(--scale));
  transform: translateX(-50%) rotate(3deg);
  width: calc(118% + 32 * var(--scale));
}

.ring-three {
  bottom: calc(-16 * var(--scale));
  transform: translateX(-50%) rotate(-1deg);
  width: calc(125% + 30 * var(--scale));
}

.nav-say-hi img {
  height: calc(68 * var(--scale));
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(-72 * var(--scale));
  transform: translate(-50%, calc(8 * var(--scale))) rotate(8deg) scale(0.82);
  transition: opacity 160ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
  width: calc(68 * var(--scale));
  z-index: 2;
}

.nav-say-hi:hover img {
  animation: phone-ring 520ms steps(2, end) infinite;
  opacity: 1;
  transform: translate(-50%, 0) rotate(8deg) scale(1);
}

@keyframes phone-ring {
  0%,
  100% {
    transform: translate(-50%, 0) rotate(8deg) scale(1);
  }

  20% {
    transform: translate(calc(-50% - 2 * var(--scale)), calc(-1 * var(--scale))) rotate(-8deg) scale(1.04);
  }

  40% {
    transform: translate(calc(-50% + 2 * var(--scale)), calc(1 * var(--scale))) rotate(13deg) scale(1.04);
  }

  60% {
    transform: translate(calc(-50% - 1 * var(--scale)), 0) rotate(-5deg) scale(1.03);
  }

  80% {
    transform: translate(calc(-50% + 1 * var(--scale)), calc(-1 * var(--scale))) rotate(11deg) scale(1.04);
  }
}

.cloud {
  pointer-events: none;
  position: absolute;
  user-select: none;
}

.cloud-hero {
  height: calc(395 * var(--scale));
  left: calc(542 * var(--scale));
  opacity: 0.4;
  top: calc(169 * var(--scale));
  width: calc(703 * var(--scale));
  z-index: 0;
}

.hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: calc(150 * var(--scale));
  position: absolute;
  top: calc(238 * var(--scale));
  width: calc(1227 * var(--scale));
  z-index: 2;
}

.hero-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: calc(40 * var(--scale));
  margin-right: calc(-64 * var(--scale));
}

.hero-copy h1 {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(120 * var(--scale));
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
}

.wiggle-title {
  position: relative;
}

.title-char {
  display: inline-block;
  position: relative;
  transform-origin: 50% 78%;
  transition:
    color 140ms ease,
    text-shadow 140ms ease,
    transform 210ms cubic-bezier(0.2, 0.9, 0.2, 1.25);
}

.title-char:hover {
  text-shadow: calc(3 * var(--scale)) calc(4 * var(--scale)) 0 rgba(255, 255, 255, 0.7);
  transform:
    translateY(calc(var(--char-lift, -10px) * var(--scale)))
    rotate(var(--char-tilt, -4deg))
    scale(1.025);
}

.title-space {
  display: inline-block;
  width: 0.28em;
}

.hero-copy p {
  font-size: calc(32 * var(--scale));
  letter-spacing: calc(-0.32 * var(--scale));
  line-height: 1.2;
  margin: 0;
  width: calc(662 * var(--scale));
}

.paint-window {
  --paint-scale: var(--scale);
  background: #c7c7c7;
  border-color: #f4f4f4 #404040 #404040 #f4f4f4;
  border-style: solid;
  border-width: calc(3 * var(--paint-scale));
  box-shadow:
    calc(7 * var(--paint-scale)) calc(8 * var(--paint-scale)) 0 rgba(0, 0, 0, 0.18),
    0 calc(20 * var(--paint-scale)) calc(40 * var(--paint-scale)) rgba(45, 81, 147, 0.22);
  height: calc(633 * var(--scale));
  padding: calc(4 * var(--paint-scale));
  position: relative;
  transform: rotate(1.41deg);
  transform-origin: center;
  width: calc(590 * var(--scale));
}

.paint-titlebar {
  align-items: center;
  background: linear-gradient(90deg, #0026a8 0%, #0b5dff 74%, #55a7ff 100%);
  color: white;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: calc(17 * var(--paint-scale));
  font-weight: 700;
  height: calc(30 * var(--paint-scale));
  justify-content: space-between;
  line-height: 1;
  padding: 0 calc(4 * var(--paint-scale));
}

.paint-title,
.paint-window-controls {
  align-items: center;
  display: flex;
}

.paint-title {
  gap: calc(7 * var(--paint-scale));
}

.paint-app-icon {
  background:
    radial-gradient(circle at 60% 35%, #ffef7a 0 16%, transparent 17%),
    linear-gradient(140deg, #d8b343 0 43%, #1c7bd8 44% 100%);
  border: calc(1 * var(--paint-scale)) solid #16347c;
  display: inline-block;
  height: calc(17 * var(--paint-scale));
  width: calc(17 * var(--paint-scale));
}

.paint-window-controls {
  gap: calc(3 * var(--paint-scale));
}

.paint-window-controls span {
  align-items: center;
  background: linear-gradient(#77b9ff, #1058d6 56%, #003eb0);
  border-color: #cae5ff #003080 #003080 #cae5ff;
  border-style: solid;
  border-width: calc(2 * var(--paint-scale));
  color: white;
  display: flex;
  font-size: calc(15 * var(--paint-scale));
  height: calc(23 * var(--paint-scale));
  justify-content: center;
  line-height: 1;
  text-shadow: calc(1 * var(--paint-scale)) calc(1 * var(--paint-scale)) 0 #003080;
  width: calc(23 * var(--paint-scale));
}

.paint-window-controls span:last-child {
  background: linear-gradient(#ffb188, #e34a24 58%, #a81e11);
  border-color: #ffd9c8 #821204 #821204 #ffd9c8;
}

.paint-window-controls span:hover {
  filter: brightness(1.18);
  outline: calc(1 * var(--paint-scale)) solid rgba(255, 255, 255, 0.8);
}

.paint-menu {
  align-items: center;
  background: #d8d8d8;
  border-bottom: calc(1 * var(--paint-scale)) solid #8a8a8a;
  display: flex;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: calc(14 * var(--paint-scale));
  gap: calc(18 * var(--paint-scale));
  height: calc(27 * var(--paint-scale));
  padding: 0 calc(9 * var(--paint-scale));
}

.paint-menu span {
  align-items: center;
  display: flex;
  height: calc(23 * var(--paint-scale));
  padding: 0 calc(5 * var(--paint-scale));
}

.paint-menu span:hover {
  background: #b8c7ef;
  color: #111;
  outline: calc(1 * var(--paint-scale)) solid #316ac5;
}

.paint-workspace {
  display: grid;
  gap: calc(6 * var(--paint-scale));
  grid-template-columns: calc(58 * var(--paint-scale)) 1fr;
  height: calc(420 * var(--paint-scale));
  padding: calc(7 * var(--paint-scale)) calc(6 * var(--paint-scale)) calc(3 * var(--paint-scale));
}

.paint-tools {
  align-content: start;
  display: grid;
  gap: calc(6 * var(--paint-scale));
  grid-template-columns: calc(42 * var(--paint-scale));
  justify-content: center;
}

.tool-button,
.swatch,
.clear-button {
  appearance: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.tool-button {
  align-items: center;
  background: #c7c7c7;
  border-color: #ffffff #777777 #777777 #ffffff;
  border-style: solid;
  border-width: calc(2 * var(--paint-scale));
  color: #101010;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: calc(28 * var(--paint-scale));
  font-weight: 700;
  height: calc(42 * var(--paint-scale));
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: calc(42 * var(--paint-scale));
}

.tool-button.is-active,
.tool-button:active {
  background: #bdbdbd;
  border-color: #707070 #ffffff #ffffff #707070;
}

.active-colors {
  height: calc(61 * var(--paint-scale));
  margin-top: calc(28 * var(--paint-scale));
  position: relative;
  width: calc(52 * var(--paint-scale));
}

.primary-color,
.secondary-color {
  border-color: #707070 #ffffff #ffffff #707070;
  border-style: solid;
  border-width: calc(2 * var(--paint-scale));
  position: absolute;
}

.primary-color {
  background: #ffff00;
  height: calc(31 * var(--paint-scale));
  left: calc(5 * var(--paint-scale));
  top: calc(5 * var(--paint-scale));
  width: calc(31 * var(--paint-scale));
  z-index: 2;
}

.secondary-color {
  background: #fff;
  height: calc(31 * var(--paint-scale));
  right: calc(5 * var(--paint-scale));
  top: calc(22 * var(--paint-scale));
  width: calc(31 * var(--paint-scale));
}

.paint-viewport {
  background:
    linear-gradient(45deg, #bfbfbf 25%, transparent 25%),
    linear-gradient(-45deg, #bfbfbf 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #bfbfbf 75%),
    linear-gradient(-45deg, transparent 75%, #bfbfbf 75%),
    #fff;
  background-position: 0 0, 0 calc(10 * var(--paint-scale)), calc(10 * var(--paint-scale)) calc(-10 * var(--paint-scale)), calc(-10 * var(--paint-scale)) 0;
  background-size: calc(20 * var(--paint-scale)) calc(20 * var(--paint-scale));
  border-color: #777 #fff #fff #777;
  border-style: solid;
  border-width: calc(2 * var(--paint-scale));
  height: calc(404 * var(--paint-scale));
  overflow: hidden;
  position: relative;
}

.paint-photo {
  background: transparent;
  height: calc(362 * var(--paint-scale));
  left: calc(16 * var(--paint-scale));
  overflow: hidden;
  position: absolute;
  top: calc(20 * var(--paint-scale));
  width: calc(454 * var(--paint-scale));
  z-index: 1;
}

.photo-selection {
  height: 100%;
  inset: 0;
  min-height: calc(150 * var(--paint-scale));
  min-width: calc(180 * var(--paint-scale));
  overflow: hidden;
  pointer-events: auto;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.photo-selection img {
  height: 168%;
  left: -8%;
  object-fit: cover;
  position: absolute;
  top: -32%;
  width: 116%;
}

#paint-canvas {
  cursor: crosshair;
  height: 100%;
  inset: 0;
  pointer-events: auto;
  position: absolute;
  touch-action: none;
  width: 100%;
  z-index: 3;
}

#paint-canvas[data-active-tool="brush"] {
  cursor: url("./assets/pen-cursor.svg") 8 27, crosshair;
}

.paint-palette {
  align-items: center;
  display: grid;
  gap: calc(5 * var(--paint-scale));
  grid-template-columns: calc(47 * var(--paint-scale)) 1fr auto;
  height: calc(62 * var(--paint-scale));
  padding: 0 calc(7 * var(--paint-scale));
}

.selected-color {
  background: #fff;
  border-color: #707070 #ffffff #ffffff #707070;
  border-style: solid;
  border-width: calc(2 * var(--paint-scale));
  height: calc(42 * var(--paint-scale));
  position: relative;
  width: calc(42 * var(--paint-scale));
}

.selected-color span {
  background: #ffff00;
  border: calc(1 * var(--paint-scale)) solid #101010;
  height: calc(24 * var(--paint-scale));
  left: calc(4 * var(--paint-scale));
  position: absolute;
  top: calc(4 * var(--paint-scale));
  width: calc(24 * var(--paint-scale));
}

.swatches {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, calc(20 * var(--paint-scale)));
  justify-content: start;
}

.swatch {
  background: var(--swatch);
  border-color: #ffffff #777777 #777777 #ffffff;
  border-style: solid;
  border-width: calc(1 * var(--paint-scale));
  height: calc(20 * var(--paint-scale));
  padding: 0;
  width: calc(20 * var(--paint-scale));
}

.swatch.is-active {
  outline: calc(2 * var(--paint-scale)) solid #111;
  outline-offset: calc(1 * var(--paint-scale));
}

.clear-button {
  background: #d8d8d8;
  border-color: #ffffff #777777 #777777 #ffffff;
  border-style: solid;
  border-width: calc(2 * var(--paint-scale));
  font-family: Arial, sans-serif;
  font-size: calc(13 * var(--paint-scale));
  padding: calc(4 * var(--paint-scale)) calc(11 * var(--paint-scale));
}

.clear-button:active {
  border-color: #707070 #ffffff #ffffff #707070;
}

.paint-status {
  align-items: center;
  background: #d8d8d8;
  border-color: #777 #fff #fff #777;
  border-style: solid;
  border-width: calc(1 * var(--paint-scale));
  display: flex;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: calc(12 * var(--paint-scale));
  height: calc(29 * var(--paint-scale));
  margin: 0 calc(6 * var(--paint-scale)) calc(5 * var(--paint-scale));
  padding: 0 calc(6 * var(--paint-scale));
}

.work-section {
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.wet-floor {
  height: calc(164 * var(--scale));
  left: 50%;
  overflow: hidden;
  position: absolute;
  top: calc(991 * var(--scale));
  transform: translateX(-50%);
  width: calc(182 * var(--scale));
  z-index: 3;
}

.wet-floor img {
  height: 628.22%;
  left: 0;
  max-width: none;
  position: absolute;
  top: -330.67%;
  width: 319.11%;
}

.cloud-left {
  height: calc(395 * var(--scale));
  left: calc(((var(--page-width) - 100vw) / 2) - (140 * var(--scale)));
  top: calc(1180 * var(--scale));
  width: calc(703 * var(--scale));
}

.cloud-right {
  height: calc(395 * var(--scale));
  left: auto;
  right: calc(((var(--page-width) - 100vw) / 2) - (150 * var(--scale)));
  top: calc(3360 * var(--scale));
  width: calc(703 * var(--scale));
}

.section-intro {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: calc(33 * var(--scale));
  left: 50%;
  position: absolute;
  text-align: center;
  top: calc(1180 * var(--scale));
  transform: translateX(-50%);
  z-index: 4;
}

.section-intro h2 {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(48 * var(--scale));
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
}

.section-intro p {
  font-size: calc(28 * var(--scale));
  letter-spacing: calc(-0.28 * var(--scale));
  line-height: 1.16;
  margin: 0;
  width: calc(780 * var(--scale));
}

.entries {
  display: grid;
  gap: calc(138 * var(--scale)) calc(47 * var(--scale));
  grid-template-columns: repeat(2, calc(630 * var(--scale)));
  left: calc(100 * var(--scale));
  position: absolute;
  top: calc(1509 * var(--scale));
  width: calc(1307 * var(--scale));
}

.entry {
  position: relative;
  text-align: center;
  width: calc(630 * var(--scale));
}

.entry a {
  display: block;
}

.entry-image {
  background: #fff;
  height: calc(501 * var(--scale));
  margin: 0 auto calc(34 * var(--scale));
  position: relative;
  transform: rotate(-0.72deg);
  width: calc(630 * var(--scale));
}

.entry:nth-child(even) .entry-image {
  transform: rotate(0.72deg);
}

.entry-image::before,
.entry-image::after {
  content: "";
  position: absolute;
}

.entry-image::before {
  background:
    linear-gradient(90deg, rgba(38, 38, 38, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(38, 38, 38, 0.08) 1px, transparent 1px);
  background-size: calc(34 * var(--scale)) calc(34 * var(--scale));
  inset: calc(28 * var(--scale));
}

.entry-image::after {
  background: var(--project-accent, #ffd000);
  border: calc(3 * var(--scale)) solid var(--ink);
  height: calc(74 * var(--scale));
  right: calc(-18 * var(--scale));
  top: calc(-24 * var(--scale));
  transform: rotate(7deg);
  width: calc(150 * var(--scale));
}

.project-clubfolio {
  --project-accent: #61d394;
}

.project-body-battery {
  --project-accent: #ffd166;
}

.project-soberscore {
  --project-accent: #ff7a90;
}

.project-walktoscroll {
  --project-accent: #8fd3ff;
}

.project-fave {
  --project-accent: #ff9f43;
  grid-column: 1 / span 2;
  justify-self: center;
}

.entry-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--scale));
  margin: 0 auto;
  width: calc(481 * var(--scale));
}

.entry-count {
  background: #fff;
  border: calc(2 * var(--scale)) solid var(--ink);
  display: inline-block;
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(22 * var(--scale));
  font-weight: 700;
  line-height: 1;
  padding: calc(8 * var(--scale)) calc(13 * var(--scale));
  transform: rotate(-2deg);
}

.entry h3 {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(32 * var(--scale));
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  width: 100%;
}

.entry p {
  font-size: calc(23.357 * var(--scale));
  line-height: 1.12;
  margin: 0;
  width: calc(468 * var(--scale));
}

.head-sticker {
  height: calc(152 * var(--scale));
  left: calc(22 * var(--scale));
  position: absolute;
  top: calc(1486 * var(--scale));
  transform: rotate(12.57deg);
  width: calc(134 * var(--scale));
  z-index: 4;
}

.phone-sticker {
  height: calc(234 * var(--scale));
  left: calc(1242 * var(--scale));
  position: absolute;
  top: calc(1735 * var(--scale));
  transform: rotate(30deg);
  width: calc(234 * var(--scale));
  z-index: 4;
}

.face-sticker {
  height: calc(141 * var(--scale));
  left: calc(25 * var(--scale));
  position: absolute;
  top: calc(3885 * var(--scale));
  width: calc(86 * var(--scale));
  z-index: 4;
}

.hill {
  bottom: calc((-217 * var(--scale)) - max(0px, ((100vw - var(--page-width)) * 0.12)));
  height: calc(1024 * var(--scale));
  left: 50%;
  object-fit: cover;
  position: absolute;
  transform: translateX(-50%);
  width: max(calc(1536 * var(--scale)), 100vw);
  z-index: 1;
}

.about-section {
  display: none;
}

.footer {
  bottom: calc(520 * var(--scale));
  left: 50%;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 4;
}

.footer img {
  display: none;
}

.footer a {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(36 * var(--scale));
  font-weight: 700;
}

.entry-page {
  background: var(--sky);
  min-height: 100vh;
  overflow-x: hidden;
}

.entry-back,
.entry-detail-grid {
  animation: content-soft-in 520ms cubic-bezier(0.17, 0.84, 0.28, 1) both;
}

.entry-back {
  animation-delay: 40ms;
}

.entry-detail-grid {
  animation-delay: 80ms;
}

@keyframes content-soft-in {
  from {
    opacity: 0;
    transform: translateY(calc(14 * var(--scale)));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry-page .site-header {
  left: calc(50% - 613.5 * var(--scale));
  position: absolute;
}

.entry-detail {
  margin: 0 auto;
  max-width: 1512px;
  min-height: 100vh;
  padding: calc(86 * var(--scale)) calc(150 * var(--scale)) calc(220 * var(--scale));
  position: relative;
  width: var(--page-width);
}

.entry-back {
  display: inline-block;
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(24 * var(--scale));
  font-weight: 700;
  margin-top: calc(45 * var(--scale));
  position: relative;
  z-index: 3;
}

.entry-back::after {
  background: currentColor;
  bottom: calc(-4 * var(--scale));
  content: "";
  height: calc(2 * var(--scale));
  left: 0;
  position: absolute;
  transform: rotate(-1deg);
  width: 100%;
}

.entry-detail-grid {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: calc(60 * var(--scale));
  padding-top: calc(45 * var(--scale));
  position: relative;
  text-align: center;
  z-index: 2;
}

.entry-detail-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: calc(740 * var(--scale));
}

.entry-detail-copy h1 {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(76 * var(--scale));
  font-weight: 700;
  line-height: 1.06;
  margin: 0 0 calc(40 * var(--scale));
}

.entry-detail-copy p,
.entry-body p {
  font-size: calc(28 * var(--scale));
  letter-spacing: calc(-0.28 * var(--scale));
  line-height: 1.25;
  margin: 0 0 calc(26 * var(--scale));
}

.entry-detail-copy .lede {
  font-size: calc(24 * var(--scale));
  line-height: 1.18;
  margin: 0;
  max-width: calc(480 * var(--scale));
}

.entry-visual {
  background: #fff;
  height: calc(501 * var(--scale));
  position: relative;
  width: calc(630 * var(--scale));
}

.entry-visual.sober {
  transform: none;
}

.entry-body {
  max-width: calc(720 * var(--scale));
  text-align: left;
}

.entry-note-stack {
  display: grid;
  gap: calc(22 * var(--scale));
  margin-top: calc(48 * var(--scale));
}

.entry-note {
  border-left: calc(4 * var(--scale)) solid var(--ink);
  font-size: calc(24 * var(--scale));
  line-height: 1.22;
  padding-left: calc(22 * var(--scale));
}

.project-page .entry-detail {
  padding-bottom: calc(160 * var(--scale));
}

.project-hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: calc(32 * var(--scale));
  padding-top: calc(48 * var(--scale));
  position: relative;
  text-align: center;
  z-index: 2;
}

.project-kicker {
  background: #fff;
  border: calc(2 * var(--scale)) solid var(--ink);
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(24 * var(--scale));
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: calc(8 * var(--scale)) calc(14 * var(--scale));
  transform: rotate(-2deg);
}

.project-hero h1 {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(76 * var(--scale));
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
  max-width: calc(880 * var(--scale));
}

.project-hero p:not(.project-kicker) {
  font-size: calc(28 * var(--scale));
  letter-spacing: calc(-0.28 * var(--scale));
  line-height: 1.24;
  margin: 0;
  max-width: calc(820 * var(--scale));
}

.project-visual {
  background: #fff;
  height: calc(520 * var(--scale));
  margin-top: calc(24 * var(--scale));
  position: relative;
  width: calc(820 * var(--scale));
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
}

.project-visual::before {
  background:
    linear-gradient(90deg, rgba(38, 38, 38, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(38, 38, 38, 0.08) 1px, transparent 1px);
  background-size: calc(40 * var(--scale)) calc(40 * var(--scale));
  inset: calc(34 * var(--scale));
}

.project-visual::after {
  background: var(--project-accent, #ffd000);
  border: calc(3 * var(--scale)) solid var(--ink);
  height: calc(88 * var(--scale));
  right: calc(-24 * var(--scale));
  top: calc(-28 * var(--scale));
  transform: rotate(7deg);
  width: calc(176 * var(--scale));
}

.project-facts {
  display: grid;
  gap: calc(18 * var(--scale));
  grid-template-columns: repeat(3, 1fr);
  margin: calc(62 * var(--scale)) auto 0;
  max-width: calc(920 * var(--scale));
  position: relative;
  z-index: 2;
}

.project-facts p {
  background: #fff;
  border: calc(2 * var(--scale)) solid var(--ink);
  font-size: calc(22 * var(--scale));
  line-height: 1.15;
  margin: 0;
  padding: calc(18 * var(--scale));
  text-align: center;
}

.project-notes {
  margin: calc(92 * var(--scale)) auto 0;
  max-width: calc(1040 * var(--scale));
  position: relative;
  z-index: 2;
}

.project-notes h2 {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(42 * var(--scale));
  line-height: 1.1;
  margin: 0 0 calc(30 * var(--scale));
  text-align: center;
}

.note-grid {
  display: grid;
  gap: calc(24 * var(--scale));
  grid-template-columns: repeat(3, 1fr);
}

.note-card {
  background: #fff;
  border: calc(2 * var(--scale)) solid var(--ink);
  display: flex;
  flex-direction: column;
  min-height: calc(430 * var(--scale));
  overflow: hidden;
  transform: rotate(-0.45deg);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.note-card:nth-child(even) {
  transform: rotate(0.55deg);
}

.note-card:hover {
  box-shadow: calc(8 * var(--scale)) calc(9 * var(--scale)) 0 rgba(0, 0, 0, 0.12);
  transform: translateY(calc(-5 * var(--scale))) rotate(0deg);
}

.note-thumb {
  background:
    linear-gradient(90deg, rgba(38, 38, 38, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(38, 38, 38, 0.08) 1px, transparent 1px),
    var(--project-accent, #ffd000);
  background-size: calc(28 * var(--scale)) calc(28 * var(--scale));
  border-bottom: calc(2 * var(--scale)) solid var(--ink);
  height: calc(176 * var(--scale));
  position: relative;
}

.note-thumb::after {
  background: #fff;
  border: calc(2 * var(--scale)) solid var(--ink);
  content: "";
  height: calc(54 * var(--scale));
  position: absolute;
  right: calc(18 * var(--scale));
  top: calc(18 * var(--scale));
  transform: rotate(7deg);
  width: calc(92 * var(--scale));
}

.note-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(14 * var(--scale));
  padding: calc(22 * var(--scale));
}

.note-label {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(22 * var(--scale));
  font-weight: 700;
  line-height: 1;
}

.note-card strong {
  font-size: calc(28 * var(--scale));
  font-weight: 400;
  line-height: 1.18;
}

.note-card p {
  font-size: calc(19 * var(--scale));
  line-height: 1.22;
  margin: 0;
}

.note-cta {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(22 * var(--scale));
  font-weight: 700;
  margin-top: auto;
}

.note-detail {
  padding-bottom: calc(180 * var(--scale));
}

.note-hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: calc(28 * var(--scale));
  padding-top: calc(56 * var(--scale));
  position: relative;
  text-align: center;
  z-index: 2;
}

.note-parent {
  background: #fff;
  border: calc(2 * var(--scale)) solid var(--ink);
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(24 * var(--scale));
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: calc(8 * var(--scale)) calc(14 * var(--scale));
  transform: rotate(-2deg);
}

.note-hero h1 {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(78 * var(--scale));
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
  max-width: calc(920 * var(--scale));
}

.note-hero p:not(.note-parent) {
  font-size: calc(26 * var(--scale));
  letter-spacing: calc(-0.26 * var(--scale));
  line-height: 1.22;
  margin: 0;
  max-width: calc(680 * var(--scale));
}

.note-wide-visual {
  background: #fff;
  height: calc(520 * var(--scale));
  margin: calc(72 * var(--scale)) auto 0;
  position: relative;
  width: calc(900 * var(--scale));
  z-index: 2;
}

.note-wide-visual::before,
.note-wide-visual::after {
  content: "";
  position: absolute;
}

.note-wide-visual::before {
  background:
    linear-gradient(90deg, rgba(38, 38, 38, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(38, 38, 38, 0.08) 1px, transparent 1px);
  background-size: calc(40 * var(--scale)) calc(40 * var(--scale));
  inset: calc(36 * var(--scale));
}

.note-wide-visual::after {
  background: #ffd000;
  border: calc(3 * var(--scale)) solid var(--ink);
  height: calc(88 * var(--scale));
  right: calc(-24 * var(--scale));
  top: calc(-28 * var(--scale));
  transform: rotate(7deg);
  width: calc(176 * var(--scale));
}

.note-body {
  margin: calc(76 * var(--scale)) auto 0;
  max-width: calc(820 * var(--scale));
  position: relative;
  z-index: 2;
}

.note-body > p {
  font-size: calc(31 * var(--scale));
  letter-spacing: calc(-0.31 * var(--scale));
  line-height: 1.24;
  margin: 0;
}

.note-skeleton-slots {
  display: grid;
  gap: calc(28 * var(--scale));
  margin-top: calc(58 * var(--scale));
}

.note-skeleton-block {
  background: #fff;
  border: calc(2 * var(--scale)) solid var(--ink);
  padding: calc(28 * var(--scale));
}

.note-skeleton-block span {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(24 * var(--scale));
  font-weight: 700;
}

.note-skeleton-block h2 {
  font-family: "HanziPen SC", "Comic Sans MS", "Comic Sans", cursive;
  font-size: calc(42 * var(--scale));
  line-height: 1.08;
  margin: calc(12 * var(--scale)) 0 calc(18 * var(--scale));
}

.note-skeleton-block p {
  font-size: calc(22 * var(--scale));
  line-height: 1.25;
  margin: 0;
}

.detail-cloud-one {
  height: calc(395 * var(--scale));
  left: calc(870 * var(--scale));
  opacity: 0.38;
  top: calc(66 * var(--scale));
  width: calc(703 * var(--scale));
  z-index: 0;
}

.detail-cloud-two {
  height: calc(395 * var(--scale));
  left: calc(-286 * var(--scale));
  opacity: 0.55;
  top: calc(760 * var(--scale));
  width: calc(703 * var(--scale));
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  body > main,
  body > header,
  .entry-back,
  .entry-detail-grid,
  .title-char {
    animation: none;
    transition: none;
  }

  .title-char:hover {
    transform: none;
  }
}

@media (max-width: 720px) {
  :root {
    --page-width: 100vw;
  }

  .figma-page {
    min-height: 4200px;
  }

  .nav-links {
    display: none;
  }

  .site-header {
    left: 30px;
    top: 30px;
    width: calc(100% - 60px);
  }

  .logo,
  .logo img {
    height: 42px;
    width: 42px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 34px;
    left: 30px;
    top: 132px;
    width: calc(100% - 60px);
  }

  .hero-copy {
    gap: 24px;
    margin: 0;
  }

  .hero-copy h1 {
    font-size: 74px;
    white-space: normal;
  }

  .hero-copy p {
    font-size: 18px;
    width: auto;
  }

  .paint-window {
    height: auto;
    max-width: 100%;
    width: 100%;
  }

  .paint-window::before {
    content: "";
    display: block;
    padding-top: 103.09%;
  }

  .paint-photo {
    height: 62.88%;
    left: 16.28%;
    top: 13.59%;
    width: 77.85%;
  }

  .work-section {
    top: 820px;
  }

  .wet-floor {
    height: 82px;
    top: 40px;
    width: 91px;
  }

  .section-intro {
    gap: 22px;
    top: 168px;
    width: calc(100% - 44px);
  }

  .section-intro h2 {
    font-size: 34px;
    white-space: normal;
  }

  .section-intro p {
    font-size: 18px;
    width: 100%;
  }

  .section-intro br {
    display: none;
  }

  .cloud-left {
    height: 220px;
    left: -180px;
    top: 110px;
    width: 390px;
  }

  .cloud-right {
    height: 220px;
    left: auto;
    right: -200px;
    top: 1110px;
    width: 390px;
  }

  .entries {
    display: block;
    left: 30px;
    top: 360px;
    width: calc(100% - 60px);
  }

  .entry {
    left: 0;
    position: relative;
    top: 0;
    width: 100%;
  }

  .entry + .entry {
    margin-top: 78px;
  }

  .project-fave {
    grid-column: auto;
  }

  .entry-image {
    height: auto;
    margin-bottom: 24px;
    padding-top: 79.52%;
    width: 100%;
  }

  .entry-copy {
    gap: 16px;
    width: 100%;
  }

  .entry h3 {
    font-size: 28px;
  }

  .entry p {
    font-size: 15px;
    width: 90%;
  }

  .head-sticker,
  .phone-sticker,
  .face-sticker {
    display: none;
  }

  .hill {
    bottom: -120px;
    height: 520px;
    width: 780px;
  }

  .entry-page .site-header {
    position: relative;
    transform: none;
  }

  .entry-detail {
    padding: 24px 30px 120px;
    width: 100%;
  }

  .entry-back {
    font-size: 22px;
    margin-top: 78px;
  }

  .entry-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 38px;
    padding-top: 54px;
  }

  .entry-visual {
    height: auto;
    padding-top: 82%;
    width: 100%;
  }

  .entry-detail-copy h1 {
    font-size: 48px;
  }

  .entry-detail-copy p,
  .entry-detail-copy .lede {
    font-size: 19px;
  }

  .entry-note {
    font-size: 17px;
  }

  .project-hero {
    gap: 22px;
    padding-top: 42px;
  }

  .project-kicker {
    font-size: 20px;
  }

  .project-hero h1 {
    font-size: 46px;
  }

  .project-hero p:not(.project-kicker) {
    font-size: 18px;
  }

  .project-visual {
    height: auto;
    padding-top: 74%;
    width: 100%;
  }

  .project-facts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 42px;
    max-width: none;
  }

  .project-facts p {
    font-size: 16px;
    padding: 14px;
  }

  .project-notes {
    margin-top: 56px;
    max-width: none;
  }

  .project-notes h2 {
    font-size: 32px;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .note-card {
    min-height: 0;
  }

  .note-thumb {
    height: 154px;
  }

  .note-card-content {
    padding: 18px;
  }

  .note-label,
  .note-cta {
    font-size: 17px;
  }

  .note-card strong {
    font-size: 20px;
  }

  .note-card p {
    font-size: 15px;
  }

  .note-hero {
    gap: 20px;
    padding-top: 42px;
  }

  .note-parent {
    font-size: 20px;
  }

  .note-hero h1 {
    font-size: 46px;
  }

  .note-hero p:not(.note-parent) {
    font-size: 18px;
  }

  .note-wide-visual {
    height: auto;
    margin-top: 42px;
    padding-top: 74%;
    width: 100%;
  }

  .note-body {
    margin-top: 48px;
    max-width: none;
  }

  .note-body > p {
    font-size: 20px;
  }

  .note-skeleton-block {
    padding: 20px;
  }

  .note-skeleton-block h2 {
    font-size: 30px;
  }

  .note-skeleton-block p {
    font-size: 16px;
  }
}
