@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Schoolbell&display=swap");

:root {
  --sky: #3cc5f4;
  --ink: #151515;
  --cream: #fff7dc;
  --red: #ff2e24;
  --green: #38ae21;
  --line: 5px solid var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--sky);
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 18px;
}

a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand, .footer-brand { color: var(--ink); font-family: "Schoolbell", cursive; font-size: 38px; font-weight: 700; text-decoration: none; line-height: 1; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { width: 52px; height: 52px; border: 3px solid var(--ink); border-radius: 50%; object-fit: cover; background: var(--cream); }
.nav-links { display: flex; gap: 10px; }
.nav-links a { min-width: 57px; padding: 8px 13px; border: 3px solid var(--ink); border-radius: 99px; color: var(--ink); background: #fff; text-align: center; font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.nav-links a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.hero { min-height: 575px; display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 48px; padding: 55px 0 70px; }
.eyebrow { margin: 0 0 10px; font-family: "Schoolbell", cursive; font-size: 23px; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 610px; margin-bottom: 16px; font-family: "Schoolbell", cursive; font-size: clamp(76px, 10vw, 140px); line-height: .84; letter-spacing: -4px; }
h1 span { display: block; color: var(--cream); -webkit-text-stroke: 3px var(--ink); text-shadow: 5px 5px 0 var(--ink); font-size: .55em; letter-spacing: 0; }
.intro { max-width: 440px; margin-bottom: 27px; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-block; padding: 14px 19px; border: var(--line); border-radius: 13px; color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: 5px 5px 0 var(--ink); }
.button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button-red { background: var(--red); color: #fff; }
.button-plain { background: var(--cream); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 410px; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; z-index: -1; width: min(385px, 88%); aspect-ratio: 1; border: var(--line); border-radius: 51% 49% 47% 53%; background: #fff; transform: rotate(-7deg); }
.hero-art::after { content: ""; position: absolute; z-index: -2; right: 0; bottom: 22px; width: 125px; height: 42px; background: repeating-linear-gradient(100deg, transparent 0 14px, var(--green) 15px 22px, transparent 23px 36px); opacity: .95; }
.sun { position: absolute; z-index: -2; top: 4%; right: 7%; width: 66px; aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 50%; background: #ffdc40; }
.hero-art img { width: min(385px, 91%); height: auto; mix-blend-mode: normal; filter: saturate(1.08); transform: rotate(2deg); }

.little-story { padding: 64px 0; border-top: var(--line); border-bottom: var(--line); background: var(--cream); }
.story-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 45px; }
h2 { margin-bottom: 0; font-family: "Schoolbell", cursive; font-size: clamp(43px, 5vw, 70px); line-height: .95; letter-spacing: -1px; }
.story-copy { margin: 0; font-size: 23px; line-height: 1.25; font-weight: 500; }

.contract-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 18px 40px; align-items: center; padding: 77px 0; }
.contract-title .eyebrow { margin-bottom: 7px; }
.contract-title h2 { font-size: 50px; }
.contract-card { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px 13px 20px; border: var(--line); border-radius: 15px; background: #fff; box-shadow: 6px 6px 0 var(--ink); }
code { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: "Fredoka", Arial, sans-serif; font-size: 25px; font-weight: 700; }
.copy-button { flex: 0 0 auto; padding: 9px 15px; border: 3px solid var(--ink); border-radius: 9px; background: #ffe149; color: var(--ink); font: 700 18px "Fredoka", Arial, sans-serif; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.copy-button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.copy-note { grid-column: 2; margin: 0; font-size: 16px; font-weight: 500; }

.banner { margin-bottom: 78px; border: var(--line); border-radius: 17px; overflow: hidden; background: #fff; box-shadow: 7px 7px 0 var(--ink); }
.banner img { display: block; width: 100%; height: auto; }

footer { padding: 29px 0; border-top: var(--line); background: var(--red); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-brand { font-size: 35px; }
.footer-brand span { font-family: "Fredoka", Arial, sans-serif; font-size: 18px; }
footer p { margin: 0; font-weight: 600; }
footer a:not(.footer-brand) { color: var(--ink); font-weight: 700; text-decoration-thickness: 3px; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 30px, 600px); }
  .nav { min-height: 80px; }
  .brand { font-size: 32px; }
  .brand img { width: 43px; height: 43px; }
  .nav-links { gap: 6px; }
  .nav-links a { min-width: auto; padding: 7px 9px; font-size: 15px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding: 46px 0 57px; }
  .hero-copy { text-align: center; }
  h1 { margin-inline: auto; font-size: clamp(72px, 23vw, 110px); }
  .intro { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-art { min-height: 345px; grid-row: 1; }
  .hero-art img { width: min(330px, 85vw); }
  .hero-art::before { width: min(330px, 84vw); }
  .story-grid, .contract-section { grid-template-columns: 1fr; gap: 26px; }
  .little-story, .contract-section { padding: 52px 0; }
  .story-copy { font-size: 21px; }
  .contract-title h2 { font-size: 46px; }
  .copy-note { grid-column: auto; margin-top: -12px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 390px) {
  .nav { align-items: flex-start; padding-top: 13px; }
  .brand { font-size: 29px; }
  .nav-links a { padding: 7px 7px; }
  .button { width: 100%; }
  .contract-card { padding-left: 14px; }
  code { font-size: 22px; }
}
