/* ------------------------------------------------------------------
   PixelBattle.net
   Static rebuild of the 2017 Wix site. Colours, type sizes and
   proportions are taken from the archived Wix markup.
   ------------------------------------------------------------------ */

/* Jockey One was the display face on the original site (Wix --font_0).
   Self-hosted here so the page has no external dependencies. */
@font-face {
  font-family: 'Jockey One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jockey-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jockey One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jockey-one-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  /* Palette lifted from the Wix theme variables */
  --pb-grey: #f0f0f0;         /* color_12 - header, footer, section boxes */
  --pb-black: #000;           /* color_15 - headings */
  --pb-ink: #1a1a1a;
  --pb-green: #64b743;        /* color_18 */
  --pb-green-dark: #437a2d;   /* color_19 */
  --pb-green-darker: #265714; /* color_20 */
  --pb-green-pale: #bbe4ac;   /* color_17 */
  --pb-red: #ed1c24;          /* color_23 */
  --pb-sky: #6d95ee;          /* sampled from the banner image */
  --pb-rule: #d5d5d5;

  --pb-display: 'Jockey One', 'Haettenschweiler', 'Arial Narrow', 'Arial Narrow Bold', Impact, sans-serif;
  --pb-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --pb-width: 980px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--pb-ink);
  font-family: var(--pb-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden; /* the page itself never scrolls sideways */
}

img { max-width: 100%; height: auto; }

a { color: var(--pb-green-dark); }
a:hover { color: var(--pb-green-darker); }

:focus-visible {
  outline: 3px solid var(--pb-green-darker);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--pb-green-darker);
  padding: 10px 16px;
  border: 2px solid var(--pb-green-darker);
  font-size: 15px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

.wrap {
  max-width: var(--pb-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- header */

.site-header { background: var(--pb-grey); }

/* Blue sky strip with drifting blocks. 196px tall on the original. */
.banner {
  height: 196px;
  background-color: var(--pb-sky);
  background-image: url('assets/e74ee6_a3f4987464574a38a9a395cdc3ebac76~mv2.png');
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-inner {
  max-width: var(--pb-width);
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.banner a {
  color: var(--pb-black);
  text-decoration: none;
}
.banner a:hover { text-decoration: underline; }

.wordmark,
.tagline {
  font-family: var(--pb-display);
  font-size: 60px;
  line-height: 1.1;
  margin: 0;
  flex: 1 1 0;
}
.wordmark { text-align: right; }
.tagline { text-align: left; }

.banner-logo {
  width: 103px;
  height: 102px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------- nav */

.site-nav {
  background: var(--pb-grey);
  border-bottom: 1px solid var(--pb-rule);
}

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 20px;
  max-width: var(--pb-width);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}

.site-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--pb-black);
  text-decoration: none;
  border-bottom: 4px solid transparent;
}
.site-nav a:hover { color: var(--pb-green-darker); text-decoration: underline; }

/* Current page: green text, bold, and a green underline, so the state is
   never carried by colour on its own. */
.site-nav a[aria-current='page'] {
  color: var(--pb-green-dark);
  font-weight: 700;
  border-bottom-color: var(--pb-green);
}

/* ------------------------------------------------------------------ main */

main { padding: 40px 0 56px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pb-display);
  font-weight: 400;
  color: var(--pb-black);
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }

.lead {
  font-size: 20px;
  margin: 0 0 24px;
}

p { margin: 0 0 16px; }

.centred { text-align: center; }

/* Grey section-heading box, as used for DONATIONS / EVENTS: / BLOG: */
.box-head {
  background: var(--pb-grey);
  padding: 10px 16px;
  margin: 0 0 16px;
  font-size: 21px;
}

/* ---------------------------------------------------------- home gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--pb-grey);
}
.gallery figcaption {
  font-size: 14px;
  padding: 8px 2px 0;
  color: #555;
}

/* ------------------------------------------------- server address notice */

.server-note {
  border-top: 4px solid var(--pb-red);
  border-bottom: 4px solid var(--pb-red);
  padding: 18px 16px;
  margin: 0 0 32px;
  text-align: center;
}
.server-note p {
  margin: 0;
  font-family: var(--pb-display);
  font-size: 21px;
  color: var(--pb-black);
}

/* ------------------------------------------------------------ home cards */

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 0 40px;
}
.cols > section > p { text-align: center; }
.cols .box-head { text-align: center; }

.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 14px;
}
.events-list li { padding: 2px 0; }
.events-list .sep { color: var(--pb-red); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  background: var(--pb-green-dark);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 22px;
  border: 2px solid var(--pb-green-dark);
  transition: background-color .3s ease, border-color .3s ease;
}
.btn:hover,
.btn:focus {
  background: var(--pb-green-darker);
  border-color: var(--pb-green-darker);
  color: #fff;
}

/* ------------------------------------------------------------ blog cards */

.post-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.post-cards li {
  border: 1px solid var(--pb-rule);
  display: flex;
  flex-direction: column;
}
.post-cards img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-cards .card-body { padding: 14px 16px 18px; }
.post-cards h3 { font-size: 19px; margin-bottom: 8px; }
.post-cards h3 a { text-decoration: none; color: var(--pb-black); }
.post-cards h3 a:hover { text-decoration: underline; }
.post-cards p { font-size: 15px; margin: 0; color: #444; }

/* ------------------------------------------------------- staff & members */

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 40px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.person {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.person img {
  flex: 0 0 auto;
  width: 120px;
  background: var(--pb-grey);
}
.person .name {
  background: var(--pb-grey);
  padding: 6px 12px;
  margin: 0 0 8px;
  font-size: 16px;
  font-family: var(--pb-body);
  display: inline-block;
}
.person .rank {
  font-family: var(--pb-display);
  color: var(--pb-black);
  font-size: 21px;
  margin: 0;
}

.members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.member {
  display: flex;
  align-items: center;
  gap: 18px;
}
.member img { width: 96px; flex: 0 0 auto; }
.member .name {
  background: var(--pb-grey);
  padding: 6px 12px;
  margin: 0;
  font-size: 16px;
  font-family: var(--pb-body);
}

/* ----------------------------------------------------------------- rules */

.rules-list {
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 28px;
  padding-left: 24px;
}
.rules-list li { padding: 4px 0; }

.ban-notice {
  color: #b3151b;
  font-family: var(--pb-display);
  font-size: 21px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.rules-icons {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  margin: 0 0 28px;
}

/* ---------------------------------------------------------------- donate */

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: start;
}
.donate-figure { margin: 0; text-align: center; }

/* ------------------------------------------------------------- blog post */

.post { max-width: 720px; margin: 0 auto; }
.post-meta {
  font-size: 14px;
  color: #555;
  margin: 0 0 20px;
}
.post-body p { margin: 0 0 16px; }
.post-body figure { margin: 24px 0; }
.post-body figcaption { font-size: 14px; color: #555; padding-top: 8px; }

/* Long Minecraft commands scroll inside their own box. */
.cmd {
  background: var(--pb-grey);
  border-left: 4px solid var(--pb-green-dark);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
  margin: 0 0 20px;
}
.cmd-wrap { white-space: pre-wrap; word-break: break-word; }

.tags {
  font-size: 14px;
  color: #555;
  margin: 28px 0 0;
}

.post-nav {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--pb-rule);
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive-list > li {
  border-bottom: 1px solid var(--pb-rule);
  padding: 20px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.archive-list img { width: 200px; flex: 0 0 auto; }
.archive-list h2 { font-size: 22px; margin-bottom: 6px; }
.archive-list h2 a { color: var(--pb-black); text-decoration: none; }
.archive-list h2 a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--pb-grey);
  padding: 22px 0;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.site-footer img { width: 23px; height: 23px; display: block; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
  .cols,
  .gallery,
  .post-cards { grid-template-columns: 1fr; }
  .people,
  .members { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .donate-figure { text-align: center; }
}

@media (max-width: 700px) {
  .banner { height: 150px; }
  .banner-inner { gap: 10px; }
  .wordmark,
  .tagline { font-size: 34px; }
  .banner-logo { width: 66px; height: 65px; }
  h1 { font-size: 32px; }
  .lead { font-size: 18px; }
  .archive-list > li { flex-direction: column; }
  .archive-list img,
  .archive-list .no-cover { width: 100%; }
  main { padding: 28px 0 40px; }
}

@media (max-width: 460px) {
  .banner { height: 120px; }
  .wordmark,
  .tagline { font-size: 24px; }
  .banner-logo { width: 48px; height: 47px; }
  .person { flex-direction: column; }
  .site-nav a { padding: 10px; }
}
