/* Vistellar — vistellar.app. Dark only and neutral gray, like the app; the app icon and the screenshots are the only colour. */

:root {
  --bg: #111111;
  --surface: #1e1e1e;
  --line: #3a3a3a;
  --rule: #262626;
  --ink: #ffffff;
  --ink-body: #cccccc;
  --ink-soft: #9a9a9a;
  --button: #2a2a2a;
  /* the app's main button: a faint bright rim plus a touch of highlight along the top edge */
  --button-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);

  /* Every Fraunces rule pins the smallest optical size, as in the App Store screenshots: left on auto, large titles
     switch to the high-contrast display cut, whose narrow letters and tight fit read cramped. Write it after the
     `font` shorthand in the same rule: the shorthand resets both properties. */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- masthead ---------- */
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 22.37%; }
.brand span {
  font: 400 21px/1 var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 9;
  letter-spacing: -0.01em;
}
.mast nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.mast nav a:hover { color: var(--ink); }

/* ---------- store button: the app's gray capsule ---------- */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 30px 12px 24px;
  border-radius: 999px;
  background: var(--button);
  box-shadow: var(--button-edge);
  color: var(--ink);
  text-decoration: none;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font: 500 11px/1.2 var(--sans); letter-spacing: 0.02em; color: var(--ink-soft); }
.store strong { display: block; font: 600 19px/1.15 var(--sans); }
a.store:hover { background: #313131; }
/* Before launch: same capsule, not a link, nothing to press. */
.store--soon { cursor: default; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.hero-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 32px;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero h1 {
  font: 400 clamp(48px, 12vw, 84px)/1.04 var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 9;
  letter-spacing: -0.02em;
}
.lede { max-width: 28em; margin: 24px auto 0; color: var(--ink-soft); font-size: clamp(17px, 2vw, 19px); }
.hero .store { margin-top: 36px; }

/* ---------- App Store screenshots ---------- */
/* Each image carries its own dark ground, phone frame and margins, so no frame and no gap here.
   Narrow screens: one row that scrolls sideways and snaps, with the next shot peeking in so it reads as swipeable.
   Wide screens: all five side by side, nothing hidden. */
.shots ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.shots ul::-webkit-scrollbar { display: none; }
.shots li { flex: 0 0 min(72vw, 320px); scroll-snap-align: start; }
.shots img { width: 100%; }
@media (min-width: 900px) {
  .shots ul { width: min(1080px, 100% - 40px); margin-inline: auto; overflow: visible; }
  .shots li { flex: 1 1 0; min-width: 0; }
}

/* ---------- support: a plain reading column, no motion or decoration ---------- */
/* Spacing above is a margin, so the /#support anchor lands just above the heading rather than above an empty band. */
.support { margin-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(48px, 7vw, 80px); scroll-margin-top: 28px; }
.doc { width: min(42rem, 100% - 40px); margin: 0 auto; }
.doc h2 {
  font: 400 clamp(40px, 7vw, 52px)/1.05 var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 9;
  letter-spacing: -0.015em;
}
.doc .lede { margin: 12px 0 28px; max-width: none; font-size: 17px; }
.doc section {
  margin-top: 12px;
  padding: 20px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  scroll-margin-top: 16px;
}
.doc h3 {
  font: 400 22px/1.25 var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 9;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.doc p { color: var(--ink-body); font-size: 16px; overflow-wrap: anywhere; }
.doc p + p { margin-top: 10px; }
@media (min-width: 640px) {
  .doc section { padding: 24px 28px 26px; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.foot nav a { color: var(--ink-soft); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .copy { color: var(--ink-soft); font-size: 14px; }
