/* Shared by every page of the settled site: the sizing rule, the header and the footer.
   --u is one hundredth of the window width, or 1.7 hundredths of its height, whichever is smaller.
   Sizes are multiples of --u, so a page scales with the window in both directions. Text has a smallest size in px and no largest.
   Layout changes at one width only, 800px, where two columns stop fitting. Below it --u follows the width alone.
   The header is described once, here: --nav-y is its distance from the top of the page and --nav-h its height
   (the logo's line plus its padding). --top is where a page's own content may start below it.
   Nothing else may place itself against the header with a number of its own. */
:root{--violet:#8B5CFF;--u:min(1vw,1.7vh);--txt:max(17px,calc(1.5*var(--u)));--sm:max(14px,calc(1.1*var(--u)));--logo:max(26px,calc(2.6*var(--u)));--nav-y:calc(2*var(--u));--nav-h:calc(1.9*var(--logo));--top:calc(var(--nav-y) + var(--nav-h) + 1.6*var(--u))}
@supports (height:1svh){:root{--u:min(1vw,1.7svh)}}
@media (max-width:800px){:root{--u:1.6vw}}
/* On wide windows the page margin, the column gap, the reading size and the small labels follow --u as well,
   so a large monitor gets a large page and a short window a small one. */
@media (min-width:801px){
  :root{--pad:max(20px,calc(3.4*var(--u)));--gap:max(20px,calc(2.6*var(--u)));--big:max(19px,calc(1.55*var(--u)))}
  .mono{font-size:max(12px,var(--u))}
}
/* A word that is wider than its box breaks on to the next line. This only shows when text is set very large, or an address is very long. */
body{word-wrap:break-word;overflow-wrap:break-word}
/* Word moves (motion.js). Words wait unseen only where the script that moves them can run. */
.w{display:inline-block}
.h.on span.w{background:none;padding:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html.mo .mosaic .h{color:transparent}
html.veiled{background:var(--lime)}
html.veiled body{visibility:hidden}
.motion-curtain{background:var(--lime)}

/* Header. The logo is its tallest part: one line of --logo with .45em above and below, which is --nav-h. Links stay on one line so that holds. */
.nav{top:var(--nav-y);min-height:var(--nav-h);gap:calc(.5*var(--u))}
.nav .logo{font-size:var(--logo);padding:.45em .6em}
.nav a:not(.logo),.nav .menu{font:500 max(15px,calc(1.3*var(--u)))/1 "Geist Mono",monospace;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;padding:.85em 1.05em}
.nav a:not(.logo):active{background:var(--lime);color:var(--ink)}
.nav .menu{display:none;border:0;border-radius:0;background:var(--ink);color:var(--flour);cursor:pointer}

/* Footer. The page ends with the same menu it began with. */
.base{margin:0;padding:calc(2.4*var(--u)) var(--pad);display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:calc(1.8*var(--u)) calc(.5*var(--u));background:var(--flour);color:var(--ink);font:500 max(15px,calc(1.3*var(--u)))/1 "Geist Mono",monospace;letter-spacing:.04em;text-transform:uppercase}
.base a{color:inherit;text-decoration:none}
.base nav{justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:calc(.5*var(--u))}
.base p{margin:0}
.base .logo,.base nav a{background:var(--ink);color:var(--flour);padding:.85em 1.05em;white-space:nowrap}
.base nav a:active{background:var(--lime);color:var(--ink)}
.base .logo{text-transform:none;font-size:var(--logo);padding:.45em .6em;justify-self:start}
.base nav a.cta{background:var(--lime);color:var(--ink)}
.base .legal{justify-self:end;display:flex;flex-wrap:wrap;align-items:center;gap:.4em 1.6em}
.base .mail,.base .legal a{text-underline-offset:.3em}
/* Colour on pointing is for devices that can point. A finger gets the same colour while it presses. */
@media (hover:hover) and (pointer:fine){
  .nav a:not(.logo):hover,.base nav a:hover{background:var(--lime);color:var(--ink)}
  .base .mail:hover,.base .legal a:hover{text-decoration:underline}
}
@media (min-width:801px){
  /* Just above 800px the links have little room. Their side padding gives way before anything wraps. */
  .nav a:not(.logo),.base nav a{padding-left:min(1.05em,calc(1.4*var(--u)),calc(2.2*var(--u) - 9px));padding-right:min(1.05em,calc(1.4*var(--u)),calc(2.2*var(--u) - 9px))}
  /* The email and the legal links share the second row, one at each end. They span both columns, so the email,
     which is wider than the logo, does not widen the logo's column and push the footer's menu on to two rows. */
  .base .mail,.base .legal{grid-column:1/-1;grid-row:2}
  .base .mail{justify-self:start}
}
@media (pointer:coarse) and (min-width:801px){
  /* A tablet, or a phone on its side, keeps the wide layout. What a finger presses grows to a finger's size. */
  .nav a:not(.logo),.base nav a{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}
  .base .mail,.base .legal a{display:flex;align-items:center;min-height:44px}
}

@media (max-width:800px){
  /* Phone header: the logo and a Menu button. The button opens the links as full-width bars. */
  .nav{flex-wrap:wrap;gap:4px}
  .nav .menu{display:block;min-height:44px}
  .nav a.cta{display:none}
  .nav.open a:not(.logo){display:block;flex-basis:100%;padding:1.1em 1.05em;white-space:normal}
  /* The open menu lies over the page. It stands on its own ground, so the words under it cannot show between the bars. */
  .nav.open{background:var(--flour);outline:4px solid var(--flour)}
  .base{grid-template-columns:minmax(0,1fr);gap:20px}
  .base nav{justify-self:stretch;justify-content:flex-start;gap:4px}
  .base nav a{padding:1.1em 1.05em;white-space:normal}
  /* The email and the legal links are a finger tall. The email may break, so large text cannot push the page wider than the screen. */
  .base .mail{display:flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
  .base .legal{justify-self:start}
  .base .legal a{display:flex;align-items:center;min-height:44px}
}

/* Keyboard users can jump past the menu. The link shows only when it has focus. */
.skip{position:absolute;left:-9999px;top:0;z-index:9;background:var(--ink);color:var(--flour);padding:1em 1.2em;font:500 var(--sm)/1 "Geist Mono",monospace}
.skip:focus{left:var(--pad);top:var(--pad)}
/* A field people cannot see. Only programs fill it in, so a filled one marks spam. */
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
/* The cookie bar (consent.js): ink on the bottom edge, square, two plain choices. */
.consent{position:fixed;left:var(--pad);right:var(--pad);bottom:var(--pad);z-index:50;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;max-width:58em;margin:0 auto;padding:calc(1.4*var(--u)) calc(1.8*var(--u));background:var(--ink);color:var(--flour);font-size:max(16px,calc(1.3*var(--u)));line-height:1.4}
.consent p{margin:0;flex:1 1 20em}
.consent a{color:inherit}
.consent div{display:flex;gap:8px}
.consent button{min-height:44px;padding:0 18px;border:1.5px solid var(--flour);border-radius:0;background:transparent;color:var(--flour);font:500 14px/1 "Geist Mono",monospace;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.consent button[data-v=granted]{background:var(--lime);border-color:var(--lime);color:var(--ink)}
.consent button:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
