/* Vision — landing.
   Same language as the app: two surfaces, warm amber, Bricolage at full
   size, hairlines instead of boxes, grain over everything. Hand-written;
   the previous page was a 474 kB Figma export that needed JavaScript to
   show its own text. */

:root {
  --paper: #f5efe6;
  --paper-warm: #faeadb;
  --ink: #1a0c05;
  --ink-text: #2e1409;
  --ink-60: #6b5546;
  --ink-45: #8a7866;
  --ink-30: #a89883;

  --amber: #ef6a30;
  --amber-light: #ffb152;
  --amber-deep: #b35b27;

  --on-ink: #fff7ee;
  --on-ink-60: rgb(255 247 238 / 0.62);
  --on-ink-35: rgb(255 247 238 / 0.35);

  --rule: rgb(26 12 5 / 0.12);
  --rule-strong: rgb(26 12 5 / 0.22);
  --rule-on-ink: rgb(255 247 238 / 0.18);

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-text: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-label: 0.6875rem;
  --text-sm: 0.875rem;
  --text-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-section: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --text-hero: clamp(2.75rem, 1.2rem + 7vw, 6rem);

  --track-tight: -0.035em;
  --track-label: 0.16em;

  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --measure: 62rem;
  --space-section: clamp(4rem, 2.5rem + 7vw, 9rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grain, generated rather than shipped. Overlay so it textures both the
   ink and the paper instead of only darkening. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.5'/></svg>");
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--amber-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-45);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.label__i { color: var(--amber-deep); font-variant-numeric: tabular-nums; }

.on-ink .label { color: var(--on-ink-35); }
.on-ink .label::after { background: var(--rule-on-ink); }
.on-ink .label__i { color: var(--amber-light); }

/* MARK: - Nav */

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  color: var(--on-ink);
}

.nav__word {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
}

.nav__link {
  color: var(--on-ink-60);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms linear;
}
.nav__link:hover { color: var(--on-ink); }

/* MARK: - Hero */

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: 8rem var(--gutter) var(--space-section);
  background: var(--ink);
  color: var(--on-ink);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(74% 56% at 82% -6%, rgb(255 140 60 / 0.8), transparent 60%),
    radial-gradient(52% 44% at 10% 10%, rgb(255 190 110 / 0.26), transparent 66%),
    radial-gradient(130% 70% at 50% 128%, rgb(26 12 5 / 0.92), transparent 70%);
}

.hero__inner { width: 100%; max-width: var(--measure); margin: 0 auto; }

.hero__kicker {
  margin-bottom: 1.75rem;
  color: var(--on-ink-60);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.hero__title { font-size: var(--text-hero); max-width: 16ch; }

/* The second line is the turn; it reads as a different voice. */
.hero__title em {
  display: block;
  font-style: normal;
  color: var(--amber-light);
}

.hero__lede {
  max-width: 44ch;
  margin-top: 2rem;
  color: var(--on-ink-60);
  font-size: var(--text-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.75rem;
}

.hero__note {
  margin-top: 1.5rem;
  color: var(--on-ink-35);
  font-size: var(--text-sm);
}

/* MARK: - Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(118deg, var(--amber-light), var(--amber) 62%, var(--amber-deep));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--track-tight);
  text-decoration: none;
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms linear;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgb(239 106 48 / 0.3); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--rule-on-ink);
  color: var(--on-ink);
}
.btn--ghost:hover { border-color: var(--on-ink-60); box-shadow: none; }

/* MARK: - Acts */

.act { padding: var(--space-section) 0; border-bottom: 1px solid var(--rule); }

.act--ink {
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 0;
}

.act__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  margin-top: 2.5rem;
}

@media (min-width: 56rem) {
  .act__grid { grid-template-columns: 1fr 1fr; align-items: center; }
  /* Alternating sides stop the page reading as a list of identical rows. */
  .act:nth-of-type(even) .act__specimen { order: -1; }
}

.act__title { font-size: var(--text-section); max-width: 18ch; }

.act__body {
  max-width: 44ch;
  margin-top: 1.25rem;
  color: var(--ink-60);
  font-size: var(--text-lg);
}

.act--ink .act__body { color: var(--on-ink-60); }

/* MARK: - Specimens
   Real pieces of the product's interface rather than a stock phone mockup:
   the page shows the thing it is describing. */

.spec {
  padding: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper-warm);
}

.act--ink .spec {
  border-color: var(--rule-on-ink);
  background: rgb(255 247 238 / 0.04);
}

.spec__label {
  margin-bottom: 1.25rem;
  color: var(--ink-45);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.act--ink .spec__label { color: var(--on-ink-35); }

.axis + .axis { margin-top: 1.5rem; }

.axis__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.axis__scale { position: relative; height: 1px; background: var(--rule-strong); }
.act--ink .axis__scale { background: var(--rule-on-ink); }

.axis__dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px var(--paper-warm);
}
.act--ink .axis__dot { box-shadow: 0 0 0 5px #231307; }

.axis__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  color: var(--ink-30);
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.act--ink .axis__ends { color: var(--on-ink-35); }

.bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 0.9375rem;
}
.bubble + .bubble { margin-top: 0.6rem; }

.bubble--them {
  border: 1px solid var(--rule-on-ink);
  border-bottom-left-radius: 6px;
}
.bubble--me {
  margin-left: auto;
  border-bottom-right-radius: 6px;
  background: var(--on-ink);
  color: var(--ink);
}

.reading + .reading { margin-top: 1.5rem; }
.reading__t {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
  margin-bottom: 0.35rem;
}
.reading__b { color: var(--ink-60); font-size: 0.9375rem; }
.act--ink .reading__b { color: var(--on-ink-60); }

.reading--gap { padding-left: 1rem; border-left: 2px solid var(--amber); }

.bar + .bar { margin-top: 1.25rem; }
.bar__head { display: flex; justify-content: space-between; align-items: baseline; }
.bar__n { font-family: var(--font-display); font-weight: 600; }
.bar__v { color: var(--amber-deep); font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.act--ink .bar__v { color: var(--amber-light); }
.bar__track { height: 1px; margin: 0.6rem 0; background: var(--rule); }
.act--ink .bar__track { background: var(--rule-on-ink); }
.bar__fill { height: 100%; background: var(--amber); }

/* MARK: - Research */

.notes {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 46rem) { .notes { grid-template-columns: repeat(3, 1fr); } }

.note__t {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
  margin-bottom: 0.5rem;
}
.note__b { color: var(--ink-60); font-size: 0.9375rem; }

/* MARK: - Close */

.close {
  padding: var(--space-section) 0;
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.close::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 80% at 50% 120%, rgb(255 140 60 / 0.55), transparent 64%);
}

.close__title { font-size: var(--text-section); max-width: 18ch; margin: 0 auto; }
.close__actions { display: flex; justify-content: center; margin-top: 2.25rem; }

.foot {
  padding: 2.5rem 0 3rem;
  background: var(--ink);
  color: var(--on-ink-35);
  font-size: var(--text-sm);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-on-ink);
}
.foot a { color: var(--on-ink-60); text-decoration: none; }
.foot a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Sections arrive as you reach them. Behind @supports as well as the motion
   query: a browser that understands the property but not the range could
   otherwise leave content at opacity 0 and show a blank page. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .act,
    .notes,
    .close__title {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 28%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
