:root {
    color-scheme: dark;
    --surface: #18181f;
    --raised: #25252f;
    --ink: #f0f1fc;
    --muted: #a5aec6;
    --paper: #0e0e12;
    --line: #30303c;
    --primary: #9146ff;
    --tint: #e0d3ff;
    --accent: #bf94ff;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font:
        15px/1.6 -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select,
summary {
    touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #baabff;
    outline-offset: 4px;
}
button {
    cursor: pointer;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2 {
    font-family: 'Arial Black', 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.06;
}
h1 {
    font-size: clamp(38px, 4vw, 58px);
    margin-bottom: 20px;
}
h2 {
    font-size: 32px;
}
h3 {
    font-size: 17px;
}
em {
    font-style: normal;
    color: #bf94ff;
    font-weight: 400;
}
p {
    color: var(--muted);
}
.preview-ribbon {
    background: #1c2438;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 6px 15px;
}
.preview-ribbon span {
    letter-spacing: 0;
    margin-left: 16px;
    color: #a5aec6;
}
.topbar {
    height: 87px;
    max-width: 1440px;
    margin: auto;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -1.5px;
}
.brand-mark {
    background: var(--primary);
    color: var(--tint);
    width: 35px;
    height: 35px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    line-height: 30px;
    border-radius: 10px;
    margin-right: 3px;
}
.brand-domain {
    font-size: 12px;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--muted);
}
.topbar nav {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 13px;
}
.topbar form {
    margin: 0;
}
.button {
    background: var(--primary);
    color: #fff;
    padding: 13px 21px;
    border: 1px solid var(--primary);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
.button:hover {
    background: #7934dc;
}
.button.secondary {
    background: transparent;
    color: var(--ink);
    border-color: #3a4560;
}
.button.secondary:hover {
    background: #25252f;
}
.button.small {
    padding: 8px 13px;
    font-size: 12px;
}
.button.light {
    background: var(--tint);
    color: #17152a;
    border: 0;
}
.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.text-button {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    padding: 6px;
}
.container,
.landing {
    max-width: 1320px;
    margin: auto;
    padding: 0 6%;
}
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 35px;
    padding: 83px 0 76px;
    align-items: center;
}
.eyebrow {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}
.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #70dfce;
    margin-right: 8px;
}
.hero h1 {
    font-size: clamp(45px, 5.4vw, 76px);
    line-height: 1.02;
}
.lead {
    font-size: 16px;
    max-width: 420px;
    line-height: 1.8;
    margin-bottom: 27px;
}
.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.quiet,
small {
    font-size: 12px;
    color: var(--muted);
}
.hero .quiet {
    margin-top: 17px;
}
/* A crisp community showcase, not a pastoral website mockup. */
.hero-art {
    position: relative;
    padding: 30px 0;
    min-width: 0;
}
.example-site {
    position: relative;
    background: #151a2b;
    border: 1px solid #454364;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 30px 80px #0007,
        0 0 75px #9146ff18;
}
.windowbar {
    display: flex;
    justify-content: space-between;
    padding: 11px 16px;
    color: #a5aec6;
    background: #1b2134;
    font:
        10px/1.5 ui-monospace,
        monospace;
    border-bottom: 1px solid #30374e;
}
.windowbar > span:first-child {
    color: #a995ff;
    letter-spacing: 3px;
}
.mini-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-size: 9px;
    letter-spacing: 0.07em;
}
.arena {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 28px 24px;
    background:
        radial-gradient(ellipse at 85% 35%, #6944c685, transparent 65%), #161a30;
}
.arena-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#c1b0ff0a 1px, transparent 1px),
        linear-gradient(90deg, #c1b0ff0a 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(120deg, transparent, #000);
}
.arena-emblem {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -15px;
    top: 30px;
    color: #bfaaff;
    opacity: 0.65;
    transform: rotate(-12deg);
}
.arena-label {
    position: relative;
    color: #d2c5ff;
    font:
        9px/1.5 ui-monospace,
        monospace;
    letter-spacing: 0.12em;
}
.arena h2 {
    position: relative;
    font-size: 38px;
    line-height: 1.03;
    margin: 45px 0 20px;
    max-width: 85%;
}
.arena-tag {
    position: relative;
    color: #9aede0;
    font-size: 10px;
}
.mini-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    padding: 20px;
}
.mini-bottom span:last-child {
    color: #72ddcd;
}
.showcase-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    font:
        10px/1.5 ui-monospace,
        monospace;
    color: #909cb8;
}
.showcase-caption b {
    color: #c4b2ff;
    font-weight: 500;
}
.promise-strip {
    border-block: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 23px 0;
    font-size: 12px;
}
.promise-strip span {
    color: #bf94ff;
}
.promise-strip b {
    color: #d3d8eb;
    margin-left: 16px;
    font-weight: 500;
}
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    padding: 85px 0;
}
.section-intro h2 {
    font-size: 45px;
}
.section-intro p {
    font-size: 14px;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}
.feature-icon {
    font-family: 'Segoe UI', sans-serif;
    font-size: 25px;
    display: block;
    margin-bottom: 10px;
}
.feature-grid h3 {
    margin-bottom: 10px;
}
.feature-grid p {
    font-size: 13px;
    line-height: 1.8;
}
.end-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #1b2038;
    border: 1px solid #383453;
    border-radius: 12px;
    padding: 38px 44px;
    margin-bottom: 65px;
}
.end-card .eyebrow {
    margin-bottom: 12px;
}
.end-card h2 {
    margin-bottom: 12px;
}
.end-card p {
    margin: 0;
    font-size: 13px;
}
.site-footer {
    max-width: 1320px;
    margin: auto;
    padding: 30px 6%;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 10px;
    color: var(--muted);
}
.site-footer .brand {
    font-size: 22px;
}
.narrow {
    max-width: 620px;
    margin: auto;
    padding: 65px 30px 90px;
    min-height: 70vh;
}
.narrow h1 {
    font-size: 55px;
}
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-stack > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
label,
legend {
    font-size: 13px;
    font-weight: 600;
}
input:not([type='radio']),
select {
    width: 100%;
    border: 1px solid #3a4560;
    border-radius: 6px;
    padding: 12px 14px;
    background: var(--surface);
    color: var(--ink);
}
.form-stack .button {
    align-self: flex-start;
    margin-top: 12px;
}
.back {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 28px;
}
.notice,
.error,
.errorlist {
    padding: 16px 20px;
    background: #332838;
    border: 1px solid #6c4563;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #ffcade;
}
.messages {
    background: #192e35;
    margin: 0;
    padding: 8px 6%;
    font-size: 13px;
}
.messages p {
    margin: 0;
    color: var(--accent);
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin: 50px 0 30px;
}
.page-heading h1 {
    font-size: 46px;
    margin-bottom: 12px;
}
.page-heading .eyebrow {
    margin-bottom: 13px;
}
.page-heading p {
    font-size: 14px;
    margin-bottom: 0;
}
.site-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    min-height: 50vh;
    margin-bottom: 50px;
}
.site-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    align-self: start;
    background: var(--surface);
}
.card-art {
    background: var(--primary);
    height: 130px;
    display: grid;
    place-items: center;
    color: var(--tint);
    font-size: 70px;
}
.card-copy {
    padding: 25px;
}
.card-copy h2 {
    font-size: 30px;
}
.arrow {
    font-size: 12px;
    font-weight: 600;
}
.empty {
    text-align: center;
    padding: 60px 25px;
    grid-column: 1/-1;
    width: 100%;
}
.empty > span {
    font-size: 45px;
}
.empty h2 {
    margin-top: 20px;
}
.studio-layout {
    max-width: 1440px;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    margin: auto;
    min-height: 75vh;
}
.sidebar {
    border-right: 1px solid var(--line);
    padding: 30px 24px;
    min-width: 0;
}
.sidebar h2 {
    font-size: 24px;
    overflow-wrap: anywhere;
    margin: 17px 0 12px;
}
.site-monogram {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--tint);
    font-family: 'Segoe UI', sans-serif;
    font-size: 29px;
    border-radius: 11px;
    display: grid;
    place-items: center;
}
.plan-badge {
    display: inline-block;
    border: 1px solid #3a4560;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10px;
    color: #bac5de;
}
.sidebar nav {
    display: flex;
    flex-direction: column;
    margin: 25px -7px;
}
.sidebar nav a {
    font-size: 12px;
    padding: 10px 8px;
    border-radius: 6px;
}
.sidebar nav a:hover {
    background: #252c44;
}
.visit-link {
    font-size: 12px;
    border-block: 1px solid var(--line);
    display: block;
    padding: 16px 0;
}
.sidebar-note {
    font-size: 11px;
    margin-top: 45px;
    padding: 15px;
    background: #25252f;
    border-radius: 7px;
}
.sidebar-note p {
    margin: 7px 0 0;
    font-size: 11px;
}
.workspace {
    padding: 0 40px 50px;
    min-width: 0;
}
.welcome-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px 35px;
    background: #1b2038;
    border: 1px solid #383453;
    border-radius: 10px;
    margin-bottom: 32px;
}
.welcome-panel h2 {
    font-size: 38px;
    margin-bottom: 13px;
}
.welcome-panel p {
    max-width: 600px;
    font-size: 13px;
}
.welcome-panel a {
    font-size: 12px;
    font-weight: 600;
}
.big-spark {
    font-size: 95px;
    line-height: 1;
    color: #bf94ff;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.section-heading h2 {
    font:
        600 16px/1.4 -apple-system,
        sans-serif;
    letter-spacing: 0;
    margin: 0;
}
.count {
    font-size: 11px;
    background: #252c44;
    border-radius: 4px;
    padding: 3px 7px;
    margin-left: 10px;
    font-weight: 400;
}
.page-list {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 27px;
}
.page-row {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 19px 20px;
    border-bottom: 1px solid #30303c;
}
.page-row:last-child {
    border-bottom: 0;
}
.page-icon {
    font-size: 21px;
    background: #252c44;
    padding: 9px 14px;
    border-radius: 6px;
}
.page-row-title {
    flex: 1;
    min-width: 0;
}
.page-row-title a {
    font-size: 14px;
    font-weight: 600;
}
.page-row-title small {
    display: block;
    font-size: 10px;
}
.status {
    font-size: 10px;
    color: #f5cf92;
    background: #332d26;
    border-radius: 4px;
    padding: 4px 8px;
}
.status.live {
    color: #83e2c6;
    background: #17352f;
}
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.panel {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 25px;
    background: #18181f;
    margin: 0 0 25px;
}
.panel h3 {
    font-size: 15px;
}
.panel p {
    font-size: 12px;
}
.panel .eyebrow {
    font-size: 9px;
}
.activity {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 7px 0;
    font-size: 11px;
}
.activity small {
    font-size: 9px;
}
progress {
    width: 100%;
    height: 7px;
    accent-color: #a68af6;
}
.editor-heading h1 {
    font-size: 35px;
}
.editor-heading .back {
    margin-bottom: 12px;
}
.editor-title {
    margin-bottom: 24px;
}
.editor-title input {
    font-family: 'Segoe UI', sans-serif;
    font-size: 26px;
    padding: 13px 17px;
    margin-top: 7px;
}
.editor-note {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 10px;
    margin: 16px 0;
    color: var(--muted);
}
#rich-editor {
    min-height: 350px;
    background: var(--surface);
}
.ql-container.ql-snow {
    font-size: 16px;
    border-color: #3a4560;
    border-radius: 0 0 8px 8px;
}
.ql-toolbar.ql-snow {
    background: #25252f;
    border-color: #3a4560;
    border-radius: 8px 8px 0 0;
}
.ql-editor {
    min-height: 350px;
    padding: 27px !important;
    line-height: 1.8 !important;
}
.ql-editor h2 {
    font-size: 30px !important;
}
.ql-editor img {
    max-width: 100%;
    max-height: 600px;
}
.editor-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.editor-actions label {
    cursor: pointer;
}
.publish-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: #24213b;
    border-radius: 8px;
    margin: 30px 0;
}
.publish-bar > div {
    flex: 1;
}
.publish-bar h3 {
    margin-bottom: 4px;
    font-size: 15px;
}
.publish-bar p {
    font-size: 11px;
    margin: 0;
}
.history {
    border-top: 1px solid var(--line);
    padding: 20px 0;
}
.history summary {
    font-size: 13px;
    cursor: pointer;
}
.history summary .quiet {
    margin-left: 10px;
}
.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.history-row small {
    display: block;
    font-size: 10px;
}
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
    margin: 22px 0;
}
.asset-card,
.asset-choice {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
    min-width: 0;
    padding: 0;
    text-align: left;
}
.asset-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.asset-card div,
.asset-choice span {
    display: block;
    padding: 12px;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.asset-card small {
    display: block;
    font-size: 10px;
}
.settings-form {
    max-width: 650px;
}
.settings-form fieldset {
    border: 0;
    padding: 0;
    margin: 15px 0;
}
.theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.swatch {
    border: 1px solid var(--line);
    padding: 15px;
    border-radius: 6px;
    font-size: 12px;
}
.swatch.forest {
    background: #17352f;
    color: #a6edc8;
}
.swatch.amethyst {
    background: #2d2349;
    color: #dbcaff;
}
.swatch.ember {
    background: #392722;
    color: #ffc2a3;
}
.swatch.ocean {
    background: #163342;
    color: #a2e4f5;
}
.theme-forest {
    --primary: #26745d;
    --tint: #b5f4d4;
    --accent: #7de0b4;
}
.theme-amethyst {
    --primary: #9146ff;
    --tint: #e0d3ff;
    --accent: #bf94ff;
}
.theme-ember {
    --primary: #a44f30;
    --tint: #ffe0c8;
    --accent: #f3ab83;
}
.theme-ocean {
    --primary: #286b95;
    --tint: #cbf1ff;
    --accent: #7bd4f1;
}
.public-site {
    max-width: 1200px;
    margin: auto;
    padding: 30px 6% 60px;
}
.clan-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0 28px;
}
.clan-nav > a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
}
.clan-nav nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 12px;
}
.members-nav ul {
    margin: 10px 0 0;
    padding: 0 0 0 12px;
    border-left: 1px solid var(--accent);
    list-style: none;
    display: grid;
    gap: 8px;
    max-width: 220px;
    max-height: 14rem;
    overflow-y: auto;
    overflow-wrap: anywhere;
}
.clan-nav [aria-current='page'] {
    border-bottom: 2px solid var(--accent);
}
.clan-hero {
    min-height: 340px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: var(--primary);
    display: flex;
    align-items: flex-end;
    padding: 42px;
}
.public-arena,
.cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.public-arena {
    background:
        radial-gradient(ellipse at 85% 20%, var(--primary), transparent 70%),
        #161a30;
}
.public-arena .arena-emblem {
    width: 320px;
    height: 320px;
    top: -20px;
    right: 6%;
    color: var(--accent);
    opacity: 0.5;
}
.clan-hero:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #090d20b0, transparent);
}
.clan-hero-copy {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 85%;
}
.clan-hero-copy h1 {
    font-size: 60px;
}
.clan-hero-copy p {
    color: #e0e5f7;
    font-size: 18px;
}
.clan-hero-copy .eyebrow {
    font-size: 9px;
}
.public-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 60px;
    padding: 45px 10px;
}
.prose {
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.prose p {
    color: #c4cce1;
}
.prose h2 {
    font-size: 34px;
    line-height: 1.2;
}
.prose h3 {
    font-family: 'Segoe UI', sans-serif;
    font-size: 25px;
}
.prose a {
    text-decoration: underline;
}
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.prose blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-left: 0;
}
.prose pre {
    overflow: auto;
}
.community-card {
    border-top: 2px solid var(--accent);
    padding: 25px 0;
    font-size: 13px;
}
.community-card > span {
    font-size: 35px;
    color: var(--accent);
}
.community-card h3 {
    margin-top: 16px;
}
.community-card a {
    font-size: 12px;
    display: block;
    margin: 15px 0;
}
.donation {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.draft-banner {
    padding: 12px 18px;
    background: #352a3f;
    font-size: 11px;
    border-radius: 6px;
}
.draft-banner a {
    margin-left: 15px;
    text-decoration: underline;
}
.ql-align-center {
    text-align: center;
}
.ql-align-right {
    text-align: right;
}
.ql-align-justify {
    text-align: justify;
}
.ql-indent-1 {
    padding-left: 2em;
}
.ql-indent-2 {
    padding-left: 4em;
}
@media (max-width: 950px) {
    .topbar {
        padding: 0 4%;
    }
    .container,
    .landing {
        padding: 0 5%;
    }
    .hero {
        gap: 20px;
        padding: 55px 0;
    }
    .hero h1 {
        font-size: 55px;
    }
    .hero-art {
        padding: 25px 0;
    }
    .feature-section {
        gap: 35px;
    }
    .studio-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }
    .sidebar {
        padding: 25px 16px;
    }
    .workspace {
        padding: 0 24px 35px;
    }
    .page-heading h1 {
        font-size: 38px;
    }
    .public-columns {
        gap: 35px;
        grid-template-columns: minmax(0, 1fr) 180px;
    }
    .user-name {
        display: none;
    }
}
@media (max-width: 700px) {
    .preview-ribbon span {
        display: none;
    }
    .topbar {
        height: 72px;
        padding: 0 20px;
    }
    .topbar nav {
        gap: 13px;
        font-size: 12px;
    }
    .brand {
        font-size: 24px;
    }
    .brand-domain {
        font-size: 10px;
    }
    .brand-mark {
        width: 30px;
        height: 30px;
    }
    .topbar nav > .button {
        padding: 8px 12px;
        font-size: 11px;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 45px 0 50px;
        gap: 20px;
    }
    .hero h1 {
        font-size: 57px;
    }
    .hero .lead {
        font-size: 15px;
    }
    .hero-art {
        max-width: 450px;
        width: 100%;
        margin: 0 auto;
        padding: 25px 12px;
    }
    .promise-strip {
        gap: 12px;
        font-size: 10px;
    }
    .promise-strip span {
        display: flex;
        flex-direction: column;
    }
    .promise-strip b {
        margin: 5px 0 0;
    }
    .feature-section {
        grid-template-columns: 1fr;
        padding: 50px 0;
        gap: 25px;
    }
    .feature-grid {
        gap: 25px;
    }
    .section-intro h2 {
        font-size: 38px;
    }
    .end-card {
        padding: 28px;
        display: block;
    }
    .end-card .button {
        margin-top: 20px;
    }
    .site-footer {
        flex-wrap: wrap;
        padding: 25px 5%;
    }
    .site-footer > span:last-child {
        display: none;
    }
    .page-heading {
        margin: 30px 0 22px;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 15px;
    }
    .page-heading h1 {
        font-size: 37px;
    }
    .site-grid {
        grid-template-columns: 1fr;
    }
    .studio-layout {
        display: block;
    }
    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 15px 20px;
    }
    .sidebar .back,
    .site-monogram,
    .sidebar-note,
    .sidebar .plan-badge,
    .visit-link {
        display: none;
    }
    .sidebar h2 {
        font-size: 22px;
        margin: 0 0 10px;
    }
    .sidebar nav {
        flex-direction: row;
        overflow: auto;
        margin: 0 -6px;
        gap: 4px;
    }
    .sidebar nav a {
        white-space: nowrap;
        font-size: 11px;
        padding: 6px;
    }
    .workspace {
        padding: 0 20px 35px;
    }
    .welcome-panel {
        padding: 23px;
    }
    .welcome-panel h2 {
        font-size: 31px;
    }
    .big-spark {
        font-size: 65px;
    }
    .section-heading .quiet {
        display: none;
    }
    .page-row {
        padding: 15px 12px;
        gap: 10px;
    }
    .page-icon {
        padding: 5px 9px;
        font-size: 17px;
    }
    .page-row .button {
        padding: 7px 9px;
        font-size: 10px;
    }
    .page-row .status {
        font-size: 9px;
        padding: 3px 5px;
    }
    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .panel {
        padding: 20px;
    }
    .publish-bar {
        flex-wrap: wrap;
        padding: 20px;
    }
    .publish-bar > div {
        flex-basis: 100%;
    }
    .editor-note {
        flex-direction: column;
        gap: 4px;
    }
    .history summary .quiet {
        display: block;
        margin: 5px 0 0;
    }
    .clan-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .clan-hero {
        padding: 28px;
        min-height: 320px;
    }
    .clan-hero-copy {
        max-width: 100%;
    }
    .clan-hero-copy h1 {
        font-size: 43px;
    }
    .clan-hero-copy p {
        font-size: 16px;
    }
    .public-columns {
        grid-template-columns: 1fr;
        padding: 30px 0;
        gap: 20px;
    }
    .public-site {
        padding: 15px 5% 35px;
    }
    .narrow {
        padding: 40px 24px 60px;
    }
    .narrow h1 {
        font-size: 48px;
    }
    .ql-editor {
        padding: 18px !important;
    }
    .user-name {
        display: none;
    }
}

/* Clan's interface uses angular, high-contrast panels throughout. */
.brand-mark {
    font:
        800 20px/35px ui-monospace,
        monospace;
    border-radius: 3px;
    transform: skew(-8deg);
    background: #bf94ff;
    color: #161226;
}
.brand {
    font-weight: 850;
    letter-spacing: -1.2px;
}
.topbar {
    height: 80px;
}
.hero {
    gap: 50px;
    padding: 70px 0 55px;
}
.hero h1 {
    font-size: clamp(48px, 5.8vw, 78px);
    max-width: 640px;
}
.hero .eyebrow {
    font-family: ui-monospace, monospace;
    color: #c2b2ff;
}
.hero em {
    color: #bf94ff;
}
.hero .lead {
    max-width: 440px;
}
.button {
    border-radius: 4px;
}
.button.light {
    color: #17152a;
}
.feature-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 70px 0;
}
.section-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 12px 50px;
}
.section-intro .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
    color: #bf94ff;
}
.section-intro h2 {
    margin: 0;
    font-size: 40px;
}
.section-intro p {
    margin: 0;
    max-width: 350px;
}
.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.feature-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid #6b52aa;
    padding: 25px 20px;
}
.feature-grid h3 {
    font-size: 15px;
}
.feature-grid p {
    margin-bottom: 0;
}
.feature-icon {
    color: #bca5ff;
    font:
        700 15px/1.5 ui-monospace,
        monospace;
    margin-bottom: 25px;
}
.end-card {
    border-radius: 4px;
    border-left: 3px solid #bf94ff;
}
.site-card,
.panel,
.page-list,
.welcome-panel,
.clan-hero {
    border-radius: 5px;
}
.sidebar {
    background: #18181f;
}
.site-monogram {
    font-weight: 800;
    border-radius: 4px;
}
.card-art {
    background: linear-gradient(135deg, #202337, var(--primary));
}
.welcome-panel {
    border-left: 3px solid var(--accent);
}
.big-spark {
    color: var(--accent);
}
.page-heading h1,
.welcome-panel h2 {
    letter-spacing: -0.04em;
}
.ql-toolbar.ql-snow .ql-stroke {
    stroke: #c7cee3;
}
.ql-toolbar.ql-snow .ql-fill {
    fill: #c7cee3;
}
.ql-toolbar.ql-snow .ql-picker {
    color: #c7cee3;
}
.ql-toolbar.ql-snow .ql-picker-options,
.ql-snow .ql-tooltip {
    background: #25252f;
    color: #e3e8fa;
    border-color: #536080;
}
.ql-snow .ql-tooltip input[type='text'] {
    color: #e3e8fa;
}
.ql-snow .ql-editor a,
.ql-snow .ql-tooltip a {
    color: #c7afff;
}
.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
    stroke: #bea5ff;
}
.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
    fill: #bea5ff;
}
.ql-toolbar.ql-snow .ql-picker-item:hover,
.ql-toolbar.ql-snow .ql-picker-label:hover {
    color: #bea5ff;
}
.ql-container.ql-snow .ql-editor.ql-blank::before {
    color: #a5aec6;
}
.ql-container.ql-snow .ql-editor:focus-visible {
    outline: 2px solid #bf94ff;
    outline-offset: -3px;
}
@media (max-width: 950px) {
    .hero {
        gap: 28px;
    }
    .hero h1 {
        font-size: 58px;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 700px) {
    .topbar {
        height: 72px;
    }
    .brand-mark {
        line-height: 30px;
        font-size: 17px;
    }
    .hero {
        padding: 40px 0;
        gap: 15px;
    }
    .hero h1 {
        font-size: clamp(44px, 12vw, 64px);
    }
    .hero-art {
        padding: 12px 0;
        max-width: 100%;
    }
    .arena {
        min-height: 265px;
        padding: 24px 20px;
    }
    .arena h2 {
        font-size: 34px;
    }
    .section-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .section-intro h2 {
        font-size: 34px;
    }
    .feature-section {
        padding: 45px 0;
    }
    .feature-grid article {
        padding: 22px 16px;
    }
    .feature-grid h3 {
        font-size: 14px;
    }
    .clan-hero-copy h1 {
        font-size: 40px;
    }
    .public-arena .arena-emblem {
        right: -70px;
    }
}

/* Gaming-channel cues: neon accents, tab rails, and a content-first clan hub. */
.preview-ribbon {
    background: #202027;
}
.topbar {
    background: #16161c;
    max-width: none;
    border-bottom: 2px solid #9146ff;
}
.brand-mark {
    background: #c4ff62;
    box-shadow: 3px 3px 0 #6740a7;
    color: #151019;
}
.hero h1 {
    font-size: clamp(60px, 6.8vw, 94px);
    letter-spacing: -0.065em;
    line-height: 0.98;
}
.hero h1 em {
    color: #bf94ff;
}
.hero .eyebrow {
    color: #c4ff62;
}
.dot {
    background: #c4ff62;
    border-radius: 0;
}
.hero .button:not(.secondary) {
    box-shadow: -4px 4px 0 #422369;
}
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 25px;
}
.game-tags span {
    padding: 4px 9px;
    background: #25252f;
    border-radius: 3px;
    color: #c9c9d4;
    font:
        10px/1.5 ui-monospace,
        monospace;
}
.example-site {
    background: #18181f;
    border-color: #494052;
    border-radius: 4px;
    box-shadow:
        6px 6px 0 #44286a,
        0 28px 70px #0006;
}
.windowbar {
    background: #22222a;
    border-color: #36363f;
}
.mini-nav {
    align-items: center;
    gap: 12px;
    padding: 16px;
}
.mini-nav b {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
}
.clan-avatar {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: #9146ff;
    color: #fff;
    font-weight: 800;
}
.recruiting-tag {
    color: #c4ff62;
    font:
        8px/1.5 ui-monospace,
        monospace;
}
.arena {
    min-height: 255px;
    padding: 25px 22px;
    background: linear-gradient(115deg, #271443 15%, #6833bc 75%, #a76cff);
}
.arena-grid {
    background-image:
        linear-gradient(#cfbaff12 1px, transparent 1px),
        linear-gradient(90deg, #cfbaff12 1px, transparent 1px);
}
.arena-label {
    color: #e8d9ff;
    font-size: 8px;
}
.arena h2 {
    font-size: 39px;
    line-height: 0.98;
    letter-spacing: -0.055em;
    margin: 38px 0 18px;
    max-width: 100%;
    text-shadow: 0 2px 12px #27144388;
}
.arena-tag {
    color: #c4ff62;
    font:
        9px/1.5 ui-monospace,
        monospace;
}
.arena-emblem {
    color: #e0caff;
    top: 10px;
    right: -20px;
    opacity: 0.5;
}
.channel-tabs {
    display: flex;
    gap: 24px;
    padding: 0 17px;
    font-size: 10px;
    border-bottom: 1px solid #34313f;
}
.channel-tabs > * {
    padding: 14px 0 11px;
}
.channel-tabs b {
    color: #c4a1ff;
    border-bottom: 3px solid #a86dff;
}
.hub-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 17px;
}
.hub-card {
    min-height: 110px;
    padding: 15px 12px;
    border: 1px solid #4d3a62;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.guide-card {
    background:
        repeating-linear-gradient(
            135deg,
            transparent 0 18px,
            #aa84f210 18px 19px
        ),
        #30203f;
}
.highlight-card {
    background:
        repeating-linear-gradient(
            -45deg,
            transparent 0 20px,
            #b9f47b10 20px 21px
        ),
        #24332c;
    border-color: #415a40;
}
.hub-card > span {
    position: absolute;
    right: 13px;
    top: 4px;
    font-size: 38px;
    color: #bc96fa;
}
.highlight-card > span {
    color: #c4ff62;
}
.hub-card small {
    color: #bdb7cd;
    font:
        8px/1.5 ui-monospace,
        monospace;
    margin-bottom: 4px;
}
.hub-card b {
    font-size: 12px;
}
.showcase-caption {
    margin-top: 19px;
}
.feature-grid article {
    background: #18181f;
    border-color: #30303c;
    border-top-color: #9146ff;
}
.end-card {
    background: linear-gradient(115deg, #211a30, #302043);
    border-color: #4d3766;
    border-left-color: #c4ff62;
}
.sidebar nav [aria-current='page'] {
    background: #352346;
    color: #dec4ff;
    border-left: 3px solid #a86dff;
    border-radius: 0 4px 4px 0;
}
.plan-badge {
    border-color: #554568;
    color: #d1b5f5;
}
.ql-toolbar.ql-snow .ql-picker-label.ql-active {
    color: #bf94ff;
}
.ql-snow .ql-picker-label.ql-active .ql-stroke {
    stroke: #bf94ff;
}
@media (max-width: 950px) {
    .hero h1 {
        font-size: 70px;
    }
    .arena h2 {
        font-size: 32px;
    }
    .recruiting-tag {
        max-width: 90px;
        text-align: right;
    }
}
@media (max-width: 700px) {
    .hero h1 {
        font-size: clamp(60px, 16vw, 86px);
    }
    .arena h2 {
        font-size: 34px;
    }
    .example-site {
        margin-right: 6px;
    }
    .hub-card {
        min-height: 115px;
    }
    .channel-tabs {
        gap: 23px;
    }
    .showcase-caption {
        font-size: 9px;
    }
}

/* MUD art keeps its columns; horizontal scrolling stays inside the code block. */
.prose pre {max-width:100%; overflow-x:auto; white-space:pre;}
.prose code.xterm, .prose code.language-xterm {display:block; min-width:max-content; background:#000; color:#c0c0c0; font-family:ui-monospace,monospace; line-height:1.35; tab-size:4; padding:1rem;}
.public-columns > * {min-width:0;}
.ql-editor pre.clan-code {background:#101018; color:#eee; white-space:pre; overflow:auto; cursor:pointer; padding:1rem;}
dialog.code-dialog {max-width:min(95vw,800px); width:95%; background:#17171f; color:#eee; border:1px solid #777; border-radius:8px;}
dialog.code-dialog textarea {width:100%; min-height:280px; font-family:monospace; white-space:pre;}

@media (max-width: 380px) {
    .topbar { padding-inline: 12px; }
    .topbar nav { gap: 8px; }
}
