/* Paul Graham Minimalist Styling */

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --link-color: #000099;
  --border-color: #000000;
  --muted-color: #333333;
  --light-muted: #555555;
  --hover-color: #555555;
}

body.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #e8e8e8;
  --link-color: #8cb4f5;
  --border-color: #555555;
  --muted-color: #b8b8b8;
  --light-muted: #c0c0c0;
  --hover-color: #d0d0d0;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 20px 40px;
  max-width: 530px;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-color);
}

/* Header - minimal, no orange bar */

header {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title-inline {
  font-family: Verdana, sans-serif;
  font-size: 16px;
  font-weight: bold;
  flex-grow: 1;
  text-align: center;
}

.nav-left,
.nav-right {
  display: inline;
}

.nav-link {
  color: var(--link-color);
  text-decoration: underline;
  font-size: 14px;
  margin-right: 15px;
}

/* Main content */

main {
  margin: 2rem 0;
}

/* Page title - large, left-aligned */

.page-title {
  font-family: Verdana, sans-serif;
  font-size: 24px;
  font-weight: bold;
  text-align: left;
  margin: 1rem 0;
}

/* Profile photo */

.profile-photo {
  width: 220px;
  height: 250px;
  border-radius: 0%;
  -o-object-fit: cover;
     object-fit: cover;
  margin: 1.5rem 0;
  display: block;
}

/* Cat photo on books page */

.cat-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 2rem 0;
  display: block;
}

/* Section navigation */

.section-nav {
  text-align: left;
  margin: 2rem 0;
  font-size: 16px;
}

.section-link {
  color: var(--link-color);
  text-decoration: none;
}

.section-link:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.nav-separator {
  margin: 0 10px;
  color: var(--text-color);
}

/* Tagline */

.tagline {
  text-align: left;
  color: var(--muted-color);
  font-size: 14px;
  line-height: 1.6;
  margin: 2rem 0;
}

/* Section titles */

.section-title {
  font-family: Verdana, sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  margin: 2rem 0;
}

/* Simple lists - Paul Graham style */

.book-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.book-item {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.simple-link {
  color: var(--link-color);
  text-decoration: underline;
}

.simple-link:hover {
  color: var(--muted-color);
  text-decoration: none;
}

.book-title {
  color: var(--muted-color);
  font-size: 14px;
  font-style: italic;
}

.item-date {
  color: var(--light-muted);
  font-size: 14px;
  margin-left: 10px;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Verdana, sans-serif;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

h4,
h5,
h6 {
  font-size: 14px;
}

/* Footer */

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 12px;
  color: var(--muted-color);
}

/* For blog posts - keep existing styles for code runners etc */

.code-runner {
  margin: 2rem 0;
  border: 1px solid #cccccc;
  background: #f8f8f8;
}

.runner-header {
  background: #e6e6e6;
  padding: 6px 10px;
  border-bottom: 1px solid #cccccc;
  font-size: 12px;
  color: #333333;
}

.code-editor {
  width: 100%;
  min-height: 140px;
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  padding: 12px;
  resize: vertical;
  line-height: 1.4;
}

.run-btn {
  background: #e6e6e6;
  color: #000000;
  border: 1px solid #999999;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}

.run-btn:hover {
  background: #d0d0d0;
}

.series-tag {
  color: #666666;
  font-size: 12px;
  font-weight: normal;
  display: block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Video container - responsive YouTube embed */

.video-container {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
}

/* Quiet link - no color change, just pointer and subtle text shift */

.quiet-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.quiet-link:hover {
  color: #000099;
  text-decoration: underline;
}

body.dark-mode .quiet-link:hover {
  color: #aaaaaa;
}

/* Music section */

.music-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.music-item {
  margin: 0.4rem 0;
  line-height: 1.6;
}

.song-title {
  color: var(--text-color);
  font-size: 15px;
}

/* Song link - plain text, no color, no underline */

.song-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.song-link:hover {
  color: var(--muted-color);
}
