/* E-Dustries public site. Hand-written, no framework. Colours come from E-nvironment / Install-E-r. */
:root{
  --night:#12112a; --night2:#1b1a3d; --navy:#22355a;
  --cream:#fffdf9; --cream2:#f6efe6; --ink:#3a2f2a; --soft:#7b6a60; --line:#eadfd2;
  --accent:#e98a6b; --accent2:#c46244; --mag:#c447b8; --purple:#5b2a9e; --lilac:#d9c8ff;
  --ok:#3d8b6a;
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--night);color:var(--cream);font:16px/1.55 "Segoe UI",system-ui,-apple-system,sans-serif;
  -webkit-text-size-adjust:100%}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent)}
a:hover{color:#ffb197}
:focus-visible{outline:3px solid var(--lilac);outline-offset:2px;border-radius:6px}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.skip{position:absolute;left:-999px;top:0;background:var(--cream);color:var(--ink);padding:8px 12px;z-index:9}
.skip:focus{left:8px}

/* Top bar: the grey diamond tile from the banner, logo left, links right */
.top{background:#b9b9b9 url(tile.webp) repeat;background-size:110px;border-bottom:4px solid var(--night2)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px}
.top .logo img{height:54px;width:auto;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25))}
.top nav{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.top nav a{color:var(--ink);background:var(--cream);text-decoration:none;font-weight:600;font-size:15px;
  padding:7px 14px;border-radius:999px;border:2px solid #3a3f55;box-shadow:0 2px 0 #3a3f55}
.top nav a:hover,.top nav a[aria-current=page]{background:var(--accent);color:#fff}

/* Hero: the E-nvironment factory with Mochi and a speech bubble */
.hero{position:relative;background:var(--night) url(factory.webp) center 35%/cover no-repeat;overflow:hidden}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,17,42,.8) 0%,rgba(18,17,42,.55) 50%,rgba(18,17,42,.45) 100%)}
.hero .wrap{position:relative;z-index:1;display:flex;align-items:flex-end;gap:12px;min-height:340px;padding-top:28px}
.hero .mochi{width:210px;flex:none;margin-bottom:-4px}
.bubble{position:relative;background:var(--cream);color:var(--ink);border:3px solid #2b2550;border-radius:22px;
  padding:16px 20px;max-width:540px;margin-bottom:96px;box-shadow:0 5px 0 #2b2550}
.bubble:before{content:"";position:absolute;left:-17px;bottom:26px;border:12px solid transparent;border-right-color:#2b2550;border-left:0}
.bubble:after{content:"";position:absolute;left:-11px;bottom:29px;border:9px solid transparent;border-right-color:var(--cream);border-left:0}
.bubble h1{margin:0 0 4px;font-size:26px;line-height:1.2}
.bubble p{margin:0;color:var(--soft)}
.bubble .who{font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--mag);margin-bottom:2px}

/* Sections */
main{padding-bottom:40px}
.section{padding:34px 0 8px}
.section>h2,.wrap>h2{font-size:24px;margin:0 0 4px;display:flex;align-items:center;gap:10px}
.section>h2 img,.wrap>h2 img{width:30px;height:30px}
.lead{color:#c9c3e6;margin:0 0 18px}

/* Release cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px}
.card{background:var(--cream);color:var(--ink);border-radius:var(--radius);overflow:hidden;border:3px solid #2b2550;
  box-shadow:0 5px 0 #2b2550;display:flex;flex-direction:column;min-width:0}
.card .art{background:#bdbdbd url(tile.webp);background-size:80px;aspect-ratio:16/7;display:flex;align-items:center;justify-content:center;overflow:hidden}
.card .art img{width:100%;height:100%;object-fit:cover;object-position:left top}
.card .body{padding:14px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{margin:0;font-size:20px}
.card p{margin:0;color:var(--soft)}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{font-size:12px;font-weight:600;padding:2px 9px;border-radius:999px;background:var(--cream2);color:var(--ink);border:1px solid var(--line)}
.tag.new{background:var(--mag);border-color:var(--mag);color:#fff}
.card .go{margin-top:auto;padding-top:6px}
.card.soon{opacity:.75}
.card.soon .art{color:#555;font-weight:700;letter-spacing:1px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:#fff;font-weight:700;
  text-decoration:none;border:3px solid #2b2550;border-radius:999px;padding:10px 22px;box-shadow:0 4px 0 #2b2550;font-size:16px;cursor:pointer}
.btn:hover{background:var(--accent2);color:#fff}
.btn:active{transform:translateY(2px);box-shadow:0 2px 0 #2b2550}
.btn.big{font-size:20px;padding:14px 28px;width:100%}
.btn.ghost{background:var(--cream);color:var(--ink)}
.btn.ghost:hover{background:var(--cream2)}
.btn[aria-disabled=true]{background:#9a8f88;cursor:not-allowed}

/* Product page */
.pbanner{background:#bdbdbd url(tile.webp);background-size:80px;border-bottom:4px solid var(--night2)}
.pbanner img{width:100%;max-width:1600px;margin:0 auto}
.phead{display:grid;grid-template-columns:1fr 340px;gap:22px;padding-top:26px;align-items:start}
.phead h1{font-size:34px;margin:0 0 2px;line-height:1.15}
.phead .sub{color:var(--lilac);font-weight:600;margin:0 0 12px}
.phead ul{margin:8px 0 0;padding-left:20px;color:#e4def8}
.phead li{margin:4px 0}
.dl{background:var(--cream);color:var(--ink);border:3px solid #2b2550;box-shadow:0 5px 0 #2b2550;border-radius:var(--radius);padding:18px}
.dl .meta{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}
.dl .first{display:flex;gap:10px;align-items:center;margin-top:14px;padding-top:12px;border-top:2px dashed var(--line);font-size:14px;color:var(--soft)}
.dl .first img{width:44px;height:44px;border-radius:50%;background:var(--cream2);flex:none}
.dl .first b{color:var(--ink)}
.shot{margin:26px 0 0;background:var(--night2);border:3px solid #2b2550;border-radius:var(--radius);padding:10px}
.shot img{border-radius:8px;width:100%}
.shot figcaption{color:#c9c3e6;font-size:14px;padding:8px 4px 0}

/* Install-E-r box */
.needs{background:var(--cream);color:var(--ink);border-radius:var(--radius);border:3px solid #2b2550;box-shadow:0 5px 0 #2b2550;
  padding:18px 20px;display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:start}
.needs .mochi{width:110px;margin-top:4px}
.needs h3{margin:0 0 4px;font-size:20px}
.needs>div>p{margin:0 0 12px;color:var(--soft)}
.reqs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.reqs li{background:var(--cream2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0}
.reqs b{display:block}
.reqs span{display:block;font-size:14px;color:var(--soft)}
.reqs a{font-size:14px;font-weight:600;color:var(--accent2)}

/* Steps + changelog + notes */
.steps{counter-reset:s;list-style:none;margin:0;padding:0;display:grid;gap:10px}
.steps li{counter-increment:s;position:relative;background:var(--night2);border:2px solid #2f2c5e;border-radius:14px;padding:12px 14px 12px 58px;color:#e4def8}
.steps li:before{content:counter(s);position:absolute;left:12px;top:10px;width:34px;height:34px;border-radius:50%;
  background:var(--mag);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.steps b{color:#fff}
kbd{font:600 13px Consolas,monospace;background:var(--cream);color:var(--ink);border-radius:5px;padding:1px 6px;border-bottom:2px solid #9a8f88}
.log{display:grid;gap:10px}
.log article{background:var(--night2);border-left:5px solid var(--accent);border-radius:10px;padding:10px 14px}
.log h3{margin:0;font-size:17px}
.log h3 small{color:#a8a1cc;font-weight:400;margin-left:6px}
.log ul{margin:6px 0 0;padding-left:20px;color:#e4def8}
.notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.notes div{background:var(--night2);border:2px solid #2f2c5e;border-radius:14px;padding:12px 14px;color:#e4def8}
.notes h3{margin:0 0 4px;font-size:16px;color:#fff}
.notes p{margin:0;font-size:15px}

/* Footer */
footer{margin-top:40px;background:#0c0b1e;border-top:4px solid var(--night2);color:#a8a1cc;font-size:14px}
footer .wrap{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:20px 16px}
footer .brand{display:flex;gap:10px;align-items:center}
footer img{width:36px;height:36px}
footer p{margin:0}

/* Phones */
@media (max-width:760px){
  .top .logo img{height:40px}
  .top nav a{font-size:14px;padding:6px 11px}
  .hero .wrap{flex-direction:column;align-items:flex-start;min-height:0;padding-bottom:0}
  .bubble{margin-bottom:0}
  .bubble:before{left:34px;top:auto;bottom:-17px;border:12px solid transparent;border-top-color:#2b2550;border-bottom:0}
  .bubble:after{left:37px;top:auto;bottom:-11px;border:9px solid transparent;border-top-color:var(--cream);border-bottom:0}
  .hero .mochi{width:150px;order:2;margin-left:4px}
  .bubble h1{font-size:22px}
  .phead{grid-template-columns:1fr}
  .phead h1{font-size:28px}
  .needs{grid-template-columns:1fr}
  .needs .mochi{width:84px}
  .grid{grid-template-columns:1fr}
  .pbanner{display:none}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
code{font:13px Consolas,monospace;background:var(--cream2);color:var(--ink);padding:1px 5px;border-radius:5px;overflow-wrap:anywhere}
.steps code{background:#2f2c5e;color:#fff}
.lost{text-align:center;padding:40px 0}
.lost img{width:180px;margin:0 auto 10px}
.dl .links{margin:12px 0 0;font-size:14px;font-weight:600}
.dl .links a{color:var(--accent2)}
