/* Fraunces by Undercase Type, SIL Open Font License (see fonts/OFL.txt). */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Fraunces", Georgia, "Times New Roman", serif;
  --text-size: 16px;
  --space: 8px;
  --ink: #e8e4f0;
  --link: #e8e4f0;
  --link-hover: #ffffff;
  --bg-fallback: #0d0b14;
}

html {
  min-height: 100%;
  background-color: var(--bg-fallback);
}

body {
  margin: var(--space);
  min-height: calc(100vh - 2 * var(--space));
  font-family: var(--font);
  font-size: var(--text-size);
  font-weight: 400;
  line-height: normal;
  color: var(--ink);
  overflow-x: hidden;
}

/* Full-window background picture that stays put while scrolling. */
html.bg-home { background: var(--bg-fallback) url("bg-home.svg") center / cover no-repeat fixed; }
html.bg-vibes { background: var(--bg-fallback) url("bg-vibes.svg") center / cover no-repeat fixed; }

p { margin: 0 0 var(--space); }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover,
a:focus-visible { color: var(--link-hover); }

/* Home: a big centred "Hi" with a bouncing "vibes" link under it. */
.home {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  box-sizing: border-box;
  text-align: center;
}

.hello {
  margin: 0;
  font-size: clamp(6rem, 24vw, 15rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(160, 170, 255, 0.18);
}

.bounce {
  display: inline-flex;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.4rem 0.2rem 0.3rem;
  border-bottom: 1px solid rgba(232, 228, 240, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.bounce:hover,
.bounce:focus-visible { border-bottom-color: var(--link-hover); }

.bounce span {
  display: inline-block;
  animation: bounce 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-0.28em); }
}

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

/* Vibes: centred links in the same font, stacked. */
/* Vibes: centred button-style links, stacked, all the same width. */
.vibe-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 1.25rem;
  width: min(22rem, 100%);
}

.vibe-link {
  display: block;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.85rem 1.75rem 0.95rem;
  border: 1px solid rgba(232, 228, 240, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.vibe-link:hover,
.vibe-link:focus-visible {
  color: var(--link-hover);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 170, 200, 0.15);
}
.vibe-link:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.vibe-link:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .vibe-link, .vibe-link:hover, .vibe-link:focus-visible { transition: none; transform: none; }
}

/* The plain page for A Night Out. */
html.plain { background: #ffffff; }
html.plain body { color: #000000; }
html.plain a { color: #0000ee; }
