/* tensilelift.app: the app's look on the web. Rubber black, chrome silver, safety yellow,
   Refinish's square dot matrix fading in from the left. System fonts: the app's Söhne and Lost
   are trial cuts and aren't licensed for the web. */
:root {
  --canvas: #0a0a0b;
  --surface: #121214;
  --ink: #f2f2f3;
  --ink-dim: #a1a1a8;
  --ink-faint: #6c6c73;
  --hairline: rgba(255, 255, 255, 0.12);
  --accent: #ffcc00;
  --on-accent: #111111;
  --silver: #c9ccd1;
  --silver-ink: #121314;
  --dot: rgba(255, 255, 255, 0.11);
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --canvas: #f4f4f5;
    --surface: #ffffff;
    --ink: #111113;
    --ink-dim: #55555c;
    --ink-faint: #8a8a91;
    --hairline: rgba(0, 0, 0, 0.12);
    --accent: #c99700;
    --dot: rgba(0, 0, 0, 0.1);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* The dot matrix: 3px rounded squares on a 6px cell, transparent at the left edge. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--dot);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='3' height='3' rx='0.75'/%3E%3C/svg%3E") 0 0 / 6px 6px,
                linear-gradient(to right, transparent, #000);
  -webkit-mask-composite: source-in;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='3' height='3' rx='0.75'/%3E%3C/svg%3E") 0 0 / 6px 6px,
        linear-gradient(to right, transparent, #000);
  mask-composite: intersect;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; }
.nav a, .eyebrow {
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(40px, 9vw, 72px); line-height: 1.02; letter-spacing: -0.02em; margin: 14px 0 16px; font-weight: 600; }
.hero p { font-size: 19px; color: var(--ink-dim); max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 16px;
  padding: 13px 20px; border-radius: 10px;
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.note { color: var(--ink-faint); font-size: 14px; }

/* The chrome card from the app's Today screen. */
.chrome {
  margin: 40px 0 8px;
  background: var(--silver);
  color: var(--silver-ink);
  border-radius: calc(var(--radius) + 2px);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.chrome::after {
  content: "";
  position: absolute; inset: 0;
  background-color: rgba(18, 19, 20, 0.22);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='3' height='3' rx='0.75'/%3E%3C/svg%3E") 0 0 / 6px 6px,
                linear-gradient(to right, transparent 35%, #000);
  -webkit-mask-composite: source-in;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='3' height='3' rx='0.75'/%3E%3C/svg%3E") 0 0 / 6px 6px,
        linear-gradient(to right, transparent 35%, #000);
  mask-composite: intersect;
  pointer-events: none;
}
.chrome > * { position: relative; z-index: 1; }
.chrome .eyebrow { color: rgba(18, 19, 20, 0.7); }
.chrome .big { font-size: clamp(30px, 6vw, 44px); font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 14px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stats b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.days { display: flex; gap: 22px; margin-top: 18px; }
.days i { width: 11px; height: 11px; border-radius: 2px; background: rgba(18, 19, 20, 0.18); display: block; }
.days i.on { background: var(--silver-ink); }
.days i.today { background: transparent; box-shadow: inset 0 0 0 1.5px var(--silver-ink); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 32px 0 56px; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.card .mark { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); display: block; margin-bottom: 12px; }

/* Long-form pages */
.doc { padding: 32px 0 64px; max-width: 680px; }
.doc h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 6px; }
.doc h2 { font-size: 21px; font-weight: 600; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--ink-dim); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--ink-faint); font-size: 14px; margin: 0 0 24px; }
.doc .card { margin: 12px 0; }

footer { border-top: 1px solid var(--hairline); padding: 22px 0 40px; color: var(--ink-faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--ink-dim); }

@media (max-width: 520px) {
  .hero { padding-top: 32px; }
  .days { gap: 14px; }
  .nav { gap: 14px; }
}
