/* ZERO — soso.uz. The app's ember-noir system, translated to the web.
   Ink ground, one gradient (agency → agency2), mono figures, caps labels.
   Depth from hairlines and type, not effects. */

:root {
  --ink: #0f0b08;
  --raised: #191210;
  --fog: #f5efe9;
  --dim: #9a8f86;
  --agency: #ff8a3d;
  --agency2: #ff4d6d;
  --gold: #e7c86e;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-soft: rgba(255, 255, 255, 0.05);
  --cell-rest: rgba(255, 255, 255, 0.09);
  --edge-top: rgba(255, 255, 255, 0.15);
  --edge-bottom: rgba(255, 255, 255, 0.03);
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #faf4ee;
    --raised: #ffffff;
    --fog: #221a14;
    --dim: #8a7b70;
    --agency: #e96f2b;
    --agency2: #e23d5a;
    --gold: #b98a2e;
    --rule: rgba(0, 0, 0, 0.1);
    --rule-soft: rgba(0, 0, 0, 0.06);
    --cell-rest: rgba(0, 0, 0, 0.08);
    --edge-top: rgba(255, 255, 255, 0.9);
    --edge-bottom: rgba(0, 0, 0, 0.08);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--fog);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.caps {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Keyboard users land here first, and it stays out of everyone else's way
   until it is focused. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--agency);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-size: 14px;
  text-decoration: none;
  z-index: 10;
}

.skip:focus { left: 0; }

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

/* ---------- The mark ---------- */

/* The diminuendo: three ledger lines shrinking to a full stop, lifted
   straight from the app icon so the two never drift apart. It inherits
   currentColor, which is what lets the footer wear it quietly. */
.mark {
  height: 1em;
  width: auto;
  display: block;
  overflow: visible;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--agency);
  font-size: 17px;
}

.lockup.small { font-size: 13px; color: var(--dim); }

/* ---------- Nav ---------- */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}

nav .wordmark {
  color: var(--fog);
  text-decoration: none;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
}

nav .links { display: flex; gap: 22px; }

nav .links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
}

nav .links a:hover { color: var(--fog); }

/* ---------- Hero ---------- */

.hero {
  padding: 104px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  align-items: center;
  gap: 56px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 0 72px;
  }
  .hero-mark { order: -1; max-width: 200px; }
}

.hero .kicker { margin-bottom: 22px; display: block; }

/* The mark writes itself on arrival — the same gesture the app plays at
   launch. It is the one animation on this page, and it earns its place by
   being the argument: the balance shrinking to a full stop. */
.hero-mark { color: var(--agency); }

.hero-mark svg { width: 100%; height: auto; display: block; overflow: visible; }

.hero-mark .l1 { stroke-dasharray: 460; stroke-dashoffset: 460; animation: draw 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards; }
.hero-mark .l2 { stroke-dasharray: 270; stroke-dashoffset: 270; animation: draw 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards; }

.hero-mark .dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.01);
  animation: land 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) 1.02s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes land { to { transform: scale(1); } }

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 15ch;
  text-wrap: balance;
}

.hero .date-specimen {
  margin-top: 40px;
  font-size: clamp(64px, 13vw, 128px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: ui-rounded, -apple-system, system-ui, sans-serif;
  background: linear-gradient(100deg, var(--agency), var(--agency2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .sub {
  margin-top: 14px;
  font-size: 14px;
  color: var(--dim);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero .date-specimen { animation: none; }
  .hero-mark .l1, .hero-mark .l2 { stroke-dashoffset: 0; animation: none; }
  .hero-mark .dot { transform: none; animation: none; }
  html { scroll-behavior: auto; }
}

.cta-row { margin-top: 44px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* Not a button. There is nothing to download yet, and a pill that cannot be
   pressed is a lie the whole page pays for. */
.status {
  color: var(--agency);
  border-left: 2px solid var(--agency);
  padding-left: 12px;
  line-height: 1.4;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.24s cubic-bezier(0.32, 0.72, 0, 1),
              border-color 0.24s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.16s cubic-bezier(0.32, 0.72, 0, 1);
}

.pill.quiet {
  color: var(--dim);
  border: 1px solid var(--rule);
}

.pill.quiet:hover { color: var(--fog); border-color: var(--dim); }
.pill:active { transform: scale(0.975); }

.pill .chev {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cell-rest);
  font-size: 12px;
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}

.pill:hover .chev { transform: translateX(2px); }

/* ---------- Ember wall band ---------- */

.wall-band { padding: 72px 0; border-top: 1px solid var(--rule-soft); }

.wall-band h2 { font-weight: 500; }

.wall {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 6px;
  max-width: 560px;
  margin-top: 24px;
}

.wall span {
  aspect-ratio: 1;
  border-radius: 3.5px;
  background: var(--cell-rest);
}

.wall span.done {
  background: linear-gradient(135deg, var(--agency), var(--agency2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.wall span.now {
  background: color-mix(in srgb, var(--agency) 12%, transparent);
  border: 1.5px solid var(--agency);
}

.wall-caption { margin-top: 20px; max-width: 46ch; color: var(--dim); font-size: 14px; }

/* ---------- The ledger of features ---------- */

/* The mark is three ruled lines, so the feature list is ruled too — entries
   in a ledger rather than a row of equal cards. The numbering is real: it is
   the order a person meets these things in. */

.ledger-band { padding: 64px 0 24px; border-top: 1px solid var(--rule-soft); }

.ledger-band h2 { font-weight: 500; }

.ledger { list-style: none; margin-top: 30px; }

.entry {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0 8px;
  padding: 26px 0;
  border-top: 1px solid var(--rule-soft);
}

.entry:first-child { border-top: 0; }

.entry .idx {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--agency);
  padding-top: 5px;
}

.entry h3 {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.012em;
  margin-bottom: 7px;
  text-wrap: balance;
}

.entry p { color: var(--dim); font-size: 15px; max-width: 58ch; }

/* The first entry carries the thesis, so it gets the size the others do not. */
.entry.lead { padding-top: 6px; }
.entry.lead h3 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; }
.entry.lead p { font-size: 16px; color: var(--fog); opacity: 0.82; }

@media (max-width: 560px) {
  .entry { grid-template-columns: 1fr; gap: 10px; }
  .entry .idx { padding-top: 0; }
}

/* ---------- Honesty band ---------- */

.honesty {
  margin: 72px 0 88px;
  padding: 36px 40px;
  border: 1px solid var(--rule);
  border-top-color: var(--edge-top);
  border-radius: 22px;
  background: var(--raised);
}

.honesty h2 { font-weight: 500; margin-bottom: 14px; }
.honesty p { color: var(--dim); font-size: 15px; max-width: 62ch; }
.honesty p + p { margin-top: 12px; }
.honesty p strong { color: var(--fog); font-weight: 600; }

@media (max-width: 560px) { .honesty { padding: 28px 24px; } }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--rule-soft);
  padding: 36px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .fine { color: var(--dim); font-size: 12.5px; }

footer .links { display: flex; gap: 20px; }

footer .links a { color: var(--dim); font-size: 12.5px; text-decoration: none; }
footer .links a:hover { color: var(--fog); }

/* ---------- Legal / article pages ---------- */

article {
  max-width: 680px;
  padding: 64px 0 96px;
}

article h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 14px 0 6px;
}

article .updated { color: var(--dim); font-size: 13px; }

article h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}

article p, article li { color: var(--dim); font-size: 15px; max-width: 65ch; }
article p strong { color: var(--fog); }

article ul { padding-left: 22px; margin: 10px 0; }
article li { margin: 6px 0; }

article a { color: var(--agency); text-decoration: none; }
article a:hover { text-decoration: underline; }

article hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 40px 0; }

/* ---------- 404 ---------- */

.lost { padding: 120px 0 140px; max-width: 56ch; }

.lost h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 16px 0 18px;
  text-wrap: balance;
}

.lost p { color: var(--dim); font-size: 16px; }
