/* Dead Summer Hot Sauce Co. — brand tokens pulled from the logo */
:root {
  --bone: #faf5ec;      /* logo background */
  --ink: #1b1816;       /* cactus + wordmark */
  --chili: #c4321a;     /* "HOT SAUCE" red */
  --ember: #e8741e;     /* lower sun orange */
  /* --bone must match the logo's background exactly so the image edge disappears */
}

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

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

body {
  background: var(--bone);
  color: var(--ink);
  font-family: "Zilla Slab", Georgia, serif;
  overflow: hidden;
}

.splash {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vh, 2rem);
  padding: 16px;
}

.logo {
  position: relative;
  margin: 0;
  width: min(88vw, 720px);
  max-height: 72vh;
  max-height: 72dvh;
  opacity: 0;
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: inherit;
  object-fit: contain;
}

.tagline {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin: 0;
  color: var(--chili);
  font-weight: 700;
  font-size: clamp(0.8rem, 2.2vw, 1.05rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  animation: fade 1s 1.3s ease-out forwards;
}

.rule {
  flex: none;
  width: clamp(1.5rem, 6vw, 3.5rem);
  height: 2px;
  background: var(--chili);
}

/* Print-style grain to match the distressed logo */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .tagline { letter-spacing: 0.18em; }
  .rule { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .tagline {
    animation: none;
    opacity: 1;
  }
}
