:root {
  color-scheme: dark;
  --background: #060a13;
  --surface: #0b1120;
  --surface-raised: #101827;
  --surface-muted: #0d1524;
  --border: #243047;
  --border-strong: #38506d;
  --text: #f6f8fc;
  --text-soft: #c4ccda;
  --text-muted: #8995aa;
  --teal: #62e6ce;
  --teal-dark: #163b38;
  --blue: #71b7ff;
  --green: #71d68f;
  --yellow: #e7c76b;
  --red: #ec8792;
  --focus: #8ed9ff;
  --container: 1280px;
  --content: 760px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

body,
button,
input,
select {
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
}

h1 {
  margin-bottom: 20px;
  font-size: 48px;
}

h2 {
  margin-bottom: 16px;
  font-size: 31px;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

p {
  color: var(--text-soft);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.narrow-left {
  max-width: var(--container);
}

.narrow-left > * {
  max-width: 760px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--text);
  color: var(--background);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 76px;
  border-bottom: 1px solid rgba(56, 80, 109, 0.65);
  background: rgba(6, 10, 19, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  min-height: 76px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #2e6c68;
  border-radius: 7px;
  background: #0c2626;
  color: var(--teal);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
}

.brand-text small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 4px;
}

.desktop-nav a {
  padding: 8px 9px;
  border-radius: 5px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--text);
}

.header-actions,
.hero-actions,
.inline-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.button-small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.button-primary {
  border-color: #49cdb6;
  background: #48cdb5;
  color: #041210;
}

.button-primary:hover {
  border-color: #78f0d9;
  background: #78e4d1;
}

.button-secondary {
  border-color: var(--border-strong);
  background: #101a2b;
  color: var(--text);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: #4d6d91;
  background: #172338;
}

.button-quiet {
  border-color: var(--border);
  background: transparent;
  color: var(--text-soft);
}

.button-discord {
  border-color: #526489;
  background: #303a58;
  color: #f2f5ff;
}

.button-discord:hover {
  border-color: #6f84b2;
  background: #3b496d;
}

.button-store {
  border-color: #355575;
  background: #162439;
  color: #dceafb;
}

.button-store:hover {
  border-color: #49759e;
  background: #1c304b;
}

.button-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  color: var(--blue);
  font-weight: 750;
}

.text-link:hover {
  color: #a2d1ff;
  text-decoration: underline;
}

.mobile-menu {
  display: none;
}

.home-hero {
  position: relative;
  display: flex;
  min-height: min(68vh, 650px);
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-image: url("../images/branding/home-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-shade,
.server-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 15, 0.66);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 88px 72px;
}

.hero-content h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 56px;
}

.hero-content > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 30px;
  color: #e2e8f2;
  font-size: 20px;
}

.section {
  padding-block: 80px;
}

.section-muted {
  border-block: 1px solid var(--border);
  background: var(--surface-muted);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.status-band {
  padding-block: 56px;
  border-bottom: 1px solid var(--border);
  background: #080e1b;
}

.status-band-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: 60px;
}

.status-band-copy h2 {
  margin-bottom: 12px;
}

.status-band-copy p:not(.eyebrow) {
  max-width: 590px;
  margin-bottom: 16px;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.summary-metrics > div {
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}

.summary-metrics > div:last-child {
  border-right: 0;
}

.summary-metrics dt {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 30px;
  font-weight: 850;
  line-height: 1.1;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.server-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #080e1b;
}

.server-card:hover {
  border-color: var(--border-strong);
}

.server-artwork {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0d1725;
}

.server-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  padding: 24px;
  background: #0e1d2b;
  color: var(--text-soft);
  text-align: center;
}

.artwork-fallback span {
  color: var(--teal);
  font-size: 43px;
  line-height: 1;
}

.artwork-fallback strong {
  margin-top: 4px;
  font-size: 15px;
}

.status-strip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.status-badge,
.status-detail {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #3b4b64;
  border-radius: 5px;
  background: rgba(8, 14, 27, 0.94);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.status-online {
  border-color: #2b745d;
  color: #91edc4;
}

.status-offline {
  border-color: #864650;
  color: #ffabb4;
}

.status-unavailable,
.status-untracked {
  border-color: #5c6472;
  color: #c6ccd5;
}

.status-loading {
  border-color: #45627e;
  color: #a8c9e7;
}

.server-card-body {
  padding: 24px;
}

.server-game {
  margin-bottom: 8px;
  color: #9cb1ca;
  font-size: 13px;
  font-weight: 700;
}

.server-card h3 {
  margin-bottom: 9px;
  font-size: 25px;
}

.server-card h3 a:hover,
.status-row h2 a:hover,
.content-card h2 a:hover,
.content-card h3 a:hover {
  color: var(--teal);
}

.server-card-body > p:not(.server-game, .status-meta) {
  min-height: 78px;
  margin-bottom: 20px;
}

.server-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.server-facts div {
  min-width: 0;
}

.server-facts dt,
.connection-row span,
.sidebar-block > span,
.status-row-connection > span {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.server-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.connection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 -24px 20px;
  padding: 14px 24px;
  background: #0d1524;
}

.connection-row code,
.sidebar-block code,
.status-row-connection code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #c9fbf2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  min-width: 78px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: #111c2d;
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.status-meta {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.content-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}

.tag-list span {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 11px;
}

.community-band {
  border-top: 1px solid #2a4e4a;
  background: #0c2726;
}

.community-band-inner {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-block: 54px;
}

.community-band-inner > div:first-child {
  max-width: 760px;
}

.community-band-inner h2 {
  margin-bottom: 12px;
}

.page-header {
  padding-block: 78px 64px;
  border-bottom: 1px solid var(--border);
  background: #080e1b;
}

.page-header h1 {
  margin-bottom: 18px;
}

.page-header p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 19px;
}

.directory-section {
  padding-top: 44px;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 280px);
  gap: 14px;
  margin-bottom: 12px;
}

.directory-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 750;
}

.directory-toolbar input,
.directory-toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.results-count {
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 13px;
}

.empty-filter,
.empty-state {
  padding: 56px 24px;
  border-block: 1px solid var(--border);
  text-align: center;
}

.server-hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0d1826;
}

.server-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 460px;
  max-width: var(--container);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-block: 72px;
}

.server-hero-content h1 {
  margin-bottom: 14px;
}

.server-hero-content > p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 24px;
  color: #e1e7f0;
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 64px;
}

.lead-copy {
  max-width: 820px;
  font-size: 18px;
}

.detail-section {
  padding-top: 48px;
}

.detail-section > h2 {
  font-size: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.feature-grid article {
  padding: 24px;
  background: var(--surface);
}

.feature-grid h3 {
  font-size: 17px;
}

.feature-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 54px;
  padding: 12px 0 16px 58px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 9px;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #31776c;
  border-radius: 5px;
  color: var(--teal);
  content: counter(step);
  font-weight: 800;
}

.detail-sidebar {
  position: sticky;
  top: 105px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.status-panel,
.sidebar-block,
.fact-list,
.sidebar-links {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.status-panel {
  display: grid;
  gap: 10px;
}

.status-panel .status-badge {
  justify-self: start;
}

.status-panel > span:last-child {
  color: var(--text-muted);
  font-size: 12px;
}

.sidebar-block code {
  margin: 4px 0 14px;
}

.fact-list {
  margin: 0;
}

.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 8px 0;
}

.fact-list dt {
  color: var(--text-muted);
  font-size: 13px;
}

.fact-list dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.sidebar-links {
  display: grid;
  gap: 10px;
  border-bottom: 0;
}

.sidebar-links a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.vote-list {
  border-top: 1px solid var(--border);
}

.vote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  align-items: center;
  gap: 60px;
  padding-block: 34px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.vote-row h2 {
  margin-bottom: 8px;
  font-size: 25px;
}

.vote-row p {
  margin-bottom: 0;
}

.vote-links {
  display: grid;
  gap: 9px;
}

.unavailable-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-soft);
}

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

.article-header {
  padding-block: 78px 54px;
  border-bottom: 1px solid var(--border);
  background: #080e1b;
}

.article-container {
  max-width: var(--content);
}

.article-header > div > p:not(.eyebrow) {
  font-size: 19px;
}

.article-header span {
  color: var(--text-muted);
  font-size: 13px;
}

.article-body {
  padding-block: 58px 32px;
  color: var(--text-soft);
}

.article-body h2 {
  margin-top: 46px;
  font-size: 27px;
}

.article-body li {
  margin-block: 8px;
}

.article-body code {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: #c8fff4;
}

.article-footer {
  padding-block: 16px 70px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}

.rules-nav {
  position: sticky;
  top: 104px;
  display: grid;
  border-left: 1px solid var(--border);
}

.rules-nav strong,
.rules-nav a {
  padding: 8px 0 8px 18px;
}

.rules-nav strong {
  margin-bottom: 6px;
  color: var(--text);
}

.rules-nav a {
  color: var(--text-muted);
  font-size: 13px;
}

.rules-nav a:hover {
  color: var(--teal);
}

.rules-content {
  max-width: 860px;
}

.rule-section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 46px;
  margin-bottom: 46px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.rule-number {
  color: var(--teal);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 750;
}

.rule-section h2 {
  font-size: 26px;
}

.rule-section ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.support-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 30px;
  border: 1px solid #2f625c;
  border-radius: 8px;
  background: #0c2222;
}

.support-callout h2 {
  font-size: 24px;
}

.support-callout p:last-child {
  margin-bottom: 0;
}

.summary-wide {
  max-width: 840px;
  margin-bottom: 42px;
}

.status-list {
  border-top: 1px solid var(--border);
}

.status-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.7fr) minmax(250px, 0.8fr);
  align-items: center;
  gap: 32px;
  min-height: 116px;
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
}

.status-row h2 {
  margin-bottom: 0;
  font-size: 21px;
}

.status-row-state {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.status-row-state > span:last-child {
  color: var(--text-muted);
  font-size: 12px;
}

.status-row-connection {
  min-width: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.about-grid section {
  min-height: 280px;
  padding: 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.about-grid section:nth-child(2n) {
  border-right: 0;
}

.about-grid section:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.about-grid h2 {
  font-size: 25px;
}

.error-page {
  display: flex;
  min-height: 65vh;
  align-items: center;
  text-align: center;
}

.error-page .container {
  max-width: 680px;
}

.error-page .inline-actions {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #04070d;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) 1fr 0.7fr;
  gap: 60px;
  padding-block: 54px 42px;
}

.footer-grid > div:first-child p {
  max-width: 460px;
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 14px;
}

.footer-grid nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 8px 20px;
}

.footer-grid nav a,
.footer-community a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid nav a:hover,
.footer-community a:hover {
  color: var(--text);
}

.footer-community {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-community strong {
  margin-bottom: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  border-top: 1px solid #151d2a;
  color: #687386;
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1160px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    min-width: 48px;
    min-height: 42px;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    top: 52px;
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: #0a111e;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }

  .mobile-menu nav a {
    padding: 10px 12px;
    border-radius: 4px;
    color: var(--text-soft);
    font-weight: 650;
  }

  .mobile-menu nav a:hover {
    background: var(--surface-raised);
    color: var(--text);
  }

  .server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-band-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 820px) {
  h1,
  .hero-content h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 28px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-actions {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .home-hero {
    min-height: 620px;
  }

  .hero-content {
    padding-block: 70px 52px;
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 18px;
  }

  .section {
    padding-block: 62px;
  }

  .section-heading,
  .community-band-inner,
  .support-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-grid,
  .server-grid,
  .about-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .about-grid section,
  .about-grid section:nth-child(2n),
  .about-grid section:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .about-grid section:last-child {
    border-bottom: 0;
  }

  .detail-layout,
  .rules-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .detail-sidebar,
  .rules-nav {
    position: static;
  }

  .rules-nav {
    grid-template-columns: 1fr 1fr;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }

  .rules-nav strong {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .rules-nav a {
    padding-left: 0;
  }

  .vote-row,
  .status-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .summary-wide {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .summary-metrics > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .summary-metrics > div:last-child {
    border-bottom: 0;
  }

  .summary-metrics dt {
    margin-bottom: 0;
  }

  .summary-metrics dd {
    font-size: 25px;
  }

  .server-card-body {
    padding: 20px;
  }

  .connection-row {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .server-facts {
    gap: 8px;
  }

  .server-facts dd {
    font-size: 12px;
  }

  .directory-toolbar {
    grid-template-columns: 1fr;
  }

  .server-hero,
  .server-hero-content {
    min-height: 500px;
  }

  .rule-section {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
