/* "Gallery Night" (brief 4.2): one accent, Varnish Amber, for the question mark, the spotlight and the button edge.
   The site is always dark, like the app (brief 2.7). Phone first; desktop is the same column, centred. */
:root {
  --ink: #0e0d0c;
  --graphite: #1c1a18;
  --slate: #2a2724;
  --ivory: #f3eee4;
  --stone: #a8a29a;
  --amber: #e2b45c;
  --amber-deep: #b98a2e;
  --hairline: rgba(168, 162, 154, 0.3);
  --spotlight: rgba(226, 180, 92, 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --column: 430px;
  --cta-space: calc(96px + env(safe-area-inset-bottom));
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 17px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.top, main, .foot {
  max-width: var(--column);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(16px, env(safe-area-inset-top));
  min-height: 60px;
}

/* The wordmark (brief 4.1): "hm" Regular in Stone, "muse" Semibold in Ivory, the amber question mark. */
.wordmark {
  font: 400 24px/1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark .hm { color: var(--stone); }
.wordmark .muse { color: var(--ivory); font-weight: 600; }
.wordmark .q { color: var(--amber); font-weight: 600; }

.lang {
  font-size: 13px;
  line-height: 18px;
  color: var(--stone);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 32px;
}

/* First screen: the tagline on plain Ink, then the film lit like a painting. */
.hero h1 {
  font: 600 34px/1.08 var(--display);
  letter-spacing: -0.02em;
  margin: 20px 0 0;
}
.lede {
  color: var(--stone);
  font-size: 15px;
  line-height: 1.45;
  margin: 10px 0 0;
}

.film {
  position: relative;
  margin: 28px auto 0;
  width: min(64vw, 270px);
}
.film::before {
  content: "";
  position: absolute;
  inset: -30% -20%; /* stays inside the gutters, so the page never scrolls sideways on a phone */
  background: radial-gradient(closest-side, var(--spotlight), transparent);
  pointer-events: none;
}
.film video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--graphite);
  border: 3px solid var(--amber-deep);
  box-shadow: inset 0 0 0 1px var(--amber), 0 24px 60px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}
.sound {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font: 500 13px/18px var(--sans);
  color: var(--ivory);
  background: rgba(14, 13, 12, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
}

/* After one scroll: three beats, a real app screen beside each. */
.beats { margin-top: 56px; }
.beat {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}
.beat img {
  flex: none;
  width: 104px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--slate);
  background: var(--graphite);
}
.beat h2 {
  font: 600 20px/1.2 var(--display);
  margin: 0 0 6px;
}
.beat p {
  color: var(--stone);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.disclosure {
  color: var(--stone);
  font-size: 13px;
  line-height: 18px;
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--stone);
  font-size: 13px;
  line-height: 18px;
  padding-top: 24px;
  padding-bottom: 32px;
}
.foot a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot span { display: inline-flex; align-items: center; min-height: 32px; }
.home .foot { padding-bottom: var(--cta-space); }

/* The button stays in thumb reach while scrolling. Before release it is a note, not a link. */
.cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px max(var(--gutter), env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(14, 13, 12, 0), var(--ink) 40%);
}
.store {
  display: block;
  max-width: calc(var(--column) - 2 * var(--gutter));
  margin: 0 auto;
  text-align: center;
}
.soon {
  font: 600 17px/22px var(--sans);
  color: var(--ivory);
  background: var(--slate);
  border: 1px solid rgba(226, 180, 92, 0.55);
  border-radius: 14px;
  padding: 12px 16px;
}
.soon small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--stone);
}
.store img { display: inline-block; height: 48px; width: auto; }

/* Desktop is a side case: you cannot install an iPhone app from a laptop, so a QR code takes the button's place. */
.qr { display: none; }
@media (min-width: 820px) and (hover: hover) and (pointer: fine) {
  body.home {
    background: radial-gradient(60vw 50vh at 50% 30%, rgba(226, 180, 92, 0.05), transparent), var(--ink);
  }
  .cta { display: none; }
  .home .foot { padding-bottom: 32px; }
  .qr {
    display: flex;
    align-items: center;
    gap: 14px;
    position: fixed;
    right: 32px;
    bottom: 32px;
    max-width: 280px;
    padding: 14px;
    background: var(--graphite);
    border: 1px solid var(--hairline);
    border-radius: 16px;
  }
  .qr svg { width: 96px; height: 96px; flex: none; border-radius: 6px; }
  .qr p { margin: 0; color: var(--stone); font-size: 13px; line-height: 18px; }
  .qr strong { display: block; color: var(--ivory); font-size: 15px; line-height: 20px; margin-bottom: 2px; }
  .sound { cursor: pointer; }
}

/* Privacy, Support and 404. */
.doc main h1 { font: 600 34px/1.1 var(--display); letter-spacing: -0.02em; margin: 24px 0 0; }
.doc main h2 { font: 600 20px/1.25 var(--display); margin: 32px 0 8px; }
.doc main p { margin: 0 0 12px; }
.doc main a { color: var(--amber); }
.doc .lede { font-size: 17px; }
.updated { color: var(--stone); font-size: 13px; margin-top: 32px !important; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
