:root {
  --ink: #171717;
  --ink-soft: #3d3d3d;
  --paper: #fff7eb;
  --paper-2: #ffe9c2;
  --white: #fffdf8;
  --slime: #7cde3a;
  --slime-deep: #3fa00a;
  --slime-dark: #2c7408;
  --sky: #4da3ff;
  --cap: #1d6fe0;
  --coral: #ff6b6b;
  --pink: #ff8dc7;
  --tape: #f4d35e;
  --line: #c9e4ff;
  --shadow: 0 14px 0 rgba(23, 23, 23, 0.12);
  --radius: 28px;
  --wrap: 1120px;
  --header-bar: 52px;
  --header: calc(var(--header-bar) + 7px);
  --font: "Nunito", system-ui, sans-serif;
  --display: "Fredoka", "Nunito", sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(700px 420px at 110% 8%, #b7dcff 0%, transparent 50%),
    var(--paper);
  line-height: 1.55;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cap); }
a:hover { color: var(--slime-dark); }

:focus-visible {
  outline: 3px solid var(--cap);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #93ee48 0%, #7ee03c 58%, #6ed432 100%);
  border-bottom: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-bar) + 7px);
  padding-top: calc(0.15rem + 7px);
  padding-bottom: 0.15rem;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  animation: wobble 4s ease-in-out infinite;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(1px 2px 0 rgba(31, 90, 8, 0.35));
}

.env-banner {
  background: #171717;
  color: #ffe08a;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem;
  border-bottom: 3px solid #171717;
}

html.is-staging { --header: calc(var(--header-bar) + 7px + 2.25rem); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.nav a:hover { color: var(--slime-dark); }

.nav a[aria-current="location"],
.nav a[aria-current="page"] {
  background: rgba(23, 23, 23, 0.14);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--ink);
}

.nav-cta {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-cta[aria-current="location"],
.nav-cta[aria-current="page"] {
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink), inset 0 -3px 0 var(--slime-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.slime-drip {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 108px;
  margin-top: -4px;
  background-color: transparent;
  background-image: url("images/slime-drip.svg?v=27c5db7910ad");
  background-repeat: repeat-x;
  background-position: top left;
  background-size: auto 108px;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
  transform-origin: top center;
  animation: slime-drip-sway 6.5s ease-in-out infinite;
}
.slime-drip:focus {
  outline: none;
}

.slime-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 45;
}

.slime-drop {
  position: absolute;
  width: 18px;
  height: 26px;
  border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%;
  background: linear-gradient(180deg, #6ed432 0%, #6ed432 28%, #5cbf28 100%);
  box-shadow:
    inset -2px -3px 0 rgba(63, 143, 18, 0.28),
    0 3px 0 rgba(63, 143, 18, 0.22);
  transform: translate(-50%, 0);
  transform-origin: 50% 0%;
  will-change: transform, top;
}

.slime-splash {
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, 0);
}

.slime-splash-puddle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 42px;
  height: 16px;
  margin-left: -21px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6ed432, #5cbf28);
  animation: slime-puddle 0.7s ease-out forwards;
}

.slime-splash-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #6ed432;
  animation: slime-dot 0.7s ease-out forwards;
}

@keyframes slime-puddle {
  0% { transform: scale(0.4, 1.2); opacity: 1; }
  28% { transform: scale(1.85, 0.45); opacity: 1; }
  100% { transform: scale(2.35, 0.28); opacity: 0; }
}

@keyframes slime-dot {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.35); opacity: 0; }
}

@keyframes slime-drip-sway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5.4rem 0 3.5rem;
  scroll-margin-top: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.stamp {
  display: inline-block;
  border: 3px solid var(--coral);
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  transform: rotate(-6deg);
  font-family: var(--display);
}

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.6em; }

h1 {
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  letter-spacing: -0.03em;
  margin-top: 0.4rem;
}

h1 em {
  font-style: normal;
  color: var(--slime-dark);
  background: linear-gradient(transparent 62%, #d8ff8a 62%);
}

.hero-subtitle {
  display: block;
  margin: 0.32em 0 0;
  font-size: clamp(1.12rem, 3.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink-soft);
}

h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }

.lede {
  font-size: 1.15rem;
  max-width: 38ch;
}

.byline { font-size: 0.98rem; color: var(--ink-soft); }

.hero-actions, .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1rem;
}
.cta-actions { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary { background: var(--slime); color: var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-pills li {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-weight: 800;
  font-size: 0.85rem;
}

.hero-exhibit {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 420px;
  max-width: 460px;
  margin-inline: auto;
  perspective: 900px;
}

.hero-exhibit-glow {
  position: absolute;
  inset: 8% 10% 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 236, 170, 0.55) 42%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.hero-exhibit-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
}

.hero-exhibit-book {
  margin-inline: auto;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(23, 23, 23, 0.18));
  transform-origin: 50% 80%;
  animation: book-float 4.8s ease-in-out infinite;
  transition: transform 0.35s ease;
}

.hero-exhibit:hover .hero-exhibit-book {
  animation-play-state: paused;
  transform: translateY(-12px) rotate3d(0.15, 1, 0.05, 8deg);
}

.hero-exhibit-pedestal {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(23, 23, 23, 0.22), transparent 70%);
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}

@keyframes book-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-14px) rotate(1.4deg); }
}

.tape {
  position: absolute;
  background: rgba(244, 211, 94, 0.85);
  height: 28px;
  width: 92px;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
  z-index: 2;
}
.tape-l { top: 10px; left: -18px; transform: rotate(-28deg); }
.tape-r { top: 18px; right: -16px; transform: rotate(22deg); }
.tape-c { top: -8px; left: 50%; width: 110px; transform: translateX(-50%) rotate(-4deg); }

.section { padding: 4rem 0; position: relative; scroll-margin-top: 0; }
.section-tint { background: rgba(255, 255, 255, 0.45); }
.kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--cap);
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.section-lead, .note { color: var(--ink-soft); }
.note { font-weight: 700; }

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.sticky-card, .author-doodle {
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.sticky-card figcaption {
  font-family: var(--hand);
  font-size: 1.15rem;
  margin-top: 0.7rem;
  text-align: center;
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 5px 5px 0 var(--ink);
}
.card:nth-child(1) { transform: rotate(-1deg); }
.card:nth-child(2) { transform: rotate(1.2deg); }
.card:nth-child(3) { transform: rotate(-0.6deg); }
.card:nth-child(4) { transform: rotate(0.8deg); }
.card-emoji { font-size: 1.8rem; margin: 0; }
.card h3 { margin-bottom: 0.1rem; }
.card-role {
  font-family: var(--hand);
  color: var(--cap);
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}
.card p { margin: 0.35rem 0 0; }

.excerpt-layout {
  display: grid;
  gap: 1.5rem;
}

.diary {
  --row: 34px;
  background:
    linear-gradient(90deg, transparent 0 46px, #ff8b8b 46px 48px, transparent 48px),
    repeating-linear-gradient(var(--white) 0 calc(var(--row) - 1px), var(--line) calc(var(--row) - 1px) var(--row));
  border: 3px solid var(--ink);
  border-radius: 4px 28px 28px 4px;
  padding: var(--row) 1.3rem var(--row) 4rem;
  box-shadow: var(--shadow);
  font-family: var(--hand);
  font-size: 1.25rem;
  line-height: var(--row);
  transform: rotate(-0.4deg);
  max-width: 720px;
}
.diary h3 {
  font-family: var(--hand);
  font-size: 1.45rem;
  margin: var(--row) 0 0;
  line-height: var(--row);
}
.diary p { margin: 0; line-height: var(--row); }
.diary-month {
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--coral);
  line-height: var(--row);
  margin: 0;
}
.diary-shout { font-weight: 700; }
.diary-end {
  margin-top: 1.2rem !important;
  font-size: 1rem;
  color: var(--ink-soft);
}

.author-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.section-cta { padding-bottom: 5rem; }
.cta-card {
  position: relative;
  background: linear-gradient(160deg, #d8ff8a, #fff7eb 55%, #cfe8ff);
  border: 3px solid var(--ink);
  border-radius: 36px;
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: 8px 8px 0 var(--ink);
}
.badge {
  display: inline-block;
  background: var(--ink);
  color: var(--slime);
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
}
.cta-hint { font-size: 0.92rem; color: var(--ink-soft); }

button.btn {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  appearance: none;
}
button.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: 4px 4px 0 var(--ink);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  text-align: left;
  max-width: 440px;
  margin: 1.4rem auto 0.4rem;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 0.7rem 0.85rem;
  background: var(--white);
}
.contact-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.contact-form .cta-actions { margin: 0.4rem 0 0; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field-error {
  margin: -0.35rem 0 0;
  color: #b42318;
  font-weight: 800;
  font-size: 0.88rem;
}
.form-status {
  min-height: 1.4em;
  margin: 0;
  text-align: center;
  font-weight: 800;
}
.form-status.is-ok { color: var(--slime-dark); }
.form-status.is-err { color: #b42318; }

.site-footer {
  background: var(--ink);
  color: #f4f4f4;
  padding: 2rem 0 2.4rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--slime); }
.footer-inner { display: grid; gap: 0.35rem; }
.footer-tiny { opacity: 0.75; font-size: 0.85rem; }

@keyframes wobble {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(8deg); }
}

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .hero { padding: 5.6rem 0 4.5rem; }
  .hero-exhibit { max-width: 480px; margin-inline: 0 0 auto; min-height: 520px; }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .author-grid { grid-template-columns: 0.7fr 1.3fr; }
  .cta-card { padding: 3rem; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 18px;
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .nav a {
    padding: 0.7rem 0.6rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav.open { display: flex; z-index: 50; }
}

@media (min-width: 821px) {
  :root { --header-bar: 56px; }
  .logo { font-size: 1.28rem; }
  .logo-img { width: 40px; height: 40px; }
}

.shop-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.6rem;
  max-width: 26rem;
}
.shop-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 6px 6px 0 var(--ink);
}
.shop-card:nth-child(1) { transform: rotate(-0.6deg); }
.shop-card:nth-child(2) { transform: rotate(0.8deg); }
.shop-kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--cap);
  margin: 0 0 0.35rem;
  font-weight: 700;
}
.shop-card h3 { margin-bottom: 0.2rem; }
.price {
  font-family: var(--display);
  font-size: 2.2rem;
  margin: 0.2rem 0 0.8rem;
  letter-spacing: -0.03em;
}
.price span { color: var(--slime-dark); }
.shop-card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.45rem;
}
.shop-actions { margin: 1.2rem 0 0; }
.shop-note, .shop-status, .shop-legal {
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}
.shop-note { margin-top: 1.4rem; }
.shop-legal { margin-top: 0.6rem; font-weight: 800; }
.shop-status { min-height: 1.4em; margin: 0.6rem 0 0; }
.shop-status.is-err { color: #b42318; }
.shop-terms-hint {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
}
.consent-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 700;
  color: var(--ink);
}
.consent-line input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--slime-deep);
}

.shop-autograph {
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.autograph-dedication {
  display: grid;
  gap: 0.4rem;
}
.autograph-dedication[hidden] { display: none; }
.autograph-dedication label {
  font-weight: 800;
  font-size: 0.95rem;
}
.autograph-dedication input[type="text"] {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 0.7rem 0.85rem;
  background: var(--white);
}
.field-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer-links { font-weight: 800; }
.footer-updated { opacity: 0.7; font-size: 0.82rem; margin: 0; }

.legal-page { padding-bottom: 3rem; }
.legal-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 1.6rem 1.3rem 2rem;
  box-shadow: 6px 6px 0 var(--ink);
  max-width: 46rem;
  margin-inline: auto;
}
.legal-card h1 { margin-top: 0.2rem; }
.legal-card h2 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
}
.legal-card p, .legal-card li { color: var(--ink-soft); }
.legal-card ul, .legal-card ol { padding-left: 1.2rem; }
.legal-form {
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.legal-form p { margin: 0.35rem 0; }
.legal-meta { font-size: 0.92rem; font-weight: 700; }

.obrigado-card { text-align: center; max-width: 640px; margin-inline: auto; }
.obrigado-card .lede { margin-inline: auto; }
.order-panel, .pending-panel, .failed-panel { margin-top: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-mark, .btn, .card, .hero-exhibit-book, .slime-drip { animation: none; transition: none; }
  .hero-exhibit:hover .hero-exhibit-book { transform: none; }
  .slime-drip {
    transform: none;
    cursor: default;
    pointer-events: none;
  }
  .slime-splash-puddle,
  .slime-splash-dot { animation: none; }
}
