:root{
  --desk:#008080; --face:#C0C0C0; --hi:#FFFFFF; --lo:#808080; --black:#000000;
  --ink:#000000; --dim:#4A4A4A; --amber:#A85A0E; --amber-lite:#F2A65A;
  --title-a:#000080; --title-b:#1084D0; --link:#0000CC; --visited:#551A8B;
  --term:#0C0A10;
  --sans:Tahoma,"MS Sans Serif",Geneva,Verdana,sans-serif;
  --mono:Consolas,"Lucida Console","Courier New",monospace;
}
*{margin:0;padding:0;box-sizing:border-box}
body{background:var(--desk);color:var(--ink);font-family:var(--sans);font-size:12px;
     line-height:1.65;padding:26px 14px 64px;overflow-x:hidden}
a{color:var(--link)}a:visited{color:var(--visited)}
a:focus-visible{outline:1px dotted var(--ink);outline-offset:2px}

.win{width:800px;max-width:100%;margin:0 auto;background:var(--face);position:relative;
     border:2px solid;border-color:var(--hi) var(--black) var(--black) var(--hi);
     box-shadow:1px 1px 0 var(--lo) inset,-1px -1px 0 #DFDFDF inset,3px 3px 12px rgba(0,0,0,.35)}
.win.max{width:calc(100vw - 28px);transform:none!important}
.sheet{max-width:744px;margin:0 auto}

.title{display:flex;align-items:center;gap:7px;margin:2px;padding:3px 3px 3px 6px;
       background:linear-gradient(90deg,var(--title-a),var(--title-b));color:#fff;user-select:none}
.win:not(.max) .title{cursor:move}
.title .kao{font-family:var(--mono);font-size:11px;color:var(--amber-lite)}
.title b{font-size:12px;font-weight:bold;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.title .ctl{margin-left:auto;display:flex;gap:2px}
.title .ctl button{width:18px;height:16px;background:var(--face);color:var(--ink);
  font-size:10px;line-height:1;font-family:var(--sans);cursor:pointer;padding:0;
  border:1px solid;border-color:var(--hi) var(--black) var(--black) var(--hi)}
.title .ctl button:active{border-color:var(--black) var(--hi) var(--hi) var(--black)}

/* ⚠ flex-wrap is load-bearing, not tidiness: seven items do not fit a 375px
   viewport and the Social button ended 33px past it, giving the WHOLE PAGE a
   horizontal scrollbar -- which spec 3.4 forbids outright. Confirmed by
   elimination during the walk: minimise the window (which hides the menu) and
   the body overflow dropped to zero. Wrapping costs nothing at desktop widths,
   where it never wraps. */
.menu{display:flex;flex-wrap:wrap;padding:1px 3px 3px;font-size:12px;position:relative}
.menu > a,.menu > .drop > button{padding:2px 9px;color:var(--ink);text-decoration:none;
  font-family:var(--sans);font-size:12px;background:none;border:0;cursor:pointer;line-height:1.65}
.menu > a:hover,.menu > .drop > button:hover,.menu > .drop.open > button{background:var(--title-a);color:#fff}
.menu u{text-decoration:underline}
.drop{position:relative}
.drop ul{display:none;position:absolute;left:0;top:100%;z-index:80;min-width:186px;
  background:var(--face);list-style:none;padding:2px;
  border:2px solid;border-color:var(--hi) var(--black) var(--black) var(--hi);
  box-shadow:2px 2px 5px rgba(0,0,0,.35)}
.drop.open ul{display:block}
.drop li a{display:flex;gap:10px;padding:3px 10px;color:var(--ink);text-decoration:none;font-size:12px}
.drop li a:hover{background:var(--title-a);color:#fff}
.drop li a span{margin-left:auto;color:var(--lo);font-size:11px}
.drop li a:hover span{color:#C7D0F0}
.drop hr{border:0;border-top:1px solid var(--lo);border-bottom:1px solid var(--hi);margin:3px 2px}

.body{margin:0 4px 4px;background:#FFFFFF;
      border:2px solid;border-color:var(--lo) var(--hi) var(--hi) var(--lo);
      padding:24px 26px}

.head{display:flex;gap:26px;align-items:flex-end;padding-bottom:20px;border-bottom:1px solid #E8E8E8}
#cat{flex:none;width:150px;background:none;border:0;padding:0;cursor:pointer;display:block}
#cat svg{display:block;width:100%;height:auto}
#cat:focus-visible{outline:1px dotted var(--ink);outline-offset:3px}
.headtext{flex:1;min-width:0;padding-bottom:2px}
h1{font-size:44px;font-weight:bold;letter-spacing:-.035em;line-height:1;color:var(--ink)}
.motto{font-size:17px;font-weight:bold;color:var(--amber);margin-top:10px;line-height:1.3}
.pitch{font-size:13.5px;margin-top:11px;line-height:1.55}
.sub{display:block;color:var(--dim);font-size:11.5px;margin-top:6px}

.get{display:flex;gap:22px;align-items:center;flex-wrap:wrap;padding:20px 0 4px}
.btn{font-family:var(--sans);font-size:13px;font-weight:bold;text-decoration:none;color:var(--ink);
     background:var(--face);padding:11px 26px;cursor:pointer;
     border:2px solid;border-color:var(--hi) var(--black) var(--black) var(--hi);
     box-shadow:1px 1px 0 #DFDFDF inset,-1px -1px 0 var(--lo) inset}
.btn:visited{color:var(--ink)}
.btn:active{border-color:var(--black) var(--hi) var(--hi) var(--black)}
.getmeta{font-size:11.5px;color:var(--dim);line-height:1.75}
.getmeta b{color:var(--ink)}

.term{margin-top:20px;background:#0E0D0F;font-family:var(--mono);font-size:11px;
      line-height:1.55;padding:14px 22px;overflow-x:auto;
      border:2px solid;border-color:var(--lo) var(--hi) var(--hi) var(--lo)}
.ln{white-space:pre;color:#D8D4CE}
.sp{height:.85em}
.ta{color:#E8A45C}
.tb{color:#E8A45C;font-weight:bold}
.td{color:#7E7A76}
.tw{color:#E8E6E2}
.tg{color:#8FB57A}
.ln.q{background:#1F1810;margin:0 -22px;padding:0 22px}
.th{border-left:2px solid #3A342C;padding-left:12px;margin-left:2px}
.th .ti{color:#8C867C;font-style:italic}
.rule{display:flex;align-items:center;gap:9px}
.rule i{flex:1;height:1px;background:#3A342C;display:block}
.rule i.stub{flex:0 0 20px}
.cap{font-size:10.5px;color:var(--dim);margin-top:5px;font-style:italic}

.feat{margin-top:24px}
h2{font-size:14px;font-weight:bold;color:var(--ink);margin-bottom:12px}
.feat div{display:grid;grid-template-columns:140px 1fr;gap:20px;padding:10px 0;
          border-top:1px solid #EFEFEF;align-items:baseline}
.feat div:first-of-type{border-top:0}
.feat b{color:var(--amber);font-size:12px}
.feat p{color:var(--dim);font-size:11.5px;line-height:1.7}
.feat em{color:var(--lo);font-style:italic}

.fine{margin-top:22px;padding-top:14px;border-top:1px solid #EFEFEF;
      font-size:10.5px;color:var(--lo);line-height:1.7}
.fine b{color:var(--dim)}

.status{display:flex;gap:3px;margin:0 4px 4px;font-size:11px;color:var(--dim)}
.status > span{padding:2px 8px;border:2px solid;border-color:var(--lo) var(--hi) var(--hi) var(--lo)}
.status .grow{flex:1;display:flex;gap:13px;flex-wrap:wrap;align-items:center}
.status a{color:var(--link);text-decoration:none;display:inline-flex;align-items:center;gap:5px}
.status a:hover{text-decoration:underline}
.ico{width:15px;height:15px;flex:none;display:inline-grid;place-items:center;color:#fff;
     font-size:9px;font-weight:bold;line-height:1;font-family:var(--sans);font-style:normal;
     border:1px solid;border-color:var(--hi) #4A4A4A #4A4A4A var(--hi)}

.win.min .menu,.win.min .body,.win.min .status{display:none}
#egg{display:none;width:800px;max-width:100%;margin:22px auto 0;text-align:center}
body.minimized #egg{display:block}
#egg pre{font-family:var(--mono);font-size:15px;line-height:1.35;color:#DFF2F2;margin-bottom:10px}
#egg p{font-size:11.5px;color:#9FD2D2}

#shutdown{display:none;position:fixed;inset:0;background:#000;z-index:200;
          align-items:center;justify-content:center;text-align:center}
#shutdown.on{display:flex}
#shutdown div{font-family:var(--mono);color:#E8A33D;font-size:19px;line-height:1.9}
#shutdown small{display:block;color:#6B6B6B;font-size:11px;margin-top:26px;font-family:var(--sans)}
#shutdown a{color:#6B6B6B}

#confirm{display:none;position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:150;
         align-items:center;justify-content:center}
#confirm.on{display:flex}
.dlg{width:330px;max-width:92vw;background:var(--face);
     border:2px solid;border-color:var(--hi) var(--black) var(--black) var(--hi);
     box-shadow:2px 2px 8px rgba(0,0,0,.4)}
.dlg .title{margin:2px;cursor:default}
.dlg .in{padding:18px 18px 8px;display:flex;gap:14px;align-items:flex-start}
.dlg .in .kao{font-family:var(--mono);font-size:20px;color:var(--amber)}
.dlg .in p{font-size:12px;line-height:1.6}
.dlg .row{display:flex;gap:8px;justify-content:center;padding:12px 0 16px}
.dlg .row button{min-width:82px;font-family:var(--sans);font-size:12px;padding:5px 0;cursor:pointer;
  background:var(--face);border:2px solid;border-color:var(--hi) var(--black) var(--black) var(--hi)}
.dlg .row button:active{border-color:var(--black) var(--hi) var(--hi) var(--black)}

@media (max-width:800px){
  .head{flex-wrap:wrap;gap:16px;align-items:flex-start}
  #cat{width:118px}
  .feat div{grid-template-columns:1fr;gap:2px}
}

/* ---------------------------------------------------------------------------
   Page-level additions beyond the ruled mock (docs/mockups/2026-08-20-site-front-page.html).
   Everything above this line is that mock's stylesheet verbatim.
   --------------------------------------------------------------------------- */

/* the cat */
#rig{fill:#C4700F}

/* 5.1 -- unshipped features are dimmed and carry an inline marker. Gate 8
   fails the build on a block wearing this class with no 'Coming soon.' in it. */
.soon{opacity:.55}
.soon em{color:var(--lo);font-style:italic}

/* body copy on the deeper pages */
main h2{font-size:14px;font-weight:bold;color:var(--ink);margin:24px 0 12px}
main p{margin-bottom:11px}

/* A social handle whose registration is not confirmed (D5) renders as text,
   not as a link: a dead link on a launch page is worse than no link. Same
   metrics as .status a so the row does not reflow when one is confirmed. */
.status .ico-off{display:inline-flex;align-items:center;gap:5px;color:var(--lo);cursor:default}
.status .ico-off .ico{opacity:.55}
.drop li .off{display:flex;gap:10px;padding:3px 10px;color:var(--lo);font-size:12px;cursor:default}
.drop li .off span{margin-left:auto;font-size:11px}

/* prose pages: /what-it-does/, /roles/, /extensions/, /extensions/write/, /manual/ */
h1.ph{font-size:27px;letter-spacing:-.02em;margin-bottom:8px}
p.lead{font-size:13.5px;color:var(--dim);margin-bottom:6px;line-height:1.65}
main h3{font-size:12.5px;font-weight:bold;color:var(--amber);margin:18px 0 7px}
main ul,main ol{margin:0 0 12px 0;padding-left:0;list-style:none}
main li{position:relative;padding-left:20px;margin-bottom:7px;line-height:1.65}
main ul>li:before{content:"\25AA";position:absolute;left:4px;color:var(--amber);font-size:9px;top:1px}
main ol{counter-reset:step}
main ol>li{counter-increment:step;padding-left:28px}
main ol>li:before{content:counter(step) ".";position:absolute;left:2px;color:var(--amber);font-weight:bold}
main li b{color:var(--ink)}
main section{padding-bottom:4px}
main hr{border:0;border-top:1px solid #E8E8E8;margin:26px 0 0}
.kbd{font-family:var(--mono);font-size:11.5px;background:#F2F2F2;border:1px solid #DCDCDC;padding:0 4px}

/* the role cards on /roles/ */
.role{margin:0 0 22px}
.role-h{display:flex;align-items:flex-start;gap:20px;margin-bottom:9px}
.role-cat{flex:none;background:var(--term);padding:11px 16px 13px;font-family:var(--mono);
  font-size:13px;line-height:1.3;color:var(--amber-lite);white-space:pre;min-width:132px;
  border:2px solid;border-color:#000 #6E6E6E #6E6E6E #000}
.role-cat.six{font-size:11.5px}
/* Per-role tints, taken from repo/Gatto/Repl/Term/Theme.cs -- Accent (generalist),
   RoleCoder, RoleOracle. These are the DARK-terminal variants, which is correct
   here: the cards sit on var(--term), the same ground the real banner does.
   ⚠ Quoted, never picked. tests/test_copy.py pins them against Theme.cs. */
.role-cat.coder{color:#56B6C2}
.role-cat.oracle{color:#B48EAD}
.role-t{flex:1;min-width:0}
.role-t h3{margin-top:0}
.role-t p{margin-bottom:7px}
.rf{font-family:var(--mono);font-size:11.5px;color:var(--dim);background:#F7F7F7;
  border-left:3px solid var(--amber);padding:6px 10px;margin:0 0 4px;white-space:pre-wrap}

/* One measure for a prose page: the heading, the rule and the body all stop at
   the same place, so the rest of the sheet reads as a margin instead of as a
   paragraph that ran out under a full-width heading. */
.prose{max-width:648px}

/* code blocks on the authoring page and in the manual */
pre.code{font-family:var(--mono);font-size:11.5px;line-height:1.55;color:#DCDCDC;
  background:var(--term);padding:12px 14px;margin:0 0 12px;overflow-x:auto;
  border:2px solid;border-color:#000 #6E6E6E #6E6E6E #000;white-space:pre}
main h3+ul,main h3+p{margin-top:0}

/* the extensions shelf */
details{border:1px solid #E2E2E2;margin-bottom:7px;background:#FCFCFC}
details[open]{background:#FFF;border-color:#CFCFCF}
summary{display:flex;align-items:baseline;gap:9px;padding:8px 11px;cursor:pointer;
  list-style:none;font-size:12px}
summary::-webkit-details-marker{display:none}
summary:hover{background:#F2F2F2}
summary .tw{color:var(--amber);font-size:10px;flex:none;transition:transform .12s}
details[open] summary .tw{transform:rotate(90deg)}
summary .nm{font-family:var(--mono);font-weight:bold;color:var(--ink);flex:none}
summary .ds{color:var(--dim);font-size:11.5px;flex:1;min-width:0}
summary .bd{flex:none;font-size:9.5px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--lo);border:1px solid #DCDCDC;padding:1px 5px;background:#F2F2F2}
.panel{padding:2px 11px 11px;border-top:1px solid #EFEFEF}
.panel dl{display:grid;grid-template-columns:78px 1fr;gap:3px 12px;margin:10px 0;font-size:11.5px}
.panel dt{color:var(--lo)}
.panel dd{color:var(--dim);min-width:0;overflow-wrap:anywhere}
.panel dd code{font-family:var(--mono);font-size:11px;color:var(--ink)}
pre.src{font-family:var(--mono);font-size:10.5px;line-height:1.5;color:#DCDCDC;
  background:var(--term);padding:11px 12px;margin:0;max-height:420px;overflow:auto;white-space:pre}
p.stamp{font-size:10.5px;color:var(--lo);margin:7px 0 0}
p.stamp code{font-family:var(--mono)}
@media (prefers-reduced-motion:reduce){summary .tw{transition:none}}

/* the 404 dialog */
.errbox{display:flex;gap:22px;align-items:flex-start;background:#F2F2F2;padding:18px 20px;
  border:2px solid;border-color:var(--hi) var(--lo) var(--lo) var(--hi);margin-bottom:4px}
.errcat{flex:none;width:104px}
.errcat svg{display:block;width:100%;height:auto;fill:var(--amber)}
.errtext{flex:1;min-width:0}
.errtext h1.ph{font-size:19px;margin-bottom:9px}
.errnav{margin-top:15px}
.errnav .btn{display:inline-block;min-width:92px;text-align:center}

/* the manual's anchor index */
.toc{background:#F7F7F7;border:1px solid #E2E2E2;padding:13px 16px 14px;margin:0 0 4px}
.toc ol{list-style:none;padding:0;margin:0;columns:2;column-gap:26px}
.toc li{padding-left:0;margin-bottom:5px;break-inside:avoid;font-size:11.5px;line-height:1.5}
.toc li:before{content:none}
.toc a{color:var(--link)}
main h2[id]{scroll-margin-top:14px}
@media (max-width:640px){.toc ol{columns:1}}

/* the shelf's trimmed-source notice */
p.trimmed{font-size:10.5px;color:var(--dim);background:#FDF6EC;border-left:3px solid var(--amber);
  padding:6px 10px;margin:0 0 8px;line-height:1.55}

/* ---------------------------------------------------------------------------
   Phones.

   ⚠ Not the audience, and the design does not pretend otherwise: gatto is a
   terminal application and the person evaluating one is at a desktop. But the
   link gets shared, and someone who opens it on a phone must be able to read
   the site and move around it. That is the bar here -- navigable and legible,
   not re-designed.

   The mock already handles 800px (the head wraps, the cat shrinks, the feature
   grid goes single-column). These are the surfaces added after it.
   --------------------------------------------------------------------------- */

/* The title bar's kaomoji is a picture made of characters: broken across two
   lines it stops being a face and makes the bar two rows tall. */
.title .kao{white-space:nowrap;flex:none}

@media (max-width:560px){
  /* Cat beside prose stops working when the prose column reaches about three
     words per line. Both surfaces that pair them stack instead. */
  .role-h{flex-direction:column;gap:11px}
  .role-cat{min-width:0;width:100%}
  .errbox{flex-direction:column;gap:14px;padding:15px 16px}
  .errcat{width:88px}

  /* A 78px label column against a 200px value column wraps every value. */
  .panel dl{grid-template-columns:1fr;gap:1px}
  .panel dt{margin-top:7px}
  .panel dt:first-child{margin-top:0}

  /* The shelf summary is three fields in a row; below this width the
     description needs the full line rather than a third of it. */
  summary{flex-wrap:wrap}
  summary .ds{flex-basis:100%;order:3}
  summary .bd{margin-left:auto}

  /* Menu items are the main way around the site on a phone, and at 2px they
     are a 22px target. Nudged to a comfortable one without changing the look
     at desktop widths, where this block does not apply. */
  .menu > a,.menu > .drop > button{padding:5px 9px}

  h1.ph{font-size:23px}
  .head h1{font-size:36px}
  p.lead{font-size:12.5px}
  .prose{max-width:none}
}

@media (max-width:420px){
  /* The window's chrome is 8px of margin either side; on the narrowest phones
     that is worth more as text. */
  .body{margin:0 2px 2px}
  .win{border-width:1px}
  .term{font-size:10px}
}
