/* Rosmontis: modern and technical, after the clean field look of Rhodes Island. Slate blue, cyan and
   white; square corners, thin lines, condensed capitals, quiet blades and the pixel lining of her coat. */

html:has(.theme-rosmontis) { background: #364359; }

.theme-rosmontis {
  --bg: #364359;
  --bg-soft: #253046;
  --card: rgb(34 44 62 / .84);
  --card-edge: rgb(255 255 255 / .15);
  --text: #ffffff;
  --muted: #c6d1e2;
  --accent: #22c4e7;
  --accent-ink: #04222b;
  --good: #5fe3a1;
  --warn: #ffd166;
  --bad: #ff8f98;
  --radius: 0px;
  --display: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  background: transparent;
}

.theme-rosmontis .backdrop {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url("ros-backdrop-1.svg") center / cover no-repeat, linear-gradient(155deg, #41506a 0%, #364359 42%, #222c40 100%);
}
.theme-rosmontis .backdrop::after {
  content: "RHODES ISLAND"; position: fixed; right: 10px; bottom: 34px; writing-mode: vertical-rl;
  font: 700 clamp(44px, 10.5vh, 110px) / 1 var(--display); font-stretch: 75%; letter-spacing: .04em;
  color: rgb(255 255 255 / .06);
}

.theme-rosmontis h1, .theme-rosmontis h2, .theme-rosmontis h3, .theme-rosmontis .brand-text strong {
  font-family: var(--display); font-stretch: 84%; letter-spacing: .035em; text-transform: uppercase; font-weight: 650;
}
.theme-rosmontis h2 code { text-transform: none; letter-spacing: 0; background: none; padding: 0; color: #fff; }

/* the top bar */
.theme-rosmontis .topbar {
  position: sticky; top: 0; z-index: 5; padding-block: 10px; background: rgb(24 32 47 / .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / .16);
  box-shadow: inset 0 -3px 0 -1px transparent;
}
.theme-rosmontis .topbar::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: min(38vw, 420px); height: 3px;
  background: linear-gradient(90deg, var(--accent) 0 72%, transparent 72% 74%, #fff 74% 80%, transparent 80% 82%, rgb(255 255 255 / .6) 82% 100%);
}
.theme-rosmontis .brand-icon { border: 1px solid rgb(255 255 255 / .3); width: 40px; height: 40px; }
.theme-rosmontis .brand-text strong { font-size: 1.12rem; letter-spacing: .1em; }
.theme-rosmontis .brand-text small { letter-spacing: .03em; }

/* headings of a page */
.theme-rosmontis .hud-tag { display: flex; align-items: center; gap: 10px; font-family: var(--display); letter-spacing: .18em; }
.theme-rosmontis .hud-tag::before { content: ""; width: 26px; height: 8px; background: repeating-linear-gradient(115deg, var(--accent) 0 4px, transparent 4px 7px); }
.theme-rosmontis .page-head { padding-bottom: 14px; border-bottom: 1px solid rgb(255 255 255 / .18); position: relative; margin-bottom: 22px; }
.theme-rosmontis .page-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 3px; background: #fff; }
.theme-rosmontis .page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1; margin-bottom: 10px; }

/* cards: corner brackets instead of rounded boxes */
.theme-rosmontis .panel, .theme-rosmontis .form-card, .theme-rosmontis .server-card, .theme-rosmontis .callout, .theme-rosmontis .fatal-card {
  border: 1px solid var(--card-edge); backdrop-filter: blur(6px);
  background:
    linear-gradient(var(--accent) 0 0) left top / 18px 2px no-repeat border-box,
    linear-gradient(var(--accent) 0 0) left top / 2px 18px no-repeat border-box,
    linear-gradient(#fff 0 0) right bottom / 18px 2px no-repeat border-box,
    linear-gradient(#fff 0 0) right bottom / 2px 18px no-repeat border-box,
    var(--card);
}
.theme-rosmontis .panel, .theme-rosmontis .form-card { padding: 20px; }
.theme-rosmontis .callout { background: linear-gradient(90deg, rgb(34 196 231 / .16), rgb(34 44 62 / .6)); border-left: 3px solid var(--accent); }
.theme-rosmontis .callout-error { background: linear-gradient(90deg, rgb(255 143 152 / .2), rgb(34 44 62 / .6)); border-left-color: var(--bad); }
.theme-rosmontis .flash { border-radius: 0; background: rgb(24 32 47 / .9); border: 1px solid var(--card-edge); border-left: 4px solid var(--muted); }
.theme-rosmontis .flash-ok { border-left-color: var(--good); }
.theme-rosmontis .flash-warning { border-left-color: var(--warn); }
.theme-rosmontis .flash-error { border-left-color: var(--bad); }

/* numbers */
.theme-rosmontis .stat { position: relative; overflow: hidden; }
.theme-rosmontis .stat::after {
  content: ""; position: absolute; right: 14px; top: 16px; width: 46px; height: 12px; opacity: .5;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 6px, transparent 6px 11px);
}
.theme-rosmontis .stat-label { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; }
.theme-rosmontis .stat-value { font-family: var(--display); font-stretch: 84%; font-size: 2.1rem; line-height: 1.15; }
.theme-rosmontis .pulse { border-radius: 0; width: 12px; height: 12px; transform: rotate(45deg); }
.theme-rosmontis .stat-online .pulse { box-shadow: 0 0 14px var(--good); }

/* the rail */
.theme-rosmontis .rail-nav { gap: 4px; }
.theme-rosmontis .rail-group { font-family: var(--display); letter-spacing: .18em; border-bottom: 1px solid rgb(255 255 255 / .16); padding-bottom: 4px; }
.theme-rosmontis .rail-nav a { border-radius: 0; border-left: 2px solid transparent; transition: background-color .15s, padding-left .15s; }
.theme-rosmontis .rail-nav a:hover { background: rgb(255 255 255 / .09); border-left-color: var(--accent); padding-left: 16px; }
.theme-rosmontis .rail-nav a[aria-current="page"] { background: #fff; color: #1d2638; box-shadow: none; border-left: 6px solid var(--accent); font-weight: 600; }
.theme-rosmontis .rail-nav a[aria-current="page"] .rail-index { color: #0b6f86; }
.theme-rosmontis .rail-index, .theme-rosmontis .server-index, .theme-rosmontis .hud-index { font-family: var(--display); }
.theme-rosmontis .rail-guild img, .theme-rosmontis .server-initials, .theme-rosmontis .server-icon { border-radius: 0; }

/* servers and links */
.theme-rosmontis .server-card, .theme-rosmontis .nav-card { transition: transform .16s, background-color .16s; }
.theme-rosmontis .server-card { padding: 16px; }
.theme-rosmontis .server-card:hover, .theme-rosmontis .nav-card:hover { transform: translateX(4px); background-color: rgb(34 196 231 / .16); border-color: var(--accent); }
.theme-rosmontis .badge, .theme-rosmontis .status, .theme-rosmontis .state, .theme-rosmontis .tag, .theme-rosmontis .role-chip { border-radius: 0; }
.theme-rosmontis .badge { font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; }
.theme-rosmontis .badge-owner { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* buttons and fields */
.theme-rosmontis .btn {
  border-radius: 0; font-family: var(--display); letter-spacing: .07em; text-transform: uppercase; font-size: .95rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); transition: background-color .15s, color .15s;
}
.theme-rosmontis .btn-primary:hover { background: #fff; color: #1d2638; }
.theme-rosmontis :is(.btn-ghost, .btn-danger) { clip-path: none; }
.theme-rosmontis .btn-ghost { border-color: #fff; color: #fff; }
.theme-rosmontis .btn-ghost:hover { background: #fff; color: #1d2638; }
.theme-rosmontis .btn-danger:hover { background: var(--bad); color: #2a0509; }
.theme-rosmontis .btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff; }
.theme-rosmontis :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-radius: 0; background: rgb(17 24 37 / .72); border: 1px solid rgb(255 255 255 / .24); border-bottom: 2px solid rgb(255 255 255 / .45);
}
.theme-rosmontis :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-bottom-color: var(--accent); }
.theme-rosmontis a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.theme-rosmontis :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--accent); }
.theme-rosmontis .preview, .theme-rosmontis .sub-card, .theme-rosmontis .field-group { border-radius: 0; }

/* the front page */
.theme-rosmontis.is-home .hero { min-height: 46vh; display: grid; align-content: center; padding: 40px 0 32px; }
.theme-rosmontis.is-home .display { font-size: clamp(2.6rem, 7vw, 5rem); line-height: .96; max-width: 14ch; margin-bottom: 18px; }
.theme-rosmontis.is-home .lead { font-size: 1.1rem; color: #e6ecf6; }
.theme-rosmontis.is-home .feature { background-color: rgb(24 32 47 / .7); }
.theme-rosmontis .footer { letter-spacing: .04em; }

@media (max-width: 1100px) { .theme-rosmontis .backdrop::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .theme-rosmontis * { transition: none !important; } }
