/* Bobby's Bestiary - style.css */
/* Dark hunter's journal aesthetic, early 2000s web */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1a1a1a;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAMklEQVQIW2P48OHDfwYGBgYmBgYGRhBhZGT0HwRAbIb/QABiM4AAiA0CIDZIDQgAAHnBD/Ha0GQYAAAAAElFTkSuQmCC');
  color: #c8b89a;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 14px;
  line-height: 1.65;
}

a {
  color: #d4a856;
  text-decoration: none;
}

a:hover {
  color: #f0cc6b;
  text-decoration: underline;
}

a:visited {
  color: #b8944a;
}

/* ---- LAYOUT ---- */

#wrapper {
  max-width: 860px;
  margin: 0 auto;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
  background-color: #1e1e1e;
  min-height: 100vh;
}

/* ---- HEADER ---- */

#header {
  background-color: #111;
  border-bottom: 2px solid #4a3520;
  padding: 18px 20px 14px 20px;
  text-align: center;
}

#header h1 {
  font-family: Georgia, serif;
  font-size: 28px;
  color: #d4a856;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2px;
  text-shadow: 1px 1px 2px #000;
}

#header h1 a {
  color: #d4a856;
  text-decoration: none;
}

#header h1 a:hover {
  color: #f0cc6b;
  text-decoration: none;
}

#header .tagline {
  font-size: 11px;
  color: #887755;
  letter-spacing: 1px;
  font-style: italic;
}

/* ---- NAVIGATION ---- */

#nav {
  background-color: #161616;
  border-bottom: 1px solid #333;
  padding: 0;
  text-align: center;
}

#nav a {
  display: inline-block;
  padding: 8px 14px;
  color: #aa9060;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-right: 1px solid #2a2a2a;
}

#nav a:first-child {
  border-left: 1px solid #2a2a2a;
}

#nav a:hover {
  background-color: #222;
  color: #f0cc6b;
}

/* ---- CONTENT ---- */

#content {
  padding: 24px 30px;
}

/* ---- HEADINGS ---- */

h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #d4a856;
  border-bottom: 1px solid #3a3020;
  padding-bottom: 6px;
  margin-bottom: 14px;
  margin-top: 28px;
  text-shadow: 1px 1px 1px #000;
}

h2:first-child,
#content h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  color: #c09840;
  margin-top: 22px;
  margin-bottom: 8px;
}

h4 {
  font-size: 14px;
  color: #b08838;
  margin-top: 16px;
  margin-bottom: 6px;
  font-style: italic;
}

/* ---- PARAGRAPHS & TEXT ---- */

p {
  margin-bottom: 12px;
}

strong {
  color: #ddc8a0;
}

em {
  color: #c8b89a;
}

blockquote {
  border-left: 3px solid #4a3520;
  padding: 8px 14px;
  margin: 14px 0;
  background-color: #1a1810;
  color: #aa9a7a;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid #333;
  margin: 20px 0;
}

/* ---- LISTS ---- */

ul, ol {
  margin: 10px 0 14px 28px;
}

li {
  margin-bottom: 5px;
}

li a {
  color: #d4a856;
}

/* ---- TABLES ---- */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  font-size: 13px;
}

th {
  background-color: #2a2218;
  color: #d4a856;
  padding: 7px 10px;
  text-align: left;
  border: 1px solid #3a3020;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

td {
  padding: 6px 10px;
  border: 1px solid #2a2a2a;
  vertical-align: top;
}

tr:nth-child(even) {
  background-color: #1a1a18;
}

/* ---- SIDEBAR BOXES (used on hub pages) ---- */

.infobox {
  background-color: #1a1810;
  border: 1px solid #3a3020;
  padding: 14px;
  margin: 16px 0;
  font-size: 13px;
}

.infobox h3 {
  margin-top: 0;
  font-size: 15px;
  border-bottom: 1px solid #3a3020;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

/* ---- CREATURE / ENTRY STATS ---- */

.stats-table {
  width: 280px;
  float: right;
  margin: 0 0 16px 20px;
  font-size: 13px;
}

.stats-table th {
  text-align: center;
  font-size: 13px;
}

.stats-table td:first-child {
  width: 100px;
  font-weight: bold;
  color: #c09840;
}

/* ---- BREADCRUMBS ---- */

.breadcrumb {
  font-size: 11px;
  color: #666;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #887755;
  font-size: 11px;
}

.breadcrumb a:hover {
  color: #d4a856;
}

/* ---- TAG LINKS (related pages) ---- */

.related {
  background-color: #161410;
  border: 1px solid #2a2a2a;
  padding: 12px 14px;
  margin-top: 24px;
  font-size: 13px;
}

.related h4 {
  margin-top: 0;
  color: #c09840;
  font-style: normal;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ---- FOOTER ---- */

#footer {
  background-color: #111;
  border-top: 1px solid #333;
  padding: 14px 20px;
  text-align: center;
  font-size: 11px;
  color: #555;
}

#footer a {
  color: #776644;
}

/* ---- HOME PAGE SPECIFIC ---- */

.home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}

.home-grid .card {
  background: #1a1810;
  border: 1px solid #2a2218;
  padding: 12px 14px;
  width: calc(50% - 6px);
  font-size: 13px;
}

.home-grid .card h4 {
  margin-top: 0;
  margin-bottom: 4px;
}

.home-grid .card p {
  margin-bottom: 0;
  font-size: 12px;
  color: #998870;
}

/* ---- INDEX LISTS ---- */

.entry-list {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.entry-list li {
  padding: 5px 0;
  border-bottom: 1px solid #222;
}

.entry-list li:last-child {
  border-bottom: none;
}

.entry-list .desc {
  font-size: 12px;
  color: #887766;
  margin-left: 6px;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 700px) {
  #content {
    padding: 16px 14px;
  }
  .stats-table {
    float: none;
    width: 100%;
    margin: 0 0 14px 0;
  }
  .home-grid .card {
    width: 100%;
  }
  #nav a {
    padding: 6px 8px;
    font-size: 11px;
  }
}
