/* THE HEADER: the wordmark at the left, the two audience controls at the right.

   ONE FRAME, TWO ANCHORS. The header is one flex row with the same inset on both sides,
   `--frame-inset`. The wordmark's first letter stands on the left inset; the nav takes
   back its buttons' own side padding as a negative margin, so the last letter of
   `Collaborators` stands on the right inset. The two outer distances are therefore one
   number. At the reference 1737 wide it is about 290px, the wordmark's distance from the
   left edge in the approved wireframe, and it falls to 1rem on a phone.

   ONE CENTRELINE. The wordmark's line box and each button are the same height,
   `--wm-line`, and both start at the top of the row, so the label row and the wordmark
   text share a vertical centre. The underline and the revealed status are both absolutely
   placed, so neither one takes part in that measurement or moves anything when it
   appears: each item reserves the room its status will stand in from the start.

   NARROW. Where the wordmark and the pair no longer fit side by side, the row wraps and
   the pair moves beneath the wordmark, still anchored right. The pair itself never wraps:
   `Customers` then `Collaborators`, on one line, at every width.

   THE TWO LABELS ARE SET AS HOLDING-SITE SETS ITS UPPER-RIGHT CONTROL. holding-site was
   stood up from pages/the-page-you-chose, and the control in its top bar was that page's
   appearance switch: `.appearance button`, in the page's own --sans, .76rem, weight 400,
   tracked .06em, --text-dim at rest and --text-primary under the hand, padded .32rem
   .82rem. The labels take those values as written, with two departures: the case,
   because the owner named the labels "Customers" and "Collaborators" and the switch's
   words were lower case; and the space between them, 2rem rather than the switch's .1rem,
   because the switch's two buttons shared one pill while these are two links, each with
   a tracked "coming soon" under it that is wider than "Customers" and must not meet its
   neighbour. --sans is copied byte for byte
   into tokens.css, so the face is a system stack and the page asks nothing of any host.

   "coming soon" IS SET AS THE TOP BAR'S OWN "coming soon": 11px, tracked .34em, in the
   faint ink (pages/4-l-written-through-the-machine, `.eyebrow`, the page in the owner's
   start.here.png); at 620px and under, that page's own narrow values, 9.5px tracked
   .22em, so the line never reaches past "Collaborators" toward the screen edge.
   Tracking puts a space after the last letter too, so the line is indented by the same
   amount and stays centred under its label. The tracked line is wider than "Customers",
   and a centred line wider than its box is pushed to one side rather than centred, so the
   status's box is exactly as wide as its own text and is centred on its item: the line is
   centred on the label it answers, and its box never reaches into the neighbour's, so a
   hand on either end of a line is on that line's own item.

   THE SPACE BETWEEN THE PAIR IS 2rem. With both lines revealed, at 1rem the two tracked
   "coming soon" lines stood about as far apart as their own words and read as one
   phrase; at 2rem the gap between the lines is plainly wider than the gap inside each.

   COLOUR, EVERY ONE A TOKEN FROM tokens.css (copied from holding-site):
     wordmark "forward"           --text-primary   (the source wordmark's #E2E8F0, exact)
     wordmark "only"              --leaf-lit       (the palette green nearest the approved
                                  wireframe's "only"; see below)
     wordmark ".ai"               --accent-strong  (the source wordmark's #A5B4FC, exact)
     wordmark outline             --blend-outline-black (true black, by the owner's ruling;
                                  see below)
     wordmark glow                --blend-wordmark-glow, falling back to --pointer-core
                                  (a whitish blend of --text-primary: a tidy pale glow)
     wordmark underline           --border-strong  (one pixel, solid)
     label at rest                --text-dim       (holding-site's control at rest)
     label hovered or focused     --text-primary   (holding-site's control under the hand)
     label revealed               --text-primary   (holding-site's control when chosen)
     focus ring                   --focus-outer    (the source's focus-visible rule)
     status "coming soon"         --text-faint     (the source foot's own faint ink)

   "only" IS --leaf-lit, WITH NO BLEND. The owner asked for the closest green the palette
   already holds. Measured in OKLab against the core of "only" in the approved wireframe
   (#3ab96b, L .698 a -.140 b .074), the palette's greens stand at: --leaf-lit .141,
   --leaf-mid .236, --tide .251, --leaf-deep .330. --leaf-lit is the nearest.

   THE OUTLINE IS A THIN BLACK LINE, ON THE HEADLINE'S RECIPE. The owner asked for "the
   black or darkest line"; on this near-black page the palette's darkest colour is the
   ground itself, so the line is true black, --blend-outline-black. hero.css outlines the
   headline with a text stroke painted under the fill (paint-order: stroke fill), so only
   the outer half of the stroke shows and the letters get no heavier; the wordmark takes
   the same recipe at 2px, so one crisp pixel of black stands at every letter's edge,
   between the ink and its glow. The glow is on the letters themselves: one short whitish
   layer and one faint wide one, so the edges stay crisp instead of sitting in a haze.
   Nothing is set behind the words. The headline keeps its own outline in hero.css.

   THE RAISE. The owner asked for the wordmark and the pair half an inch higher at 100
   percent: 48 CSS px, one CSS inch being 96. `--top-inset` is the inset the header used
   to stand at; the raise is 3rem where that inset is large, and half the inset where it
   is small, so a phone loses the same share of its smaller inset rather than all of it.
   The header gives the raise back as bottom padding, so its box keeps its height and
   nothing beneath it is moved by this change.

   THE UNDERLINE is one pixel of --border-strong, a little longer than the whole phrase:
   it runs .3em past the wordmark's box on either side, so "forwardonly.ai" is centred
   over it. */

.top{
  --frame-inset:clamp(1rem,25vw - 9rem,18.5rem);
  --wm-size:clamp(1.35rem,.7rem + 1.7vw,2.15rem);
  --wm-line:calc(var(--wm-size) * 1.2);
  --link-size:.76rem;
  --link-pad:.82rem;
  --status-size:.6875rem;
  --status-room:calc(var(--status-size) * 1.6);
  position:relative;z-index:3;
  display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;
  column-gap:1.5rem;row-gap:.35rem;
  --top-inset:clamp(1rem,min(13.6vh,7vw),8rem);
  --top-raise:min(3rem,calc(var(--top-inset) / 2));
  padding:calc(var(--top-inset) - var(--top-raise)) var(--frame-inset) calc(.5rem + var(--top-raise));
}

/* ---------- the wordmark ---------- */
.wordmark{position:relative;display:inline-block;white-space:nowrap;
  font-size:var(--wm-size);line-height:1.2;font-weight:400;letter-spacing:-.005em;
  text-decoration:none;color:var(--text-primary);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-rendering:geometricPrecision;
  -webkit-text-stroke:2px var(--blend-outline-black,var(--surface-ground));
  paint-order:stroke fill;
  text-shadow:0 0 .22em var(--blend-wordmark-glow,var(--pointer-core)),
    0 0 .8em var(--blend-wordmark-glow,var(--pointer-core))}
.wordmark__forward{color:var(--text-primary)}
.wordmark__only{color:var(--leaf-lit)}
.wordmark__ai{color:var(--accent-strong)}
.wordmark::after{content:"";position:absolute;left:-.3em;right:-.3em;top:calc(100% + .06em);
  height:0;pointer-events:none;
  border-top:1px solid var(--border-strong)}
.wordmark:focus-visible{outline:2px solid var(--focus-outer);outline-offset:3px;border-radius:4px}

/* ---------- the two audience controls ---------- */
.audience{position:relative;margin-left:auto;margin-right:calc(-1 * var(--link-pad))}
.audience__list{display:flex;flex-wrap:nowrap;white-space:nowrap;gap:2rem;
  margin:0;padding:0;list-style:none}
.audience__item{position:relative;padding-bottom:var(--status-room)}

.audience__link{appearance:none;-webkit-appearance:none;margin:0;border:0;background:none;
  display:inline-block;vertical-align:top;height:var(--wm-line);padding:0 var(--link-pad);
  font:inherit;font-size:var(--link-size);font-weight:400;letter-spacing:.06em;
  line-height:var(--wm-line);white-space:nowrap;color:var(--text-dim);cursor:pointer;border-radius:4px}
/* THE LABELS STAND ON THE WORDMARK'S BASELINE, by the owner's ruling: the bottom of
   "Customers" and the bottom of "forwardonly.ai" on one line. Each label carries an
   invisible strut in the wordmark's own size and line height, so its line box is laid out
   exactly as the wordmark's is and the small label text is set on that same baseline.
   The label box starts at the top of the row as the wordmark does, so the two baselines
   meet in any font, at any width. */
.audience__link::before{content:"\200B";font-size:var(--wm-size);line-height:1.2;letter-spacing:0}
.audience__link:hover,
.audience__link:focus-visible,
.audience__link[aria-expanded="true"]{color:var(--text-primary)}
.audience__link:focus-visible{outline:2px solid var(--focus-outer);outline-offset:3px}
/* A LINE UNDER EACH LABEL, by the owner's rulings: "customers and collaboratos should
   individually be underlined by a line preciosely vertically alighned with the line under
   forwardonly.ai", and each line extended "15-20 pixels past the far edge of the font on
   each side". The label box and the wordmark start at the top of one row and share
   --wm-line, so the wordmark's own offset -- that line plus .06 of the wordmark's em --
   lands each line on the same pixel row. The type starts --link-pad inside the box, so
   the line starts 18px before the first letter; the last letter carries its tracking, so
   it ends 17px past the box's type edge: about 18.5px past the ink at either end. */
.audience__link{position:relative}
.audience__link::after{content:"";position:absolute;pointer-events:none;
  left:calc(var(--link-pad) - 18px);right:calc(var(--link-pad) - 17px);
  top:calc(100% + .06 * var(--wm-size));height:0;
  border-top:1px solid var(--border-strong)}

/* The status drops by the underline's own offset and a little more, so the new line under
   each label always sits clear above its "coming soon". */
.audience__status{position:absolute;left:50%;width:max-content;
  translate:-50% calc(.06 * var(--wm-size) + .3em);bottom:0;display:block;
  font-size:var(--status-size);line-height:var(--status-room);text-align:center;
  text-transform:lowercase;letter-spacing:.34em;text-indent:.34em;white-space:nowrap;
  color:var(--text-faint);cursor:pointer}
.audience__status[hidden]{display:none}
@media (max-width:620px){
  .top{--status-size:.59375rem}
  .audience__status{letter-spacing:.22em;text-indent:.22em}
}
