
/* =========================================================
   ARIEL'S CORNER
   Indie / Web 1.0 / Personal Homepage
   ========================================================= */


/* ---------- BASE ---------- */

:root {
    --background: #eeeeea;
    --paper: #ffffff;

    --text: #111111;
    --muted: #555555;

    --border: #111111;

    --link: #1111cc;

    --page-width: 1280px;
}


* {
    box-sizing: border-box;
}


html {
    font-size: 16px;
}


body {
    margin: 0;

    color: var(--text);
    background-color: var(--background);

    font-family:
        "Courier New",
        Courier,
        monospace;

    line-height: 1.45;
}


/* ---------- DOT BACKGROUND ---------- */

body {
    background-image:
        radial-gradient(
            #888 0.7px,
            transparent 0.7px
        );

    background-size: 5px 5px;
}


/* ---------- LINKS ---------- */

a {
    color: var(--link);
    text-decoration: underline;
}


a:hover {
    background: #111;
    color: #fff;
}


/* ---------- PAGE ---------- */

.page {
    width: min(
        calc(100% - 32px),
        var(--page-width)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.topbar {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-bottom: 3px double var(--border);

    background: var(--background);
}


.brand {
    font-size: 1.25rem;
    font-weight: bold;
}


.star {
    margin-right: 6px;
}


.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;

    font-size: 0.9rem;
}


.navigation a {
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
}


.navigation a:hover {
    color: white;
}


/* =========================================================
   MAIN GRID
   ========================================================= */

.layout {
    display: grid;

    grid-template-columns:
        220px
        minmax(500px, 1fr)
        220px;

    gap: 24px;

    padding: 42px 0;
}


.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* =========================================================
   WINDOWS
   ========================================================= */

.window {
    background: var(--paper);

    border: 2px solid var(--border);

    box-shadow:
        5px 5px 0 var(--paper),
        7px 7px 0 var(--border);
}


.window-title {
    min-height: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 3px 7px;

    border-bottom: 2px solid var(--border);

    font-weight: bold;

    /*
       Stripe effect inspired by old
       desktop window title bars.
    */

    background:
        repeating-linear-gradient(
            0deg,
            #fff 0,
            #fff 3px,
            #111 3px,
            #111 5px
        );

    color: #000;
}


.window-title span:first-child {
    background: white;
    padding: 0 5px;
}


.window-buttons {
    background: white;
    padding: 0 4px;

    font-size: 0.8rem;
}


.window-body {
    padding: 17px;
}


.window-body p:first-child {
    margin-top: 0;
}


.window-body p:last-child {
    margin-bottom: 0;
}


.signature {
    margin-top: 20px;
}


.pixel-title {
    font-weight: bold;
}


/* =========================================================
   STATUS
   ========================================================= */

.status p {
    margin: 4px 0;
}


.online {
    display: inline-block;

    width: 9px;
    height: 9px;

    margin-right: 5px;

    background: #111;

    border: 1px solid #000;

    border-radius: 50%;
}


.status ul {
    padding-left: 20px;

    margin-bottom: 0;
}


/* =========================================================
   CENTER / HOME CARD
   ========================================================= */

.home-card {
    position: relative;

    padding: 42px 30px 35px;

    background: white;

    border: 2px solid black;

    box-shadow:
        6px 6px 0 white,
        9px 9px 0 black;
}


.home-heading {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 14px;
}


.home-heading h1 {
    margin: 0;

    font-size: clamp(
        1.7rem,
        4vw,
        2.3rem
    );

    font-weight: normal;
}


.home-heading span {
    font-size: 1.6rem;
}


.subtitle {
    margin: 10px 0 38px;

    text-align: center;

    color: var(--muted);

    font-size: 0.8rem;
}


/* =========================================================
   ICON GRID
   ========================================================= */

.icon-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 32px 20px;

    max-width: 600px;

    margin: auto;
}


.icon-link {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: var(--text);

    text-decoration: none;

    font-size: 0.95rem;
}


.icon-link:hover {
    background: none;

    color: var(--link);
}


.pixel-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid black;

    background: white;

    font-size: 1.7rem;

    box-shadow:
        3px 3px 0 black;
}


/* =========================================================
   POSTS
   ========================================================= */

.posts-window {
    margin-top: 35px;
}


.post-item {
    display: grid;

    grid-template-columns: 75px 1fr;

    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px dotted #777;
}


.post-item:first-child {
    padding-top: 0;
}


.post-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.post-item time {
    color: var(--muted);

    font-size: 0.8rem;
}


.post-item p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 0.85rem;
}


.post-item a {
    font-weight: bold;
}


/* =========================================================
   RIGHT COLUMN
   ========================================================= */

.label {
    margin-top: 18px;

    font-size: 0.72rem;

    font-weight: bold;

    text-transform: uppercase;

    text-decoration: underline;
}


.label:first-child {
    margin-top: 0;
}


.webring {
    text-align: center;
}


.webring strong {
    display: block;

    margin: 15px 0;
}


.webring-buttons {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin-top: 20px;

    font-size: 0.7rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 25px 0 40px;

    border-top: 3px double black;

    text-align: center;

    background: var(--background);

    font-size: 0.75rem;

    line-height: 2;
}


footer a {
    color: var(--text);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .layout {
        grid-template-columns:
            190px
            minmax(0, 1fr);

        gap: 20px;
    }


    .right-column {
        display: none;
    }

}


@media (max-width: 700px) {

    .page {
        width: min(
            calc(100% - 20px),
            600px
        );
    }


    .topbar {
        display: block;

        padding: 15px 0;
    }


    .navigation {
        margin-top: 12px;

        gap: 14px;
    }


    .layout {
        display: block;

        padding: 25px 0;
    }


    .left-column {
        display: none;
    }


    .home-card {
        padding: 30px 18px;
    }


    .icon-grid {
        gap: 25px 10px;
    }


    .posts-window {
        margin-top: 30px;
    }

}


@media (max-width: 420px) {

    .icon-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .post-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }


    .home-heading {
        gap: 7px;
    }


    .home-heading span {
        display: none;
    }

}