/* No More Names Studio — one page, one typeface, three pastel accents.
   No build step, no dependencies, no JavaScript. The accents are decoration,
   the text is plain HTML. */

/* Geist Mono (Vercel), self-hosted from ./fonts — no CDN, no third-party
   request. Variable weight axis 100-900, so one file covers the page.
   Licence: SIL OFL 1.1, see fonts/LICENSE.txt */
@font-face {
  font-family: "Geist Mono";
  src:
    url("fonts/GeistMonoVF.woff2") format("woff2"),
    url("fonts/GeistMonoVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101014; /* near-black with the faintest violet cast */
  --ink: #e7e5e1; /* warm off-white, carries all reading text */
  --ink-dim: #9d9aa6; /* secondary text: meta and summaries */
  --rule: rgba(231, 229, 225, 0.11);

  /* Pastels. One job each: the three tools, and the masthead monogram, which
     takes ghosted's purple. Nothing else on the page is coloured. */
  --purple: #c2aef7;
  --peach: #f5c3a0;
  --amber: #e0a352; /* juuku: the app's own orange, softened to sit with the other three */
  --moss: #a9c68b;

  /* Status dots only. The green doubles as the moss accent; the yellow is
     the one colour on the page that is not a tool's. */

  --measure: 60ch;
  --shell: 44rem;
  --pad: 1.5rem;
}

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

* {
  margin: 0;
}

html {
  color-scheme: dark;
  /* No `scroll-behavior: smooth`: it animates scrolling on the main thread in
     Chromium and competes with the scroll-driven reveals, which showed up as
     hitching on a machine without GPU compositing. The only in-page jump is the
     skip link, and landing instantly is fine for a keyboard user. */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, "Cascadia Mono",
    "Roboto Mono", monospace;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 120ms ease;
}

a:hover {
  color: var(--peach);
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  max-width: var(--measure);
  text-wrap: pretty;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  left: var(--pad);
  top: 0.75rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--rule);
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 2rem 0;
}

/* The divider under the masthead. */
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5rem;
  height: 1px;
  background: var(--rule);
}

.wordmark {
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: none;
}

/* The monogram, a little taller than the text and centred on the text's own axis.
   Inline rather than an <img>: it costs no request and needs no change to the
   Pages build command, whose copy list is fixed. */
.wordmark-mark {
  height: 1.15em;
  width: auto;
  fill: var(--purple);
  vertical-align: -0.23em;
}

/* The slot holds the mark's box so the wordmark's text never shifts, whether the mark
   is in the flow or floating in the margin. Its width is the mark's height times the
   viewBox ratio: 1.15em × 470/234. */
.mark-slot {
  display: inline-block;
  width: 2.31em;
  height: 1.15em;
  vertical-align: -0.23em;
}

.mark-slot .wordmark-mark {
  display: block;
}

/* The slot keeps the mark's space for good. The floating mark is positioned on that
   exact box, so at rest the two are indistinguishable and the wordmark sits precisely
   where it always did — the only thing that changes on scroll is that the mark stays
   while the text leaves. */
.wordmark {
  --mark-w: 2.31em;
}

.mark-slot {
  width: var(--mark-w);
}

/* The mark is a link to the top of the page, so it is not `aria-hidden` any more — it
   carries a label instead, and it is clickable in both states. */
.mark-link {
  display: block;
  color: inherit;
}

.mark-link .wordmark-mark {
  transition: fill 220ms ease;
}

/* The floating state, applied by the script with a measured position. It floats at every
   width: on a narrow screen the mark sits over the column, which is only safe because the
   fade band removes content before it can reach that spot. */
.mark-link.is-floating {
  position: fixed;
  z-index: 5;
  width: auto;
  transition: fill 220ms ease;
}

.wordmark-sep {
  /* Tight enough that the wordmark, the monogram and the · still clear the
     masthead's other column at 414px, where both sit on one line. */
  margin-inline: 0.25rem;
}

.elsewhere {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-dim);
  max-width: none;
}

.elsewhere a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration-color: currentColor;
}

/* ---------- hero ---------- */

.hero {
  padding-block: 5.5rem 5rem;
}

.hero h1 {
  max-width: 24ch;
  font-size: clamp(1.5rem, 1.05rem + 2.4vw, 2.125rem);
  font-weight: 400;
}

.promise {
  margin-top: 1.25rem;
  color: var(--ink-dim);
}

.beat {
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--peach);
}

.lede {
  margin-top: 2.25rem;
  color: var(--ink-dim);
}

/* The only motion on the page: one scroll-bound fade from the Tools band down.
   Each block rises and fades as it enters the viewport and runs backwards as it
   leaves, because the animation follows scroll position instead of firing once
   from a trigger. Nothing animates on load.

   The masthead and the hero are deliberately outside it. They are in the first
   view already, so a scroll fade can only hurt them: an element part-way through
   its entry renders part-transparent, and the hero's last paragraph sits right
   at that boundary — measured 0.92 opacity on load when it was included.

   `screen` matters: a print stylesheet would otherwise capture whatever progress
   an element had, and off-screen sections print blank. A browser without
   `animation-timeline` never applies the animation and shows everything, as does
   any reader with reduced motion set. */
/* Time-based motion, in charge only when the script has put `.js-motion` on
   <html>. Without it the scroll-driven animation below stays active, so a reader
   with no JavaScript still gets the scroll fade, and a reduced-motion reader gets
   neither. The values match the no-JS fade: a 12px rise, 520ms, ease-out. The load
   sequence steps in reading order by 90ms (set from the script, not here, so the
   order lives with the markup). */
@media screen and (prefers-reduced-motion: no-preference) {
  .js-motion .band-title,
  .js-motion .tool,
  .js-motion .principle,
  .js-motion .colophon > * {
    opacity: 0;
    /* `--from` is set per element by the script to the direction the reader is
       travelling, so a block arrives from below when scrolling down and from above
       when scrolling back up. The fallback keeps it working if the script sets
       nothing. */
    transform: translateY(var(--from, 0.375rem));
    transition:
      opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* No weight animation. Geist Mono's variable axis does move, but at 15–34px in a
     monospace face the difference between 200 and 400 is a hairline of stroke width
     that no reader notices — measured across the load and called invisible. The
     variable font stays for the type it sets, not for motion. */

  .js-motion .is-in {
    opacity: 1;
    transform: none;
  }

  /* The script drives these, so the scroll-linked animation must stand down. */
  .js-motion .band-title,
  .js-motion .tool,
  .js-motion .principle,
  .js-motion .colophon > * {
    animation: none;
  }

  /* Rules draw from the left as their band arrives, and withdraw again on exit.
     700ms, slower than the content, so the structure leads the block in. */
  .js-motion .band::before,
  .js-motion .colophon::before,
  .js-motion .tool + .tool::before {
    transform: scaleX(0);
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .js-motion .band.is-in::before,
  .js-motion .colophon.is-in::before,
  .js-motion .tool.is-in::before {
    transform: scaleX(1);
  }
}

/* The masthead rule is static. A line travelling across the header while the page
   resolves reads as a progress bar, which is the one thing this page should never
   look like — measured on a 390px screen as a purple stripe crossing dim text. */


@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band-title,
    .tool,
    .principle,
    .colophon > * {
      animation: reveal linear both;
      animation-timeline: view();
      /* `entry 40% → entry 100%`, not a `cover` range. Two reasons, both
         measured with a compact hero at 1280×900:
         - a `cover`-anchored range leaves the last block on the page (the
           colophon) permanently short of its end, because the page cannot scroll
           far enough to give it that much coverage — three elements never
           reached full opacity, the footer among them;
         - starting at 40% of the element's own entry keeps a block that is only
           peeking over the fold hidden rather than half-visible, which is what
           the Tools heading did at 0.46 when the range started at entry 5%. */
      animation-range: entry 40% entry 100%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

/* ---------- bands ---------- */

.band {
  /* The border keeps the 1px layout box; the visible rule is drawn by ::before so
     it can scale in without moving anything. */
  position: relative;
  border-top: 1px solid transparent;
  padding-block: 3.5rem;
}

.band::before,
.colophon::before,
.tool + .tool::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
}

.band-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-dim);
}

/* ---------- tool roster ---------- */

.roster {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.tool + .tool {
  position: relative;
  border-top: 1px solid transparent;
  margin-top: 2rem;
  padding-top: 2rem;
}

.tool-head {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  max-width: none;
}

/* Each tool carries one mark, drawn inline in its own pastel: a ghost for
   ghosted, a frame for keret, an ID card for noka. No bitmaps, no requests. */
.mark {
  align-self: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool--purple .mark {
  color: var(--purple);
}

.tool--amber .mark {
  color: var(--amber);
}

.tool--peach .mark {
  color: var(--peach);
}

.tool--moss .mark {
  color: var(--moss);
}

.tool-name {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.tool--purple .tool-name:hover {
  color: var(--purple);
}

.tool--amber .tool-name:hover {
  color: var(--amber);
}

.tool--peach .tool-name:hover {
  color: var(--peach);
}

.tool--moss .tool-name:hover {
  color: var(--moss);
}

.tool-what {
  margin-top: 0.75rem;
  color: var(--ink);
}

.tool-meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-dim);
}

/* The row's own links, labelled, at the bottom of the block. */
.tool-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  max-width: none;
}

.tool-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--ink-dim);
  text-decoration-color: currentColor;
}

.tool-links a:hover {
  color: var(--peach);
}

/* Hover follows the project's own colour, same as the project name. */
.tool--purple .tool-links a:hover {
  color: var(--purple);
}

.tool--peach .tool-links a:hover {
  color: var(--peach);
}

.tool--moss .tool-links a:hover {
  color: var(--moss);
}

/* Holds the link slot on a tool that has nothing to link to yet, so every row
   is the same shape and the space does not appear later as a layout shift.
   Not dimmed with opacity: at 13px that drops it under 4.5:1 on this
   background (measured 4.37:1), and the missing underline is distinction
   enough. */
.tool-soon {
  color: var(--ink-dim);
}

.icon {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--brand {
  fill: currentColor;
  stroke: none;
}

/* ---------- principles ---------- */

.principles {
  margin-top: 1.75rem;
}

.principles h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.principles p {
  margin-top: 0.5rem;
  color: var(--ink-dim);
}

/* The one mail link on the page: underlined in its own text colour so it reads
   as an action without pulling the eye out of the paragraph. Hover is the same
   peach the masthead and colophon links use. */
.principles a {
  color: inherit;
  text-decoration-color: currentColor;
}

.principles a:hover {
  color: var(--peach);
}

.principle + .principle {
  margin-top: 2rem;
}

/* ---------- toast ---------- */

/* The one transient message on the page, shown when an address is copied: the
   envelope mark, then the confirmation, on a full moss surface. It is the loudest
   thing on the page by design and the only element that moves. */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 10;
  display: flex;
  /* First line, not the middle of the block: the envelope belongs beside the start
     of the message, and the small offset puts it on that line's optical centre. */
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
  /* `width: max-content`, not the shrink-to-fit default: an absolutely positioned
     box with `left: 50%` can only grow to the space right of that mark, which on a
     390px screen is 195px and stacked this message into four ragged lines. The `ch`
     cap is what makes the box hug the wrapped text instead of spanning the screen. */
  width: max-content;
  max-width: calc(100vw - 2 * var(--pad));
  border-radius: 4px;
  /* Full moss with the page's own background as the text colour: the message has
     to be unmissable, and this pair reads at 10:1 in either direction. */
  background: var(--moss);
  color: var(--bg);
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast .icon {
  margin-top: 0.35em;
}

#toast-message {
  /* The measure lives on the message, so the box hugs the wrapped text instead of
     spanning the screen: ~24 characters is two snug lines at both widths. Balanced,
     like the colophon and the cards, so the second line is not a stray word. */
  max-width: 24ch;
  text-wrap: balance;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

/* Cloudflare Pages serves this file for unknown paths, with a 404 status. It
   reuses the page's shell, type scale and link treatment so a wrong turn still
   looks like the studio rather than a server. */
.notfound {
  padding-block: 6rem;
}

.notfound .wordmark {
  margin-bottom: 3rem;
}

.notfound h1 {
  max-width: 22ch;
  font-size: clamp(1.5rem, 1.05rem + 2.4vw, 2.125rem);
  font-weight: 400;
}

.notfound p {
  margin-top: 1.5rem;
  color: var(--ink-dim);
}

.notfound a {
  color: inherit;
  text-decoration-color: currentColor;
}

.notfound a:hover {
  color: var(--peach);
}

/* ---------- colophon ---------- */

.colophon {
  position: relative;
  border-top: 1px solid transparent;
  padding-block: 2.5rem 3.5rem;
  font-size: 0.8125rem;
  color: var(--ink-dim);
}

.colophon p + p {
  margin-top: 1rem;
}

/* Balance the line lengths in the colophon. Left to itself the disclosure breaks
   as 479px + 279px, which reads as a mistake and orphans "No"; balanced it is
   387px + 371px. Balance is meant for short blocks, which this is. */
.colophon p {
  text-wrap: balance;
}

.heart {
  width: 0.8125rem;
  height: 0.8125rem;
  fill: var(--peach);
  vertical-align: -0.0625rem;
}

/* ---------- small screens ---------- */

@media (max-width: 34rem) {
  :root {
    --pad: 1.25rem;
  }

  .hero {
    padding-block: 3.5rem 3.5rem;
  }

  .band {
    padding-block: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .toast,
  .wordmark-mark,
  .mark-link {
    transition: none;
  }
}
