/* Gradient background wrapper of the public pages */
.page-background {
    min-height: 100vh;
    background:
        radial-gradient(1100px 700px at 15% 10%, var(--page-glow-top-left), transparent 60%),
        radial-gradient(900px 600px at 85% 20%, var(--page-glow-top-right), transparent 62%),
        radial-gradient(900px 600px at 50% 95%, var(--page-glow-bottom), transparent 65%),
        var(--page-background);
}

/* "RPG-IRL" logo in the navbar */
.brand-pill {
    background: var(--brand-pill-background);
    color: var(--brand-pill-text);
    font-weight: 700;
    letter-spacing: .6px;
    line-height: 1;
    border-radius: 999px;
    box-shadow: 0 6px 18px var(--brand-pill-shadow);
}

.glass {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.shadow-soft {
    box-shadow: 0 20px 60px var(--soft-shadow);
}

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

.soft-radius {
    border-radius: 16px;
}

.large-button {
    padding: 16px 18px;
}

.divider {
    height: 1px;
    background: var(--divider-line);
    margin: 24px 0;
}

.footer-link {
    color: var(--footer-link-text);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--footer-link-hover-text);
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   The base of every page and the parts the pages share (buttons, cards,
   fields, badges, messages, the page width). Fonts: fonts.css.
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink-text);
    font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5rem;
    font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

p,
ul {
    margin: 0 0 1rem;
}

ul {
    padding-left: 1.5rem;
}

a {
    color: var(--ink-text);
}

img {
    vertical-align: middle;
}

button,
input {
    margin: 0;
    font: inherit;
}

button:not(:disabled) {
    cursor: pointer;
}

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

/* The page width, the same steps as before */
.site-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
}

@media (min-width: 576px) { .site-container { max-width: 540px; } }
@media (min-width: 768px) { .site-container { max-width: 720px; } }
@media (min-width: 992px) { .site-container { max-width: 960px; } }
@media (min-width: 1200px) { .site-container { max-width: 1140px; } }
@media (min-width: 1400px) { .site-container { max-width: 1320px; } }

/* Buttons */
.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .55rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.site-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.site-btn-sm {
    padding: .35rem .75rem;
    border-radius: 8px;
    font-size: .875rem;
}

.site-btn-lg {
    padding: .75rem 1.25rem;
    font-size: 1.1rem;
}

.site-btn-primary {
    background: var(--button-background);
    color: var(--button-text);
}

.site-btn-primary:not(:disabled):hover {
    background: var(--button-hover-background);
    color: #fff;
}

.site-btn-quiet {
    border-color: var(--field-border);
    background: var(--surface-background);
    color: var(--ink-text);
}

.site-btn-quiet:not(:disabled):hover {
    border-color: var(--color3);
    background: var(--chip-background);
}

/* Small label on a pill */
.site-badge {
    display: inline-block;
    padding: .35em .7em;
    border-radius: 999px;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* Cards */
.site-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--divider-line);
    border-radius: 16px;
    background: var(--surface-background);
}

.site-card-header {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--divider-line);
    border-radius: 16px 16px 0 0;
}

.site-card-body {
    flex: 1 1 auto;
    padding: 1rem;
}

/* Form fields */
.site-label {
    display: inline-block;
    margin-bottom: .4rem;
    font-weight: 600;
}

.site-input {
    display: block;
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--field-border);
    border-radius: 10px;
    background: var(--surface-background);
    color: var(--ink-text);
    font-size: 1rem;
    line-height: 1.4;
}

.site-input:focus {
    outline: none;
    border-color: var(--color3);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.site-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.site-input-group > .site-input {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.site-input-group > :not(:first-child) {
    margin-left: -1px;
}

/* Messages */
.site-alert {
    position: relative;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
}

.site-alert-danger {
    border-color: var(--danger-border);
    background: var(--danger-background);
    color: var(--danger-text);
}

/* Small line icons drawn in the page (they use the text colour) */
.site-icon {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    vertical-align: -.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
    .site-btn {
        transition: none;
    }
}
