/* House of Hobbies: shared look for the site and social posts */
:root {
  --stripe: #ffd3df;
  --paper: #ffffff;
  --pink: #f77ba8;
  --teal: #8fd3d1;
  --sun: #fbc548;
  --lilac: #e8aed6;
  --lime: #c8ca4f;
  --period: clamp(64px, 9.1vw, 176px);

  /* every size reads both width and height, so the whole design fits one screen */
  --kicker: clamp(16px, min(2.4vw, 3.4vh), 32px);
  --script: clamp(36px, min(10vw, 10.5vh), 124px);
  --new:    clamp(96px, min(28vw, 27vh), 330px);
  --star:   clamp(30px, min(5.5vw, 7.5vh), 72px);
  --body:   clamp(14px, min(1.6vw, 2.3vh), 19px);
  --gap:    clamp(8px, 2.4vh, 28px);
}

@media (max-width: 600px) {
  :root {
    --script: clamp(36px, min(15vw, 9vh), 80px);
    --new:    clamp(96px, min(44vw, 22vh), 200px);
    --star:   clamp(26px, 8vw, 40px);
  }
}

* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    90deg,
    var(--stripe) 0 calc(var(--period) / 2),
    var(--paper) calc(var(--period) / 2) var(--period)
  );
  background-position: center top;
  color: var(--pink);
  font-family: "Poppins", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, 3vh) 16px var(--gap);
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}


.kicker {
  font-weight: 700;
  font-size: var(--kicker);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: var(--gap);
}

h1 {
  font-weight: 400;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.script {
  display: block;
  font-family: "Pacifico", cursive;
  font-size: var(--script);
  line-height: 1.15;
  white-space: nowrap;
}
.script.top { margin-bottom: -0.1em; }
/* Pacifico's g drops ~0.3em below the line box; reserve that space */
.script.bottom { padding-bottom: 0.32em; }

/* dotless i with a heart for the dot */
.heart-i { position: relative; display: inline-block; }
.heart-i svg {
  position: absolute;
  left: 50%;
  top: 0.33em;
  width: 0.22em;
  height: 0.22em;
  transform: translateX(-38%) rotate(8deg);
  fill: currentColor;
}

.new-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 4vw, 72px);
}

.new {
  display: flex;
  align-items: flex-end;
  font-family: "Londrina Solid", "Poppins", sans-serif;
  font-weight: 900;
  font-size: var(--new);
  line-height: 0.8;
  letter-spacing: -0.02em;
  padding-top: 0.06em;
}
.new span { display: inline-block; transform-origin: 50% 100%; }

/* stitch.js: pieces are drawn on canvas; the real ones only hold the layout */
[data-stitch] { position: relative; }
[data-stitch] canvas { position: absolute; pointer-events: none; }
[data-stitch].stitched { cursor: pointer; }
.js [data-stitch] [data-piece] { color: transparent; animation: none; }
.js [data-stitch] img[data-piece] { opacity: 0; }
.new .n { color: var(--teal);  transform: rotate(-2deg) translateY(0.02em); }
.new .e { color: var(--sun);   transform: rotate(1deg)  translateY(-0.03em); margin-left: 0.02em; }
.new .w { color: var(--lilac); transform: rotate(3deg)  translateY(-0.08em); margin-left: 0.03em; }

.star {
  flex: none;
  width: var(--star);
  filter: drop-shadow(0 2px 2px rgba(219, 120, 155, 0.18));
}
.star svg { display: block; width: 100%; height: auto; }
.star.left  { transform: rotate(-10deg); }
.star.right { transform: rotate(12deg); }

.ellipsis { letter-spacing: 0.08em; margin-left: 0.15em; }
.ellipsis i { font-style: normal; }
.ellipsis i:nth-child(2) { color: var(--teal); }
.ellipsis i:nth-child(3) { color: var(--sun); }

.about {
  margin-top: calc(var(--gap) * 0.5);
  font-weight: 600;
  font-size: var(--body);
  line-height: 1.5;
  padding: 0.55em 1.4em;
  border-radius: 18px;
  max-width: 30em;
  background: rgba(255, 255, 255, 0.85);
  text-wrap: balance;
}
@media (max-width: 600px) {
  .about { max-width: 24em; }
}
@media (min-width: 900px) {
  .about { white-space: nowrap; max-width: none; border-radius: 999px; }
}

footer {
  text-align: center;
  padding: 0 16px max(18px, 2.5vh, env(safe-area-inset-bottom));
  font-weight: 700;
  font-size: var(--body);
  line-height: 1.5;
}
footer .fine {
  display: block;
  font-weight: 600;
}
footer .dot { color: var(--sun); margin: 0 0.6em; }
@media (max-width: 600px) {
  footer .dot { display: none; }
  footer .fine a { display: block; }
}
footer a { color: inherit; text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .kicker, .script, .about, footer { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
  .kicker        { animation-delay: 0.05s; }
  .script.top    { animation-delay: 0.1s; }
  .script.bottom { animation-delay: 0.55s; }
  .about  { animation-delay: 0.7s; }
  footer  { animation-delay: 0.8s; }
  .new span { animation: pop 0.7s cubic-bezier(.3,1.5,.5,1) both; }
  .new .n { animation-delay: 0.25s; --r: -2deg; --y: 0.02em; }
  .new .e { animation-delay: 0.35s; --r: 1deg;  --y: -0.03em; }
  .new .w { animation-delay: 0.45s; --r: 3deg;  --y: -0.08em; }
  .star svg { animation: twinkle 3.2s ease-in-out infinite; transform-origin: center; }
  .star.right svg { animation-delay: 1.6s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop {
  from { opacity: 0; transform: rotate(var(--r)) translateY(var(--y)) scale(0.6); }
  to   { opacity: 1; transform: rotate(var(--r)) translateY(var(--y)) scale(1); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.12) rotate(14deg); }
}
