/* satellite-look.css -- The Satellite Corporation's look, on every front-end page:
   - the heading box at the top of each post in the front-page list (blue, with the
     post's picture on the right), like satellite.foundation's;
   - the USER COMMENT box for every comment, under posts and in the sidebar's
     "Satellite Comments" block (black and dark grey, taking turns);
   - the VIEW COMMENTS and REPLY buttons.
   The boxes are written by includes/post-header.php and includes/comments.php. */

/* IBM Plex Mono Bold, the boxes' font, served from this plugin (assets/fonts/OFL.txt has its license). */
@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --sat-background: #2fb9eb;  /* the post box */
    --sat-comment-0:  #000000;  /* comment boxes take turns: black ... */
    --sat-comment-1:  #222222;  /* ... and dark grey */
    --sat-red:        #a63c3c;  /* the labels, and the USER COMMENT words */
    --sat-rule:       #348cb3;  /* the divider lines */
    --sat-separator:  #646464;  /* the " / " between tags and between categories */
    --sat-links:      #556970;  /* the tag and category words */
    --sat-text:       #ffffff;
    --sat-shadow:     #646464;
    --sat-picture-shadow: -5px 5px 0 #ffffff;  /* the solid white shadow under pictures */
}

/* ------------------------------------------------------------------ */
/* The front-page list: the post box replaces Hueman's own bits         */
/* ------------------------------------------------------------------ */

/* Hueman's own title and category/date line: the box replaces them */
body.satellite-list #grid-wrapper .post-standard .post-meta,
body.satellite-list #grid-wrapper .post-standard .post-title {
    display: none;
}

/* The picture moves into the box, so the list no longer keeps a column for it on the left */
body.satellite-list #grid-wrapper .post-standard .post-thumbnail {
    display: none;
}
body.satellite-list #grid-wrapper .post-standard .post-inner {
    padding-left: 0;
    float: none;
}
body.satellite-list #grid-wrapper .post-standard .post-content {
    float: none;
}

/* ------------------------------------------------------------------ */
/* The box (posts and comments)                                         */
/* ------------------------------------------------------------------ */

.sat-head {
    background: var(--sat-background);
    color: var(--sat-text);
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: -2px 2px 1px var(--sat-shadow);
    padding: 14px 18px;
    margin: 0 0 24px;
    box-shadow: -4px 4px 3px rgba(100, 100, 100, 0.6);
}

/* divider lines: the one under the name goes all the way across */
.sat-head .sat-rule {
    border: 0;
    border-top: 3px solid var(--sat-rule);
    margin: 6px 0;
    box-shadow: -2px 2px 1px var(--sat-shadow);
}
.sat-head .sat-full { width: 100%; }

/* the line under TITLE / DATE / ID is exactly as wide as the "TITLE: ..." line:
   the box shrinks to fit the title, and DATE and ID are kept from widening it */
.sat-head .sat-fit { width: fit-content; max-width: 100%; }
.sat-head .sat-fit .sat-nowidth { width: 0; white-space: nowrap; }
.sat-head .sat-fit .sat-rule { width: 100%; }

.sat-head .sat-brand {
    font-weight: 700;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 0.6em 0;           /* the blank line above and below */
    text-shadow: -3px 3px 2px var(--sat-shadow);
    overflow-wrap: anywhere;
}

.sat-head .sat-gap { height: 0.8em; }

/* light space between lines that sit on top of each other */
.sat-head .sat-line + .sat-line { margin-top: 6px; }

/* the TITLE / DATE / ID / USERNAME / ... labels */
.sat-head .sat-label {
    background: var(--sat-red);
    color: #ffffff;
    text-shadow: -2px 2px 1px #6e4242;
    padding: 0 6px;
}

.sat-head .sat-line a {
    color: var(--sat-text);
    text-decoration: none;
}
.sat-head .sat-line a:hover { text-decoration: underline; }

.sat-head .sat-terms a,
.sat-head .sat-none {
    color: var(--sat-links);
    text-shadow: -2px 2px 0 #bde6ff;   /* solid, almost white */
}
.sat-head .sat-sep {
    color: var(--sat-separator);
    text-shadow: -2px 2px 0 #ffffff;   /* solid white */
}

/* With a picture: the details on the left and the picture on the right, on the same background */
.sat-head.sat-has-picture .sat-columns {
    display: flex;
    align-items: center;
    gap: 28px;
}
.sat-head .sat-main {
    flex: 1 1 auto;
    min-width: 0;
}
.sat-head .sat-picture {
    flex: none;
    display: block;
    max-width: 100%;
    margin: 0 0 5px 5px;    /* room for the shadow */
    line-height: 0;
}
.sat-head .sat-picture img {
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: var(--sat-picture-shadow);
}
.sat-head.sat-post .sat-picture,
.sat-head.sat-post .sat-picture img {
    width: 280px;
}

/* ------------------------------------------------------------------ */
/* USER COMMENT boxes                                                   */
/* ------------------------------------------------------------------ */

.sat-head.sat-comment.sat-shade-0 { background: var(--sat-comment-0); }
.sat-head.sat-comment.sat-shade-1 { background: var(--sat-comment-1); }

/* "USER COMMENT" in the labels' dark red */
.sat-head.sat-comment .sat-brand {
    color: var(--sat-red);
    font-size: 28px;
    padding: 0.4em 0;
    text-shadow: -3px 3px 2px #3a3a3a;
}

/* the profile picture sits on the right, at the top */
.sat-head.sat-comment.sat-has-picture .sat-columns { align-items: flex-start; }
.sat-head.sat-comment .sat-avatar { order: 2; }
.sat-head.sat-comment .sat-avatar img {
    width: 96px;
    height: 96px;
}

/* the comment's own words keep the capitals the commenter typed */
.sat-head .sat-comment-text {
    margin: 6px 0 10px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.sat-head .sat-comment-text p { margin: 0 0 0.6em; }
.sat-head .sat-comment-text p:last-child { margin-bottom: 0; }
.sat-head .sat-comment-text a { color: #8fd3f4; }
.sat-head .sat-moderation { margin: 6px 0 0; color: #ffd27a; }

.sat-head .sat-actions { margin-top: 12px; }

/* The REPLY and VIEW COMMENTS buttons: the labels' red, in the same lettering */
.sat-head .sat-actions a,
.sat-view-comments .sat-button {
    display: inline-block;
    padding: 3px 12px;
    background: var(--sat-red);
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    line-height: 1.6;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: -2px 2px 1px #6e4242;
    box-shadow: -3px 3px 2px rgba(100, 100, 100, 0.6);
}
.sat-head .sat-actions a:hover,
.sat-view-comments .sat-button:hover {
    color: #ffffff;
    text-decoration: underline;
}
.sat-head a:focus-visible,
.sat-view-comments .sat-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
.sat-view-comments .sat-button:focus-visible { outline-color: #1d2327; }

.sat-view-comments { margin: 1.5em 0 0.5em; }

/* Comments under a post: our box replaces the theme's avatar column; replies sit indented */
.commentlist li.sat-comment-item {
    padding-left: 0;
    list-style: none;
}
/* Hueman moves every comment avatar 60px to the left of the comment; keep ours in the box */
.commentlist .sat-head .sat-avatar img.avatar {
    position: static;
    border-radius: 0;
}
.commentlist li.sat-comment-item > .children {
    margin: 0 0 0 28px;
    padding: 0;
}

/* The sidebar's smaller boxes */
.sat-comment-list { margin: 0; }
.sat-head.sat-comment--compact {
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 16px;
}
.sat-head.sat-comment--compact .sat-brand { font-size: 19px; padding: 0.3em 0; }
.sat-head.sat-comment--compact .sat-columns { display: flow-root; }
.sat-head.sat-comment--compact .sat-avatar {
    float: right;
    margin: 2px 0 8px 12px;
}
.sat-head.sat-comment--compact .sat-avatar img {
    width: 56px;
    height: 56px;
}
.sat-head.sat-comment--compact .sat-comment-text { font-size: 13px; }
.sat-head.sat-comment--compact .sat-actions a { font-size: 13px; padding: 2px 10px; }

.sat-comments-empty {
    margin: 0;
    padding: 10px 12px;
    background: var(--sat-comment-0);
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
}

@media (max-width: 719px) {
    .sat-head .sat-brand { font-size: 22px; }
    .sat-head { font-size: 14px; padding: 12px 12px; }

    /* on phones the post's picture goes under the details */
    .sat-head.sat-post.sat-has-picture .sat-columns {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* and a comment's picture goes small, at the top right */
    .sat-head.sat-comment .sat-brand { font-size: 20px; }
    .sat-head.sat-comment.sat-has-picture .sat-columns { display: flow-root; }
    .sat-head.sat-comment .sat-avatar {
        float: right;
        margin: 2px 0 8px 12px;
    }
    .sat-head.sat-comment .sat-avatar img {
        width: 64px;
        height: 64px;
    }
    .commentlist li.sat-comment-item > .children { margin-left: 14px; }
}
