/* The Court of Hedgehogs — stylesheet of the realm.
   Aesthetic: pixel-art heraldry on early-2000s ceremonial parchment. */

@font-face {
  font-family: 'Press Start 2P';
  src: url('assets/fonts/PressStart2P-Regular.ttf') format('truetype');
  font-display: swap;
}

body {
  background: #e7dcc0 url('assets/bg-tile.png') repeat;
  color: #2b2417;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  padding: 1.5rem 0.5rem 3rem;
}

a { color: #7c4a12; }
a:visited { color: #5b3a1e; }
a:hover { background: #f2ca4d; }

/* The grand central table, as the ancients intended */
table.frame {
  margin: 0 auto;
  width: 96%;
  max-width: 680px;
  table-layout: fixed;
  border-collapse: separate;
  border: 4px outset #b39a5e;
  background: #fffdf4;
}
table.frame > tbody > tr > td { padding: 0; }

.inner {
  border: 3px double #8a7a4f;
  margin: 6px;
  padding: 1.8rem 2.2rem 2.2rem;
  text-align: center;
}

.pixel, h1, h2 {
  font-family: 'Press Start 2P', monospace;
  color: #5b4632;
}
h1 {
  font-size: 19px;
  line-height: 1.6;
  margin: 0.8rem 0 0.4rem;
  text-shadow: 2px 2px 0 #f2ca4d;
}
h2 {
  font-size: 12px;
  line-height: 1.8;
  margin: 2.2rem 0 0.8rem;
}

.subtitle {
  font-style: italic;
  color: #6b5f41;
  margin-top: 0;
}

img.pixelart { image-rendering: pixelated; max-width: 100%; height: auto; }

.marquee-band {
  background: #5b4632;
  color: #f2ca4d;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 6px 0;
}

.divider {
  background: url('assets/divider.png') repeat-x center;
  height: 32px;
  margin: 1.4rem auto;
  width: 75%;
}

/* Proclamation scroll */
.proclamation {
  background: #f6efdd;
  border: 2px solid #c9b87e;
  padding: 1.2rem 1.6rem;
  margin: 0.5rem 0;
  text-align: left;
}
.proclamation .opening { font-variant: small-caps; }
.decree-no {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #a83232;
}
.dateline {
  font-style: italic;
  color: #6b5f41;
  font-size: 0.9em;
}
.signature {
  text-align: right;
  font-style: italic;
  margin-top: 1.4rem;
}
.signature .royal {
  font-variant: small-caps;
  font-style: normal;
  font-weight: bold;
  letter-spacing: 0.06em;
}

/* The officials */
table.court { margin: 0 auto; border-collapse: collapse; }
table.court td {
  width: 33%;
  padding: 0.6rem 0.9rem;
  vertical-align: top;
  text-align: center;
}
.official-title {
  font-variant: small-caps;
  font-weight: bold;
  display: block;
  margin-top: 0.5rem;
}
.official-blurb { font-size: 0.85em; color: #5d5236; }

/* Footer regalia */
.counter {
  display: inline-block;
  background: #1a1a14;
  color: #7CFC00;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  letter-spacing: 4px;
  padding: 7px 10px 5px 14px;
  border: 2px inset #8a7a4f;
}
.counter-caption { font-size: 0.8em; color: #6b5f41; }

.badges { margin: 1.4rem 0 0.4rem; }
.badge {
  display: inline-block;
  width: 88px;
  height: 31px;
  margin: 2px;
  background: #5b4632;
  color: #f6efdd;
  border: 2px outset #b39a5e;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  line-height: 1.7;
  padding-top: 4px;
  box-sizing: border-box;
  vertical-align: middle;
}
.badge .gold { color: #f2ca4d; }

.smallprint {
  font-size: 0.75em;
  color: #6b5f41;
  margin-top: 1.6rem;
}

/* Even a Court must accommodate the pocket-sized scrying glass */
@media (max-width: 520px) {
  .inner { padding: 1.2rem 0.9rem 1.6rem; }
  table.court, table.court tbody, table.court tr, table.court td {
    display: block;
    width: auto;
  }
  table.court td { padding: 0.8rem 0.4rem; }
}
