body {
    background-color: #000000;
    background-image: none;
}

:root {
    --ink: #ffffff;
    --ink-dim: #b8b8b8;
    --ink-faint: #7a7a7a;
    --hairline: rgba(255, 255, 255, 0.25);
 
    /* discord-faithful tokens — border lightened so cards
       don't melt into the black background */
    --dc-card: #2b2d31;
    --dc-border: #3f434a;
    --dc-blurple: #5865f2;
    --dc-blurple-hover: #4752c4;
    --dc-green: #23a55a;
    --dc-grey: #80848e;
    --dc-text: #dbdee1;
    --dc-subtext: #b5bac1;
 
    --font-serif: "Times New Roman", Times, Georgia, serif;
    --font-dc: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ------------------------------------------ */

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto; 
  grid-auto-rows: auto;
  gap: 10px 10px;
  grid-auto-flow: row;
  padding: 30px 0px 0px 0px;
}

/* ------------------------------------------ */

.header { 
    grid-area: 1 / 1 / 2 / 3; 
    font-size: 90px;
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* ------------------------------------------ */

.image {
    grid-area: 2 / 1 / 3 / 3;
    min-height: 0;
}

.image img {
    width: 60%;
    height: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* ------------------------------------------ */

.main-container { 
    grid-area: 3 / 1 / 6 / 3; 
}

/* ------- discord link embed, for website projects ------- */

.section-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 44px;
    color: var(--ink);
    text-align: center;
    margin: 24px 0 8px;
}

.section-divider {
    width: min(420px, 70%);
    height: 1px;
    background: var(--hairline);
    margin: 6px auto;
}

.site-embed {
    font-family: var(--font-dc);
    background: var(--dc-card);
    border: 1px solid var(--dc-border);
    border-left: 4px solid #5865f2;
    border-radius: 8px;
    padding: 14px 16px 16px;
}

.site-provider {
    font-size: 12px;
    color: var(--dc-subtext);
    margin-bottom: 4px;
}

.site-title {
    display: inline-block;
    color: #00a8fc;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 6px;
}
.site-title:hover { text-decoration: underline; }

.site-desc {
    color: var(--dc-text);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.site-thumb {
    width: 100%;
    border-radius: 4px;
    display: block;
}

/* ------------------------------------------ */
 
.server-list {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 48px;
    align-items: start;
}

.server-list .entry:only-child {
    grid-column: 1 / -1;
    max-width: 520px;
    width: 100%;
    justify-self: center;
}

.server-list .entry:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 520px;
    width: 100%;
    justify-self: center;
}
 
.entry { margin-bottom: 0; }
.entry:last-child { margin-bottom: 0; }
 

.entry-role {
    text-align: center;
    font-variant: small-caps;
    font-size: 30px;
    margin-bottom: 16px;
}
 
/* ------- discord invite embed ------- */
 
.invite {
    font-family: var(--font-dc);
    background: var(--dc-card);
    border: 1px solid var(--dc-border);
    border-radius: 8px;
    overflow: hidden;
}
 
.invite-splash {
    height: 96px;
    background-size: cover;
    background-position: center;
}
 

.splash-a { 
    background: linear-gradient(120deg, #101013 0%, #3a3a40 55%, #6a6a72 100%); 
}

.splash-b { 
    background: linear-gradient(120deg, #16161a 0%, #46464e 50%, #26262b 100%); 
}

.splash-c { 
    background: linear-gradient(120deg, #202024 0%, #55555e 60%, #101013 100%); 
}
 
.invite-body { padding: 12px 16px 16px; }
 
.invite-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--dc-subtext);
    margin-bottom: 10px;
}
 
.invite-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
 
.invite-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 20px;
    color: #fff;
    background: #1c1c20;
    border: 1px solid var(--dc-border);
    overflow: hidden;
}
 
.invite-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.invite-info { min-width: 0; flex: 1; }
 
.invite-name {
    color: var(--dc-text);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 
.verified {
    width: 15px;
    height: 15px;
    background: var(--dc-green);
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
 
.verified::after {
    content: "✓";
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}
 
.invite-counts {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--dc-subtext);
    margin-top: 2px;
}
 
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}
 
.dot-on { background: var(--dc-green); }
.dot-all { background: var(--dc-grey); }
 
.join-btn {
    display: inline-block;
    text-decoration: none;
    background: var(--dc-blurple);
    color: #fff;
    border: none;
    font-family: var(--font-dc);
    font-weight: 600;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}
 
.join-btn:hover,
.join-btn:focus-visible { 
    background: var(--dc-blurple-hover); 
}
.join-btn:focus-visible { 
    outline: 2px solid var(--ink); outline-offset: 2px; 
}
 
/* ------- info under each embed ------- */
 
.entry-info {
    margin-top: 18px;
    text-align: center;
}
 
.entry-info::before {
    content: "";
    display: block;
    width: 64px;
    height: 1px;
    background: var(--hairline);
    margin: 0 auto 14px;
}
 
.entry-desc {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink-dim);
    font-size: 16px;
    max-width: 440px;
    margin: 0 auto;
}

/* ------------------------------------------ */

@media (max-width: 900px) {

    .container { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto; 
        grid-auto-rows: auto; 
    }

    .header, .image, .main-container { 
        grid-area: auto; 
    }

    .header { 
        font-size: 52px; 
    }

    .image img { 
        width: 90%; 
        height: 100px; 
    }

    .section-title { 
        font-size: 32px; 
    }

    .entry-role { 
        font-size: 24px; 
    }

    .server-list { 
        grid-template-columns: minmax(0, 1fr); 
        max-width: 560px; 
        padding: 40px 20px 60px; 
        box-sizing: border-box; 
    }

    .server-list .entry:only-child,
    .server-list .entry:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
    }

    .entry { 
        min-width: 0; 
    }
}