@font-face{font-family:"Archivo";font-style:normal;font-weight:300 500;font-stretch:125%;font-display:swap;src:url(fonts/archivo-expanded-300-500-latin.woff2) format("woff2")}
@font-face{font-family:"Martian Mono";font-style:normal;font-weight:300 400;font-display:swap;src:url(fonts/martian-mono-300-400-latin.woff2) format("woff2")}

:root{
  /* ---- tokens: the only place colour and type live ---- */
  --ground:#131D74;      /* flat deep ultramarine: the night sky and the page */
  --land:#0F1760;        /* one step down: the land, the unlit front of a house */
  --dim:#4352B2;         /* unlit line work (about 2:1 on the ground) */
  --rule-hi:#8393F0;     /* the ground line */
  --moonlight:#F0E9D8;   /* name, twelve stars lit, lettering */
  --silver:#CFC8B6;      /* the line, the facts */
  --lit:#EFE6CF;         /* moonlit edges on houses (ivory) */
  --gold:#D6B56E;        /* the one accent: link underline, focus ring, door knobs */
  --field:#C9CEF0;       /* the quiet field of small stars, cool tone */
  --field-w:#E9E4D0;     /* the same field, warm ivory tone */
  --star0:#8F9BE2;       /* the twelve before the light gathers */
  /* a house, moonlit on its front: each role steps from its unlit tone to its lit tone, and the lit tone steps down with distance from the moon (l1 near, l3 far) */
  --wl1:#2A3AA4; --wl2:#232F92; --wl3:#1C2784;    /* wall */
  --rf1:#4A59BD; --rf2:#3F4CAC; --rf3:#34419E;    /* roof, the lit half of a tree */
  --dr1:#3A4BAC; --dr2:#34439E; --dr3:#2D3B94;    /* door */
  --bd1:#33439F; --bd2:#2B3B9C; --bd3:#25338F;    /* painted board and plaque */
  --wb1:#3A4CB8; --wb2:#3244AA; --wb3:#2A3A9C;    /* the band of wall that faces the moon */
  --pn1:#0F175C;                                   /* glass in the light: still dark, the moon is a glint on it */
  --pn0:#0B1250;                                   /* glass unlit */
  --r0:#101966;                                    /* roof unlit */
  --sh:#0A1050;                                    /* cast shadow (flat, 60 percent) */
  /* the moon: one whole disc, three stated colours (arrival, gathering, gathered), never through grey */
  --m0:#5967BE; --m1:#E3DECB; --m2:#EFE8D2;
  --k0:#525FB6; --k1:#DAD5C1; --k2:#E6DFCA;   /* its three seas: a third less contrast than before */
  --sans:"Archivo","Archivo Expanded","Helvetica Neue",Arial,sans-serif;
  --mono:"Martian Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --g:1;                 /* how much light has gathered: 0 arrival, .5 gathering, 1 gathered (default for no-script and reduced motion) */
  color-scheme:dark;
}
html:has(#arrival:target){--g:0}
html:has(#gathering:target){--g:.5}
html:has(#gathered:target){--g:1}

*{box-sizing:border-box}
html{background:var(--ground);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--silver);font-family:var(--sans)}
.stage{position:relative;min-height:100svh;width:100%;display:grid;place-items:center;overflow:clip}
.fa{position:fixed;top:0;left:0;width:0;height:0}
::selection{background:var(--gold);color:var(--ground)}

.plate{position:relative;container-type:inline-size;width:max(min(100vw,160svh),min(100vw,960px));aspect-ratio:1440/900}
.scene{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible}
.scene.s-p{display:none}

/* ---- the land, the ground line, a hint of a ruler ---- */
.land{fill:var(--land)}
.hz{fill:none;stroke:var(--rule-hi);stroke-opacity:.5;stroke-width:1;vector-effect:non-scaling-stroke}
.tick{fill:none;stroke:var(--rule-hi);stroke-opacity:.22;stroke-width:1;vector-effect:non-scaling-stroke}

/* ---- stars: the field (three tiers, two tones), and the twelve inside it ---- */
.fld{fill:var(--field);opacity:calc(.5 + var(--g) * .5)}
.fld .w{fill:var(--field-w)}
.sb{fill:var(--star0);stroke:var(--star0);stroke-width:.5;stroke-linejoin:miter;opacity:.8}
.sl{fill:var(--moonlight);stroke:var(--moonlight);stroke-width:.6;stroke-linejoin:miter;opacity:clamp(0,calc((var(--g) - var(--t)) * 24),1)}

/* ---- the moon ---- */
.ds{fill:var(--m0)} .mr{fill:var(--k0);stroke:var(--k0);stroke-width:5;stroke-linejoin:round}
.m1 .ds{fill:var(--m1)} .m1 .mr{fill:var(--k1);stroke:var(--k1)}
.m2 .ds{fill:var(--m2)} .m2 .mr{fill:var(--k2);stroke:var(--k2)}
.m1{opacity:clamp(0,calc(var(--g) * 2),1)}
.m2{opacity:clamp(0,calc(var(--g) * 2 - 1),1)}

/* ---- houses: unlit is dim line on dark; lit is the same drawing with the moon on its front ---- */
.bld path{vector-effect:non-scaling-stroke;stroke-width:.9;stroke-linejoin:miter}
.bld .wl,.bld .rf,.bld .dr,.bld .bd{stroke-width:1.2}
/* strength steps down with distance from the moon: l1 nearest, l3 farthest (edge strength e, moon-facing edge me, glint gl) */
.l1{--w:var(--wl1);--r:var(--rf1);--dr:var(--dr1);--b:var(--bd1);--wb:var(--wb1);--e:.86;--me:1;--gl:.6}
.l2{--w:var(--wl2);--r:var(--rf2);--dr:var(--dr2);--b:var(--bd2);--wb:var(--wb2);--e:.7;--me:.88;--gl:.45}
.l3{--w:var(--wl3);--r:var(--rf3);--dr:var(--dr3);--b:var(--bd3);--wb:var(--wb3);--e:.52;--me:.72;--gl:.32}
.u .wl,.u .tm,.u .dr,.u .fn,.u .fo,.u .bd{fill:var(--land);stroke:var(--dim)}
.u .rf{fill:var(--r0);stroke:var(--dim)}
.u .pn,.u .op{fill:var(--pn0);stroke:var(--dim)}
.u .ln,.u .fr,.u .ld{fill:none;stroke:var(--dim)}
.u .cl{fill:none;stroke:var(--dim);stroke-dasharray:4 4;stroke-opacity:.6}
.u .kn{fill:var(--dim);stroke:none}
.u .gd{fill:none;stroke:var(--dim);stroke-opacity:0}
.lu{fill:none;stroke:var(--dim);stroke-width:1.5;stroke-linejoin:miter;stroke-linecap:butt;vector-effect:non-scaling-stroke}
.v{opacity:clamp(0,calc((var(--g) - var(--t)) * 24),1)}
.v .wl{fill:var(--w);stroke:var(--lit);stroke-opacity:var(--e)}
.v .rf{fill:var(--r);stroke:var(--lit);stroke-opacity:var(--e)}
.v .tm{fill:var(--w);stroke:var(--lit);stroke-opacity:var(--e)}
.v .dr{fill:var(--dr);stroke:var(--lit);stroke-opacity:var(--e)}
.v .bd{fill:var(--b);stroke:var(--lit);stroke-opacity:var(--e)}
.v .fn,.v .fo{fill:var(--w);stroke:var(--lit);stroke-opacity:var(--e)}
.v .fl{fill:var(--r);stroke:none}
.v .pn,.v .op{fill:var(--pn1);stroke:var(--lit);stroke-opacity:var(--e)}
.v .ln{fill:none;stroke:var(--lit);stroke-opacity:.3}
.v .fr,.v .ld{fill:none;stroke:var(--lit);stroke-opacity:var(--e)}
.v .cl{fill:none;stroke:var(--lit);stroke-opacity:.5;stroke-dasharray:4 4}
.v .sd{fill:none;stroke:var(--lit);stroke-opacity:.2;stroke-width:.7}
.v .sh{fill:var(--sh);fill-opacity:.6;stroke:none}
.v .gl{fill:var(--moonlight);fill-opacity:var(--gl);stroke:none}
.v .kn{fill:var(--gold);stroke:none}
.v .gd{fill:none;stroke:var(--lit);stroke-opacity:.45;stroke-width:1.6}
.v .mb{fill:var(--wb);stroke:none}
.v .me{fill:none;stroke:var(--moonlight);stroke-opacity:var(--me);stroke-width:2.2;stroke-linecap:butt}
.tx{opacity:clamp(0,calc((var(--g) - var(--t)) * 24),1)}
.lt{fill:none;stroke:var(--moonlight);stroke-width:1.7;stroke-linejoin:miter;stroke-linecap:butt;vector-effect:non-scaling-stroke}
.l3 .lt{stroke-opacity:.88}
.s-p .lt,.s-p .lu{stroke-width:2}

/* ---- type ---- */
.copy,.facts p{position:absolute;margin:0;--u:calc(100cqw / 1440)}
h1{margin:0;font-family:var(--sans);font-weight:300;font-stretch:125%;font-size:max(30px,calc(var(--u) * 64));line-height:1;letter-spacing:-.012em;color:var(--moonlight);text-wrap:balance}
.line{margin:calc(var(--u) * 28) 0 0;font-family:var(--sans);font-weight:400;font-stretch:125%;font-size:max(14px,calc(var(--u) * 20));line-height:1.4;color:var(--silver);max-width:calc(var(--u) * 440);text-wrap:balance}
.copy{left:calc(var(--u) * 80);top:calc(var(--u) * 252);width:calc(var(--u) * 640)}
.facts p{font-family:var(--mono);font-weight:400;font-size:max(14px,calc(var(--u) * 14));line-height:1.6;letter-spacing:0;color:var(--silver);display:flex;align-items:center;height:calc(var(--u) * 80);top:calc(var(--u) * 770);text-wrap:balance;font-variant-numeric:tabular-nums slashed-zero}
.facts .llc{left:calc(var(--u) * 80);width:calc(var(--u) * 520)}
.facts .mail{left:calc(var(--u) * 630);width:calc(var(--u) * 300)}
.facts .rights{left:auto;right:calc(var(--u) * 80);width:auto;white-space:nowrap}
.mail a{display:inline-flex;align-items:center;min-height:max(48px,calc(var(--u) * 48));color:var(--moonlight);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:1px;text-underline-offset:.4em}
.mail a:hover{text-decoration-thickness:2px}
.mail a:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:1px}

/* ---- phone: its own composition (portrait, or narrow) ---- */
@media (orientation:portrait),(max-width:1023px){
  .plate{width:min(100vw,max(375px,46.2svh));aspect-ratio:375/812}
  .scene.s-d{display:none}
  .scene.s-p{display:block}
  .copy,.facts p{--u:calc(100cqw / 375)}
  .copy{left:calc(var(--u) * 32);top:calc(var(--u) * 62);width:calc(var(--u) * 311)}
  h1{font-size:calc(var(--u) * 44);line-height:.98;letter-spacing:-.01em}
  .line{margin-top:calc(var(--u) * 18);font-size:max(14px,calc(var(--u) * 16));max-width:calc(var(--u) * 250)}
  .facts p{font-size:max(14px,calc(var(--u) * 13));line-height:1.5;height:calc(var(--u) * 49);left:calc(var(--u) * 32);width:calc(var(--u) * 311)}
  .facts .llc,.facts .mail,.facts .rights{left:calc(var(--u) * 32);width:calc(var(--u) * 311);right:auto}
  .facts .llc{top:calc(var(--u) * 628);height:calc(var(--u) * 60)}
  .facts .mail{top:calc(var(--u) * 698)}
  .facts .rights{top:calc(var(--u) * 754)}
  .mail a{min-height:max(48px,calc(var(--u) * 49))}
}
@media (prefers-reduced-motion:reduce){:root{--g:1}html:has(#arrival:target){--g:0}html:has(#gathering:target){--g:.5}}
/* ---- when each piece lights, as a class (was an inline style attribute) ---- */
.t03{--t:0.03}.t08{--t:0.08}.t11{--t:0.11}.t14{--t:0.14}.t20{--t:0.2}.t26{--t:0.26}.t28{--t:0.28}.t32{--t:0.32}.t36{--t:0.36}.t38{--t:0.38}.t44{--t:0.44}.t52{--t:0.52}.t56{--t:0.56}.t61{--t:0.61}.t62{--t:0.62}.t68{--t:0.68}.t69{--t:0.69}.t74{--t:0.74}.t77{--t:0.77}.t80{--t:0.8}.t85{--t:0.85}.t86{--t:0.86}.t93{--t:0.93}

/* ---- 404 (404.html): the same ground, ivory and faces; short and plain ---- */
.nf{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:clamp(32px,6vw,80px)}
.nf h1{font-size:clamp(30px,5vw,44px);line-height:1.05;margin:0}
.nf p{margin:clamp(20px,3vw,28px) 0 0;font-family:var(--sans);font-weight:400;font-stretch:125%;font-size:clamp(16px,1.6vw,20px);line-height:1.4}
.nf a{display:inline-flex;align-items:center;min-height:48px;color:var(--moonlight);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:1px;text-underline-offset:.4em}
.nf a:hover{text-decoration-thickness:2px}
.nf a:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:1px}
