:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5e6b78;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --line: #dce3e8;
  --green: #2f7d46;
  --green-dark: #215f34;
  --blue: #235b80;
  --amber: #b47022;
  --charcoal: #111820;
  --shadow: 0 18px 46px rgba(17, 24, 32, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 28px;
  color: #fff;
  background: rgba(17, 24, 32, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, .12);
  outline: none;
}

.hero {
  min-height: 68vh;
  display: grid;
  align-items: end;
  padding: 110px 28px 64px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 32, .92), rgba(17, 24, 32, .58) 48%, rgba(17, 24, 32, .2)),
    url("portal-hero.png") center / cover no-repeat;
}

.hero--compact {
  min-height: 48vh;
  background-position: center;
}

.minecraft-page .hero {
  background:
    linear-gradient(90deg, rgba(17, 24, 32, .62), rgba(17, 24, 32, .28) 52%, rgba(17, 24, 32, .08)),
    url("minecraft_Image.png") center / cover no-repeat,
    url("portal-hero.png") center / cover no-repeat;
}

.minecraft-page .hero--compact {
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}

.hero__content {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.home-page .hero {
  min-height: 46vh;
  align-items: center;
  padding: 72px 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(17, 24, 32, .48), rgba(17, 24, 32, .24)),
    url("portal-hero.png") center / cover no-repeat;
}

.home-page .hero h1,
.home-page .hero__lead {
  margin-left: auto;
  margin-right: auto;
}

.home-page .hero__lead {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1b260;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
  letter-spacing: 0;
}

.minecraft-page .hero h1 {
  max-width: 1120px;
  font-size: clamp(42px, 6.2vw, 72px);
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.minecraft-page .hero__lead {
  margin-left: auto;
  margin-right: auto;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 720px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
}

.action-row,
.tile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.tile__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.button--primary {
  color: #fff;
  background: var(--green);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--green-dark);
}

.button--secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .1);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(255, 255, 255, .18);
}

.server-actions {
  margin-top: 14px;
}

.server-actions__message {
  min-height: 26px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.content-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 0;
}

.content-band--plain {
  padding-top: 34px;
}

.section-heading {
  margin-bottom: 20px;
}

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

.tile,
.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tile {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--blue);
}

.tile--race::before {
  background: var(--green);
}

.tile--minecraft::before {
  background: var(--amber);
}

.tile__label,
.info-panel__label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tile p,
.info-panel p,
.rule-list p {
  color: var(--muted);
}

.tile__links a {
  min-height: 40px;
  color: var(--blue);
  border: 1px solid #bdd2df;
  background: #eef5f8;
  font-size: 14px;
}

.tile__links a:hover,
.tile__links a:focus-visible {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

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

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

.info-panel {
  min-height: 190px;
  padding: 24px;
}

.rule-list {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.rule-list p {
  margin-bottom: 0;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 24px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 12px 18px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 62vh;
    padding: 88px 18px 48px;
    background:
      linear-gradient(180deg, rgba(17, 24, 32, .9), rgba(17, 24, 32, .64)),
      url("portal-hero.png") center / cover no-repeat;
  }

  .hero--compact {
    min-height: 44vh;
  }

  .home-page .hero {
    min-height: 42vh;
    padding: 58px 18px;
    background:
      linear-gradient(180deg, rgba(17, 24, 32, .52), rgba(17, 24, 32, .3)),
      url("portal-hero.png") center / cover no-repeat;
  }

  .minecraft-page .hero h1 {
    font-size: clamp(38px, 8vw, 58px);
    white-space: normal;
  }

  .tile-grid,
  .info-grid,
  .info-grid--server {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 0;
    padding: 22px;
  }
}

@media (max-width: 460px) {
  .button,
  .tile__links a {
    width: 100%;
  }
}
