/* ============ SITE CONFIG REFERENCE ============
   Background  : #fafaf8  (Warm Paper)
   Text        : #1a1a1a
   Links       : #2563eb
   Muted text  : #6b7280
   Max width   : 720px
   Font        : Georgia, serif
   =============================================== */

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- Base ---- */
html {
  font-size: 17px;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background-color: #fafaf8;
  color: #1a1a1a;
  line-height: 1.7;
  padding: 0;
  margin: 0;
}

/* ---- Layout Container ---- */
.container {
  max-width: 795px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* ---- Typography ---- */
h1 {
  font-size: 1.9rem;
  font-weight: bold;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: #1a1a1a;
}

h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
  color: #1a1a1a;
}

/* ---- Links ---- */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Muted / Secondary Text ---- */
.muted {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ---- Horizontal Rule / Section Divider ---- */
hr {
  border: none;
  border-top: 1px solid #e5e5e0;
  margin: 2rem 0;
}

/* ---- Navbar ---- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
}

nav .nav-name {
  font-size: 1rem;
  font-weight: bold;
  color: #1a1a1a;
  text-decoration: none;
}

nav .nav-name:hover {
  text-decoration: none;
  color: #2563eb;
}

nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav .nav-links a {
  font-size: 0.95rem;
  color: #1a1a1a;
  text-decoration: none;
}

nav .nav-links a:hover {
  color: #2563eb;
  text-decoration: none;
}

nav .nav-links a.active {
  color: #2563eb;
}

/* ---- Footer ---- */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e5e0;
  font-size: 0.9rem;
  color: #6b7280;
}

footer .footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  
}

footer .footer-links a {
  color: #6b7280;
  font-size: 0.9rem;
}

footer .footer-links a:hover {
  color: #2563eb;
}

/* ---- Section Labels (for Readings, Projects etc.) ---- */
.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* ---- List of entries (readings, blogs, projects) ---- */
.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e5e0;
}

.entry-list li:last-child {
  border-bottom: none;
}

.entry-list a {
  font-size: 1rem;
  color: #2563eb;
}

/* ---- Tags / Badges (for projects) ---- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  background-color: #f0f0ec;
  color: #6b7280;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  font-family: 'Courier New', monospace;
}

/* ---- Back Link ---- */
.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: #2563eb;
  text-decoration: none;
}

/* ---- About Block (title pages) ---- */
.about-block {
  margin-bottom: 2rem;
}

.about-desc {
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
}

/* ---- Reading Section Blocks (readings.html hub) ---- */
.reading-section-block {
  padding: 1rem 0;
}

.reading-section-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2563eb;
  display: block;
  margin-bottom: 0.3rem;
}

/* ---- Hero Section ---- */
.hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.hero-photo {
  width: 230px;
  height: 230px;
  border-radius: 35%;
  object-fit: cover;
  flex-shrink: 5;
  margin-top: 1.0rem;
}

.hero-text {
  flex: 1;
  text-align: justify;
  margin-left: 65px;
}

/* ---- Updates Feed ---- */
.updates-feed {
  display: block;
  max-height: 165px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6d6d0 transparent;
}

.updates-feed::-webkit-scrollbar {
  width: 6px;
}

.updates-feed::-webkit-scrollbar-track {
  background: transparent;
}

.updates-feed::-webkit-scrollbar-thumb {
  background-color: #d6d6d0;
  border-radius: 6px;
}

.updates-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.updates-item {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e5e0;
}

.updates-item:last-child {
  border-bottom: none;
}

.updates-item a {
  display: block;
  font-size: 1rem;
}

/* ---- Project Entries ---- */
.project-entry {
  list-style: none;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e0;
}

.project-entry:last-child {
  border-bottom: none;
}

.project-title {
  font-size: 1rem;
  font-weight: bold;
  color: #2563eb;
  display: block;
  margin-bottom: 0.3rem;
}

.project-desc {
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  nav .nav-links {
    gap: 1rem;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: centre;
  }
}
