/* CM Under Construction - the visitor's page. Phone first; the domain name is the star: its size is the room
   available divided by its number of characters (--cm-underconst-chars, printed by screen.php; 0.64em is a wide
   average letter of Roboto 800), so it stays on one line until it would drop under 1rem, then breaks before a dot.
   The font family comes from cm-alpha's list and is printed on the body by screen.php. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cm-underconst {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: #0f172a;
    background: #f8fafc;
    text-align: center;
}
.cm-underconst__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 8px;
}
.cm-underconst__lead {
    margin: 0;
    font-size: clamp(0.85rem, 2.4vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #475569;
}
.cm-underconst__domain {
    margin: 0.15em 0 0;
    max-width: 100%;
    font-size: clamp(1rem, calc((100vw - 32px) / (var(--cm-underconst-chars) * 0.64)), 5.5rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.cm-underconst__scene {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    max-height: 40vh; /* a phone held sideways still shows the line under the drawing */
    margin: clamp(12px, 3vh, 32px) 0;
}
.cm-underconst__status {
    margin: 0;
    padding-bottom: 0.5em;
    font-size: clamp(1.05rem, 3.4vw, 1.75rem);
    font-weight: 700;
    border-bottom: 4px solid #f5a623;
}
.cm-underconst__credit {
    padding: 16px;
    font-size: 0.8rem;
    color: #64748b;
}
.cm-underconst__credit a { color: inherit; }
.cm-underconst__credit a:hover, .cm-underconst__credit a:focus { color: #0f172a; }

/* the drawing */
.cm-underconst__window { fill: #fff; stroke: #334155; stroke-width: 4; }
.cm-underconst__line { stroke: #334155; stroke-width: 4; }
.cm-underconst__piece { fill: #cbd5e1; }
.cm-underconst__piece--accent { fill: #fcd9a0; }
.cm-underconst__slot { fill: none; stroke: #94a3b8; stroke-width: 3; stroke-dasharray: 7 6; }
.cm-underconst__steel { fill: none; stroke: #334155; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.cm-underconst__steel--thin { stroke-width: 2.5; }
.cm-underconst__jib { stroke: #f5a623; stroke-width: 9; stroke-linecap: round; }
.cm-underconst__ground { stroke: #334155; stroke-width: 4; stroke-linecap: round; }
.cm-underconst__load { animation: cm-underconst-lower 3s ease-in-out infinite alternate; }
@keyframes cm-underconst-lower { from { transform: translateY(0); } to { transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .cm-underconst__load { animation: none; } }
