:root {
    --bg-top: #7ecfe1;
    --bg-bottom: #ffcfc7;
    --shell-border: #2f6b3b;
    --window-bg: linear-gradient(180deg, #f2e7e2, #ddc9c1);
    --window-title-start: #5ea26c;
    --window-title-end: #2f6b3b;
    --window-title-text: #fffdf8;
    --sidebar-card: linear-gradient(180deg, #efe2dc, #dcc5bd);
    --sidebar-card-alt: linear-gradient(180deg, #f2e7e2, #e0cdc6);
    --mint: linear-gradient(180deg, #f3e6e1, #dfcbc3);
    --lavender: linear-gradient(180deg, #ecddd7, #d7c0b8);
    --text: #24345f;
    --shadow: rgba(34, 84, 45, 0.2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 20%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    background-attachment: fixed;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 24px auto 40px;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    margin-bottom: 18px;
    border: 4px solid var(--shell-border);
    border-radius: 28px 28px 14px 14px;
    background:
        linear-gradient(rgba(251, 253, 255, 0.94), rgba(230, 239, 255, 0.94)),
        url("https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwallpapercave.com%2Fwp%2Fwp4714341.jpg&f=1&nofb=1&ipt=cb837d3298c24d299b60d74f83b68445841093d1b5851d3c358e6fbc2efd6117");
    background-size: auto, 220px;
    background-repeat: no-repeat, repeat;
    background-position: center, center;
    box-shadow: 0 18px 34px var(--shadow);
}

.hero-banner__stickers {
    position: absolute;
    top: 16px;
    right: 18px;
    display: flex;
    gap: 10px;
}

.hero-banner__stickers img {
    width: 34px;
    height: 34px;
}

.hero-banner__eyebrow {
    margin: 0 0 10px;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d04d62;
}

.hero-banner__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 0.95;
    color: #f04f72;
    text-shadow: 2px 2px 0 #fff7ef, 4px 4px 0 #ffb8c5;
}

.hero-banner__subtitle {
    max-width: 38rem;
    margin: 12px 0 0;
    font-size: 1rem;
    line-height: 1.5;
}

.hero-banner__mascot {
    width: min(100%, 260px);
    justify-self: end;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
}

.layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
}

.sidebar,
.content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.window {
    overflow: hidden;
    border: 4px solid var(--shell-border);
    background: var(--window-bg);
    box-shadow: 0 12px 20px var(--shadow);
}

.window__title {
    position: relative;
    padding: 8px 12px;
    padding-right: 38px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--window-title-text);
    background: linear-gradient(90deg, var(--window-title-start), var(--window-title-end));
    border-bottom: 3px solid var(--shell-border);
}

.window__title::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 18px;
    height: 18px;
    background: url("../graphics/s4league_icon.png") center/contain no-repeat;
    transform: translateY(-50%);
}

.profile-card {
    background: var(--sidebar-card);
}

.profile-card__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-bottom: 3px solid var(--shell-border);
    background: rgba(255, 255, 255, 0.45);
}

.profile-card__caption {
    margin: 0;
    padding: 8px 12px;
    text-align: center;
    font-weight: 700;
    color: #2f6b3b;
    background: rgba(243, 242, 237, 0.88);
}

.profile-card__text,
.status-box__line {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.nav-box {
    background: linear-gradient(180deg, #f4ebe7, #e4d2cb);
}

.nav-box__link {
    display: block;
    padding: 12px 14px;
    border-bottom: 2px solid #8eb79a;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.42);
}

.nav-box__link:hover,
.nav-box__link:focus-visible {
    background: #f4f7ff;
    outline: none;
}

.nav-box__link--active {
    background: linear-gradient(180deg, #efe1da, #ddc6be);
}

.status-box {
    background: var(--sidebar-card-alt);
}

.badge-box {
    background: var(--lavender);
}

.badge-box__stack {
    display: grid;
    gap: 12px;
    padding: 16px;
    justify-items: center;
}

.badge-box__stack img {
    width: 34px;
    height: 34px;
}

.intro-window {
    background: linear-gradient(180deg, #efe2dc, #decac2);
}

.intro-window__heading-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px 10px;
}

.intro-window__heading-row img:first-child {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.intro-window__heading-row img:last-child {
    width: 34px;
    height: 34px;
}

.intro-window__paper {
    margin: 0 18px 18px;
    padding: 24px 24px 28px;
    background:
        url("../graphics/rippedpaper.png") center/cover no-repeat,
        #f8fbff;
    min-height: 220px;
    line-height: 1.6;
}

.intro-window__paper p {
    margin: 0 0 16px;
}

.archive-window {
    background: linear-gradient(180deg, #efe0d9, #ddc7bf);
}

.archive-window__list {
    display: grid;
    gap: 10px;
    padding: 18px;
    padding-bottom: 8px;
}

.post-link {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 14px 16px;
    text-decoration: none;
    border: 3px solid #a8cab1;
    background: rgba(248, 251, 255, 0.92);
    transition: transform 180ms ease, background-color 180ms ease;
}

.post-link:hover,
.post-link:focus-visible {
    background: #f2f7ff;
    transform: translateY(-2px);
    outline: none;
}

.post-link span {
    flex: 0 0 96px;
    font-weight: 700;
    color: #2f6b3b;
}

.archive-window__pagination {
    display: flex;
    gap: 10px;
    padding: 0 18px 18px;
}

.page-link {
    min-width: 42px;
    padding: 8px 12px;
    border: 3px solid #a8cab1;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    background: rgba(248, 251, 255, 0.92);
}

.page-link:hover,
.page-link:focus-visible {
    background: #f2f7ff;
    outline: none;
}

.page-link--active {
    background: linear-gradient(180deg, #efe1db, #ddc9c2);
    color: #2f6b3b;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.spotlight-window {
    background: linear-gradient(180deg, #efe2dc, #dcc8c1);
}

.spotlight-window__inner,
.media-window__inner {
    padding: 18px;
}

.spotlight-window__inner h2 {
    margin: 0 0 10px;
    color: #2f6b3b;
    font-size: 1.1rem;
}

.spotlight-window__inner p,
.media-window__inner p {
    margin: 0 0 14px;
    line-height: 1.55;
}

.spotlight-window__inner p:last-child,
.media-window__inner p:last-child {
    margin-bottom: 0;
}

.media-window {
    background: linear-gradient(180deg, #f1e4de, #e0ccc5);
}

.media-window__inner {
    text-align: center;
}

.media-window__inner img {
    width: min(100%, 150px);
    margin: 0 auto 14px;
}

.footer-strip {
    margin-top: 18px;
    padding: 18px 20px;
    border: 4px solid var(--shell-border);
    background: linear-gradient(180deg, #f4ebe7, #e3d1c9);
    box-shadow: 0 12px 20px var(--shadow);
}

.footer-strip__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-strip__text {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .layout,
    .content-grid,
    .hero-banner {
        grid-template-columns: 1fr;
    }

    .hero-banner__mascot {
        justify-self: start;
        max-width: 220px;
    }

    .hero-banner__stickers {
        position: static;
        justify-self: end;
        margin-bottom: -4px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100vw - 16px, 100%);
        margin: 8px auto 24px;
    }

    .hero-banner,
    .window__title,
    .archive-window__list,
    .archive-window__pagination,
    .spotlight-window__inner,
    .media-window__inner,
    .footer-strip {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-banner {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hero-banner__stickers {
        gap: 8px;
        margin-bottom: 4px;
    }

    .hero-banner__stickers img {
        width: 30px;
        height: 30px;
    }

    .hero-banner__title {
        font-size: 2rem;
    }

    .post-link {
        flex-direction: column;
        gap: 6px;
    }

    .post-link span {
        flex-basis: auto;
    }
}
