/* ===== Global ===== */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: #222;
  background: #fdfdfd;
  line-height: 1.6;
}

/* ===== Header / Nav ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem; 
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo img { width: 45px; height: 45px; }

.site-title{
  font-size: 1.25rem;          /* add ~4–5 px   */
  font-weight: 1000;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.3s ease;
}

.site-nav a {
  font-size: 1.05rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

.site-nav a.active,
.site-nav a:hover { color: #006aff; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Modern post list ===== */
.post-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  transition: box-shadow 0.25s ease;
}
.post-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.post-link {
  display: flex;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.post-title {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #000;
}
.post-link:hover .post-title {
  color: #006aff;
}

.post-excerpt {
  margin: 0.15rem 0 0.6rem;
  color: #555;
}

.post-meta {
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 600px) {
  .post-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-thumb {
    width: 100%;
    height: 160px;
  }
}

/* ===== Quote Gallery ===== */
.hero-quotes {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: #000;
}

.quote-box {
  max-width: 650px;
  min-height: 120px;
  position: relative;
}

.quote-box blockquote {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  opacity: 0;
  animation: fadeInOutFast 12s linear infinite;
}

.quote-box figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  opacity: 0;
  animation: fadeInOutFast 12s linear infinite;
}

@keyframes fadeInOutFast {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  85%  { opacity: 1; }
  90%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 480px) {
  .quote-box blockquote {
    font-size: 1.1rem;
  }
}

/* ===== Home grid (desktop) ===== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.latest, .hero, .sidebar {
  background: #fff;
}

.post-card {
  margin-bottom: 2rem;
}
.post-card img {
  width: 100%;
  border-radius: 4px;
}
.post-title {
  font-size: 1.25rem;
  margin: 0.5rem 0 0.25rem;
}
.post-excerpt {
  margin: 0 0 0.25rem;
  color: #555;
}
.post-meta {
  font-size: 0.8rem;
  color: #888;
}

.hero img {
  width: 100%;
  border-radius: 4px;
}
.hero h1 {
  font-size: 2rem;
  margin: 1rem 0 0.5rem;
}

.sidebar h3 {
  margin-top: 0;
}
.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.popular-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.popular-list img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}
.popular-list span {
  font-size: 0.95rem;
}

/* ===== Stand-alone pages ===== */
.page-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.archive-list {
  list-style: none;
  padding: 0;
}
.archive-list li {
  margin: 0.75rem 0;
}
.date-label {
  color: #888;
  margin-right: 0.5rem;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: #666;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .home-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    transform: translateY(-120%);
  }
  .site-nav.open {
    transform: translateY(0);
  }
  .menu-toggle {
    display: block;
  }
}

/* ===== Biography Page Styles ===== */
.bio-photo {
  display: block;
  margin: 1.5rem auto;
  max-width: 300px;
  width: 100%;
  border: 1px solid #000;
  border-radius: 4px;
}

.section-title {
  margin-top: 2rem;
  font-size: 1.5rem;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 0.25rem;
}

.experience-item h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.experience-item p {
  margin: 0 0 0.75rem;
}

.education-list,
.experience-list {
  list-style: none;
  padding: 0;
}

.education-list li {
  margin-bottom: 0.75rem;
}

.post-full h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.post-full-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin: 1rem 0;
  border-radius: 4px;
}
.post-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.post-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ===== Vintage TV wrapper ===== */
.vintage-tv{
  display:flex;
  justify-content:center;
  padding:2rem 1rem;
}

/* “TV frame” – purely CSS (no extra image) */
.vintage-tv video{
  width:100%;
  max-width:720px;
  aspect-ratio:16/9;
  background:#000;
  border:14px solid #3d3d3d;          /* bezel */
  border-radius:12px;
  box-shadow:0 8px 28px rgba(0,0,0,.25);
  object-fit:cover;
}

/* subtle chrome trim */
.vintage-tv video::cue,
.vintage-tv video::-webkit-media-controls-panel{
  filter:grayscale(.25);
}

/* keep it compact on small screens */
@media(max-width:600px){
  .vintage-tv video{
    border-width:10px;
    border-radius:8px;
  }
}
