/* Custom overrides - preserve Lanyon color scheme (#ac4142, PT Serif/Sans) */

/* Typography */
body {
  font-family: "PT Serif", Georgia, "Times New Roman", serif !important;
  color: #313131 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "PT Sans", Helvetica, Arial, sans-serif !important;
  font-weight: 400;
  color: #313131 !important;
}

/* Inline and block code - light grey background, black text */
code {
  background-color: #e8e8e8;
  color: #313131;
  padding: 0.15em 0.3em;
  border-radius: 3px;
}

div.highlighter-rouge code {
  padding: 1rem;
}

/* Links - accent color; underline only on hover or focus */
a {
  color: #ac4142 !important;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #f0f0f0;
  z-index: 9999;
}

.reading-progress {
  height: 100%;
  background-color: #ac4142;
  width: 0%;
  transition: width 0.2s ease-out;
}

/* Post Meta */
.post-meta {
  color: #9a9a9a;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-meta .separator { color: #d0d0d0; font-weight: 300; }
.post-meta .reading-time { color: #9a9a9a; font-style: italic; }

/* Table of Contents */
.toc {
  background-color: #ffffff;
  border: 1px solid #e9e7e7;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.toc h3 { margin-top: 0; color: #555; }
#toc-list a { color: #ac4142; }

/* Back button */
.back-button, .back-button-container a {
  color: #ac4142 !important;
}

/* Tab navigation */
.tab-nav {
  text-align: center;
  margin: 1.5rem 0;
}

.tab-nav a {
  margin: 0 0.5rem;
}

.tab-nav a.active {
  font-weight: 600;
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
}

.site-footer a {
  margin: 0 0.5rem;
}

/* Post list - no bullets on read/write lists (theme outputs bare <ul> with no .post-list class) */
.w > ul,
.w > ul li,
ul.post-list,
.post-list,
.post-list ul,
.post-list li {
  list-style: none !important;
}

/* Same item spacing on read, write, and build lists */
.w > ul li,
.post-list-item,
.portfolio-list-item {
  margin: 0.4rem 0;
}
