* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: #245b91;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

p {
    margin: 0 0 16px;
}

#header {
    padding: 24px 20px 20px;
    text-align: center;

    background-color: #e9e9e9;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.12) 0px,
            rgba(255,255,255,0.12) 1px,
            rgba(0,0,0,0.025) 2px,
            rgba(0,0,0,0.025) 3px
        ),
        linear-gradient(
            to bottom,
            #d8d8d8,
            #f4f4f4
        );

    border-bottom: 3px solid #888888;
}

.site-logo {
    display: inline-block;
}

.site-logo img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.tagline {
    margin: 10px 0 0;
    color: #666;
    font-size: 1.05em;
    font-style: italic;
}

#main-content {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 24px 16px;
}

#main-content h1 {
    margin: 0 0 20px;
    color: #222;
    font-size: 2em;
    font-weight: normal;
    line-height: 1.3;
}

#main-content p {
    line-height: 1.7;
}

#alfredstuff {
    position: fixed;
    right: 0;
    top: 33.333vh;
    width: 26px;
    margin: 0;
    padding: 0;
    z-index: 100;
}

#alfredstuff img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin: 0;
}

.folio-sites {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 32px;
}

.thumbwrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.thumbwrap li {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.the-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 18px;

    background: #fdfdfd;
    border: 1px solid #e7e7e7;
    border-radius: 15px;
    box-shadow: 3px 3px 3px #b8b8b8;

    overflow-wrap: anywhere;
}

.the-box h2 {
    margin: 0 0 14px;
    font-size: 1.12em;
    font-weight: normal;
    line-height: 1.4;
}

.the-box h2 a {
    color: #245b91;
}

.the-box img {
    width: 100%;
    height: auto;
    margin: 0 0 14px;
    border: 0;
}

.the-box p {
    margin: 0 0 14px;
    line-height: 1.65;
}

.the-box p:last-child {
    margin-bottom: 0;
}

#main-extra {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid #e5e5e5;
}

#main-extra h2 {
    margin: 0 0 14px;
    color: #222;
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1.4;
}

#main-extra p:last-child {
    margin-bottom: 0;
}

#copyrite {
      margin-top: 20px;
    padding: 24px 16px;
  
    background-color: #e9e9e9;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.12) 0px,
            rgba(255,255,255,0.12) 1px,
            rgba(0,0,0,0.025) 2px,
            rgba(0,0,0,0.025) 3px
        ),
        linear-gradient(
            to bottom,
            #f4f4f4,
            #d8d8d8
        );

    border-top: 3px solid #888888;
        color: #666666;
    font-size: 0.9em;
    line-height: 1.8;
    text-align: center;
}

#copyrite p {
    margin: 0 0 4px;
}

#copyrite p:last-child {
    margin-bottom: 0;
}

#copyrite a {
    color: #666666;
}
#copyrite a:hover {
    color: #666666;
    text-decoration:none;
}


@media (max-width: 850px) {
    #main-content {
        padding: 24px 20px 16px;
    }

    .folio-sites {
        padding-right: 18px;
        padding-left: 18px;
    }

    .thumbwrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .the-box {
        padding: 16px;
    }

    #main-content h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 550px) {
    body {
        font-size: 15px;
    }

    #header {
        padding: 18px 12px;
    }

    #main-content {
        padding: 22px 16px 14px;
    }

    #main-content h1 {
        font-size: 1.65em;
    }

    #alfredstuff {
        right: 0;
        top: 33.333vh;
        width: 26px;
    }

    #alfredstuff img {
        width: 26px;
    }

    .folio-sites {
        padding: 8px 14px 24px;
    }

    .thumbwrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .the-box {
        padding: 15px;
        border-radius: 10px;
        box-shadow: 2px 2px 3px #b8b8b8;
    }

    #main-extra {
        padding: 22px 16px;
    }

    #main-extra h2 {
        font-size: 1.35em;
    }

    #copyrite {
        padding: 20px 12px;
        font-size: 0.85em;
    }
}