/* ============================================
   NEAPOLITAN.CSS — Teto Hot Spot
   an ice-cream-parlour take on old-web button pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@500;700&family=VT323&family=Nunito:wght@400;600;800&display=swap');

:root {
  --cream:        #FFF6EC;
  --vanilla:      #FFF1DC;
  --strawberry:   #E8607A;
  --strawberry-d: #C7405C;
  --choc:         #6B4226;
  --choc-d:       #3D2417;
  --mint:         #9FD8B5;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  color: var(--choc-d);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(
      135deg,
      var(--cream) 0px, var(--cream) 60px,
      var(--vanilla) 60px, var(--vanilla) 120px,
      #F9D9C4 120px, #F9D9C4 180px
    );
  background-attachment: fixed;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-6.5-8-12.5S8 2 12 6c4-4 8-1 8 2.5S12 21 12 21z' fill='%23E8607A' stroke='%233D2417' stroke-width='1.2'/%3E%3C/svg%3E") 12 12, auto;
  overflow-x: hidden;
}

/* ---------- scrolling ticker banner ---------- */

.ticker {
  margin-top: 0.8rem;
  overflow: hidden;
  white-space: nowrap;
  background: var(--choc-d);
  border-top: 3px dashed var(--strawberry);
  border-bottom: 3px dashed var(--strawberry);
  padding: 0.35rem 0;
}

.ticker span {
  display: inline-block;
  padding-left: 100%;
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: var(--vanilla);
  animation: scroll-left 18s linear infinite;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- header ---------- */

header {
  position: relative;
  text-align: center;
  padding: 2.5rem 1rem 1.2rem;
}

header h1 {
  margin: 0;
  font-family: 'DynaPuff', cursive;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--strawberry);
  -webkit-text-stroke: 2px var(--choc-d);
  text-shadow: 4px 4px 0 var(--vanilla), 4px 4px 0 var(--vanilla);
  letter-spacing: 1px;
  display: inline-block;
  animation: bob 3.2s ease-in-out infinite;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header h1::before,
header h1::after {
  content: "★";
  color: var(--mint);
  -webkit-text-stroke: 1px var(--choc-d);
  font-size: 0.9rem;
  position: relative;
  display: inline-block;
  margin: 0 0.4em;
  animation: twinkle 1.6s ease-in-out infinite;
}
header h1::after { animation-delay: 0.8s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-6px) rotate(1deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* ---------- layout ---------- */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ---------- boxy sections: ice-cream scoop cards ---------- */

.boxy {
  position: relative;
  background: var(--vanilla);
  border: 3px solid var(--choc-d);
  border-radius: 4px;
  padding-top: 2.1rem;
  box-shadow: 6px 6px 0 rgba(61, 36, 23, 0.25);
}

/* scalloped drip top, the signature bit */
.boxy::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -3px;
  right: -3px;
  height: 24px;
  background-image: radial-gradient(circle at 12px 8px, var(--strawberry) 11px, transparent 11.5px);
  background-size: 24px 24px;
  background-repeat: repeat-x;
  background-position: left center;
  filter: drop-shadow(0 2px 0 var(--choc-d));
}

.boxytitle {
  margin: 0;
  padding: 0.4rem 1.2rem 0.9rem;
  font-family: 'DynaPuff', cursive;
  font-size: 1.4rem;
  color: var(--strawberry-d);
  border-bottom: 2px dashed var(--choc);
}

.boxycontent {
  padding: 1.2rem 1.4rem 1.6rem;
  line-height: 1.55;
}

.boxycontent p {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

/* ---------- button collection ---------- */

.buttoncollection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.buttoncollection a,
.buttoncollection img.button {
  display: inline-block;
}

.button {
  width: 88px;
  height: 31px;
  border: 2px solid var(--choc-d);
  background: var(--cream);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 3px 3px 0 rgba(61, 36, 23, 0.3);
}

.buttoncollection a:hover .button,
.buttoncollection img.button:hover {
  transform: translateY(-4px) rotate(-2deg) scale(1.05);
  box-shadow: 5px 6px 0 rgba(232, 96, 122, 0.55);
  filter: saturate(1.15);
}

.buttoncollection a:active .button {
  transform: translateY(0) rotate(0) scale(0.97);
}

/* little sprinkle line before the "my button" row */
main > .boxy.tres > div[style] {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: var(--choc);
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--choc);
}

/* ---------- misc polish ---------- */

::selection {
  background: var(--strawberry);
  color: var(--cream);
}

a {
  color: var(--strawberry-d);
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  header h1,
  header h1::before,
  header h1::after,
  .ticker span {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .boxy { box-shadow: 4px 4px 0 rgba(61,36,23,0.25); }
  .button { width: 74px; height: 26px; }
}