/* offtheclocklabs.com. Direction C of 2026-10-11, the owner's pick of three: a black product
   page, the app's tile and name large, its screens fanned under them, the mark's curve sweeping
   behind. Colours and type are Downtrend's (DownTrend/lib/app/theme.dart): Manrope for display,
   IBM Plex Sans for text. Dark always, as the app's store art is. */

@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap;
  src: url("/fonts/Manrope-Bold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap;
  src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #000000;
  --sheet: #111215;
  --ink: #F3F4F6;
  --text: #C9CCD3;
  --muted: #A3A6AE;
  --rule: #232429;
  --blue: #1D56DA;
  --blue-2: #6E9BFF;
  --display: "Manrope", "IBM Plex Sans", system-ui, sans-serif;
  --wide: 76rem;
  --measure: 35rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #2C2E34 var(--ground); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--text);
  font: 400 1.0625rem/1.6 "IBM Plex Sans", system-ui, sans-serif; overflow-x: clip; }
body > main { flex: 1 0 auto; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); margin: 0;
  text-wrap: balance; letter-spacing: -0.03em; }
p, ul, ol { margin: 0; }
a { color: var(--blue-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--blue); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 3; background: var(--ink); color: var(--ground);
  padding: 0.6rem 0.9rem; border-radius: 0.5rem; }
.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.nb { white-space: nowrap; }

/* The masthead: the lab's name, and the three places a visitor comes for. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem; position: relative; z-index: 2; }
.word { font-family: var(--display); font-weight: 700; font-size: 1.125rem;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none; padding-block: 0.5rem; }
.top nav { display: flex; gap: 1.75rem; font-size: 0.9375rem; font-weight: 500; }
.top nav a { color: var(--muted); text-decoration: none; padding-block: 0.5rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
@media (max-width: 30rem) { .top nav { gap: 1.25rem; } .top nav .wide { display: none; } }

/* The hero: the tile, the name, what it does, and its screens fanned below. */
.hero { position: relative; overflow: hidden; text-align: center; padding-top: 3rem; }
.sweep { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sweep path { fill: none; stroke: var(--blue-2); stroke-opacity: 0.16; stroke-width: 120;
  stroke-linecap: round; }
.hero > .wrap { position: relative; }
.tile { width: 5.5rem; height: 5.5rem; margin: 0 auto 1.75rem; border-radius: 1.2rem;
  box-shadow: 0 20px 50px -18px rgb(29 86 218 / 0.8); }
.tile .bg { fill: var(--blue); }
.tile .fg { fill: none; stroke: #FFFFFF; stroke-width: 5.6; stroke-linecap: round;
  stroke-linejoin: round; }
.name { font-size: clamp(3.25rem, 1.6rem + 6.4vw, 7rem); line-height: 0.95;
  letter-spacing: -0.04em; }
.tagline { font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.3;
  color: var(--ink); letter-spacing: -0.01em; margin: 1.25rem auto 0; max-width: 40rem; }
/* Each sentence wraps as one, so a narrow screen breaks the line between them. */
.tagline span { display: inline-block; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 34rem; margin: 1rem auto 0;
  text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1rem 1.75rem; margin-top: 2.25rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink);
  color: var(--ground); font-weight: 600; padding: 0.95rem 1.5rem; border-radius: 999px;
  text-decoration: none; transition: background-color 160ms var(--ease); }
.btn:hover { background: #FFFFFF; }
.btn svg, .go { width: 1em; height: 1em; flex: none; }
.soon { color: var(--muted); font-size: 0.9375rem; font-weight: 500; }

.fan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 58rem;
  margin: 4.5rem auto 0; align-items: start; perspective: 1600px; }
.phone { border-radius: 2.4rem; padding: 0.55rem; background: #0B0C0E;
  box-shadow: 0 1px 0 1px #2A2C31 inset, 0 40px 80px -30px rgb(0 0 0 / 0.9); }
.phone img { width: 100%; height: auto; border-radius: 1.9rem; }
.fan .phone:nth-child(1) { transform: translateY(4rem) rotateY(14deg); }
.fan .phone:nth-child(2) { transform: scale(1.08); position: relative; z-index: 1; }
.fan .phone:nth-child(3) { transform: translateY(4rem) rotateY(-14deg); }
/* A short desktop window: lift the fan so the centre screen's number clears the fold. */
@media (min-width: 52rem) and (max-height: 860px) {
  .hero { padding-top: 1.5rem; }
  .fan { margin-top: 3rem; }
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16rem;
  background: linear-gradient(rgb(0 0 0 / 0), var(--ground) 70%); pointer-events: none; }

/* A point: a claim in a heading and a line, beside the screen or the chart that shows it. */
.point { border-top: 1px solid var(--rule); padding-block: clamp(4rem, 6vw, 5.5rem); }
.point .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: center; }
.point h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.04;
  letter-spacing: -0.035em; }
.point p { font-size: 1.1875rem; margin-top: 1.25rem; max-width: 30rem; }
.point .phone { width: min(100%, 20rem); justify-self: center; }
@media (min-width: 52rem) { .point .phone { width: min(100%, 25rem); } }
.point.flip .wrap > :first-child { order: 2; }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; }
.chart .dots circle { fill: var(--ink); fill-opacity: 0.42; }
.chart .line { fill: none; stroke: var(--blue-2); stroke-width: 6; stroke-linecap: round; }
.chart .ring { fill: var(--ground); stroke: var(--blue-2); stroke-width: 4; }
.chart .end { fill: var(--blue-2); }
.chart .projection { fill: none; stroke: var(--blue-2); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 0.5 13; }
.chart .goal { stroke: var(--muted); stroke-opacity: 0.65; stroke-width: 2px; stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke; }
.chart .goal-label { fill: var(--muted); font: 500 26px "IBM Plex Sans", sans-serif; }
.chart figcaption { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 1rem;
  font-size: 0.875rem; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 0.5rem; }
.key::before { content: ""; flex: none; }
.key.weigh-in::before { width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: rgb(243 244 246 / 0.42); }
.key.trend::before { width: 1.25rem; height: 0.25rem; border-radius: 1px; background: var(--blue-2); }
.key.projection::before { width: 1.25rem; height: 0.25rem;
  background: radial-gradient(circle, var(--blue-2) 0.12rem, transparent 0.13rem) 0 50% / 0.42rem 0.25rem repeat-x; }

/* The lab, and its apps as a list that grows. */
.lab { border-top: 1px solid var(--rule); padding-block: clamp(4rem, 8vw, 6rem); text-align: center; }
.lab h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.1; }
.lab p { color: var(--muted); font-size: 1.125rem; margin-top: 0.75rem; }
.apps { list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 30rem; text-align: left; }
.apps a { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem;
  border-radius: 1.25rem; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule) inset;
  text-decoration: none; color: var(--muted); transition: background-color 160ms var(--ease); }
.apps a:hover { background: #17181C; }
.apps .tile { width: 3.5rem; height: 3.5rem; margin: 0; border-radius: 0.8rem; box-shadow: none; }
.apps b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--ink);
  letter-spacing: -0.02em; }
.apps .go { margin-left: auto; color: var(--blue-2); width: 1.25rem; height: 1.25rem; }

/* Everything the app does, and the three things every visitor should be able to find. */
.all { border-top: 1px solid var(--rule); padding-block: clamp(4rem, 8vw, 6rem); }
.all h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); text-align: center; }
.all ul { list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 58rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.all li { padding: 0.9rem 0 0.9rem 1.75rem; border-bottom: 1px solid var(--rule); position: relative; }
.all li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 0.75rem;
  height: 0.2rem; border-radius: 1px; background: var(--blue-2); }
.notes { border-top: 1px solid var(--rule); padding-block: clamp(3.5rem, 7vw, 5rem); }
.notes .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 4rem; }
.notes h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.notes p { color: var(--muted); }

.foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem;
  padding-block: 2.5rem 3rem; text-align: center; }
.foot .wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* A long page: one centred column, and on a wide screen its contents in the margin beside it. */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr);
  align-content: start; column-gap: 3rem; padding: 3.5rem 1.25rem 5rem; }
.doc > * { grid-column: 2; }
.doc h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.05;
  letter-spacing: -0.04em; }
.doc h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 3rem 0 0.75rem; scroll-margin-top: 1.5rem; }
.doc p, .doc ul { margin-bottom: 1rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.doc li::marker { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code { font: 0.85em/1 ui-monospace, "Cascadia Mono", "Roboto Mono", monospace;
  background: var(--sheet); padding: 0.15em 0.4em; border-radius: 4px;
  box-shadow: 0 0 0 1px var(--rule) inset; color: var(--ink); }
.meta { color: var(--muted); margin-top: 1rem; }
.summary { background: var(--sheet); box-shadow: 0 0 0 1px var(--rule) inset;
  border-radius: 1.25rem; padding: 1.5rem 1.75rem 0.75rem; margin: 2rem 0 1.5rem; }
.summary h2 { margin: 0 0 0.75rem; font-size: 1.25rem; }
.summary ul { font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.summary ul:has(> li:only-child) { list-style: none; padding-left: 0; }
.toc { margin: 0.5rem 0 1rem; }
.toc p { font-size: 0.875rem; font-weight: 500; color: var(--muted); margin: 0 0 0.75rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.25rem 1.5rem; }
.toc a { color: var(--text); text-decoration: none; display: inline-block; padding-block: 0.3rem; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 78rem) {
  .doc > .toc { grid-column: 1; grid-row: 1 / span 99; justify-self: end; width: 13rem;
    align-self: start; position: sticky; top: 2rem; margin: 0.6rem 0 0; }
  .toc ol { grid-template-columns: 1fr; border-left: 1px solid var(--rule); }
  .toc a { padding: 0.35rem 0 0.35rem 1rem; margin-left: -1px; border-left: 1px solid transparent; }
  .toc a:hover { border-left-color: var(--blue-2); text-decoration: none; }
}

/* Not found: the sweep, the line, the two ways back. */
.lost { position: relative; overflow: hidden; display: grid; place-items: center;
  text-align: center; padding: 6rem 1.25rem; min-height: 60vh; }
.lost > div { position: relative; }
/* The curve fades out before the masthead and the footer rather than being cut by them. */
.lost .sweep { -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.lost h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.04em; }
.lost p { color: var(--muted); font-size: 1.125rem; margin-top: 1rem; }

@media (max-width: 52rem) {
  .hero { padding-top: 2rem; }
  .fan { gap: 0.75rem; margin: 3.5rem -3rem 0; }
  .fan .phone { padding: 0.3rem; border-radius: 1.4rem; }
  .fan .phone img { border-radius: 1.1rem; }
  .fan .phone:nth-child(1) { transform: translateY(2rem) rotateY(12deg); }
  .fan .phone:nth-child(3) { transform: translateY(2rem) rotateY(-12deg); }
  .hero::after { height: 9rem; }
  .point .wrap, .notes .wrap { grid-template-columns: 1fr; }
  .chart .goal-label { font-size: 32px; }
  .point.flip .wrap > :first-child { order: 0; }
  .all ul { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .doc { display: block; padding-top: 2.5rem; }
}

/* The motion: the curve draws itself and the screens open into their fan, once; on a browser
   that can tie it to the scroll, the trend draws as its chart comes into view. Without motion,
   everything stands where it ends. */
@media (prefers-reduced-motion: no-preference) {
  .sweep path { stroke-dasharray: 1; animation: draw 1.8s var(--ease) 0.1s both; }
  .fan .phone:nth-child(1) { animation: open-left 1.1s var(--ease) 0.15s both; }
  .fan .phone:nth-child(3) { animation: open-right 1.1s var(--ease) 0.15s both; }
  @supports (animation-timeline: view()) {
    .chart .line { stroke-dasharray: 1; animation: draw linear both;
      animation-timeline: view(); animation-range: entry 30% contain 25%; }
    /* Today's dot, the projection and the goal ring come once the line has reached them. */
    .chart .end, .chart .projection, .chart .ring { animation: show linear both;
      animation-timeline: view(); animation-range: contain 25% contain 40%; }
  }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes show { from { opacity: 0; } }
@keyframes open-left { from { transform: translate(18%, 5rem) rotateY(0); } }
@keyframes open-right { from { transform: translate(-18%, 5rem) rotateY(0); } }

/* On paper: the text alone, black on white, each link's address after it. */
@media print {
  :root { --ground: #FFFFFF; --sheet: #FFFFFF; --ink: #000000; --text: #000000; --muted: #333333;
    --rule: #BBBBBB; }
  body { font-size: 11pt; }
  .skip, .toc, .fan, .sweep, .hero::after, .top nav { display: none; }
  .doc { display: block; padding: 0; }
  .summary { box-shadow: none; border: 1px solid var(--rule); }
  a { color: inherit; }
  main a[href^="/"]::after { content: " (offtheclocklabs.com" attr(href) ")"; font-size: 0.85em; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  h2 { break-after: avoid; }
}
