/* Wham Bam Bagels: coming soon page
   Palette taken from logo.png */
:root {
  --maroon: #8a0327;
  --pink: #fc9597;
  --cream: #fbf7f2;
  --muted: #8c6b73;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cream);
  color: var(--maroon);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) 1.5rem 2rem;
  animation: fade-in .9s ease-out both;
}

.logo {
  width: clamp(180px, 30vw, 300px);
  height: auto;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.brand {
  margin: 0 0 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.tagline {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
}

.address {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: .6rem;
  font-size: .92rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.address svg { fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.address:hover,
.address:focus-visible {
  color: var(--maroon);
  border-bottom-color: var(--pink);
  outline: none;
}

.contact {
  margin-top: clamp(2.25rem, 6vh, 3.25rem);
  padding: .85rem 1.75rem;
  border: 1.5px solid var(--maroon);
  border-radius: 999px;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: background-color .2s ease, color .2s ease;
}

.contact:hover,
.contact:focus-visible {
  background: var(--maroon);
  color: var(--cream);
  outline: none;
}

.instagram {
  --ig-gradient: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: .7rem 1.4rem .7rem .7rem;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, var(--pink), rgba(252, 149, 151, .25)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 10px 30px -12px rgba(138, 3, 39, .35);
  color: var(--maroon);
  text-decoration: none;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.ig-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ig-gradient);
  box-shadow: 0 6px 14px -6px rgba(214, 41, 118, .6);
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.ig-icon svg { fill: none; stroke: #fff; stroke-width: 2; }
.ig-icon .ig-dot { fill: #fff; stroke: none; }

.ig-text { display: flex; flex-direction: column; line-height: 1.15; }

.ig-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.ig-handle {
  margin-top: .2rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--maroon), #d62976);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ig-arrow {
  margin-left: .25rem;
  fill: none;
  stroke: var(--pink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform .25s ease, stroke .25s ease;
}

.instagram:hover,
.instagram:focus-visible {
  transform: translateY(-3px);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--ig-gradient) border-box;
  box-shadow: 0 16px 36px -14px rgba(214, 41, 118, .55);
  outline: none;
}

.instagram:hover .ig-icon,
.instagram:focus-visible .ig-icon { transform: rotate(-8deg) scale(1.08); }

.instagram:hover .ig-arrow,
.instagram:focus-visible .ig-arrow { transform: translate(3px, -3px); stroke: #d62976; }

@media (prefers-reduced-motion: reduce) {
  .instagram, .ig-icon, .ig-arrow { transition: none; }
}

.footer {
  padding: 1.5rem;
  font-size: .8rem;
  color: var(--muted);
}

.copyright { margin: 0; opacity: .8; }

.visits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.25rem;
}

.visits[hidden] { display: none; }

.visits-label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.visits-digits {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--pink);
  box-shadow: 0 8px 22px -12px rgba(138, 3, 39, .45);
}

.digit {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 2.2rem;
  border-radius: 7px;
  background: linear-gradient(180deg, #a3062f 0%, var(--maroon) 50%, #6f0220 50%, var(--maroon) 100%);
  color: var(--cream);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
  animation: digit-in .6s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}

.digit::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(252, 149, 151, .35);
}

@keyframes digit-in {
  from { opacity: 0; transform: translateY(-60%) rotateX(80deg); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .digit { animation: none; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
}
