:root {
    --bg-color: #0e1410;
    --text-color: #e6ece7;
    --text-muted: #93a396;
    --accent-color: #b9b879;
    --accent-hover: #cecd8e;
    --card-bg: #17211a;
    --border-color: #2f4234;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f5f7f4;
        --text-color: #1a241c;
        --text-muted: #516154;
        --accent-color: #36593d;
        --accent-hover: #27422c;
        --card-bg: #ffffff;
        --border-color: #cdd7ce;
    }
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 2rem;
    flex: 1;
}

header {
    margin-bottom: 2.25rem;
}

.guild-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guild-crest {
    flex-shrink: 0;
    border-radius: 10px;
}

.accent-dot {
    color: var(--accent-color);
}

h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.invite-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    margin-bottom: 2rem;
}

.invite-card:hover {
    border-color: var(--accent-color);
    text-decoration: none;
}

.invite-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.invite-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.15s ease;
}

.invite-card:hover .invite-title {
    color: var(--accent-color);
}

.invite-desc {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.invite-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.15s ease, color 0.15s ease;
    padding-left: 0.5rem;
}

.invite-card:hover .invite-arrow {
    color: var(--accent-color);
    transform: translateX(3px);
}

.meta-info {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 2rem;
}

footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
