/* =========================================================
   Moonlit Cafe
   ========================================================= */


/* ---------- Variables ---------- */

:root {
    --bg-deep: #090812;
    --bg-night: #0f0e1c;
    --bg-purple: #17152a;
    --bg-purple-light: #1d1a32;

    --surface: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.07);

    --text-main: #f5f3fa;
    --text-soft: #c6c1d3;
    --text-muted: #918b9f;

    --gold: #e8ca78;
    --gold-light: #f4dc98;
    --gold-dark: #b89a4d;

    --border: rgba(255, 255, 255, 0.09);

    --container: 1120px;
}


/* ---------- Reset ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text-main);
    background: var(--bg-night);

    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}


/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 20;

    background: rgba(9, 8, 18, 0.96);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    min-height: 72px;

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

    gap: 30px;
}

.site-logo {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    color: #ffffff;

    font-size: 1.18rem;
    font-weight: 750;

    text-decoration: none;
}

.logo-moon {
    color: var(--gold);
    font-size: 1.75rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-links a {
    position: relative;

    display: block;

    padding: 24px 0;

    color: var(--text-soft);

    font-size: 0.96rem;

    text-decoration: none;

    transition: color 160ms ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 17px;

    height: 2px;

    background: var(--gold);

    transform: scaleX(0);

    transition: transform 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}


/* ---------- Hero ---------- */

.hero {
    position: relative;

    min-height: 540px;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding: 95px 0 90px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(100, 86, 151, 0.23),
            transparent 37%
        ),
        linear-gradient(
            180deg,
            #17152a 0%,
            #121020 68%,
            #0f0e1c 100%
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    top: -270px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(232, 202, 120, 0.08);

    filter: blur(8px);
}

.stars,
.stars::before,
.stars::after {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.stars {
    opacity: 0.32;

    background-image:
        radial-gradient(circle, #ffffff 1px, transparent 1px);

    background-size: 130px 130px;
    background-position: 25px 20px;
}

.stars::before {
    content: "";

    opacity: 0.45;

    background-image:
        radial-gradient(circle, #ffffff 1px, transparent 1px);

    background-size: 190px 190px;
    background-position: 80px 65px;
}

.stars::after {
    content: "";

    opacity: 0.35;

    background-image:
        radial-gradient(circle, var(--gold-light) 1px, transparent 1px);

    background-size: 250px 250px;
    background-position: 145px 115px;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 1000px;
}

.eyebrow,
.section-kicker,
.card-label,
.card-small {
    color: var(--gold);

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.eyebrow {
    margin: 0 0 18px;
}

.eyebrow span {
    padding-inline: 5px;
    color: var(--text-muted);
}

.hero h1 {
    max-width: 1000px;

    margin: 0 auto;

    color: #ffffff;

    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 800;

    line-height: 1.04;

    letter-spacing: -0.045em;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero-text {
    max-width: 660px;

    margin: 25px auto 0;

    color: var(--text-soft);

    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    justify-content: center;

    gap: 14px;

    margin-top: 34px;
}

.hero-note {
    margin: 18px 0 0;

    color: var(--text-muted);

    font-size: 0.84rem;
}


/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 11px 23px;

    border-radius: 8px;

    font-size: 0.94rem;
    font-weight: 750;

    text-decoration: none;

    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary-button {
    color: #18131d;

    background: var(--gold);

    border: 1px solid var(--gold);
}

.primary-button:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.secondary-button {
    color: var(--text-main);

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.17);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.27);
}


/* ---------- Welcome ---------- */

.welcome-section {
    padding: 95px 0;

    background:
        linear-gradient(
            180deg,
            #0f0e1c 0%,
            #131121 100%
        );
}

.welcome-grid {
    display: grid;

    grid-template-columns: 1.35fr 0.65fr;

    gap: 75px;

    align-items: center;
}

.section-kicker {
    margin: 0 0 8px;
}

.welcome-copy h2,
.section-intro h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 2.7rem);

    line-height: 1.2;
}

.welcome-copy h2 span {
    margin-right: 8px;

    font-size: 0.85em;
}

.welcome-copy > p:not(.section-kicker) {
    max-width: 650px;

    color: var(--text-soft);

    font-size: 1.03rem;
}

.welcome-copy > p:last-child {
    margin-bottom: 0;
}


/* ---------- Cafe Card ---------- */

.cafe-card {
    position: relative;

    overflow: hidden;

    padding: 34px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.025)
        );
}

.card-moon {
    position: absolute;

    right: 18px;
    top: 4px;

    color: rgba(232, 202, 120, 0.09);

    font-size: 8rem;

    line-height: 1;
}

.card-small {
    position: relative;

    margin: 0 0 9px;
}

.cafe-card h3 {
    position: relative;

    margin: 0 0 12px;

    color: #ffffff;

    font-size: 1.45rem;

    line-height: 1.3;
}

.cafe-card p:last-child {
    position: relative;

    margin-bottom: 0;

    color: var(--text-soft);
}


/* ---------- Features ---------- */

.features-section {
    padding: 95px 0;

    background: var(--bg-deep);
}

.section-intro {
    max-width: 680px;

    margin-bottom: 42px;
}

.section-intro > p:last-child {
    margin-bottom: 0;

    color: var(--text-soft);

    font-size: 1.03rem;
}

.feature-grid {
    display: grid;

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

    gap: 20px;
}

.feature-card {
    min-height: 230px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);

    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.feature-card:hover {
    transform: translateY(-3px);

    background: var(--surface-hover);

    border-color: rgba(232, 202, 120, 0.22);
}

.feature-icon {
    display: block;

    margin-bottom: 18px;

    color: var(--gold);

    font-size: 1.75rem;
}

.feature-card h3 {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.94rem;
}


/* ---------- Connection ---------- */

.connection-section {
    padding: 80px 0;

    background:
        linear-gradient(
            180deg,
            #0b0a14,
            #0e0c19
        );
}

.connection-kicker {
    margin-bottom: 18px;
}

.connection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.connection-grid .connection-card {
    min-width: 0;
}

.connection-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 32px 38px;

    border: 1px solid rgba(232, 202, 120, 0.18);
    border-radius: 16px;

    background:
        linear-gradient(
            100deg,
            rgba(232, 202, 120, 0.055),
            rgba(255, 255, 255, 0.025)
        );
}

.connection-info {
    display: flex;
    align-items: center;

    gap: 20px;
}

.status-dot {
    width: 11px;
    height: 11px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #7dd49a;

    box-shadow:
        0 0 0 5px rgba(125, 212, 154, 0.08),
        0 0 18px rgba(125, 212, 154, 0.25);
}

.card-label {
    margin: 0 0 3px;
}

.connection-card h2 {
    margin: 0;

    color: #ffffff;

    font-size: 1.75rem;
}

.connection-card .connection-info p:last-child {
    margin: 1px 0 0;

    color: var(--text-muted);
}


/* ---------- Footer ---------- */

.site-footer {
    padding: 26px 0;

    border-top: 1px solid var(--border);

    background: #07070d;
}

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

    gap: 20px;

    color: var(--text-muted);

    font-size: 0.87rem;
}

.footer-content p {
    margin: 0;
}

.footer-content p:first-child {
    color: var(--text-soft);
    font-weight: 700;
}

.footer-content p:first-child span {
    margin-right: 6px;

    color: var(--gold);
}


/* ---------- Accessibility ---------- */

a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}


/* ---------- Tablet ---------- */

@media (max-width: 850px) {

    .welcome-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }
}


/* ---------- Mobile ---------- */

@media (max-width: 650px) {

    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .nav-container {
        flex-direction: column;

        gap: 6px;

        padding: 16px 0 10px;
    }

    .nav-links {
        width: 100%;

        justify-content: center;

        gap: 19px;
    }

    .nav-links a {
        padding: 10px 0 14px;

        font-size: 0.9rem;
    }

    .nav-links a::after {
        bottom: 8px;
    }

    .hero {
        min-height: auto;

        padding: 75px 0 70px;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .hero-text {
        font-size: 1.03rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;

        max-width: 280px;

        margin-inline: auto;
        margin-top: 30px;
    }

    .welcome-section,
    .features-section {
        padding: 70px 0;
    }

    .cafe-card {
        padding: 28px;
    }

    .connection-section {
        padding: 60px 0;
    }

    .connection-grid {
        grid-template-columns: 1fr;
    }

    .connection-card {
        flex-direction: column;
        align-items: stretch;

        padding: 28px;
    }

    .connection-card .button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;

        gap: 4px;

        text-align: center;
    }
}

/* =========================================================
   Join IRC Page v2
   ========================================================= */

.join-hero {
    position: relative;
    overflow: hidden;

    padding: 100px 0 90px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(117, 96, 175, 0.30),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #18152c 0%,
            #100f1e 100%
        );
}

.join-stars {
    position: absolute;
    inset: 0;

    opacity: 0.25;

    pointer-events: none;

    background-image:
        radial-gradient(circle, white 1px, transparent 1px);

    background-size: 145px 145px;
}

.join-hero-inner {
    position: relative;
    z-index: 2;

    max-width: 900px;
}

.join-hero h1 {
    margin: 0;

    color: white;

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 1.05;

    letter-spacing: -0.045em;
}

.join-hero-text {
    max-width: 620px;

    margin: 22px auto 0;

    color: var(--text-soft);

    font-size: 1.12rem;
}

.quick-connect {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    max-width: 780px;

    margin: 42px auto 0;

    overflow: hidden;

    border: 1px solid rgba(232, 202, 120, 0.18);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.045);
}

.quick-connect div {
    padding: 20px;

    border-right: 1px solid var(--border);
}

.quick-connect div:last-child {
    border-right: 0;
}

.quick-connect span {
    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.quick-connect strong {
    color: white;

    font-size: 0.96rem;
}


/* Main Join Area */

.join-section {
    padding: 90px 0;

    background: #0d0c17;
}

.join-heading {
    max-width: 700px;

    margin-bottom: 38px;
}

.join-heading h2 {
    margin: 0;

    color: white;

    font-size: clamp(2rem, 4vw, 2.8rem);

    line-height: 1.15;

    letter-spacing: -0.025em;
}

.join-heading > p:last-child {
    color: var(--text-soft);
}

.join-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}

.join-option-card {
    display: flex;
    flex-direction: column;

    min-height: 340px;

    padding: 34px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.025)
        );
}

.join-option-icon {
    margin-bottom: 18px;

    font-size: 2rem;
}

.option-label {
    margin: 0 0 4px;

    color: var(--gold);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.join-option-card h3 {
    margin: 0 0 10px;

    color: white;

    font-size: 1.45rem;
}

.join-option-card div p:last-child {
    color: var(--text-soft);
}

.join-option-card .button {
    align-self: flex-start;

    margin-top: auto;
}


/* Server Configuration */

.setup-section {
    padding: 90px 0;

    background: #12101f;
}

.server-card {
    overflow: hidden;

    max-width: 850px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);
}

.server-row {
    display: grid;
    grid-template-columns: 190px 1fr;

    padding: 18px 24px;

    border-bottom: 1px solid var(--border);
}

.server-row:last-child {
    border-bottom: 0;
}

.server-row span {
    color: var(--text-muted);
}

.server-row strong,
.server-row code {
    color: white;

    font-family: inherit;

    font-weight: 700;
}

.channel-row code {
    color: var(--gold-light);
}

.ssl-note {
    display: flex;
    align-items: center;

    gap: 14px;

    max-width: 850px;

    margin-top: 18px;

    padding: 16px 20px;

    border: 1px solid rgba(232, 202, 120, 0.14);
    border-radius: 10px;

    background: rgba(232, 202, 120, 0.045);
}

.ssl-note p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.9rem;
}

.ssl-note strong {
    color: white;
}


/* Beginner Steps */

.beginner-section {
    padding: 90px 0;

    background: #090812;
}

.simple-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.simple-steps article {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
}

.simple-steps article > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin-bottom: 22px;

    border-radius: 50%;

    color: #18131d;

    background: var(--gold);

    font-size: 0.8rem;
    font-weight: 800;
}

.simple-steps h3 {
    margin: 0 0 8px;

    color: white;
}

.simple-steps p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.9rem;
}

.simple-steps code {
    color: var(--gold-light);
}


/* Client Grid */

.client-section {
    padding: 90px 0;

    background: #100e1b;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.client-grid a {
    display: flex;
    flex-direction: column;

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);

    text-decoration: none;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.client-grid a:hover {
    transform: translateY(-3px);

    border-color: rgba(232, 202, 120, 0.28);

    background: var(--surface-hover);
}

.client-grid strong {
    color: white;
}

.client-grid span {
    color: var(--text-muted);

    font-size: 0.8rem;
}


/* Bottom */

.bottom-join {
    padding: 80px 0;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(232, 202, 120, 0.07),
            transparent 40%
        ),
        #090812;
}

.bottom-moon {
    display: block;

    color: var(--gold);

    font-size: 2.8rem;
}

.bottom-join h2 {
    margin: 10px 0 5px;

    color: white;

    font-size: 2rem;
}

.bottom-join p {
    margin: 0;

    color: var(--text-muted);
}


/* Join Page Mobile */

@media (max-width: 800px) {

    .quick-connect,
    .join-options {
        grid-template-columns: 1fr;
    }

    .quick-connect div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .quick-connect div:last-child {
        border-bottom: 0;
    }

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


@media (max-width: 550px) {

    .join-hero {
        padding: 75px 0 70px;
    }

    .join-section,
    .setup-section,
    .beginner-section,
    .client-section {
        padding: 70px 0;
    }

    .server-row {
        grid-template-columns: 1fr;

        gap: 4px;
    }

    .simple-steps,
    .client-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: fixed;

    top: 12px;
    left: 12px;

    z-index: 1000;

    padding: 10px 16px;

    color: #17131d;
    background: var(--gold);

    border-radius: 6px;

    font-weight: 750;

    text-decoration: none;

    transform: translateY(-200%);

    transition: transform 120ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   ABOUT PAGE
   ========================================================= */


/* ---------- Hero ---------- */

.about-hero {
    position: relative;

    overflow: hidden;

    padding: 100px 0 95px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(117, 96, 175, 0.3),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #18152c,
            #100f1e
        );
}

.about-stars {
    position: absolute;
    inset: 0;

    opacity: 0.25;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            #ffffff 1px,
            transparent 1px
        );

    background-size: 145px 145px;
}

.about-hero-inner {
    position: relative;

    z-index: 2;

    max-width: 900px;
}

.about-hero h1 {
    max-width: 850px;

    margin: 0 auto;

    color: #ffffff;

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 1.05;

    letter-spacing: -0.045em;
}

.about-hero h1 span {
    display: block;

    color: var(--gold-light);
}

.about-hero-text {
    max-width: 650px;

    margin: 24px auto 0;

    color: var(--text-soft);

    font-size: 1.12rem;
}


/* ---------- Introduction ---------- */

.about-section {
    padding: 90px 0;

    background: var(--bg-soft);
}

.about-two-column {
    display: grid;

    grid-template-columns: 1.25fr 0.75fr;

    gap: 70px;

    align-items: start;
}

.about-copy {
    max-width: 680px;
}

.about-copy h2,
.about-summary h2,
.about-heading h2,
.community-inner h2,
.about-next h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 2.7rem);

    line-height: 1.15;

    letter-spacing: -0.025em;
}

.about-copy > p:not(.section-kicker),
.about-heading > p:last-child,
.community-inner > div:first-child > p:not(.section-kicker) {
    color: var(--text-soft);

    font-size: 1rem;
}


/* ---------- Quick Facts ---------- */

.about-summary {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);
}

.about-summary h2 {
    margin-bottom: 24px;

    font-size: 1.5rem;
}

.about-facts {
    margin: 0;
}

.about-facts div {
    display: grid;

    grid-template-columns: 120px 1fr;

    gap: 20px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}

.about-facts div:last-child {
    border-bottom: 0;
}

.about-facts dt {
    color: var(--text-muted);
}

.about-facts dd {
    margin: 0;

    color: #ffffff;

    font-weight: 700;
}


/* ---------- Expectations ---------- */

.expect-section {
    padding: 90px 0;

    background: var(--bg);
}

.about-heading {
    max-width: 700px;

    margin-bottom: 40px;
}

.expect-grid {
    display: grid;

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

    gap: 20px;
}

.expect-card {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
}

.expect-icon {
    display: block;

    margin-bottom: 18px;

    font-size: 1.7rem;
}

.expect-card h3 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 1.15rem;
}

.expect-card p {
    margin: 0;

    color: var(--text-soft);
}


/* ---------- Community ---------- */

.community-section {
    padding: 90px 0;

    background: var(--bg-section);
}

.community-inner {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    gap: 70px;

    align-items: center;
}

.community-note {
    padding: 32px;

    border: 1px solid rgba(232, 202, 120, 0.18);
    border-radius: 16px;

    background: rgba(232, 202, 120, 0.045);
}

.community-moon {
    display: block;

    margin-bottom: 12px;

    color: var(--gold);

    font-size: 2.2rem;
}

.community-note p {
    color: var(--text-soft);
}

.community-note p:first-of-type {
    margin-bottom: 5px;

    color: #ffffff;

    font-size: 1.15rem;
}

.community-note p:last-child {
    margin-bottom: 0;
}


/* ---------- Next Step ---------- */

.about-next {
    padding: 90px 0;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(232, 202, 120, 0.07),
            transparent 42%
        ),
        var(--bg);
}

.about-next-inner {
    max-width: 700px;
}

.about-next h2 {
    font-size: clamp(2.3rem, 5vw, 3.3rem);
}

.about-next-inner > p:not(.section-kicker) {
    color: var(--text-soft);
}

.about-actions {
    display: flex;

    justify-content: center;

    gap: 14px;

    margin-top: 28px;
}


/* ---------- About Responsive ---------- */

@media (max-width: 850px) {

    .about-two-column,
    .community-inner {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .expect-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 550px) {

    .about-hero {
        padding: 70px 0;
    }

    .about-section,
    .expect-section,
    .community-section,
    .about-next {
        padding: 65px 0;
    }

    .about-facts div {
        grid-template-columns: 1fr;

        gap: 3px;
    }

    .about-actions {
        flex-direction: column;

        max-width: 280px;

        margin-inline: auto;
        margin-top: 28px;
    }
}


/* Respect users who request reduced motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   RULES PAGE
   ========================================================= */


/* ---------- Hero ---------- */

.rules-hero {
    position: relative;

    overflow: hidden;

    padding: 100px 0 95px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(117, 96, 175, 0.30),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #18152c,
            #100f1e
        );
}

.rules-stars {
    position: absolute;
    inset: 0;

    opacity: 0.25;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            #ffffff 1px,
            transparent 1px
        );

    background-size: 145px 145px;
}

.rules-hero-inner {
    position: relative;
    z-index: 2;

    max-width: 900px;
}

.rules-hero h1 {
    max-width: 850px;

    margin: 0 auto;

    color: #ffffff;

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 1.05;

    letter-spacing: -0.045em;
}

.rules-hero h1 span {
    display: block;

    color: var(--gold-light);
}

.rules-hero-text {
    max-width: 650px;

    margin: 24px auto 0;

    color: var(--text-soft);

    font-size: 1.12rem;
}


/* ---------- Short Version ---------- */

.rules-summary-section {
    padding: 70px 0;

    background: var(--bg-soft);
}

.rules-summary {
    max-width: 800px;

    margin: 0 auto;

    text-align: center;
}

.rules-summary-icon {
    display: block;

    margin-bottom: 12px;

    font-size: 2.2rem;
}

.rules-summary h2 {
    max-width: 760px;

    margin: 0 auto;

    color: #ffffff;

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

    line-height: 1.35;

    letter-spacing: -0.02em;
}


/* ---------- Rules ---------- */

.rules-section {
    padding: 90px 0;

    background: var(--bg);
}

.rules-heading {
    max-width: 700px;

    margin-bottom: 40px;
}

.rules-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 2.7rem);

    line-height: 1.15;

    letter-spacing: -0.025em;
}

.rules-heading > p:last-child {
    color: var(--text-soft);
}

.rules-list {
    display: grid;

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

    gap: 18px;

    margin: 0;
    padding: 0;

    list-style: none;

    counter-reset: rules;
}

.rule-card {
    display: grid;

    grid-template-columns: 54px 1fr;

    gap: 18px;

    min-height: 180px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
}

.rule-card:last-child {
    grid-column: 1 / -1;

    min-height: auto;
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(232, 202, 120, 0.20);
    border-radius: 50%;

    color: var(--gold-light);

    background: rgba(232, 202, 120, 0.06);

    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing: 0.05em;
}

.rule-content h3 {
    margin: 2px 0 9px;

    color: #ffffff;

    font-size: 1.12rem;
}

.rule-content p {
    margin: 0;

    color: var(--text-soft);
}


/* ---------- Moderation ---------- */

.moderation-section {
    padding: 90px 0;

    background: var(--bg-section);
}

.moderation-inner {
    max-width: 900px;

    text-align: center;
}

.moderation-icon {
    display: block;

    margin-bottom: 12px;

    font-size: 2rem;
}

.moderation-inner h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 2.7rem);

    line-height: 1.15;

    letter-spacing: -0.025em;
}

.moderation-intro {
    max-width: 600px;

    margin: 18px auto 32px;

    color: var(--text-soft);
}

.moderation-steps {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

    margin: 0 auto 26px;
}

.moderation-step {
    padding: 11px 18px;

    border: 1px solid rgba(232, 202, 120, 0.20);
    border-radius: 8px;

    color: #ffffff;

    background: rgba(255, 255, 255, 0.045);

    font-weight: 700;
}

.moderation-arrow {
    color: var(--gold);

    font-weight: 800;
}

.moderation-note {
    margin: 0;

    color: var(--text-soft);
}

.moderation-note strong {
    color: var(--gold-light);
}


/* ---------- Questions ---------- */

.rules-question-section {
    padding: 90px 0;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(232, 202, 120, 0.07),
            transparent 42%
        ),
        var(--bg);
}

.rules-question-inner {
    max-width: 700px;
}

.rules-moon {
    display: block;

    margin-bottom: 10px;

    color: var(--gold);

    font-size: 2.8rem;
}

.rules-question-inner h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 2.7rem);

    line-height: 1.2;

    letter-spacing: -0.025em;
}

.rules-question-inner > p:not(.section-kicker) {
    margin-bottom: 26px;

    color: var(--text-soft);

    font-size: 1.05rem;
}


/* ---------- Rules Responsive ---------- */

@media (max-width: 750px) {

    .rules-list {
        grid-template-columns: 1fr;
    }

    .rule-card:last-child {
        grid-column: auto;
    }
}


@media (max-width: 550px) {

    .rules-hero {
        padding: 70px 0;
    }

    .rules-summary-section {
        padding: 55px 0;
    }

    .rules-section,
    .moderation-section,
    .rules-question-section {
        padding: 65px 0;
    }

    .rule-card {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .rule-number {
        width: 44px;
        height: 44px;
    }

    .moderation-steps {
        flex-direction: column;

        max-width: 280px;
    }

    .moderation-step {
        width: 100%;
    }

    .moderation-arrow {
        transform: rotate(90deg);
    }
}


/* =========================================================
   MOONLIT CAFE SITE-WIDE ACCESSIBILITY
   ========================================================= */


/*
   Skip Navigation

   Hidden during normal browsing.
   Becomes visible when reached with the keyboard.
*/

.skip-link {
    position: fixed;

    top: 12px;
    left: 12px;

    z-index: 9999;

    padding: 11px 17px;

    border: 2px solid #17131d;
    border-radius: 7px;

    color: #17131d;
    background: var(--gold);

    font-size: 0.95rem;
    font-weight: 800;

    text-decoration: none;

    transform: translateY(-200%);

    transition: transform 120ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);

    outline: 3px solid #ffffff;
    outline-offset: 3px;
}


/*
   Keyboard Focus

   Keyboard users should always be able to tell
   which interactive element currently has focus.
*/

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 4px;
}


/*
   Avoid displaying a focus outline for normal
   mouse clicks in browsers that support :focus-visible.
*/

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}


/*
   Links inside normal text

   Do not communicate links using color alone.
*/

main p a:not(.button),
main li a:not(.button) {
    color: var(--gold-light);

    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

main p a:not(.button):hover,
main li a:not(.button):hover {
    text-decoration-thickness: 0.13em;
}


/*
   Comfortable Reading

   Prevent long text from stretching across extremely
   wide displays.
*/

main p {
    max-width: 75ch;
}


/*
   Improve readability when text is selected.
*/

::selection {
    color: #17131d;
    background: var(--gold-light);
}


/*
   Target headings reached through skip links,
   anchors, or other fragment links.
*/

:target {
    scroll-margin-top: 24px;
}


/*
   Preserve usability at high browser zoom levels.
*/

img,
svg,
video,
iframe {
    max-width: 100%;
}


/*
   Prevent long IRC addresses, channel names,
   or URLs from breaking narrow layouts.
*/

code,
strong,
dd,
p,
li {
    overflow-wrap: anywhere;
}


/*
   Form controls inherit the site's readable font.
*/

button,
input,
select,
textarea {
    font: inherit;
}


/*
   Give interactive controls a reasonable minimum
   touch/click target where practical.
*/

.button {
    min-height: 44px;
}


/*
   Current navigation page.

   The underline is not the only indication because
   aria-current communicates the state to assistive
   technology.
*/

.nav-links a[aria-current="page"] {
    color: #ffffff;
}


/*
   High Contrast / Forced Colors

   Let the operating system provide meaningful colors
   when forced-colors mode is enabled.
*/

@media (forced-colors: active) {

    .button,
    .rule-card,
    .join-option-card,
    .server-card,
    .about-summary,
    .expect-card,
    .community-note,
    .moderation-step {
        border: 1px solid CanvasText;
    }

    .skip-link {
        color: Canvas;
        background: CanvasText;
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 3px solid Highlight;
    }
}


/*
   Reduced Motion

   Respect users who request reduced motion through
   their operating system or browser.
*/

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}


/*
   Increased Contrast Preference

   Add stronger borders where the browser supports
   prefers-contrast.
*/

@media (prefers-contrast: more) {

    :root {
        --border: rgba(255, 255, 255, 0.28);
        --text-soft: #e1dde8;
        --text-muted: #c4becd;
    }

    .button,
    .rule-card,
    .join-option-card,
    .server-card,
    .about-summary,
    .expect-card,
    .community-note {
        border-width: 2px;
    }
}


/*
   Mobile / High Zoom Navigation

   Allow navigation to wrap rather than overflow
   horizontally when text is enlarged.
*/

@media (max-width: 700px) {

    .nav-links {
        flex-wrap: wrap;

        row-gap: 0;
    }

    .nav-links a {
        min-height: 44px;

        display: flex;
        align-items: center;
    }
}



/* =========================================================
   WEB CHAT / KIWI IRC
   ========================================================= */

.webchat-section {
    padding: 5.5rem 0;
    background: linear-gradient(
        180deg,
        var(--bg-section),
        var(--bg-purple)
    );
}

.webchat-panel {
    max-width: 900px;
    margin: 2.5rem auto 0;
    padding: 2rem;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.webchat-panel-copy {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.webchat-moon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(232, 202, 120, 0.28);
    border-radius: 50%;

    color: var(--gold-light);
    background: rgba(232, 202, 120, 0.08);

    font-size: 1.5rem;
}

.webchat-panel h3 {
    margin: 0 0 0.55rem;

    color: var(--text);
    font-size: 1.3rem;
}

.webchat-panel-copy p {
    margin: 0;
    color: var(--text-soft);
}

.webchat-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin: 1.75rem 0;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.webchat-details div {
    padding: 1rem 1.25rem;
}

.webchat-details div + div {
    border-left: 1px solid var(--border);
}

.webchat-details span,
.webchat-details strong {
    display: block;
}

.webchat-details span {
    margin-bottom: 0.25rem;

    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.webchat-details strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.webchat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.webchat-actions .button {
    justify-content: center;
}


/* Kiwi iframe container */

@media (max-width: 700px) {

    .webchat-section {
        padding: 4rem 0;
    }

    .webchat-panel {
        padding: 1.35rem;
    }

    .webchat-details {
        grid-template-columns: 1fr;
    }

    .webchat-details div + div {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .webchat-actions {
        flex-direction: column;
    }

    .webchat-actions .button {
        width: 100%;
    }
}



/* ---------- Default / Legal Pages ---------- */

.default-page-section {
    padding: 72px 0 88px;
}

.default-page-content {
    max-width: 820px;
}

.default-page-content h1 {
    margin: 0 0 18px;
}

.default-page-content h2 {
    margin: 40px 0 12px;
}

.default-page-content p {
    line-height: 1.75;
}

.default-page-content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ---------- Footer Legal Links ---------- */

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}
