/* Bunniez site. The look is the app's own (Bunniez/Design/Theme.swift):
   warm paper, ink, one carrot. Space 4, 8, 12, 16, 24, 32 with a 20 px
   page margin. Corners 28 for pictures, 20 for cards. The hero face is for
   headlines only; everything else is the system's own type. */

@font-face {
  font-family: "Bunniez Hero";
  src: url("fonts/hero.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #F7F3EC;
  --card: #FFFFFF;
  --well: #EFE9DE;
  --line: #E6DED1;
  --text: #16110E;
  --text2: #6F665C;
  --ink: #16110E;
  --on-ink: #FBF5EA;
  --carrot-text: #B8440A;
  --mark: #EE560A;

  --hero: "Bunniez Hero", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #100D0B;
    --card: #1C1714;
    --well: #27201B;
    --line: #2B241E;
    --text: #FBF5EA;
    --text2: #ADA296;
    --ink: #FBF5EA;
    --on-ink: #16110E;
    --carrot-text: #FF7A33;
    --mark: #FF6A1A;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--mark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1;
}
.skip:focus { top: 12px; }

/* The name, drawn from the app's own rabbit and type. */
.wordmark { color: var(--text); }
.wordmark img { height: 28px; width: auto; }
a.wordmark {
  display: inline-block;
  padding: 8px 0;
  margin: -8px 0;
}

.hero {
  font-family: var(--hero);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0;
}

/* Footer: three plain links. */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  font-size: 15px;
  color: var(--text2);
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.foot a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 4px; }
.foot small { font-size: 13px; }

/* ---------- Landing ---------- */

.landing {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 20px 8px;
  display: flex;
  flex-direction: column;
}

.landing main {
  flex: 1;
  padding-top: 20px;
}

.landing h1 { font-size: clamp(36px, 11.2vw, 56px); }

.lede {
  margin: 12px 0 0;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* On a phone the picture is the jump, the line and the number, cropped
   from the share video. It gets whatever height the screen has left,
   keeping its shape, so the whole page stays on one screen. The still is
   always there; the looping video, when it plays, sits exactly over it. */
.shot {
  position: relative;
  margin: 16px 0 0;
  height: min(clamp(240px, calc(100vh - 336px), 560px), calc((min(100vw, 480px) - 40px) * 1.2778));
  height: min(clamp(240px, calc(100svh - 336px), 560px), calc((min(100vw, 480px) - 40px) * 1.2778));
  aspect-ratio: 1080 / 1380;
  max-width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--well);
}
.shot img,
.shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot video {
  position: absolute;
  inset: 0;
}

/* Pause and play: the whole picture is the button. The word shows on
   hover, on keyboard focus, and while paused. */
.shot-toggle {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shot-toggle:focus-visible {
  outline: 3px solid var(--mark);
  outline-offset: -3px;
  border-radius: 28px;
}
.shot-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 17, 14, 0.75);
  color: #FBF5EA;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0;
}
.shot-toggle:hover .shot-tag,
.shot-toggle:focus-visible .shot-tag,
.shot-toggle[data-paused] .shot-tag { opacity: 1; }

/* The one action. Until the app is out it is the place the button will
   be, filled like a picture placeholder, and goes nowhere. */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.landing .cta { margin-top: 16px; }
.cta:not([href]) {
  background: var(--well);
  color: var(--text);
  cursor: default;
}
.cta[href] {
  background: var(--ink);
  color: var(--on-ink);
}
.cta[href]:hover { opacity: 0.85; }
.cta[href]:active { opacity: 0.8; }
.cta:not([href]) .cta-live,
.cta[href] .cta-soon { display: none; }

.landing .foot { margin-top: 4px; }

@media (min-width: 880px) {
  .landing {
    max-width: 1160px;
    padding: 32px 48px 24px;
  }
  .wordmark img { height: 32px; }
  .landing main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 80px;
    padding: 24px 0;
  }
  .landing h1 { grid-column: 1; grid-row: 2; font-size: clamp(56px, 5.4vw, 80px); }
  .lede { grid-column: 1; grid-row: 3; font-size: 20px; max-width: 26em; margin-top: 16px; }
  .landing .cta { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 32px; min-width: 320px; }
  .shot {
    grid-column: 2;
    grid-row: 1 / -1;
    margin: 0;
    height: clamp(480px, calc(100vh - 200px), 800px);
    aspect-ratio: 9 / 16;
  }
}

/* ---------- Terms and Privacy ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px 24px;
}

.doc main { padding-top: 32px; }

.doc h1 { font-size: clamp(36px, 9.6vw, 56px); }

.updated {
  margin: 8px 0 0;
  color: var(--text2);
  font-size: 15px;
}

.summary {
  margin: 24px 0 0;
  padding: 20px 24px;
  background: var(--card);
  border-radius: 20px;
}
.doc .summary h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}
.summary ul { margin: 12px 0 0; padding-left: 20px; }
.summary li + li { margin-top: 8px; }

.doc h2 {
  margin: 40px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.doc h3 {
  margin: 24px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.doc p, .doc ul { margin: 12px 0 0; }
.doc p, .doc li { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc main a {
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.doc main a:hover { color: var(--carrot-text); }

.doc .foot {
  margin-top: 48px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.doc .foot small { flex-basis: 100%; padding-bottom: 8px; }

@media (min-width: 880px) {
  .doc { padding: 32px 48px 32px; }
  .doc main { padding-top: 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .cta[href], .foot a { transition: opacity 0.15s ease, color 0.15s ease; }
}
