/* =========================
   Root variables
   Edit these to change site-wide appearance
   ========================= */
:root {
  --left-gutter: 3rem;
  --bg-color: #f3f3f3;
  --text-color: #262626;

  --font-main: "Courier New", Courier, monospace;

  --body-size: 20px;
  --h2-size: 1.25em;  /* 50% larger than body */
  --h1-size: 1.5em; /* 50% larger than h2 */

  --line-height: 1.6;
  --content-width: 800px;

  --menu-gap: 1.5rem;
}


/* =========================
   Global reset / base
   ========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: var(--body-size);
  line-height: var(--line-height);
}


/* =========================
   Layout
   ========================= */
header {
  padding: 1.5rem 0 0.5rem var(--left-gutter);
}

main {
  width: 65%;
  padding: 0.5rem 1rem 2rem var(--left-gutter);
}


/* =========================
   Navigation menu
   ========================= */
nav {
  display: flex;
  gap: var(--menu-gap);
}

nav a {
  text-decoration: none;
  color: var(--text-color);
}

nav a:hover {
  text-decoration: underline;
}


/* =========================
   Headings
   ========================= */
h1 {
  font-size: var(--h1-size);
  font-weight: bold;
  text-decoration: underline;
  margin: 2rem 0 1rem 0;
}

h2 {
  font-size: var(--h2-size);
  font-weight: bold;
  margin: 2rem 0 0.5rem 0;
}


/* =========================
   Paragraphs & text
   ========================= */
p {
  margin: 0.5rem 0 1rem 0;
}


/* =========================
   Journal entry helper styles
   (optional but useful)
   ========================= */
.journal-entry {
  margin-bottom: 3rem;
}

.journal-entry .date {
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}


/* =========================
   Top / Bottom buttons
   (use only on journal page)
   ========================= */
.scroll-buttons {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scroll-buttons button {
  font-family: var(--font-main);
  font-size: 0.9em;
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--text-color);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.scroll-buttons button:hover {
  background: var(--text-color);
  color: var(--bg-color);
}
