/* A CSS rule has two parts:
   WHO to style  { WHAT to change: the new value; }  */

/* The whole page: colors and fonts for the whole window */
body {
  background: #0a0f0d;            /* almost-black green, like the tactical map */
  color: #d8e0dc;                 /* text color: soft white */
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;               /* space between lines of text */
  margin: 0;                      /* remove the browser's default gap around the page */
  min-height: 100vh;              /* at least as tall as the window (vh = % of window height) */
  transition: background 0.5s, color 0.5s;  /* fade colors over half a second when they change */
}

/* The content column in the middle */
main {
  max-width: 640px;               /* keep the text in a narrow column */
  margin: 0 auto;                 /* centered left to right */
  padding: 60px 16px;             /* space inside: 60px top/bottom, 16px left/right */
}

/* The big heading */
h1 {
  color: #ffb7c5;                 /* sakura pink */
  font-family: Consolas, monospace;
  letter-spacing: 2px;
}

/* All links */
a {
  color: #4dff9a;
}

/* The mode button */
button {
  background: transparent;         /* no fill, just an outline */
  color: inherit;                  /* use the same color as the text around it */
  border: 1px solid currentColor;  /* thin outline in that same color */
  padding: 6px 14px;               /* space inside the button: top/bottom, left/right */
  font-family: Consolas, monospace;
  cursor: pointer;                 /* show the hand cursor on hover */
}

/* ===== Images ===== */

/* Every image: never wider than its column, so big pictures shrink to fit phones */
img {
  max-width: 100%;
  height: auto;                    /* keep the shape when the width shrinks */
}

/* The NH logo at the top of the front page */
.logo {
  display: block;                  /* sits on its own line */
  margin: 0 auto;                  /* centered */
}

/* The big key art on the front page */
.key-art {
  display: block;
  margin: 24px 0;                  /* space above and below */
  border-radius: 8px;              /* slightly rounded corners */
}

/* ===== Footer ===== */
footer {
  max-width: 640px;                /* same column as main */
  margin: 0 auto;
  padding: 24px 16px 48px;
  text-align: center;
  font-size: 0.85em;
  opacity: 0.7;                    /* quieter than the main content */
  border-top: 1px solid currentColor;  /* thin line between the page and the footer */
}

footer p {
  margin: 4px 0;                   /* "footer p" = only paragraphs inside the footer */
}

/* ===== Codex entry pages =====
   A name starting with "." means a class: a label you can put on any element with class="..." in HTML.
   (An id, like #mode-button, is for ONE element. A class can go on many.) */

/* The small "Characters · Act 1" line above the name */
.entry-category {
  font-family: Consolas, monospace;
  font-size: 0.8em;                /* 80% of the normal text size */
  text-transform: uppercase;       /* SHOW IT IN CAPITALS */
  letter-spacing: 2px;
  opacity: 0.6;                    /* a bit faded, so the name stands out */
  margin-bottom: 0;                /* no gap between this line and the name */
}

/* The short tagline under the name */
.entry-subtitle {
  font-style: italic;
  opacity: 0.8;
  margin-top: 0;                   /* sit right under the name */
}

/* ===== Shrine mode =====
   "body.shrine" means: only when <body> has the "shrine" label.
   script.js adds and removes that label when the button is clicked. */
body.shrine {
  background: #f5efe6;             /* washi paper */
  color: #2b2b2b;                  /* ink */
  font-family: "Yu Mincho", serif; /* a brush-like Japanese serif font */
}

/* "body.shrine h1" means: any h1 inside a body that has the "shrine" label */
body.shrine h1,
body.shrine a {
  color: #b33a3a;                  /* torii red */
}

/* The logo's letters are white, which would vanish on washi paper, so give them a dark ink shadow */
body.shrine .logo {
  filter: drop-shadow(0 0 3px #2b2b2b);
}
