/* Light theme only: the pastel sky video is the brand, a dark variant would fight it.
   Shape rule: buttons and inputs are full pills, cards and tiles are 24px. */
:root {
  --sky: #eef4fb;
  --sky-deep: #dce9f7;
  --blush: #f8e6ee;
  --ink: #1d2230;
  --ink-soft: #4a5266;
  --accent: #b8336a;
  --radius: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Bricolage Grotesque", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, #fbf7fb 55%, var(--blush) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* dreamcore film grain, fixed so it never repaints on scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(29 34 48 / 0.18); }
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
/* past the hero the nav needs a backdrop so it never sits on top of body text */
.nav.solid {
  background: rgb(238 244 251 / 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-logo { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; transition: opacity 0.4s var(--ease); }.nav-links { display: flex; gap: 48px; }
.nav-links a { text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.nav .btn { justify-self: end; }

/* hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: url("assets/hero.jpg") center / cover;
}
@media (orientation: portrait) {
  .hero { background-image: url("assets/hero-portrait.jpg"); }
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content {
  position: relative;
  text-align: center;
  padding: 0 16px;
  animation: rise 1.2s var(--ease) both;
}
.wordmark img {
  width: clamp(260px, 50vw, 660px);
  margin: 0 auto;
  /* chrome reflects the sky it sits on, a soft tinted shadow keeps the letters apart from it */
  filter: drop-shadow(0 12px 28px rgb(32 78 140 / 0.35));
}
.hero-sub {
  margin: 8px auto 32px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* section basics */
section:not(.hero) { padding: 96px 24px; max-width: 1280px; margin: 0 auto; }
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 40px;
}

/* lists marquee (the page's only marquee) */
.lists { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.lists .section-title { max-width: 1280px; margin: 0 auto 40px; padding: 0 24px; }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 8px 0;
  list-style: none;
  animation: slide 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 10px)); } }
.list-card {
  width: 220px;
  flex: none;
  transition: transform 0.4s var(--ease);
}
.list-card:hover { transform: translateY(-6px) rotate(-1deg); }
.list-card .art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #d9ecfb, #f6dbe8);
  box-shadow: 0 12px 30px rgb(84 118 176 / 0.16);
}
.list-card:nth-child(4n + 2) .art { background: linear-gradient(160deg, #fdf0c9, #f8d9e3); }
.list-card:nth-child(4n + 3) .art { background: linear-gradient(160deg, #e5defa, #d3ecf7); }
.list-card:nth-child(4n + 4) .art { background: linear-gradient(160deg, #d6f2e6, #e7e3fa); }
.list-card .art { overflow: hidden; }
.list-card .art img { width: 72%; height: 78%; object-fit: contain; filter: drop-shadow(0 14px 18px rgb(32 78 140 / 0.2)); }
.list-card span { display: block; margin-top: 12px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

/* eat / play / after dark bento: one tall tile + two stacked */
.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}
.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}
.tile img { width: 140px; max-height: 180px; object-fit: contain; flex: none; filter: drop-shadow(0 14px 18px rgb(32 52 90 / 0.25)); }
.tile h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.tile p { margin-top: 6px; color: var(--ink-soft); line-height: 1.5; max-width: 34ch; }
.tile-eat {
  grid-row: span 2;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(160deg, #fde9c8, #f6cfdc);
}
.tile-eat img { width: min(300px, 70%); max-height: none; transform: rotate(-8deg); }
.tile-eat h2 { font-size: 64px; }
.tile-play { background: linear-gradient(160deg, #e6defa, #d6ecf8); }
.tile-night { background: linear-gradient(160deg, #2b2f4a, #4b3e66); color: #fff; }
.tile-night p { color: #d9d6ea; }

/* how it works: 2 x 2, no cards */
.how-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
  list-style: none;
  padding: 0;
}
.how-list li { display: flex; gap: 18px; }
.how-list i { font-size: 32px; color: var(--accent); flex: none; }
.how-list h3 { font-size: 22px; letter-spacing: -0.02em; }
.how-list p { margin-top: 4px; color: var(--ink-soft); line-height: 1.55; max-width: 40ch; }

/* manifesto */
.manifesto p {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-align: center;
  max-width: 16ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* join */
.join { text-align: center; }
.join .section-title { margin-bottom: 12px; }
.join-sub { color: var(--ink-soft); font-size: 18px; margin-bottom: 32px; }
.join-form { display: grid; gap: 8px; max-width: 520px; margin: 0 auto; text-align: left; }
.join-form label { font-weight: 600; padding-left: 20px; }
.join-row { display: flex; gap: 10px; }
.join-row input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #b9c6d8;
  border-radius: 999px;
  padding: 14px 20px;
  font: 16px var(--font);
  color: var(--ink);
  background: #fff;
}
.join-row input::placeholder { color: #6b7387; }
.join-row input[aria-invalid="true"] { border-color: var(--accent); }
.or { text-align: center; color: var(--ink-soft); margin: 6px 0 2px; }
.btn-google {
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #b9c6d8;
}
.btn-google:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(29 34 48 / 0.1); }
.btn-google i { font-size: 20px; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.signed-in .join-form { display: none; }
.form-msg { min-height: 1.5em; padding-left: 20px; color: var(--ink-soft); }
.form-msg.error { color: var(--accent); }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  color: var(--ink-soft);
}

/* scroll reveal, set up by main.js */
.reveal.pending { opacity: 0; transform: translateY(32px); }
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

@media (max-width: 767px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 16px; }
  .nav-links { display: none; }
  section:not(.hero) { padding: 72px 16px; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile-eat { grid-row: auto; }
  .tile img { width: 96px; }
  .how-list { grid-template-columns: 1fr; gap: 28px; }
  .join-row { flex-direction: column; }
  .list-card { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content, .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .reveal.pending { opacity: 1; transform: none; }
  .btn, .list-card, .reveal { transition: none; }
}
