/* Woolly Hoody - the studio site. Same chrome as starshipceo.com, lifted from the game's UI.uss,
   with the accent taken off the hoodie instead of the game's blue. */

:root
{
    --void:        #05070f;
    --panel:       rgba(20, 20, 20, 0.92);
    --panel-solid: #18181c;
    --line:        #3a3a3a;
    --line-soft:   rgba(255, 255, 255, 0.08);

    --wool:        #f2871e;
    --wool-dark:   #c56a10;
    --wool-glow:   rgba(242, 135, 30, 0.35);
    --blue:        #4a90e2;
    --amber:       #f39c12;
    --red:         #e74c3c;

    --text:        #d2d2d2;
    --text-strong: #ffffff;
    --text-dim:    #a89584;
    --text-faint:  #6f6558;

    --frame: 14px;
    --radius: 4px;
    --mono: ui-monospace, "Cascadia Mono", "Consolas", "SF Mono", "Menlo", monospace;
    --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html
{
    background: var(--void);
    scroll-behavior: smooth;
    /* The shell is fixed and its contents are not: on a narrow screen the drawer would otherwise
       widen the page rather than being clipped by it. */
    overflow-x: hidden;
}

body
{
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce)
{
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* The canvas the stars are drawn on, and the wash that keeps text off them. */

#starfield
{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    background:
        radial-gradient(120% 80% at 50% 0%, #16100a 0%, #06070f 55%, #03040a 100%);
}

#starfield-fallback
{
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 80% at 50% 0%, #16100a 0%, #06070f 55%, #03040a 100%);
}

.vignette
{
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(90% 65% at 50% 45%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------------------------------------------------------------- the shell

   Every frame passes clicks through and its contents do not, the same way the game's ShellTools,
   log drawer and HUD column do. */

.shell
{
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.shell > * { pointer-events: none; }
.shell button, .shell a, .shell .log-drawer { pointer-events: auto; }

.shell-tools
{
    position: absolute;
    top: var(--frame);
    left: var(--frame);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wordmark
{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text-strong);
}

.wordmark .glyph
{
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: block;
}

.wordmark .name
{
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.alerts
{
    display: flex;
    gap: 6px;
    padding: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.alert-light
{
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #1c1c1c;
}

.alert-light.lit { box-shadow: 0 0 8px currentColor; background: currentColor; }
.alert-light.wool  { color: var(--wool); }
.alert-light.blue  { color: var(--blue); }
.alert-light.amber { color: var(--amber); }
.alert-light.red   { color: var(--red); }

/* The HUD column, top right. */

.hud
{
    position: absolute;
    top: var(--frame);
    right: var(--frame);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hud-box
{
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    text-align: right;
    min-width: 132px;
}

.hud-box .clock
{
    font-size: 16px;
    color: var(--text-strong);
    letter-spacing: 0.06em;
    display: block;
}

.hud-box .build { display: block; margin-top: 2px; letter-spacing: 0.08em; }

/* The log drawer, top centre: the newest line and nothing else. */

.log-drawer
{
    position: absolute;
    top: var(--frame);
    left: 50%;
    transform: translateX(-50%);
    max-width: min(460px, calc(100vw - 480px));
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--wool);
    border-radius: var(--radius);
    padding: 9px 14px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 400ms ease;
}

/* The bottom drawer is what you build with - here it is what you navigate with. */

.drawer
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px var(--frame) calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(5, 7, 15, 0.95), rgba(5, 7, 15, 0));
}

.tool
{
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    background: rgba(40, 40, 40, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 18px;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool:hover, .tool:focus-visible
{
    background: rgba(60, 60, 60, 0.95);
    border-color: var(--wool);
    color: var(--text-strong);
    outline: none;
}

.tool.armed
{
    background: var(--wool-dark);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 0 1px var(--wool-glow);
}

/* ------------------------------------------------------------------ content */

.page
{
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

/* Explicit, because these all centre themselves with `margin: 0 auto` and an auto cross-axis margin
   switches a flex item off stretching. */
.page > * { width: 100%; }

/* A short page still puts its footer at the foot rather than halfway up the stars. */
.site-foot { margin-top: auto; }

.hero
{
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 20px 140px;
}

.hero .mark
{
    width: clamp(230px, 38vw, 380px);
    height: auto;
    display: block;
    margin: 0 auto 22px;
    filter: drop-shadow(0 0 54px rgba(242, 135, 30, 0.3));
}

.hero .status
{
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--wool);
    margin: 0 0 22px;
}

.hero h1
{
    margin: 0;
    font-size: clamp(2.4rem, 8vw, 4.8rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    text-shadow: 0 0 60px rgba(242, 135, 30, 0.25);
}

.hero .tagline
{
    max-width: 40ch;
    margin: 22px auto 0;
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
    line-height: 1.35;
    font-weight: 600;
    color: var(--text-strong);
}

.hero .pitch
{
    max-width: 60ch;
    margin: 20px auto 0;
    font-size: clamp(0.98rem, 1.8vw, 1.1rem);
    color: var(--text);
}

.cta-row
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 36px;
}

.btn
{
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn-primary
{
    background: var(--wool);
    border-color: var(--wool);
    color: #1a0d02;
}

.btn-primary:hover, .btn-primary:focus-visible
{
    background: #ffa044;
    border-color: #ffa044;
    outline: none;
}

.btn-ghost
{
    background: rgba(20, 20, 20, 0.75);
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover, .btn-ghost:focus-visible
{
    border-color: var(--wool);
    color: var(--text-strong);
    outline: none;
}

.btn:active { transform: translateY(1px); }

.scroll-hint
{
    margin-top: 48px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* A panel is about one thing. */

.panels
{
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 100px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel
{
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 2px solid var(--wool);
    border-radius: var(--radius);
    padding: 22px 24px 26px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.panel h2
{
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wool);
}

.panel p { margin: 0 0 12px; font-size: 15px; }
.panel p:last-child { margin-bottom: 0; }
.panel strong { color: var(--text-strong); font-weight: 600; }
.panel a { color: var(--wool); text-decoration: none; border-bottom: 1px solid rgba(242, 135, 30, 0.4); }
.panel a:hover { color: #ffa044; }

/* The games shelf: one card per game, and today there is one game. */

.games
{
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 110px;
}

.games > h2
{
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--wool);
    margin: 0 0 18px;
}

/* The capsule is 920 wide and is never blown up past it. */
.game
{
    max-width: 920px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.game .shot
{
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--line);
    background: #05070f;
}

.game .about { padding: 26px 28px 28px; }

.game .kind
{
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 8px;
}

.game h3
{
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    line-height: 1.1;
    color: var(--text-strong);
    letter-spacing: -0.01em;
}

.game p { margin: 0 0 14px; font-size: 15px; }
.game .cta-row { justify-content: flex-start; margin-top: 20px; }

@media (max-width: 720px)
{
    .game .about { padding: 22px 20px 24px; }
}

/* --------------------------------------------------------------- the footer */

.site-foot
{
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 110px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.06em;
}

.site-foot a { color: var(--text-dim); text-decoration: none; }
.site-foot a:hover { color: var(--wool); }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ narrow

   The chrome is the first thing to go: a phone gets the wordmark, the drawer and the page. */

@media (max-width: 900px)
{
    .log-drawer { display: none; }
    .hud-box { min-width: 0; }
    .alerts { display: none; }
}

@media (max-width: 620px)
{
    :root { --frame: 10px; }
    .hud { display: none; }
    .drawer { gap: 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
    .tool { padding: 9px 12px; font-size: 11px; letter-spacing: 0.06em; }
    .hero { padding: 84px 18px 120px; min-height: 92svh; }
    .hero .status { letter-spacing: 0.12em; font-size: 11px; }
    .btn { width: 100%; justify-content: center; }
    .cta-row { width: min(340px, 100%); }
}

.visually-hidden
{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
