/* fx/lofi.css: LO-FI, siden som almindelig tekst (fx/lofi.js). Klassen "lofi" på <html> skjuler kontoret og viser <main id="seo">
   (skrevet af seo.js) som en læseside: mørk baggrund, én spalte på ca. 68 tegn, DOS-farver. Ligger sidst, så den vinder over 3d.css og knapper.css. */

/* knappen: nederst til højre. På telefon i 3D ligger styrepanelet og pilene dér, så den står under sprogknappen */
.lofiknap{position:fixed;z-index:9;top:auto;right:max(16px,env(safe-area-inset-right,0px));bottom:max(16px,env(safe-area-inset-bottom,0px));justify-content:center;cursor:pointer}
html.three.mob:not(.lofi) .lofiknap{top:calc(104px + env(safe-area-inset-top,0px));bottom:auto;min-height:34px;padding:0 12px;touch-action:manipulation}
html.three.kbd:not(.lofi) .lofiknap{visibility:hidden}

/* --- læsesiden --- */
html.lofi,html.lofi body{height:auto!important;min-height:100%;overflow:visible!important;cursor:auto!important;touch-action:auto!important;overscroll-behavior:auto!important;
  -webkit-user-select:text;user-select:text}
html.lofi{background:#07070b;scrollbar-color:#555 #07070b}
html.lofi body{position:relative;background:#07070b;color:var(--d-grey)}
html.lofi body>:not(#seo):not(#lofiknap):not(#sprogknap){display:none!important}
html.lofi ::selection{background:var(--d-cyan);color:var(--d-black)}

/* 694px = 68 tegn DM Mono i 17px */
html.lofi #seo{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;box-sizing:content-box;
  max-width:694px;margin:0 auto;padding:calc(30px + env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) 140px max(20px,env(safe-area-inset-left,0px));
  font:400 17px/1.68 var(--lbl);color:#b6b6b6;overflow-wrap:break-word;-webkit-font-smoothing:antialiased}

/* hovedet: BRIIX og sidens menu, med en dobbelt streg under som rammerne på DOS-skærmen */
html.lofi #seo::before{content:"BRIIX";display:block;font:400 46px/1 var(--px);letter-spacing:.14em;color:var(--d-yellow)}
html.lofi #seo nav{margin:14px 0 46px;padding:9px 0 10px;border-top:1px solid var(--d-dkgrey);border-bottom:3px double var(--d-dkgrey)}
html.lofi #seo nav ul{display:flex;flex-wrap:wrap;gap:2px 8px;margin:0 -6px;padding:0;list-style:none}
html.lofi #seo nav li{margin:0;padding:0}
html.lofi #seo nav li::before{content:none}
html.lofi #seo nav a{display:block;padding:3px 6px;font:400 22px/1.1 var(--px);letter-spacing:.04em;text-transform:uppercase;text-decoration:none;color:#55FFFF}
html.lofi #seo nav a[aria-current]{background:var(--d-grey);color:var(--d-black)}

/* overskrifter: gule og understregede */
html.lofi #seo :is(h1,h2){font-family:var(--px);font-weight:400;color:var(--d-yellow);letter-spacing:.02em;text-wrap:balance}
html.lofi #seo h1{margin:0 0 28px;padding-bottom:10px;font-size:42px;line-height:1.05;border-bottom:3px double var(--d-yellow)}
html.lofi #seo h2{margin:44px 0 12px;font-size:30px;line-height:1.1;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.2em}

html.lofi #seo p{margin:0 0 1.15em;text-wrap:pretty}
html.lofi #seo strong{font-weight:500;color:var(--d-white)}

/* lister: en streg som punkt, gule tal */
html.lofi #seo :is(ul,ol){margin:0 0 1.3em;padding:0}
html.lofi #seo ul{list-style:none}
html.lofi #seo ul li{position:relative;padding-left:2.4ch;margin:0 0 .4em}
html.lofi #seo ul li::before{content:"-";position:absolute;left:.4ch;color:var(--d-dkgrey)}
html.lofi #seo ol{padding-left:3.2ch}
html.lofi #seo ol li{margin:0 0 .7em;padding-left:.4ch}
html.lofi #seo ol li::marker{color:var(--d-yellow)}

/* links: cyan og understregede; under musen og i fokus som en valgt linje på DOS-skærmen */
html.lofi #seo a{color:#55FFFF;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em;cursor:pointer}
html.lofi #seo a:hover,html.lofi #seo a:focus-visible,html.lofi #seo nav a:hover,html.lofi #seo nav a:focus-visible{background:var(--d-yellow);color:var(--d-black);text-decoration:none;outline:0}

html.lofi #seo img{display:block;max-width:100%;height:auto;margin:1.6em 0;border:1px solid var(--d-dkgrey)}

/* knapperne på læsesiden: 3D (vejen tilbage, cyan) nederst til højre, sprogknappen øverst ved spaltens højre kant */
html.lofi .lofiknap{background:var(--d-cyan);box-shadow:4px 4px 0 #000,0 0 0 1px #07070b}
html.lofi .lofiknap:hover,html.lofi .lofiknap:focus-visible{background:var(--d-yellow)}
html.lofi #sprogknap{position:absolute;z-index:1;top:calc(34px + env(safe-area-inset-top,0px));right:max(20px,env(safe-area-inset-right,0px),calc(50% - 347px));left:auto;bottom:auto;display:flex}

@media (max-width:560px){
  html.lofi #seo{padding-top:calc(22px + env(safe-area-inset-top,0px));padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));font-size:16px;line-height:1.62}
  html.lofi #seo::before{font-size:40px}
  html.lofi #seo nav{margin-bottom:34px}
  html.lofi #seo nav a{padding:6px 6px}
  html.lofi #seo h1{font-size:34px}
  html.lofi #seo h2{font-size:27px;margin-top:36px}
  html.lofi #sprogknap{top:calc(22px + env(safe-area-inset-top,0px));right:max(16px,env(safe-area-inset-right,0px))}
}
@media print{
  html.lofi,html.lofi body{background:#fff}
  html.lofi #seo,html.lofi #seo :is(h1,h2,a,strong),html.lofi #seo::before{color:#000}
  html.lofi .lofiknap,html.lofi #sprogknap{display:none!important}
}
