.randopolis-page {
    background: radial-gradient(ellipse at top, #282145, var(--randopolis-ink) 52rem);
    color: var(--randopolis-text);
    font-family: LexendDeca-Light, sans-serif;
    line-height: 1.65;
}

html.randopolis-page {
    padding-top: 110px;
    scroll-padding-top: 100px;
}

.randopolis-panel {
    box-sizing: border-box;
    width: min(64rem, calc(100% - 2rem));
    margin: 0 auto clamp(2rem, 6vw, 4rem);
    padding: clamp(1rem, 4vw, 3rem);
    border: 1px solid var(--randopolis-border);
    border-radius: 16px;
    background: linear-gradient(155deg, #211b38, var(--randopolis-surface) 70%);
    box-shadow: 0 14px 40px #08071488;
    overflow-wrap: anywhere;
}

.randopolis-panel h1 {
    margin: 0 0 1.2rem;
    color: var(--randopolis-gold);
    font: 600 clamp(1.8rem, 4vw, 2.7rem)/1.15 Cinzel, Georgia, serif;
    text-transform: none;
    text-shadow: none;
}

.randopolis-panel :is(h2, h3, h4, h5, h6) {
    color: var(--randopolis-text);
}

.randopolis-panel :is(a, .interactive) {
    color: var(--randopolis-gold);
}

.randopolis-panel a {
    text-underline-offset: 0.2em;
}

.randopolis-panel a:hover,
.randopolis-prose a {
    text-decoration: underline;
}

.randopolis-panel :focus-visible {
    outline: 2px solid var(--randopolis-gold);
    outline-offset: 3px;
}

.randopolis-panel :is(button, input[type="submit"]) {
    border: 1px solid var(--randopolis-gold);
    border-radius: 7px;
    background: var(--randopolis-gold);
    color: var(--randopolis-ink);
    font-family: LexendDeca-Medium, sans-serif;
}

.randopolis-panel :is(button, input[type="submit"]):disabled {
    opacity: 0.55;
    cursor: default;
}

.randopolis-prose {
    max-width: 52rem;
}

.randopolis-prose :is(h2, h3, h4, h5, h6) {
    margin: 1.5em 0 0.5em;
    font-family: LexendDeca-Medium, sans-serif;
    line-height: 1.35;
}

.randopolis-prose h2 {
    font-size: clamp(1.3rem, 3vw, 1.65rem);
}

.randopolis-prose h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.randopolis-prose :is(h4, h5, h6) {
    font-size: 1.05rem;
}

.randopolis-prose :is(h1, h2, h3, h4, h5, h6) > a {
    color: inherit;
    text-decoration: none;
}

.randopolis-prose :is(h1, h2, h3, h4, h5, h6) > a:hover {
    text-decoration: underline;
}

.randopolis-prose :is(ul, ol) {
    padding-inline-start: 1.5rem;
}

.randopolis-prose li + li {
    margin-top: 0.3rem;
}

.randopolis-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.randopolis-prose :is(iframe, video) {
    max-width: 100%;
}

.randopolis-prose code {
    padding: 0.12em 0.3em;
    border-radius: 4px;
    background: var(--randopolis-ink);
    color: var(--randopolis-text);
}

.randopolis-prose pre {
    overflow: auto;
    padding: 0.75rem 1rem;
    border: 1px solid var(--randopolis-border);
    border-radius: 6px;
    background: var(--randopolis-ink);
}

.randopolis-prose pre code {
    padding: 0;
}

.randopolis-prose blockquote {
    margin-inline: 0;
    padding-inline-start: 1rem;
    border-inline-start: 3px solid var(--randopolis-border);
    color: var(--randopolis-muted);
}

.randopolis-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.randopolis-prose :is(th, td) {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--randopolis-border);
    text-align: start;
}

.randopolis-prose th {
    background: var(--randopolis-ink);
}
