/* ============================================================
   AIS / styles.css
   The living front, in the harbor palette. One material:
   monospace characters. Deep indigo ink, cream light, the
   painting breathing faintly beneath.
   ============================================================ */

:root {
    /* drawn from the harbor painting */
    --ink:        #070D16;      /* page ground — near-black indigo */
    --cream:      #E3CDAF;      /* chrome, full voice */
    --cream-dim:  #8E8878;      /* chrome, secondary */
    --cream-faint:#4E4F4C;      /* tertiary */
    --gold:       #C89B5F;      /* accent — hover only */

    --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

:root { color-scheme: dark; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--mono);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* one breath of depth behind the art */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 64% 54% at 50% 46%,
                rgba(72, 102, 126, 0.10), transparent 72%);
    pointer-events: none;
}

::selection { background: var(--gold); color: var(--ink); }

a:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 4px;
}

/* ============================================================
   THE ART — canvas over the faint painting
   ============================================================ */

.front {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* the one paragraph */
.intro {
    max-width: 700px;
    margin: 0;
    padding: 0 24px;
    font-size: 13.5px;
    line-height: 2.0;
    letter-spacing: 0.05em;
    color: #B9AE97;
    text-align: center;
}
.intro .hi { color: var(--cream); }

/* the one invitation */
.wp-link {
    font-size: 10.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
    transition: color 180ms ease, border-color 180ms ease;
}
.wp-link:hover { color: var(--gold); }

.art-box {
    position: relative;
    /* width/height set by front.js */
}

#under {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: brightness(0.6) saturate(0.95);
    transition: opacity 2600ms ease;
    pointer-events: none;
    /* base reveal through the middle + a spotlight that follows attention */
    -webkit-mask-image:
        radial-gradient(ellipse 82% 78% at 50% 44%, #000 50%, transparent 96%),
        radial-gradient(circle var(--sr, 0px) at var(--mx, 50%) var(--my, 50%),
                        rgba(0,0,0,.95) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
    mask-image:
        radial-gradient(ellipse 82% 78% at 50% 44%, #000 50%, transparent 96%),
        radial-gradient(circle var(--sr, 0px) at var(--mx, 50%) var(--my, 50%),
                        rgba(0,0,0,.95) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
}
#under.on { opacity: 0.68; }

#art {
    position: relative;
    display: block;
    z-index: 1;
    user-select: none;
}

/* ============================================================
   CHROME — corners + nav, tiny, exact
   ============================================================ */

.hud, .hud-foot {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 32px;
    pointer-events: none;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.hud { top: 0; }
.hud-foot { bottom: 0; }

.hud a, .hud-foot a, .hud-foot div { pointer-events: auto; }

/* brand — mark + name, top-left */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
}
.brand svg { display: block; height: 52px; width: auto; }
.brand .full { color: var(--cream-dim); font-weight: 400; }
.brand .sep  { color: var(--cream-faint); margin: 0 2px; }

/* nav — top-right */
.nav {
    display: inline-flex;
    gap: 30px;
}
.nav a {
    color: var(--cream-dim);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 180ms ease, border-color 180ms ease;
}
.nav a:hover, .nav a[aria-current="page"] {
    color: var(--cream);
}
.nav a:hover { border-bottom-color: var(--gold); }

/* the one line — bottom-left */
.line {
    color: var(--cream-dim);
    font-weight: 400;
    letter-spacing: 0.24em;
}

/* domain — bottom-right */
.domain a {
    color: var(--cream-faint);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 180ms ease, border-color 180ms ease;
    padding-bottom: 2px;
}
.domain a:hover {
    color: var(--cream);
    border-bottom-color: var(--gold);
}

/* whitepaper stub */
.stub {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-dim);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .hud, .hud-foot { padding: 18px 18px; font-size: 8.5px; letter-spacing: 0.22em; }
    .brand svg { height: 40px; }
    .nav { gap: 13px; }
    .line { max-width: 56vw; }
    .front { gap: 20px; }
    .intro { font-size: 11.5px; line-height: 1.85; padding: 0 8px; }
    .wp-link { font-size: 9.5px; }
}
