/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #fdfcf7;
    color: #2b2b2b;
    line-height: 1.1;
    padding: 0;
    margin: 0;
}
p {
  margin: 1rem 0; /* top and bottom spacing */
}

p.fieldguide {
  font-family: "Patrick Hand", "Comic Neue", "Segoe Print", cursive;
  background-color: #fffdf7;
  border: 1px solid #d8cda9;
  border-left: 4px solid #c9a227; /* warm gold accent */
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #2b2b2b;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
}


ul {
  margin-left: 2em;
  margin-bottom: 1em;
}
/* Header */
header {
    text-align: center;
    padding: 1rem 1rem;
    background: #fffaf0;
    border-bottom: 3px solid #e2c97c;
}

header .logo img {
    width: 100px;
    height: auto;
}

header h1 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    color: #3a2d1f;
}

header .tagline {
    font-style: italic;
    color: #5c4a34;
    margin-top: 0.5rem;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;   /* center the items */
  flex-wrap: wrap;           /* allow wrapping */
  gap: 1rem;                 /* space between items */
}

nav ul li {
  margin: 0.5rem 0;          /* adds breathing room when wrapped */
}

nav ul a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;               /* spacing between icon and text */
}


/* Book feature */
.book-feature {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
}

.book-cover img {
    width: 280px;
    border: 4px solid #e2c97c;
    border-radius: 8px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.2);
}

.book-details {
    flex: 1;
    margin-left: 2rem;
    min-width: 280px;
}

.book-details h2 {
    font-size: 1.8rem;
    color: #3a2d1f;
}

.book-details h3 {
    font-size: 1.3rem;
    color: #6a553b;
    margin-top: 0.3rem;
}

.book-details .author {
    margin: 1rem 0;
    font-weight: bold;
    color: #2b2b2b;
}

.book-details .description {
    margin: 1rem 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem .75rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 0.5rem 1rem 0.5rem 0; /* top right bottom left */
}

.btn.primary {
    background: #3a2d1f;
    color: #fffaf0;
}

.btn.primary:hover {
    background: #5c4a34;
}

.btn.secondary {
    background: #e2c97c;
    color: #2b2b2b;
}

.btn.secondary:hover {
    background: #d4b867;
}
.float-left {
  float: left;
  margin: 0 1em 1em 0;
}
.float-right {
  float: right;
  margin: 0 0 1em 1em;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #fffaf0;
    margin-top: 2rem;
    border-top: 2px solid #e2c97c;
}

footer a {
    color: #3a2d1f;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.in-progress {
  color: #b34700; /* dark orange */
  font-weight: bold;
  font-style: italic;
}
.complete {
  color: #116045;
  font-weight: bold;
  font-style: italic;
}



/* Chapter Index */
.chapter-index {
  background: #f4f1ec;
  border: 1px solid #ddd;
  padding: 1em;
  margin-bottom: 2em;
  border-radius: 8px;
}

.chapter-index h2 {
  margin-top: 0;
}

.chapter-index ul {
  list-style: none;
  padding-left: 0;
}

.chapter-index li {
  margin: 0.5em 0;
}

.chapter-index a {
  text-decoration: none;
  color: #0055aa;
}

.chapter-index a:hover {
  text-decoration: underline;
}

/* Characters and Creatures */


  :root {
    --ink: #1b1f23;
    --muted: #6a737d;
    --line: #e6e8eb;
    --bg: #ffffff;
    --accent: #0ea5e9;
  }

  .wrap {
    max-width: 860px;
    margin: 24px auto 48px;
    padding: 0 16px;
  }
  header {
    margin-bottom: 16px;
  }
  h1 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    letter-spacing: 0.2px;
  }
  .controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 0 20px;
  }
  select, button {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    font-size: 0.95rem;
  }
  select:focus, button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  }
  .meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 6px;
  }
  .summary {
    margin: 10px 0 14px;
    font-weight: 500;
  }
  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  @media (min-width: 720px) {
    .grid {
      grid-template-columns: 1.1fr 0.9fr;
    }
  }
  .panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
  }
  .panel h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: 0.2px;
  }
  .stats-table {
    width: 100%;
    border-collapse: collapse;
  }
  .stats-table th, .stats-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
  }
  .chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 6px;
  }
  .weak, .rels {
    margin: 0;
    padding-left: 18px;
  }
  .muted {
    color: var(--muted);
  }
