@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600&family=Patrick+Hand&display=swap');

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

:root {
  --yellow: #fbc75a;
  --orange: #f2794b;
  --red: #f77342;
  --blue: #3fb9d8;
  --ink: #111;
}

body {
  margin: 0;
  display: flex; flex-direction: column; min-height: 100vh;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.35rem; line-height: 1.6;
  color: var(--ink); background: #fff;
}

h1, h2, h3 { font-family: 'Fredoka', sans-serif; line-height: 1.1; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--yellow); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--yellow); text-transform: uppercase; }
h3 { font-family: 'Patrick Hand', cursive; font-size: 2rem; }
p { margin: 0 0 1rem; }
a { color: var(--yellow); text-decoration: none; }
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* Header */
header { text-align: center; padding: 2rem 1rem 0; }
header .logo { height: clamp(150px, 20vw, 260px); margin: 0 auto 1.5rem; }

nav ul { list-style: none; margin: 0; padding: 0; }
nav .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; }
nav .menu > li { position: relative; }
nav a { display: block; padding: 0.5rem 1rem; font-size: 1.5rem; }
nav .menu > li > a.active { border-bottom: 2px solid var(--red); }
nav .menu ul { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; text-align: left; z-index: 1; }
nav .menu > li:hover > ul { display: block; }
nav .menu ul a { padding: 0.25rem 1rem; }
nav .menu ul a:hover { text-decoration: underline; }

nav .menu > li > a { position: relative; }
nav .menu > li > a::after {
  content: "";
  position: absolute; left: 1rem; right: 1rem; bottom: 0.3rem; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5' fill='none' stroke='%23f77342' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 20px 10px;
  clip-path: inset(0 round 5px);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s ease;
}
nav .menu > li:hover > a::after,
nav .menu > li:focus-within > a::after,
nav .menu > li > a.active::after {
  transform: scaleX(1);
  transform-origin: 0% 50%;
  animation: wiggle 0.6s linear infinite;
}
@keyframes wiggle { to { background-position-x: 20px; } }

/* Body */
main { flex: 1; width: 100%; max-width: 1300px; margin: 0 auto; padding: 3rem 1.5rem; }

.bubble-text {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0;
  max-width: 800px; margin: 3rem auto;
}
.bubble {
  position: relative;
  container-type: inline-size;
}
.bubble img { width: 100%; display: block; }
.bubble p {
  position: absolute; margin: 0;
  inset: 18% 12% 28% 12%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 5cqw;
  line-height: 1.3;
  overflow: hidden;
}
.little-me { width: clamp(90px, 25%, 180px); margin-left: -8%; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.grid-4 { margin-bottom: 4rem; }
.grid-4 img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.frame { border: 14px solid var(--orange); border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; overflow: hidden; }
.frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.btn { display: inline-block; padding: 0.6rem 1.8rem; border: 3px solid var(--yellow); border-radius: 999px; font-family:'Fredoka', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.btn:hover, .btn.solid { background: var(--yellow); color: #fff; }
.btn-row { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

.title-row { display: flex; justify-content: space-between; align-items: baseline; }

/* Contact form */
form label { display: block; margin: 1rem 0 0.25rem; }
form input, form textarea { width: 100%; padding: 0.75rem; border: 3px solid var(--yellow); border-radius: 8px; font:    
inherit; }
form textarea { min-height: 120px; }
form button { margin-top: 1rem; border: 0; cursor: pointer; }

.divider {
  width: 85%; height: 24px; margin: 3rem auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M0 7 Q6 1 12 7 T24 7' fill='none' stroke='%23f77342' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center;    
}

/* Footer */
footer {
  background: var(--yellow); color: #fff; text-align: center;
  min-height: min(320px, 32vh);
  display: flex; flex-direction: column; justify-content: center; gap: 0.75rem;
  font-family: 'Fredoka', sans-serif; font-size: 1.4rem;
}
footer .icons { display: flex; justify-content: center; gap: 1rem; }
footer .icons img { height: 3rem; filter: invert(1); }

.heart { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; display: inline-block; transition: transform 0.15s ease; }
.heart:active { transform: scale(1.3); }

.burst {
  position: fixed; z-index: 10; pointer-events: none;
  font-size: 1.3rem; color: #fff; line-height: 1;
  transform: translate(-50%, -100%);
  opacity: 0;
  animation: fly 1.6s ease-out forwards;
}
@keyframes fly {
  10%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-100% + var(--dy))) scale(0.6); opacity: 0; }
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  body { font-size: 1.15rem; }
}
