/* ==========================================================================
   WUAH — STYLESHEET
   --------------------------------------------------------------------------
   One file controls the whole site. Everything is grouped by what it does.
   Change a value, save, upload to GitHub, and the site updates in ~1 minute.
   Comments starting with "//" or wrapped in these blocks are notes only —
   they do not affect the page. Only lines with { } and ; are real rules.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE BODY — the reading column
   --------------------------------------------------------------------------
   max-width   : the widest the text column ever gets. Increase to 44rem for
                 a longer line, decrease to 32rem for a narrower one.
                 This single value is what makes the site responsive —
                 on a phone the column fills the screen, on a monitor it
                 stops growing. No media queries needed.
   margin      : "0 auto" centers the column horizontally. Do not change.
   padding     : space between the column and the screen edge.
                 Bump the second number (1.5rem) if text feels cramped
                 on mobile.
   font-family : system-ui means "use whatever font the device already has."
                 No font is downloaded. Never add a webfont.
   font-size   : body text size. 1.125rem ≈ 18px. Try 1rem for 16px.
   line-height : space between lines. 1.6 is comfortable. 1.4 is tight,
                 1.8 is airy. Never go below 1.3 for long reading.
   color       : TEXT COLOR. This is the main body text.
   background  : PAGE BACKGROUND COLOR.
   -------------------------------------------------------------------------- */
body {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #;        /* <-- TEXT COLOR */
  background: #;   /* <-- BACKGROUND COLOR */
}

/* --------------------------------------------------------------------------
   LINKS — all hyperlinks on every page
   --------------------------------------------------------------------------
   color : LINK COLOR. This is the blue for every <a> tag.
           Pick something that stands out from body text.
   Add "text-decoration: underline;" below if you want links underlined.
   Add "text-decoration: none;" if you want them plain (default look).
   -------------------------------------------------------------------------- */
a {
  color: #;        /* <-- LINK COLOR */
}

/* --------------------------------------------------------------------------
   HEADER — the thin bar at the top of every page
   --------------------------------------------------------------------------
   border-bottom : the line under the header.
                   Change #2e2e2e to another hex to recolor the line.
                   Change "1px solid" to "1px dashed" for a dashed line,
                   or "none" to remove it entirely.
   padding-bottom: space between the header text and that line.
   margin-bottom : space between the line and the first line of content.
   -------------------------------------------------------------------------- */
header {
  border-bottom: 1px solid #2e2e2e;   /* <-- HEADER RULE LINE COLOR */
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   NAV — the Previous / Table of Contents / Next links at the bottom of
         every chapter page.
   --------------------------------------------------------------------------
   border-top    : the line above the nav. Same editing rules as header.
   padding-top   : space between that line and the links.
   margin-top    : space between the end of the chapter and the line.
                   Increase to 4rem or 5rem if the chapter feels cramped.
   display: flex : makes the three links sit in one row.
   justify-content: space-between
                 : pushes the first link left, middle link center,
                   last link right. Change to "center" if you want all
                   three bunched in the middle.
   gap           : minimum space between links so they never touch
                   on a narrow phone.
   -------------------------------------------------------------------------- */
nav {
  border-top: 1px solid #2e2e2e;      /* <-- NAV RULE LINE COLOR */
  padding-top: 0.75rem;
  margin-top: 3rem;                   /* <-- SPACE ABOVE THE NAV */
  display: flex;
  justify-content: space-between;     /* <-- "center" to bunch links up */
  gap: 1rem;                          /* <-- MINIMUM GAP BETWEEN LINKS */
}

/* --------------------------------------------------------------------------
   HEADINGS — every <h1> on the page (the chapter title)
   --------------------------------------------------------------------------
   font-size   : title size. 1.5rem is modest. Try 1.75rem or 2rem
                 for a bigger title. Anything above ~2.5rem starts to
                 look like a landing page instead of a book.
   line-height : keeps a two-line title from looking squashed.
   -------------------------------------------------------------------------- */
h1 {
  font-size: 1.5rem;                  /* <-- CHAPTER TITLE SIZE */
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   LISTS — the story list on the homepage and the chapter list on the
           table of contents page.
   --------------------------------------------------------------------------
   padding-left : how far list items are indented from the left margin.
   li margin-bottom
                : vertical space between list items. Increase to 0.6rem
                  if you want more breathing room between chapters.
   -------------------------------------------------------------------------- */
ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;              /* <-- SPACE BETWEEN LIST ITEMS */
}

/* ==========================================================================
   COLOR CHEAT SHEET
   --------------------------------------------------------------------------
   Background      : #141414   (in body)
   Body text       : #e6e6e6   (in body)
   Links           : #8ab4ff   (in a)
   Header/rule line: #2e2e2e   (in header and nav)

   Contrast tip: keep the text roughly 10× lighter than the background
   in perceived brightness. #e6e6e6 on #141414 is about right. If you go
   darker on text (#999) or lighter on background (#333), text becomes
   harder to read in sunlight.

   Common hex swaps you might like:
     #000000  pure black      (harsh on most screens)
     #141414  soft black      (current background)
     #1e1e1e  slightly lighter background
     #e6e6e6  near-white text (current text)
     #f5f5f5  brighter text
     #c9c9c9  dimmer text
     #8ab4ff  light blue link (current link)
     #7dd3fc  cyan link
     #a78bfa  purple link
   ========================================================================== */
   
   
   .line {
  display: flex;
  justify-content: space-between;
}
