/* Pau Hana Creamery, coming soon. Follows style guide v1.5. */
:root {
  --yellow: #ffb814;
  --ink: #010b13;
  --foam: #f9fbfc;
  --logo-max: min(70vw, 30rem);
}

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

html, body { height: 100%; margin: 0; padding: 0; }

body {
  background: var(--yellow);
  color: var(--ink);
  font-family: "Josefin Sans", system-ui, sans-serif;
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Illustration: hand cut tiles, splats printed off register. Flat color only. */
.backdrop { position: fixed; inset: 0; z-index: 0; }
.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art--m { display: none; }
@media (max-width: 700px), (max-aspect-ratio: 1 / 1) {
  .art--d { display: none; }
  .art--m { display: block; }
}

.tile { animation: settle 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 90ms); }

/* Resting bounce: a few pixels up and down, each tile on its own rhythm */
@property --amp { syntax: "<length>"; inherits: true; initial-value: 4px; }
.bob {
  --amp: 4px;
  animation: bob calc(3s + var(--i) * 0.35s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.7s);
  transition: --amp 420ms cubic-bezier(0.3, 1.5, 0.5, 1);
}
.react { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 380ms cubic-bezier(0.3, 1.6, 0.5, 1); }

/* Hover or tap: a higher bounce, one squash and stretch, and a small extra tilt */
@media (hover: hover) {
  .tile:hover .bob { --amp: 14px; }
  .tile:hover .react { transform: rotate(var(--tilt)) scale(1.035); animation: boing 520ms ease-out; }
}

@keyframes bob { from { transform: translateY(0); } to { transform: translateY(calc(var(--amp) * -1)); } }
@keyframes boing {
  0% { transform: rotate(0) scale(1, 1); }
  30% { transform: rotate(calc(var(--tilt) * .5)) scale(1.07, .93); }
  60% { transform: rotate(var(--tilt)) scale(.97, 1.04); }
  100% { transform: rotate(var(--tilt)) scale(1.035); }
}

.page {
  pointer-events: none;
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.content {
  pointer-events: auto;
  width: min(100%, 38rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.9rem, 2.2vw, 1.4rem);
  animation: rise-in 800ms ease-out both;
}

.logo { display: block; width: var(--logo-max); height: auto; max-width: 100%; user-select: none; pointer-events: none; }

.eyebrow { margin: 0.25rem 0 0; font-size: 0.95rem; line-height: 1.25; font-weight: 700; text-transform: uppercase; }

.tagline { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.4; font-weight: 400; max-width: 28rem; }

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }

/* Pill buttons, as in the style guide: ink with sea foam text (19.1 to 1) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--foam);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 200ms ease;
}
.pill svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0); }
.pill:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.fineprint { margin: 0.25rem 0 0; font-size: 0.8rem; line-height: 1.25; font-weight: 500; }

@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .content, .tile, .bob, .react { animation: none !important; transition: none; }
  .pill { transition: none; }
}
