:root {
  --paper: #f6f0df;
  --paper-deep: #eadfc7;
  --ink: #272521;
  --ink-soft: #665f55;
  --blue-ink: #375d72;
  --red-line: rgba(172, 74, 72, 0.38);
  --rule-line: rgba(72, 112, 132, 0.16);
  --shadow: rgba(67, 54, 39, 0.18);
  --whitewash: rgba(255, 255, 255, 0.42);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      var(--rule-line) 32px,
      transparent 33px
    ),
    var(--paper);
  font-family: "Special Elite", Georgia, serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

body::before {
  width: 380px;
  height: 380px;
  top: -160px;
  right: -130px;
  background: #9fb8bf;
}

body::after {
  width: 320px;
  height: 320px;
  bottom: -140px;
  left: -120px;
  background: #c4a97c;
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(50, 40, 30, 0.15) 0 0.6px, transparent 0.7px),
    radial-gradient(circle at 70% 60%, rgba(50, 40, 30, 0.11) 0 0.7px, transparent 0.8px);
  background-size: 7px 7px, 11px 11px;
}

.margin-line {
  position: fixed;
  top: 0;
  bottom: 0;
  left: clamp(20px, 7vw, 92px);
  width: 1px;
  z-index: -1;
  background: var(--red-line);
}

a {
  color: inherit;
}

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

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

.site-header,
.notebook-section,
.site-footer {
  width: min(var(--max-width), calc(100% - 44px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 20;
}

.wordmark {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transform: rotate(-1deg);
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
}

.site-nav a {
  position: relative;
  font-family: "Patrick Hand", cursive;
  font-size: 1.08rem;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--blue-ink);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.menu-button {
  display: none;
  border: 2px solid var(--ink);
  background: transparent;
  padding: 7px 13px;
  font: inherit;
  transform: rotate(1deg);
}

.notebook-section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 14px;
  color: var(--blue-ink);
  font-family: "Patrick Hand", cursive;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Patrick Hand", cursive;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  transform: rotate(-0.8deg);
}

h1 span {
  display: block;
  color: var(--blue-ink);
  font-size: 0.62em;
  line-height: 1.02;
  transform: translateX(0.5rem) rotate(0.7deg);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.95;
}

h3 {
  font-size: 1.8rem;
  line-height: 1.1;
}

.lead {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.sketch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 22px;
  border: 2px solid var(--ink);
  background: var(--whitewash);
  box-shadow: 4px 5px 0 rgba(39, 37, 33, 0.15);
  font-family: "Patrick Hand", cursive;
  font-size: 1.15rem;
  text-decoration: none;
  transform: rotate(-0.5deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sketch-button:nth-child(2) {
  transform: rotate(0.8deg);
}

.sketch-button:hover,
.sketch-button:focus-visible {
  transform: translateY(-3px) rotate(0);
  box-shadow: 6px 8px 0 rgba(39, 37, 33, 0.12);
}

.sketch-button.primary {
  color: var(--paper);
  background: var(--blue-ink);
  border-color: var(--blue-ink);
}

.scribble-note {
  margin-top: 28px;
  font-family: "Handlee", cursive;
  font-size: 1.08rem;
  transform: rotate(-3deg);
}

.logo-card {
  justify-self: end;
  max-width: 430px;
}

.taped-photo {
  position: relative;
  padding: 18px 18px 14px;
  background: #fffaf0;
  border: 1px solid rgba(55, 49, 41, 0.22);
  box-shadow:
    0 20px 45px var(--shadow),
    2px 3px 0 rgba(39, 37, 33, 0.1);
  transform: rotate(2.1deg);
}

.taped-photo p {
  margin: 13px 4px 0;
  font-family: "Handlee", cursive;
  text-align: center;
}

.tape {
  position: absolute;
  top: -14px;
  width: 82px;
  height: 30px;
  background: rgba(222, 207, 159, 0.72);
  box-shadow: inset 0 0 0 1px rgba(90, 76, 48, 0.08);
}

.tape-left {
  left: 24px;
  transform: rotate(-8deg);
}

.tape-right {
  right: 24px;
  transform: rotate(7deg);
}

.paper-plane {
  position: absolute;
  left: 42%;
  bottom: 10%;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: clamp(2rem, 4vw, 3.5rem);
  transform: rotate(-18deg);
  transition: transform 220ms ease;
}

.paper-plane:hover {
  transform: translate(6px, -4px) rotate(-12deg);
}

.paper-plane.is-flying {
  animation: fly-away 1.7s cubic-bezier(.3,.8,.2,1) forwards;
}

@keyframes fly-away {
  0% { transform: translate(0, 0) rotate(-18deg); opacity: 1; }
  55% { transform: translate(38vw, -32vh) rotate(12deg); opacity: 1; }
  100% { transform: translate(70vw, -48vh) rotate(20deg); opacity: 0; }
}

.doodle-cloud {
  position: absolute;
  width: 125px;
  height: 46px;
  border: 2px solid rgba(39, 37, 33, 0.5);
  border-radius: 50%;
  opacity: 0.35;
}

.doodle-cloud::before,
.doodle-cloud::after {
  content: "";
  position: absolute;
  bottom: 11px;
  border: 2px solid rgba(39, 37, 33, 0.5);
  background: var(--paper);
  border-radius: 50%;
}

.doodle-cloud::before {
  left: 18px;
  width: 45px;
  height: 45px;
}

.doodle-cloud::after {
  right: 18px;
  width: 58px;
  height: 58px;
}

.cloud-one {
  top: 14%;
  left: -1%;
  transform: rotate(-3deg) scale(0.8);
}

.cloud-two {
  right: 4%;
  bottom: 11%;
  transform: rotate(4deg) scale(0.65);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.section-number {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: "Patrick Hand", cursive;
  font-size: 1.4rem;
  transform: rotate(-7deg);
}

.game-layout,
.studio-grid,
.entry-grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
}

.game-layout {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
}

.pinned-note {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  background: #fbf4d8;
  border: 1px solid rgba(60, 50, 35, 0.18);
  box-shadow: 8px 12px 26px rgba(70, 56, 36, 0.14);
  transform: rotate(-1.2deg);
}

.pin {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #a94c4b;
  box-shadow: 0 3px 0 #693334;
}

.handwritten-big {
  margin-bottom: 26px;
  font-family: "Handlee", cursive;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.15;
}

.feature-list {
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin: 11px 0;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--blue-ink);
  font-family: "Patrick Hand", cursive;
  font-size: 1.35rem;
  transform: rotate(-8deg);
}

.coming-soon {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 2px solid var(--blue-ink);
  font-family: "Patrick Hand", cursive;
  color: var(--blue-ink);
  font-size: 1.15rem;
}

.sketchbook-page {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  background: #f9f6eb;
  border: 1px solid rgba(50, 45, 38, 0.22);
  box-shadow: 0 24px 55px rgba(70, 56, 36, 0.15);
  transform: rotate(1deg);
}

.sketchbook-page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38px;
  border-left: 1px solid var(--red-line);
}

.sketch-placeholder {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  position: relative;
  border: 2px dashed rgba(39, 37, 33, 0.38);
  color: var(--ink-soft);
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(102, 155, 177, 0.16), transparent 56%),
    rgba(255,255,255,0.28);
}

.sketch-placeholder p {
  max-width: 230px;
  margin: 0;
  font-family: "Handlee", cursive;
  font-size: 1.2rem;
}

.horizon {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 58%;
  height: 2px;
  background: rgba(39, 37, 33, 0.45);
  transform: rotate(-1deg);
}

.mini-plane {
  position: absolute;
  left: 48%;
  top: 35%;
  font-size: 3rem;
  transform: rotate(-12deg);
}

.caption {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  font-family: "Handlee", cursive;
}

.studio-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.story-card {
  padding: clamp(30px, 5vw, 56px);
  border: 2px solid rgba(39, 37, 33, 0.6);
  background: rgba(255,255,255,0.25);
  box-shadow: 8px 10px 0 rgba(39, 37, 33, 0.08);
  transform: rotate(0.4deg);
}

.story-card p {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.signature {
  margin-top: 34px;
  font-family: "Handlee", cursive;
  font-size: 1.3rem !important;
  text-align: right;
}

.margin-notes {
  display: grid;
  gap: 24px;
  align-content: center;
}

.note-card {
  padding: 24px;
  background: #eaf0ea;
  border: 1px solid rgba(45, 57, 48, 0.2);
  box-shadow: 5px 8px 18px rgba(67, 54, 39, 0.1);
  font-family: "Handlee", cursive;
  font-size: 1.16rem;
}

.note-card strong,
.note-card span {
  display: block;
}

.note-card strong {
  color: var(--blue-ink);
  font-family: "Patrick Hand", cursive;
  font-size: 1.3rem;
}

.rotated-left {
  transform: rotate(-2.4deg);
}

.rotated-right {
  transform: rotate(2deg);
}

.entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dev-entry {
  min-height: 280px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(50, 45, 38, 0.28);
  background: rgba(255, 255, 255, 0.27);
  box-shadow: 8px 12px 24px rgba(67, 54, 39, 0.08);
}

.dev-entry:nth-child(1) {
  transform: rotate(-0.7deg);
}

.dev-entry:nth-child(2) {
  transform: rotate(0.9deg);
}

.dev-entry time,
.coming-label {
  color: var(--blue-ink);
  font-family: "Patrick Hand", cursive;
}

.dev-entry.dashed {
  border-style: dashed;
}

.contact-section {
  padding-bottom: clamp(90px, 12vw, 160px);
}

.contact-card {
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(42px, 7vw, 78px);
  border: 2px solid var(--ink);
  background: rgba(255,255,255,0.34);
  box-shadow: 10px 12px 0 rgba(39, 37, 33, 0.1);
  text-align: center;
  transform: rotate(-0.5deg);
}

.email-link {
  display: inline-block;
  margin: 18px 0 28px;
  color: var(--blue-ink);
  font-family: "Patrick Hand", cursive;
  font-size: clamp(1.7rem, 4vw, 3rem);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-family: "Handlee", cursive;
  font-size: 1.12rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 0 42px;
  color: var(--ink-soft);
  font-family: "Handlee", cursive;
  border-top: 1px solid rgba(39, 37, 33, 0.22);
}

@media (max-width: 860px) {
  .hero,
  .game-layout,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .logo-card {
    justify-self: center;
    max-width: 390px;
  }

  .paper-plane {
    left: 18%;
    bottom: 3%;
  }

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

@media (max-width: 680px) {
  .site-header {
    min-height: 74px;
  }

  .menu-button {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 18px 20px;
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 6px 8px 0 rgba(39,37,33,0.1);
    flex-direction: column;
  }

  .site-nav.is-open {
    display: flex;
  }

  h1 {
    font-size: clamp(3.5rem, 20vw, 6rem);
  }

  .hero-actions,
  .contact-links,
  .site-footer {
    flex-direction: column;
  }

  .section-heading {
    gap: 16px;
  }

  .section-number {
    width: 48px;
  }

  .sketch-placeholder {
    min-height: 310px;
  }
}

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