/* General Page Background */
body {
  background-color: #1e1e1e;
  /* Dark background similar to the calendar */
  color: #f8f8f2;
  /* Light text color for readability */
}

/* Link Colors */
a {
  color: #ffb400;
  /* Orange link color */
}

a:hover {
  color: #ffc107;
  /* Slightly lighter orange on hover */
}

/* Homepage spacing: add more space between last note and bottom dotted line */
main.list {
  margin-bottom: 4rem;
  /* increase gap above footer's dotted border */
}

/* If any hr appears inside homepage items, give it extra breathing room */
main.list hr {
  margin: 2em 0;
}

/* Custom styles to make footer stick to bottom */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 1ch;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Add margin to the bottom of the calendar to create a gap */
.calendar {
  margin-bottom: 2rem;
  /* Adjust this value as needed */
}

/* Habits recent heatmap */
.habit-heatmap {
  display: grid;
  gap: 8px;
  margin: 1rem 0 2rem 0;
}

.habit-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.habit-label {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #ffd700;
}

.habit-label .habit-streak {
  color: #aaaaaa;
  margin-left: 8px;
  font-weight: 400;
}

.habit-grid {
  display: grid;
  grid-template-columns: repeat(var(--days, 30), 12px);
  gap: 3px;
  justify-content: end;
  /* change to center if you prefer centering */
  margin-left: auto;
  /* push grid to the right so width is consistent */
}

.habit-square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #3a3a3a;
}

.habit-square.ok {
  background: #2ecc71;
  /* green */
}

.habit-square.miss {
  background: #e74c3c;
  /* red */
}
/* The public journal shares Lifetrack's coffee-and-history palette. */
:root { color-scheme: dark; --coffee-bg: #211a16; --coffee-surface: #2d231d; --coffee-border: #705641; --coffee-text: #f5ead9; --coffee-muted: #c6b49e; --coffee-accent: #e8bb70; }
body { background: var(--coffee-bg); color: var(--coffee-text); }
body, p, li, td { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1, h2, h3, header .main { font-family: Georgia, "Times New Roman", serif; }
a { color: var(--coffee-accent); border-color: var(--coffee-accent); }
a:hover { background: var(--coffee-surface); color: #ffdc9d; }
header .main a { color: var(--coffee-text); }
header .main a:hover { background: transparent; color: var(--coffee-accent); }
.meta, time, footer, .habit-label .habit-streak { color: var(--coffee-muted); }
hr, footer, table, th, td { border-color: var(--coffee-border); }
pre, code, pre code, blockquote, table th { background: var(--coffee-surface); color: var(--coffee-text); }
blockquote { border-color: var(--coffee-accent); }
::selection { background: #58402b; color: var(--coffee-text); }
:focus-visible { outline: 2px solid var(--coffee-accent); outline-offset: 4px; }
:root { --maincolor: var(--coffee-accent); --bordercl: var(--coffee-border); --callouctcolor: var(--coffee-surface); --hovercolor: #58402b; }
.toc, .callout, .draft-label { background: var(--coffee-surface); color: var(--coffee-text); }
.callout a, .callout a:hover { background: transparent; color: var(--coffee-accent); border-color: var(--coffee-accent); }
img { border-color: var(--coffee-border); }
