/* =========================================================
   Pierce the DJ — styles
   Black and white only. Big condensed type. Lots of space.
   Written "mobile first": phone styles come first, and the
   @media block at the bottom tweaks things for bigger screens.
   ========================================================= */

/* The only two colors on the site */
:root {
  --black: #000;
  --white: #fff;
  --headline-font: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --small-font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--small-font);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar (back arrow + progress) ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  z-index: 10;
}

.back {
  font-size: 28px;
  line-height: 1;
  width: 48px; height: 48px;           /* big enough to tap with a thumb */
  background: none;
  border: none;
  color: var(--black);
  cursor: pointer;
}
.back[hidden] { visibility: hidden; display: block; } /* keep its space so the bar doesn't jump */

.progress {
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- Screens ---------- */
/* Every screen is hidden except the one with class "active" */
.screen { display: none; }

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  min-height: 100dvh;                   /* phones: ignores the browser's address bar */
  padding: 80px 16px 40px;
  max-width: 560px;
  margin: 0 auto;
}

.wordmark {
  width: min(60vw, 280px);
  height: auto;
  margin-bottom: 48px;
}

h1 {
  font-family: var(--headline-font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(44px, 13vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}

.hint {
  font-size: 14px;
  margin: -16px 0 24px;
}

/* ---------- Answer buttons ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.option,
.next {
  font-family: var(--headline-font);
  text-transform: uppercase;
  font-size: 28px;
  min-height: 64px;                     /* big tap target */
  width: 100%;
  border: 3px solid var(--black);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}

/* Tapped / chosen buttons flip to black */
.option:active,
.option.selected {
  background: var(--black);
  color: var(--white);
}

/* The "Next" / "Send" button is always solid black */
.next {
  background: var(--black);
  color: var(--white);
  margin-top: 16px;
}

/* ---------- Text inputs ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}
.field[hidden] { display: none; }

input {
  font-family: var(--small-font);
  font-size: 18px;                      /* 16px+ stops iPhones zooming in */
  min-height: 56px;
  padding: 0 14px;
  width: 100%;
  border: 3px solid var(--black);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  -webkit-appearance: none;
  appearance: none;
}
input:focus { outline: 3px solid var(--black); outline-offset: 2px; }

.field .hint { margin: 4px 0 0; }

/* Space between the date box and the "Not sure yet" button */
.date-options { margin-top: 10px; }

.error {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

/* ---------- First screen: full-screen logo, then question 1 ---------- */
/* Screen 1 is two stacked full-height panels instead of one centered box */
.screen[data-step="1"].active {
  display: block;
  max-width: none;
  padding: 0;
}

/* Panel 1: just the logo, filling the whole screen */
.intro {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wordmark-big {
  width: min(88vw, 640px);
  height: auto;
  max-height: 70dvh;
}

/* The little down arrow at the bottom; tapping it scrolls to question 1 */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  color: var(--black);
  text-decoration: none;
  width: 56px; height: 56px;
  line-height: 56px;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* Panel 2: question 1. It's exactly one screen tall and nothing comes
   after it, so the page can't scroll past it. */
.first-question {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 16px;
}

.progress-inline {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}

/* The top bar is hidden on the first screen */
.topbar[hidden] { display: none; }

html { scroll-behavior: smooth; }

/* ---------- Thank-you screen ---------- */
.mix {
  width: 100%;
  height: 166px;          /* SoundCloud's standard player height */
  border: 0;
}

/* ---------- Bigger screens (tablets, laptops) ---------- */
@media (min-width: 768px) {
  .options { gap: 14px; }
  .option, .next { font-size: 32px; min-height: 72px; }
  .option:hover { background: var(--black); color: var(--white); }
}

/* ---------- Spam trap ---------- */
/* Moved far off-screen so people never see it (bots still do) */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* "Sending…" state on the Send button */
.next:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Transitions between questions ---------- */
/* The new screen fades in while sliding a little from the side.
   Going back, it slides from the other side. */
.screen.active {
  animation: enter-forward 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
body[data-direction="back"] .screen.active {
  animation-name: enter-back;
}

/* The old screen fades and slides out first (script.js waits for this) */
body[data-direction] .screen.active.leaving-forward {
  animation: leave-forward 0.18s ease-in both;
}
body[data-direction] .screen.active.leaving-back {
  animation: leave-back 0.18s ease-in both;
}

@keyframes enter-forward { from { opacity: 0; transform: translateX(32px); } }
@keyframes enter-back    { from { opacity: 0; transform: translateX(-32px); } }
@keyframes leave-forward { to   { opacity: 0; transform: translateX(-32px); } }
@keyframes leave-back    { to   { opacity: 0; transform: translateX(32px); } }

/* Stop the slide from causing a sideways scrollbar */
body { overflow-x: hidden; }

/* Phones with "Reduce Motion" turned on: no animation */
@media (prefers-reduced-motion: reduce) {
  .screen, .screen.active { animation: none !important; }
  .scroll-hint { animation: none; }
}
