/* =========================
   GENERAL
   ========================= */

body {
    margin: 0;
    padding: 30px;
    background-image: url("https://vener4ik.neocities.org/cf595eb6-faa2-4a06-81d2-a4eb88752d29.jpg");
    font-family: "Garamond", serif;
    color: #e6cfd2;
}


/* =========================
   MAIN WEBSITE
   ========================= */

.site {
    width: 900px;
    max-width: 95%;
    margin: auto;
    background-image: url("https://vener4ik.neocities.org/3c2bb471a9824d5211455d938b378fab.jpg");
    border: 5px double #e7a5c3;
    box-shadow: 0 0 15px #d9a6ba;
    padding: 15px;
}


/* =========================
   HEADER
   ========================= */

header {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #ffd8e8;
    border: 3px solid #e8a8c4;
    padding: 25px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

header h1 {
    margin: 0;
    color: #c55c91;
    font-size: 32px;
}

header p {
    margin-bottom: 0;
}


/* =========================
   NAVIGATION
   ========================= */

nav {
    text-align: center;
    background: #ffeaf3;
    border: 2px solid #e8b1ca;
    padding: 10px;
    margin-bottom: 15px;
}

nav a {
    display: inline-block;
    margin: 3px;
    padding: 7px 14px;
    background: #fff;
    border: 2px solid #dfa2bd;
    color: #a64d78;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    background: #ffd0e3;
}


/* =========================
   MAIN LAYOUT
   ========================= */

/* LEFT SIDEBAR IS NOW NARROWER */
main {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 15px;
    align-items: start;
}


/* =========================
   LEFT SIDEBAR
   ========================= */

aside {
    min-width: 0;
}

aside .box {
    margin-bottom: 15px;
}


/* =========================
   RIGHT SIDE
   ========================= */

.content {
    min-width: 0;

    display: grid;

    /* HELLO is wider than UPDATES */
    grid-template-columns: 1.15fr 1fr;

    gap: 15px;

    /* makes HELLO + UPDATES equal height */
    align-items: stretch;
}


/* =========================
   ALL BOXES
   ========================= */

.box {
    position: relative;
    background: #fff;
    border: 3px solid #e7b0c8;
    padding: 12px;
    box-shadow: inset 0 0 10px #ffe1ed;
    box-sizing: border-box;
    overflow: hidden;
}


/* =========================
   HELLO + UPDATES
   ========================= */

.content > .box:not(.big-box) {
    height: 100%;
}


/* =========================
   BIG BOTTOM BOX
   ========================= */

.content .big-box {
    grid-column: 1 / -1;
    min-height: 300px;
}


/* =========================
   BOX HEADINGS
   ========================= */

.box h2 {
    margin-top: 0;
    color: #c55c91;
    font-size: 18px;
    border-bottom: 2px dotted #e5aac3;
    padding-bottom: 5px;
}


/* =========================
   SIDEBAR LINKS
   ========================= */

aside a {
    display: block;
    color: #a64d78;
    text-decoration: none;
    padding: 5px;
}

aside a:hover {
    background: #ffe0ec;
}


/* =========================
   PHOTOS + TEXT
   ========================= */

.media {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.media img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 2px solid #e7b0c8;
    flex-shrink: 0;
}

.media > div {
    flex: 1;
}


/* =========================
   BOX BACKGROUND IMAGES
   ========================= */

.box-bg {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.80),
            rgba(255, 255, 255, 0.80)
        ),
        var(--box-background);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.box-bg-dark {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.30),
            rgba(255, 255, 255, 0.30)
        ),
        var(--box-background);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* =========================
   FOOTER
   ========================= */

footer {
    text-align: center;
    margin-top: 10px;
    padding: 12px;
    background: #ffdce9;
    border: 2px solid #e4a7c0;
    font-size: 12px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    body {
        padding: 10px;
    }

    .site {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    main {
        grid-template-columns: 1fr;
    }

    .content {
        grid-template-columns: 1fr;
    }

    .content .big-box {
        grid-column: auto;
    }

    .media {
        flex-direction: column;
    }

    .media img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
}